@import url('https://fonts.googleapis.com/css2?family=UnifrakturCook:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Underdog&family=UnifrakturCook:wght@700&display=swap');

body{
    margin: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-y: hidden;
}

#fundo{
    position: absolute;
    top: 0%;
    left: 0%;
    min-height: 77%;
    object-fit: cover;
    overflow-x: hidden;
    width: 100%;
    z-index: -1;
}

#bancada{
    position: absolute;
    bottom: 0%;
    left: 0%;
    display: flex;
    align-self: flex-end;
    min-width: 100%;
    z-index: 1;
}

.taverneiro {
    position: absolute;
    bottom: 12%;
    right: 15%;
    width: 500px;
    height: 500px;
    max-width: 90%;
    max-height: 50%;
    transform: scale(-1, 1);
}

/* Controle individual de cada sprite */
#serio {
    display: inherit;
}

#pensando {
    display: none;
}

#rindo {
    display: none;
}

@keyframes rindo {
    15%, 20% {
        padding-bottom: 30px;
        transition: 1s;
    }
}

@keyframes pensando {
    40%, 60% {
        right: 65%;
        transform: scale(1, 1);
        transition: 1s;
    }
}

#btn-dado{
    border-style: none;
    background: none;
    text-align: center;
    position: fixed;
    /* bottom: 0%;
    left: 0%; */

    bottom: -0.3%;
    left: 50%;

    z-index: 3;
}

#btn-dado:hover{
    cursor: pointer;
}

#dado{
    width: 300px;
    height: 300px;
    image-rendering: optimizeQuality;
    /* transform: rotate(60deg); */
}

#resultado{
    position: absolute;
    top: 44%;
    left: 43%;
    font-size: 30px;
    color: white;
    font-family: "UnifrakturCook";
}

#pergunta{
    position: fixed;
    /* bottom: 13%;
    left: 17%;
    width: 40%; */
    bottom: 10%;
    left: 10%;
    width: 40%;
    height: 10%;    
    padding: 12px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.685);
    border-style: none;
    font-family: "Underdog";
    font-size: 26px;
    z-index: 2;
}

#fala {
    position: fixed;
    background-color: rgba(255, 255, 255, 0.877);
    width: 50%;
    height: fit-content;
    left: 20%;
    top: 10%;
    padding: 20px;
    border-radius: 20px;
    font-family: "Underdog";
    font-size: 20px;
    display: none;
}

@media screen and (max-width: 1800px) and (min-width: 1500px) {
    #fundo{
        position: absolute;
        top: 0%;
        left: 0%;
        min-height: 78%;
        object-fit: contain;
        overflow-x: hidden;
        width: 100%;
        z-index: -1;
    }
}

@media screen and (min-width: 1500px) {
    #fundo{
        position: absolute;
        top: 0%;
        left: 0%;
        min-height: 50%;
        max-height: 80%;
        min-width: 100%;
        object-fit: cover;
        overflow-x: hidden;
        width: 100%;
        z-index: -1;
    }

    #bancada{
        bottom: -5%;
    }
}