:root{
    --orange: orange;
    --yellow: yellow;
    --white: white;
    --blue: rgb(20, 20, 59);
    --lighter-blue: rgb(40, 40, 102);
    --red: rgb(151, 48, 48);
    --green: rgb(14, 152, 14);
}
*{
    box-sizing: border-box;
    /* outline: 1px solid black; */
}
body{
    width: 100vw;
    height: 100dvh;
    margin: 0;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
    background-image: url(img/background.jpg);
}
audio{
    display: none;
}
#game{
    width: 830px;
    height: 490px;
    display: flex;
    margin: 4rem auto;
    border: 2px solid var(--orange);
    background-color: var(--blue);
    color: var(--white);
}
#text-based{
    width: calc(100% - 277px);
    border-right: 2px solid var(--orange);
}
#text-frame{
    height: calc(490px - 192px);
    overflow-y: scroll
}
img{
    width: 278px;
    overflow: hidden;
}
#stats, #inventory, #monster-stats, #buttons{
    padding: 10px;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--orange);
    background-color: var(--lighter-blue);
}
#monster-stats{
    background-color: var(--red);
    display: none;
}
#stats span, #inventory span, #monster-stats span{  padding-right: 15px;
}
#stats{
    display: flex;
    justify-content: space-between;
}
button{
    padding: 6px;
    background-color: var(--orange);
    color: var(--white);
    font-weight: 800;
    border: 1px solid var(--yellow);
    cursor: pointer;
}
#lenguage{
    display: none;
}
#potion{
    background-color: var(--green);
}
p{
    padding: 0 20px;
    font-size: 1.1rem;
}
@media screen and (max-width:830px) {
    *{
        margin: 0;
        padding: 0;
        border: none;
    }
    body{
        width: 100vw;
        height: 100dvh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    #game{
        width: 360px;
        height: 100%;
        display: flex;
        flex-direction: column-reverse;
    }
    #text-based{
        width: 100%;
        height: 40dvh;
        display: flex;
        flex-direction: column;
        margin: auto;
        border: 2px solid;
    }
    #stats span{
        padding: 0 5px;
    }
    img{
        width: 354px;
        height: 59dvh;
        display: flex;
        margin: 0 auto;
    }
    #stats, #inventory, #buttons{
        padding: 5px;
        display: flex;
        justify-content: space-evenly;
        align-items: center;
    }
    #monster-stats{
        justify-content: center;
    }
    #text-frame{
        font-size: 1em;
        padding: 10px 0;
        text-align: center;
        height: 70%
    }
}