html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
}

*{
    font-family: "AlbertusMT";
    overflow: hidden;
}

@font-face {
    font-family: "AlbertusMT";
    src: url("../AlbertusMT.woff2")}

@media (prefers-color-scheme: dark) {
    html { background: black !important;}
}

@media (prefers-color-scheme: light) {
    html { background: color(display-p3 0.9987 0.9924 0.893) !important;}
}

@media (prefers-color-scheme: light) {
    html { background: white; }
}

@media (prefers-color-scheme: dark) {
    #container, #preloader{ background-color: black !important;}
}

@media (prefers-color-scheme: light) {
    #container, #preloader{ background-color: color(display-p3 0.9987 0.9924 0.893) !important;}
}

@media (prefers-color-scheme: light) {
    #container, #preloader{ background-color: white; }
}

@media (prefers-color-scheme: dark) {
    #score_help { color: #31b6ce !important;}
}

@media (prefers-color-scheme: light) {
    #score_help { color: color(display-p3 0 0 0) !important;}
}

@media (prefers-color-scheme: light) {
    #score_help { color: black; }
}

#preloader {
    width: 100%;
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}
#preloader img {
    width: 180px;
}
#startScreen {
    width: 100%;
    height: 100%;
    position: fixed;
    top:0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items:center;
    background: linear-gradient(white, rgb(36, 192, 254))
    /* background-color: rgb(36, 192, 254); */

}
#startGameBtn{
    background-color: gold;
    /* color: white; */
    /* background-color: rgb(36, 192, 254); */
    padding: 8px 14px;
    cursor: pointer;
    /* border-radius: 10px; */
    /* border: 3px solid white; */
}
#startGameBtn:hover{
    background-color: goldenrod;
    color: white;
}

/* *game screen */
#container {
    display: none;
    height: 90%;
    width: 90%;
    margin-top: 2%;
    margin-left: 5%;
    position: relative;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size:  contain;
    background-image: url("../images/person.png");
}

#score_help {
    text-align: right;
    font-size: 25px;
    padding: 20px;

}

.dropper {
    position: absolute;
    height: 15%;
    width: 8%;
    top: 0%;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 100;
}

#dropper1 {
    left: 20%;
}

#dropper2 {
    left: 40%;
}

#dropper3 {
    left: 60%;
}

.pea {
    position: absolute;
    top: 18%;
    height: 4%;
    width: 2%;
    min-width: 20px;
    background: url('../images/pea.png');
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    border-radius: 90%;
    z-index: 99;
}

#pea1 {
    left: calc(20% + 8%/2 - 2%/2);
}

#pea2 {
    left: calc(40% + 8%/2 - 2%/2);
}

#pea3 {
    left: calc(60% + 8%/2 - 2%/2);
}
.move{
    animation: moveDown 2.5s forwards linear;
}
@keyframes moveDown{
    0%{
        top:0;
    }
    100%{
        top: 120vh;
    }
}

.splash {
    display: none;
    position: absolute;
    bottom: 145px;
    height: 9%;
    width: 7%;
    background: url('../images/splash.png');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 11;
}

#splash1 {
    left: calc(20% + 8%/2 - 7%/2);
}

#splash2 {
    left: calc(40% + 8%/2 - 7%/2);
}

#splash3 {
    left: calc(60% + 8%/2 - 7%/2);
}

#floor {
    position: absolute;
    height: 20%;
    width: 100%;
    background: url('../images/bowl.png');
    /* background-color: #292929; */
    background-repeat: no-repeat;
    background-position: center;
    bottom: 0;
    z-index: 10;
}

#spoon {
    height: 150px;
    width: 15vw;
    /* width: 200px; */
    position: absolute;
    bottom: 70px;
    background: url('../images/spoon.png');
    background-size: contain;
    background-repeat: no-repeat;
    text-align: center;
    z-index: 11;
}

#score_1 {
    position: absolute;
    color: #424242;
    font-size: 30px;
    /* top: 45%; */
    top:-20%;
    left: 30%;
}


#endScreen{
    border: 0;
    position: absolute;
    height: fit-content;
    padding: 15px;
    width: 100%;
    background-color: rgb(233, 171, 2);
    color: white;
    top: 40%;
    font-size: 35px;
    display: none;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}
#endScreen p{
    margin: 0;
    padding: 0;
}

#restart {
    border: 0;
    width: 150px;
    margin-top: 12px;
    height: fit-content;
    background-color: rgb(2, 148, 233);
    color: white;
    font-size: 35px;
    cursor: pointer;
    z-index: 10;
}
#restart:hover{
    background-color: rgb(1, 190, 112);
}