*{
    margin: 0;
    padding: 0;
}

html, body{
    height: 100%;
}

body{
    font-family: Arial, Helvetica, sans-serif;
    background-color: rgb(58, 129, 0);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.header{
    display: flex;
    width: 100%;
    align-self: flex-start;
    padding: 0;
}

.refreshBtn{
    height: 50px;
    width: 50px;
    align-self: flex-start;
    margin-top: 0.5%;
    margin-left: 1%;
    margin-right: 2.5%;
}

#musicBtn{
    height: 50px;
    width: 60px;
    align-self: flex-start;
    margin-top: 0.75%;
    margin-right: 3%;
}

#pauseBtn{
    height: 42.5px;
    width: 42.5px;
    align-self: flex-start;
    margin-top: 0.75%;
    margin-right: 55%;
}

.refreshBtn:hover, #musicBtn:hover, #pauseBtn:hover{
    opacity: 0.9;
}

.score{
    font-size: 4em;
    margin-bottom: .5em;
    align-self: flex-end;
    width: 100%;
    user-select: none;
}

.board{
    height: 600px;
    width: 600px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 80px;
}

.hole{
    background-color: rgb(165, 85, 11);
    border-radius: 50%;
    box-shadow: inset 0 10px 0 7px rgb(53, 21, 6),
                inset 0 20px 20px 15px rgba(0, 0, 0, .3),
                0 0 5px rgba(0, 0, 0, .5);
    position: relative;
    overflow: hidden;
}

.hole .Hopper{
    width: 60%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    animation: rise .3s ease-out;
}
@keyframes rise {
    0%{
        transform: translateX(-50%) translateY(100%);
    }
    100%{
        transform: translateX(-50%) translateY(0);
    }
}

#modal{
    visibility: hidden;
    background-color: black;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    opacity: 50%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#modalContent{
    font-size: 5em;
    user-select: none;
}

.cursor{
    height: 100px;
    width: 90px;
    position: absolute;
    top: 90px;
    left: 90px;
    background-image: url('assets/carrot.png');
    background-size: 100% 100%;
    transform: translate(-20%, -20%);
    transition: transform .1s;
    pointer-events: none;
}

.cursor.active{
    transform: translate(-20%, -20%) rotate(-45deg);
}

@media screen and (max-width: 820px){
    #pauseBtn{
        margin-right: 45%;
    }

    .score{
        font-size: 3em;
    }

    .board{
        align-self: flex-start;
        margin: 10%;
    }
}

@media screen and (max-width: 481px){
    #pauseBtn{
        margin-right: 17.5%;
    }

    .score{
        font-size: 1.5em;
    }

    .board{
        height: 40%;
        width: 80%;
        gap: 5%;
        align-self: flex-start;
        margin: 10%;
    }
}