/* board lines: #031926*/
/* box color: #3FA7D6 */
/* title background color: #a4cde6 */

body {
    padding: 20px;
    background-color: #bdddeb;
    min-height: 600px;
    min-width: fit-content;
}

h1, p {
    text-align: center;
}

.title {
    width: fit-content;
    min-height: fit-content;
    top: -30px;
    left: -60px;
    z-index: 1;
    position: absolute;
    padding: 5px;
    background-color: #a4cde6;
    color: #ffffff;
    border-style: solid;
    border-radius: 10px;
    border-width: 0;
    box-shadow: 0px 0px 25px 2px rgba(48,44,71,0.87);
    -webkit-box-shadow: 0px 0px 25px 2px rgba(48,44,71,0.87);
    -moz-box-shadow: 0px 0px 25px 2px rgba(48,44,71,0.87);
}

.game {
    display: grid;
    grid-template-rows: auto auto auto;
    z-index: 0;
    top: 80px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    min-width: fit-content;
    height: fit-content;
    max-width: 500px;
    background-color: #3FA7D6;
    border-style: solid;
    border-radius: 10px;
    border-width: 0;
    padding: 10px;
    box-shadow: 0px 0px 25px 2px rgba(48,44,71,0.87);
    -webkit-box-shadow: 0px 0px 25px 2px rgba(48,44,71,0.87);
    -moz-box-shadow: 0px 0px 25px 2px rgba(48,44,71,0.87);
}

.players {
    display: grid;
    grid-template-columns: auto auto;
    width: 260px;
    margin: auto;
}

.players>div {
    width: 100px;
    background-color: white;
    margin: 10px;
    padding: 5px;
    border-radius: 4px;
    /*
    box-shadow: 0px 0px 25px 2px rgba(48,44,71,0.87);
    -webkit-box-shadow: 0px 0px 25px 2px rgba(48,44,71,0.87);
    -moz-box-shadow: 0px 0px 25px 2px rgba(48,44,71,0.87); 
    */
}

.players>div:hover {
    cursor: pointer;
    background-color: #c2fbd7;
    box-shadow: rgba(44,187,99,.35) 0 -25px 18px -14px inset,rgba(44,187,99,.25) 0 1px 2px,rgba(44,187,99,.25) 0 2px 4px,rgba(44,187,99,.25) 0 4px 8px,rgba(44,187,99,.25) 0 8px 16px,rgba(44,187,99,.25) 0 16px 32px;
    transform: scale(1.05) rotate(-1deg);
}

.clicked-style {
    background-color: #c2fbd7;
    box-shadow: rgba(44,187,99,.35) 0 -25px 18px -14px inset,rgba(44,187,99,.25) 0 1px 2px,rgba(44,187,99,.25) 0 2px 4px,rgba(44,187,99,.25) 0 4px 8px,rgba(44,187,99,.25) 0 8px 16px,rgba(44,187,99,.25) 0 16px 32px;
    transform: scale(1.05) rotate(-1deg);
}

.board {
    display: grid;
    grid-template-columns: auto auto auto;
    height: 245px;
    width: 245px; 
    margin: 30px auto 30px auto;
    background-color: #2c7ca0;
}

.box {
    background-color: #3FA7D6;
    height: 65px;
    width: 65px;
    padding: 5px;
    font-family: "Audiowide", sans-serif;
    font-size: 55px;
    text-align: center;
}

.left {
    margin-right: 5px;
}

.center {
    margin-left: 5px;
    margin-right: 5px;
}

.right {
    margin-left: 5px;
}

.top {
    margin-bottom: 5px;
}

.middle {
    margin-top: 5px;
    margin-bottom: 5px;
}

.bot {
    margin-top: 5px;
}

.button {
    width: 100px;
    margin: auto;
    background-color: #c2fbd7;
    border-radius: 100px;
    box-shadow: rgba(44, 187, 99, .2) 0 -25px 18px -14px inset,rgba(44, 187, 99, .15) 0 1px 2px,rgba(44, 187, 99, .15) 0 2px 4px,rgba(44, 187, 99, .15) 0 4px 8px,rgba(44, 187, 99, .15) 0 8px 16px,rgba(44, 187, 99, .15) 0 16px 32px;
    color: green;
    cursor: pointer;
    display: inline-block;
    font-family: CerebriSans-Regular,-apple-system,system-ui,Roboto,sans-serif;
    padding: 7px 20px;
    text-align: center;
    text-decoration: none;
    transition: all 250ms;
    border: 0;
    font-size: 16px;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.button:hover {
    box-shadow: rgba(44,187,99,.35) 0 -25px 18px -14px inset,rgba(44,187,99,.25) 0 1px 2px,rgba(44,187,99,.25) 0 2px 4px,rgba(44,187,99,.25) 0 4px 8px,rgba(44,187,99,.25) 0 8px 16px,rgba(44,187,99,.25) 0 16px 32px;
    transform: scale(1.05) rotate(-1deg);
}

.players {
    text-align: center;
}

#winnerMessage {
    width: fit-content;
    height: fit-content;
    background-color: #a4cde6;
    box-shadow: 0px 0px 25px 2px rgba(48,44,71,0.87);
    -webkit-box-shadow: 0px 0px 25px 2px rgba(48,44,71,0.87);
    -moz-box-shadow: 0px 0px 25px 2px rgba(48,44,71,0.87);
    color: white;
    font-size: 20px;
    text-align: center;
    padding: 40px;
    border-radius: 18px;
    position: absolute;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
    z-index: 1;
}



#xBtn {
    position: absolute;
    top: 10px;
    left: 16px;
    background-color: #a4cde6;
    cursor: pointer;
    z-index: 1;
    width: fit-content;
    height: fit-content;
    border-radius: 10px;
    padding: 5px;
    box-shadow: 0px 0px 25px 2px rgba(48,44,71,0.87);
    -webkit-box-shadow: 0px 0px 25px 2px rgba(48,44,71,0.87);
    -moz-box-shadow: 0px 0px 25px 2px rgba(48,44,71,0.87);
}

#xBtn:hover {
    background-color: #94c1dc;
    transform: scale(1.1);
}


/* Screen sizes less than 660px */
@media screen and (max-width: 660px) {
    .title {
        top: -80px;
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
    }
}

/* Ensure minimum height of body is 600px for screens taller than 600px */
@media screen and (min-height: 600px) {
    body {
        min-height: fit-content;
    }
}

/* Ensure game board goes back to size when width is smaller than 600px */
@media screen and (max-width: 600px) {
    .game {
        max-width: fit-content;
    }
}