:root {
    --gold: rgb(215, 184, 13);
    --brown: rgb(86, 58, 50);
    --sky-blue: rgb(153, 215, 217);
    --red: rgb(121, 8, 8);
    --background-color: rgba(41, 37, 37, 0.79);
    --nav: rgb(72, 41, 37);
    --nav-color: rgb(244, 236, 216);
}

* {
    box-sizing: border-box;
    touch-action: none;
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    background-color: var(--background-color);
    font-family: serif, sans-serif, arial;
    overflow: hidden;
    color: var(--brown);
    min-height: 100vh;
    font-family: sans-serif, Arial;
}

nav {
    background-color: rgb(7, 49, 36);
    color: var(--vintage-sepia);
    padding: 16;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

nav h2 {
    font-family: cursive, sans-serif;
    font-size: 23px;
    letter-spacing: 1px;
    margin: 10px;
    color: rgb(203, 192, 192);
}
nav .profile-game {
    margin-top: 10px;
    width: 80px;
    height: 80px;
    border: 2px solid white;
    border-radius: 50%;
    
}

footer {
    background: var(--nav);
    padding: 13px;
    text-align: center;
    font-size: 15;
    color: var(--nav-color);
    z-index: 1000;
    margin-top: auto;

}

footer a {
    color: black;
    font-weight: bold;
    text-decoration: none;
}

#main-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

#game-container {
    position: relative;
    background: linear-gradient(to bottom, var(--sky-blue), var(--nav-color));
    width: 100%;
    
    max-width: 500px;
    height: 64vh;
    border: 5px solid var(--brown);
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    overflow: hidden;

}

#ui-layer {
    position: absolute;;
    top: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.stats-box {
    background: rgba(255, 255, 255, 0.6);
    padding: 8px 13px;
    border: 2px solid var(--brown);
    border-radius: 5px;
    font-weight: bold;
    font-size: 15px;


}

#health-bar-container {
    width: 80px;
    height: 11px;
    background: rgb(243, 241, 241);
    border: 1px solid rgb(161, 57, 57);
    ;
    margin-top: 5px;
}

#health-fill {
    width: 100%;
    height: 100%;
    background: lightgreen;
    transition: width 0.2s ease;
}

#player {
    position: absolute;
    bottom: 30px;
    width: 82px;
    height: 35px;
    background: rgb(63, 63, 192);
    border-radius: 3px 3px 25px 25px;
    border: 3px solid rgb(22, 24, 137);
    transform: translateX(-50%);
}

.entity {
    position: absolute;
    font-size: 32px;
    user-select: none;;
    will-change: transform;
}

.flower {filter: drop-shadow(0 0 8px rgba(192, 38, 11, 0.562));}
.bomb {filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.5));
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    ;
    background: rgba(44, 43, 45, 0.8)
    ;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--nav-color)
    ;
    z-index: 100;
    text-align: center;;
    padding: 21px;


}
#death-reason {
    color: rgb(113, 3, 3);
    ;
}

button {
    font-size: 18px;
    padding: 13px 31px;
    background: rgb(188, 162, 19);
    cursor: cell;
    border: 2px solid rgba(165, 42, 42, 0.731);
    border-radius: 20px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    color: rgb(154, 9, 127);
    margin-top: 10px;
    ;


}


.footer-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 5px;
}

.macondo{
    font-size: 1rem;
    color: rgb(98, 101, 10);
    text-decoration: dashed;

}
    

   