@charset "UTF-8";

html, body * {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #01633a;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

/* splash page style */

#splash {
    width: 100%;
    height: 100%;
    position: absolute;
    top: -45px;
}

#splash img {
    width: 98%;
    height: auto;
    margin: auto;
}

/* Menu page style */
main {
    width: 100%;
}

.mainTitle {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mainTitle img {
    width: 100%;
    height: auto;
    display: block;
    margin: 2px auto;
}

.sect {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.puzzleStyle {
    width: 42%;
    height: auto;
    margin: 2px;
    cursor: pointer;
}

.sect1, .sect2, .sect3, .sect4, .board, .scoreStyle, .timerStyle {
    visibility: hidden;
}

/* Game page style */

.sect1, .sect2, .sect3, .sect4 {
    width: 100%;
    position: absolute;
    margin: auto;
    top: 50px;
    display: flex;
    flex-wrap: wrap;
    height: 100vh;
    /* border: red solid 0.25rem; */
}

#scene1, #scene2, #scene3, #scene4  {
    width: 80%;
    height: auto;
    position: absolute;
    top: 25px;
    left: 40px;
    /* border: solid 5px cadetblue; */
}

.sceneTitle {
    width: 80%;
    margin-top: -35px;
    margin-left: 40px;

    /* border: red solid 0.25rem; */
}

.sceneTitle img {
    width: 20%;
}

/* Board Style */

.board {
    width: 250px;
    height: 610px;
    position: absolute;
    top: 55px;
    left: 1170px;
}

.boardLeft {
    width: 100%;
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-items: center;
    position: absolute;
    top: 18px;
    /* border: orange solid 0.25rem; */
}

.boardStyle {
    width: 130px;
    height: 100px;
    display: block;
    justify-content: space-evenly;
    padding: 10px;
    margin-top: 1px;
    margin-bottom: 1px;
    /* border: black solid 3px; */
    background-color: #e6e6e6;
    border-radius: .5rem;
}

.boardRight {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-items: center;
    position: absolute;
    top: 530px;
}

.buttons {
    width: 10rem;
    height: 3rem;
    margin-bottom: 5px;
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    border: black solid .2rem;
    border-radius: .5rem;
    background-color:whitesmoke;
    color: black;
    font-size: 1.5rem;
    font-family:'Fira Sans', sans-serif;
    cursor: pointer;
}

.scoreStyle {
    width: 80px;
    height: 50px;
    font-size: 2rem;
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    position: absolute;
    top: 20px;
    left: 1000px;
    background-color: whitesmoke;
    border: black solid .2rem;
    border-radius: .5rem;
}

.timerStyle {
    width: 100px;
    height: 50px;
    font-size: 2rem;
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    position: absolute;
    top: 20px;
    left: 1090px;
    background-color: whitesmoke;
    border: black solid .2rem;
    border-radius: .5rem;
}

/* For Tablet */

@media screen and (min-width: 768px) and (max-width: 1024px) {

    .puzzleStyle {
        width: 60%;
        height: auto;
        margin-top: 20px;
    }

    #splash
    {
        display: none;
    }

    #scene1,
    #scene2,
    #scene3,
    #scene4 {
        width: 90%;
    }

    .sceneTitle {
        width: 150%;
    }

    .board {
        position: absolute;
        left: 400px;
        top: 200px;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        height: 15%;
        margin: 0 auto;
    }

    .boardLeft {
        position: absolute;
        top: 200px;
        width: 100%;
        margin-left: -250px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
    }

    .boardRight {
        display: flex;
        margin: 0 auto;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        margin-left: -80px;
        width: 100%;
        gap: 10px;
    }

    .scoreStyle {
        position: absolute;
        left: 790px;
        top: 30px;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        width: 80px;
        height: 50px;
        height: auto;
        margin: 0 auto;
    }

    .timerStyle {
        position: absolute;
        left: 880px;
        top: 30px;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        width: 80px;
        height: 50px;
        height: auto;
        margin: 0 auto;
    }
}

