body {
    background-color: #76A844;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    margin: 0;
}

.red {
    animation: flashred .2s infinite; 
}

@keyframes flashred {
    0%{
        background-color: #7F0101;
    }
    50%{
        background-color: #76A844;
    }
    100%{
        background-color: #7F0101;      
    }
}



h1 {
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    margin: 6vh 0;
    color: white;
}

h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
}

footer {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    color: white;
    font-size: 0.7rem;
}

.container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: white;
    width: 600px;
    height: 500px;
    margin-bottom: 22vh;
    border-radius: 20px;
    max-width: 770px;
    
}


button {
    border: 3px solid #3A3D1B;
    padding: 10px 16px;
    background-color: #FFC826;
    color: #3A3D1B;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    transition: 1s;
}

button:hover {
    background-color: #76A844;
}

button:disabled {
    background-color: grey;
}

.rana-ombra {
    position: relative;
    top: 30%;
    height: 100%;
}

#frog {
    width: 180px;
    position: absolute;
    z-index: 2;
}

#shadow {
    background-color: rgba(0, 0, 0, .2);
    width: 150px;
    height: 60px;
    box-shadow: 0px 0px 10px 10px rgba(0, 0, 0, .2);
    position: absolute;
    left: 18px;
    top: 100px;
    border-radius: 27% 73% 74% 26% / 47% 49% 51% 53%;
    z-index: 1;
}

.frogjump {
    animation: jump 1s ease;
}

.shadow {
    animation: shadow 1s ease;
}

.shrink {
    animation: shrink 0.2s linear;
}

.text-container {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    color: white;
    font-size: 1.1rem;
}

.text-container div {
    margin: 12px 0;
}

#tired-frog {
    color: #76A844;
    background-color: white;
    width:fit-content;
    margin: 0 auto 14px auto;
    padding: 6px;
    border-radius: 6px;
}

.im-so-sad-im-so-very-very-sad {
    visibility: hidden;
}

@keyframes jump {
    0%{
        transform: translateY(0);
    }
    50%{
        transform: translateY(-10vh);
    }
    100%{
        transform: translateY(0);
    }
}

@keyframes shadow {
    0%{
        transform: scale(1);
    }
    50%{
        transform: scale(1.2);
    }
    100%{
        transform: scale(1);
    }
}

@keyframes shrink {
    0%{
        transform: scale(1);
    }
    50%{
        transform: scale(0.9);
    }
    100%{
        transform: scale(1);
    }
}

@media screen and (max-width: 768px) {
    .container {
        width: 300px;
        flex-direction: column;
        justify-content: center;
        left: 0;
    }
    .rana-ombra {
        left: -90px;
    }
    button {
        margin-bottom: 20px;
    }
}

/* MODALE */

#modal {
    height: 100vh;
    width: 100vw;
    background-color: rgba(0, 0, 0, .7);
    position: absolute;
    z-index: 100;
    top:0;
    left:0;
}

#modal-body {
    width: 70%;
    height: 30%;
    background-color: white;
    position: absolute;
    top: 34%;
    left: 15%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    text-align: center;
}

.invisible {
    display: none;
}