@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');
*
    {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: "Poppins", sans-serif;
    }
    /* navigation */
nav{
    background-color: #7fb2eb;
    width: 100%;
}
.nav-scrolled{ /*this applies on the js*/
    background-color: #7fb2eb;
}
#offcanvasNavbar{
    background-color: #7fb2eb;
}
#brand img{
    width: 40px;
    margin-top: -5px;
}
.select-box, .play-board, .result-box
    {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        transition: all 0.3s ease;
    }
.select-box
    {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: #fff;
        padding: 20px 25px 25px;
        border-radius: 5px;
        max-width: 330px;
        width: 100%;
        transition: all 0.3s ease;
    }
.select-box.hide
    {
        opacity: 0;
        pointer-events: none;
        transform: translate(-50%, -50%) scale(0.9);
    }
.select-box header
    {
        font-size: 23px;
        font-weight: 600;
        padding-bottom: 10px;
        border-bottom: 1px solid #ccc;
    }
.select-box .title
    {
        font-size: 18px;
        font-weight: 500;
        margin: 20px 0;
    }
.select-box .options
    {
        display: flex;
        width: 100%;
    }
.options button
    {
        width: 100%;
        font-size: 18px;
        font-weight: 500;
        padding: 8px 0;
        border: none;
        outline: none;
        background: #7fb2eb;
        border-radius: 5px;
        color: #fff;
        cursor: pointer;
        transition: all 0.3s ease;
        margin: 3px;
    }
.options button:hover, .result-box .btn button:hover
    {
        transform: scale(0.9);
    }
.options button .playerX
    {
        margin-right: 5px;
    }
.options button .playerY
    {
        margin-left: 5px;
    }
.play-board .details .players
    {
        display: flex;
        width: 100%;
        position:relative;
        justify-content: space-between;
    }
.play-board .details span
    {
        color: #56baed;
        width: 100%;
        border-radius: 5px;
        padding: 7px 0;
        font-size: 19px;
        font-weight: 500;
        cursor: default;
        text-align: center;
        position: relative;
        z-index: 5;
        transition: all 0.3s ease;
    }
.details span:first-child
    {
        color: #fff;
    }
.details .slider
    {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 50%;
        background: #56baed;
        border-radius: 5px;
        z-index: 2;
        transition: all 0.3s ease;
    }
.players.active span:first-child
    {
        color: #56baed;
    }
.players.active span:nth-child(2)
    {
        color: #fff;
    }
.players.active .slider
    {
        left: 50%;
    }

.play-board
    {
        opacity: 0;
        pointer-events: none;
        transform: translate(-50%, -50%) scale(0.9);
    }
.play-board.show
    {
        opacity: 1;
        pointer-events: auto;
        transform: translate(-50%, -50%) scale(0.9);
    }
.play-board .details
    {
        background: #fff;
        padding: 7px;
        border-radius: 5px;
    }
.play-board .play-area
    {
        margin-top: 20px;
    }
.play-board section
    {
        display: flex;
    }
.play-board section span
    {
        display: block;
        margin: 2px;
        height: 80px;
        width: 80px;
        background: #fff;
        border-radius: 5px;
        font-size: 40px;
        text-align: center;
        line-height: 80px;
        color: #56baed;
    }
.result-box
    {
        background: #fff;
        padding: 20px;
        border-radius: 5px;
        max-width: 350px;
        width: 100%;
        opacity: 0;
        pointer-events: none;
        transform: translate(-50%, -50%) scale(0.9);
    }
.result-box.show
    {
        opacity: 1;
        pointer-events: auto;
        transform: translate(-50%, -50%) scale(1);
    }
.result-box .won-text
    {
        font-size: 25px;
        font-weight: 500;
        display: flex;
        justify-content: center;
    }
.result-box .won-text p
    {
        font-weight: 600;
        margin: 0 3px;
    }
.result-box .btn
    {
        display: flex;
        margin-top: 20px;
        justify-content: center;
    }
.result-box .btn button
    {
        font-size: 18px;
        font-weight: 500;
        padding: 8px 20px;
        border: none;
        outline: none;
        background: #56baed;
        border-radius: 5px;
        color: #fff;
        cursor: pointer;
        transition: all 0.3s ease;
        margin: 3px;
    }
/* footer */
.footer{
    background-color:#7fb2eb;
}
#first-grid{
    margin: auto;
}
#fourth-grid{
    padding-top: 47px;
}
#fifth-grid{
    background-color: #46607d;
    display: flex;
    justify-content: center;
    width: 100%;
}
#first-grid img{
    display: block;
    margin-left: auto;
    margin-right: auto;
}
#first-grid h5{
    text-align: center;
}
#fifth-grid p
{
    color: rgb(0, 0, 0);
    font-size: 20px;
    margin-top: 20px;
}
/* responsive css */
@media screen and (max-width:990px){
    /* offcanvas */
    #menu-logo{
        width:40px;
    }
    
    /* footer */
    #first-grid img{
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    #first-grid h5{
        font-size: 20px;
        text-align: center;
    }
}
    
@media screen and (max-width:555px) {
    /* navbar */
    #brand img{
        width: 35px;
    }
    #menu-btn{
        border:none;
    }
    #menu-btn span{
        width: 25px;
    }
    
    /* offcanvas menu */
    #offcanvasNavbar{
        width: 300px;
    }
    #menu-logo{
        width:35px
    }
    
    /* footer */
    #footer-grid{
        display:grid;
        grid-template-columns: 1fr;
    }
    #first-grid{
        width: auto;
        margin-top: 15px;
    }
    #second-grid{
        width: auto;
    }
    #footer-grid{
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    #first-grid{
        grid-column: 1/3;
    }
    #fourth-grid{
        grid-column: 1/3;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 20px;
        padding-top: px;
    }
    #fifth-grid{
        grid-column: 1/3;
    }
}

@media screen and (max-width:430px) {
    /* navbar */
    nav{
        height: 60px;
        width: 100%;
    }
    #brand{
        font-size: 18px;
    }
    #brand img{
        width: 30px;
    }
    
      /* footer */
    #footer-grid
    {
        display: grid;
        grid-template-columns: 1fr 1fr;
        font-size: 10px;
        width: 100%;
    }
    #first-grid{
        margin: auto;
        width: 100vw;
    }
    #second-grid{
        margin: auto;
        width: 50vw;
    }
    #third-grid{
        margin: auto;
        width: 50vw;
    }
    
    #fourth-grid
    {
        text-align: center;
        grid-column: 1/3;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 20px;
        font-size: 10px;
        width: 100vw;
    }
    #fifth-grid
    {
        grid-column: 1/3;
        font-size: 10px;
    }
    #footer img
    {
        margin-top: 10px;
    }
}
