html, body{
    margin: 0px;
}

body{
    background-image: linear-gradient(#30336b, #130f40);
    height: 100vh;
    margin-bottom: 100px;
}

@font-face {
    font-family: lucky;
    src: url(./font/LuckiestGuy-Regular.ttf);
}

.back{
    position: absolute;
    top: 5px;
    left: 50px;
    color: rgb(219, 219, 219);
    text-decoration: underline;
    font-size: 20px;
    font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

a{
    text-decoration: none;
}

/* ! YOU WON PAGE */
#youWonPage {
    border: 3px black solid;
    border-radius: 10px;
    padding: 35px;
    background-color: aliceblue;
    position: absolute;
    width: 600px;
    min-width: 400px;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    background-image: url(./img/youWonBg.png);
    background-position: center;
    background-size: cover;
    font-family: lucky;
    display: none;
}

.youWonContent{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

.backBttn{
    border: 2px solid rgb(168, 10, 10);
    padding: 10px;
    color: white;
    width: 40px;
    border-radius: 10px;
    position: absolute; 
    right: 15px; 
    top: 15px; 
    background-image: url(./img/backBttnBg.png);
    background-size: cover;
}
.backBttn:hover{
    cursor: pointer;
    opacity: 0.8;
}

#congratsText{
    width: 400px;
}

.congrats{
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 2rem;
}

#oneStar{
    display: none;
}
#twoStar{
    display: none;
}
#threeStar{
    display: none;
}



/* ! IMAGE  */

#imgContainer {
    width: 70vw;
    margin: 10px auto;
    border: 4px black solid;
    border-radius: 5px;
    position: relative;
}

.hidden {
    display: none;
}

#object1{
    height: 50px;
    width: 50px;
    opacity: 0.6;
    background-color: blue;
}

#object2{
    height: 50px;
    width: 50px;
    background-color: red;
}

#imgContainer object{
    width: 100%;
}
/* ! Title */
.game1Title{
    font-size: 25px;
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    text-align: center;
    /* background-color: #4d4d4d; */
    color: white;
    margin: 0px;
    padding: 10px;
}

/* ! IMAGES TO FIND */

.hiddenObjectsToFind{
    width: 70vw;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: none;
    border: 2px rgb(188, 188, 188) solid;
    border-radius: 10px;
    background-color: lightcyan;
}

.imageBox{
    border: 3px black solid;
    border-radius: 8px;
    padding: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 70px; 
    width: 20%;

}
#images{
    display: flex;
    flex-direction: row;
    max-width: 400px;

}

.imageBox img{
    max-width: 100%;
}

.findTheObjects{
    font-size: 1.5rem;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

/* Timer */
#time{
    background-color: lightblue;
    padding: 20px;
    border-radius: 8px;
    font-family: monospace;
}

/* MEDIA QUERIES */

@media only screen and (max-width: 500px) {

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    .hiddenObjectsToFind{
        flex-direction: column;
        height: 200px;
        padding-bottom: 50px;
    }

    #images{
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }

    #imgContainer{
        width: 100vw;
    }
    #youWonPage {
        width: 400px;
    }
    #congratsText{
        width: 200px;
    }



}