/*
==============================
BASICS
==============================
*/

body {
    background: #02AAFF;
    background-image: linear-gradient(to right, #01adff , #02a7ff);
    background-image: url(../images/bg.jpg);
    height: 100%;
    min-height: 726px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.container {
    padding: 15px 30px;
    width: 705px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.7)
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Pirata One', serif;
    text-transform: lowercase;
}

h1 {
    font-size: 3em;
}

h2 {
    font-size: 2.5em;
}

strong {
    font-weight: bold;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent; 
}

::-webkit-scrollbar-thumb {
    background: #faebd7; 
    border-radius: 3px;
}

::selection {
    background: #faebd7;
}

/*
==============================
HEADER
==============================
*/

header {
    margin-top: 15px;
}

header .container {
    border-radius: 15px 15px 0 0;
    padding-top: 30px;
}

.subhead p {
    line-height: 1.25em;
    font-size: 1.15em;
}
    
.subhead p:nth-child(1n+2) {
    margin-bottom: 0.75em;
}

/*
==============================
SECTION
==============================
*/

section {
    padding-top: 0;
}

.sGrid {
    display: grid;
    grid-gap: 15px;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.message {
    grid-column: span 4;
    width: 100%;
    margin: 0 auto;
    padding: 15px;
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
    background: #faebd7;
    position: relative;
    transform: rotate(-0.5deg);
    box-shadow: -3px 3px 10px rgb(250, 235, 215, 0.2);
}

.message:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    border-width: 0 16px 16px 0;
    border-style: solid;
    border-color: #D7C0A1 #c8e4ff;
  }

#numberToGuess, #userScore, #wins, #losses {
    font-family: 'Pirata One', serif;
    font-size: 3em;
}

.numberToGuess, .userScore, .wins, .losses {
    padding: 15px; 
    text-align: center;
}

.crystalBox {
    grid-column: span 4;
    display: grid;
    grid-gap: 15px;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    justify-items: center;
    justify-content: center;	
}

.crystal {
    background: transparent;
    position: relative;
    width: 150px;
    height: 120px;
    transition: transform 0.5s;
    cursor: pointer;
}

.crystal:hover {
    transform: scale(1.15);
    filter: brightness(1.05);
}

/*
==============================
CRYSTALS
==============================
*/
  
#crystalA .crystal-top-left {
    position: absolute;
    border-bottom: 40px solid rgb(100, 133, 232, 0.8);
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    height: 0;
    width: 110px;
}

#crystalA .crystal-top-right {
    position: absolute;
    right: 0;
    border-bottom: 40px solid rgb(29, 76, 216, 0.8);
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    height: 0;
    width: 110px;    
}

#crystalA .crystal-bottom-left {
    position: absolute;
    top: 40px;
    border-left: 75px solid transparent;
    border-right: 35px solid transparent;
    border-top: 80px solid rgb(143, 167, 240, 0.8);
}

#crystalA .crystal-bottom-right {
    position: absolute;
    top: 40px;
    right: 0;
    border-left: 35px solid transparent;
    border-right: 75px solid transparent;
    border-top: 80px solid rgb(65, 105, 225, 0.8);
}

#crystalB .crystal-top-left {
    position: absolute;
    border-bottom: 40px solid rgb(255, 129, 106, 0.8);
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    height: 0;
    width: 110px;
}

#crystalB .crystal-top-right {
    position: absolute;
    right: 0;
    border-bottom: 40px solid rgb(240, 59, 26, 0.8);
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    height: 0;
    width: 110px;    
}

#crystalB .crystal-bottom-left {
    position: absolute;
    top: 40px;
    border-left: 75px solid transparent;
    border-right: 35px solid transparent;
    border-top: 80px solid rgb(255, 165, 149, 0.8);
}

#crystalB .crystal-bottom-right {
    position: absolute;
    top: 40px;
    right: 0;
    border-left: 35px solid transparent;
    border-right: 75px solid transparent;
    border-top: 80px solid rgb(255, 100, 71, 0.8);
}

#crystalC .crystal-top-left {
    position: absolute;
    border-bottom: 40px solid rgb(255, 185, 57, 0.8);
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    height: 0;
    width: 110px;
}

#crystalC .crystal-top-right {
    position: absolute;
    right: 0;
    border-bottom: 40px solid rgb(198, 128, 0, 0.8);
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    height: 0;
    width: 110px;    
}

#crystalC .crystal-bottom-left {
    position: absolute;
    top: 40px;
    border-left: 75px solid transparent;
    border-right: 35px solid transparent;
    border-top: 80px solid rgb(255, 200, 100, 0.8);
}

#crystalC .crystal-bottom-right {
    position: absolute;
    top: 40px;
    right: 0;
    border-left: 35px solid transparent;
    border-right: 75px solid transparent;
    border-top: 80px solid rgb(255, 165, 0, 0.8);
}

#crystalD .crystal-top-left {
    position: absolute;
    border-bottom: 40px solid rgb(77, 165, 115, 0.8);
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    height: 0;
    width: 110px;
}

#crystalD .crystal-top-right {
    position: absolute;
    right: 0;
    border-bottom: 40px solid rgb(25, 117, 65, 0.8);
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    height: 0;
    width: 110px;    
}

#crystalD .crystal-bottom-left {
    position: absolute;
    top: 40px;
    border-left: 75px solid transparent;
    border-right: 35px solid transparent;
    border-top: 80px solid rgb(124, 195, 155, 0.8);
}

#crystalD .crystal-bottom-right {
    position: absolute;
    top: 40px;
    right: 0;
    border-left: 35px solid transparent;
    border-right: 75px solid transparent;
    border-top: 80px solid rgb(46, 139, 86, 0.8);
}

/*
==============================
FOOTER
==============================
*/

footer {
    margin-bottom: 15px;
}

footer .container {
    background: rgba(255, 255, 255, 0.8);
    padding: 30px;
    border-radius: 0 0 15px 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 15px;
}

footer nav ul {
    display: flex;
}

footer nav li {
    flex-basis: auto;
    padding-right: 2em;
}

nav a {
    text-decoration: none;
    text-align: center;
    color: rgba(0, 0, 0, 0.9);
    transition: all .75s;
}

nav a:hover {
    color: #01adff;
}

.copyright {
    text-align: right;
}