/* For Mobile */
@media screen and (min-width: 370px) and (max-width: 1023px) {
    .sect1, .sect2, .sect3, .sect4 {
        width: 100%;
        height: auto;
        margin-top: -50px;

    }

    .puzzleStyle {
        width: 80%;
        height: auto;
        margin-top: 10px;
    }

    #splash
    {
        display: none;
    }

    #scene1,
    #scene2,
    #scene3,
    #scene4 {
        position: absolute;
        top: 50px;
        width: 80%;
    }

    .sceneTitle {
        width: 100%;
        position: absolute;
        top: 55px;
    }

    .board {
        width: 50%;
        position: absolute;
        top: -150px;
        left: 180px;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    .boardStyle {
        height: 10%;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    .boardLeft {
        position: absolute;
        top: 200px;
        width: 100%;
        margin-left: -250px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
    }

    .boardRight {
        display: flex;
        margin: 0 auto;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        width: 100%;
        position: absolute;
        top:500px;
        left: -80px;
        gap: 10px;
    }

    #btn0, #btn1 {
        width: 50px;
        height: 20px;
        font-size: 10px;
        border-radius: 5px;
        border: black solid .1rem;
    }

    .scoreStyle {
        width: 30px;
        height: 20px;
        font-size: 1rem;
        display: flex;
        justify-content: center;
        text-align: center;
        align-items: center;
        position: absolute;
        top: 20px;
        left:300px;
        background-color: whitesmoke;
        border: black solid .1rem;
        border-radius: 5px;
    }

    .timerStyle {
        position: absolute;
        left: 340px;
        top: 20px;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        width: 50px;
        height: 20px;
        font-size: 1rem;
        margin: 0 auto;
        border: black solid .1rem;
        border-radius: 5px;
    }
}

/* For wide screen desktop */

@media screen and (min-width: 1025px) and (max-width: 1980px) {

    .puzzleStyle {
        width: 40%;
        height: auto;
        margin-top: 20px;
    }

    #scene1, #scene2, #scene3, #scene4  {
        width: 80%;
        height: auto;
        position: absolute;
        top: 55px;
        left: 80px;
        /* border: solid 5px cadetblue; */
    }
    
    .sceneTitle {
        width: 80%;
        margin-top: -30px;
        margin-left: 80px;
    
        /* border: red solid 0.25rem; */
    }
    
    .sceneTitle img {
        width: 20%;
    }
    
    /* Board Style */
    
    .board {
        width: 250px;
        height: 610px;
        position: absolute;
        top: 55px;
        left: 1170px;
    }
    
    .boardLeft {
        width: 100%;
        height: 500px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        align-items: center;
        position: absolute;
        top: 70px;
        margin-left: 450px;
        /* border: orange solid 0.25rem; */
    }
    
    .boardStyle {
        width: 130px;
        height: 100px;
        display: block;
        justify-content: space-evenly;
        padding: 10px;
        margin-top: 10px;
        margin-bottom: 1px;
        /* border: black solid 3px; */
        background-color: #e6e6e6;
        border-radius: .5rem;
    }
    
    .boardRight {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        align-items: center;
        position: absolute;
        top: 620px;
        margin-left: 50px;
    }
    
    .buttons {
        width: 10rem;
        height: 3rem;
        margin-bottom: 8px;
        display: flex;
        text-align: center;
        justify-content: center;
        align-items: center;
        border: black solid .2rem;
        border-radius: .5rem;
        background-color:whitesmoke;
        color: black;
        font-size: 1.5rem;
        font-family:'Fira Sans', sans-serif;
        cursor: pointer;
        margin-left: 800px;
    }
    
    .scoreStyle {
        width: 100px;
        height: 50px;
        font-size: 2rem;
        display: flex;
        justify-content: center;
        text-align: center;
        align-items: center;
        position: absolute;
        top: 40px;
        left: 1380px;
        background-color: whitesmoke;
        border: black solid .2rem;
        border-radius: .5rem;
    }
    
    .timerStyle {
        width: 120px;
        height: 50px;
        font-size: 2rem;
        display: flex;
        justify-content: center;
        text-align: center;
        align-items: center;
        position: absolute;
        top: 40px;
        left: 1495px;
        background-color: whitesmoke;
        border: black solid .2rem;
        border-radius: .5rem;
    }
}