/***************/
.isInfo {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    pointer-events: none;
}

#hud {
    position: absolute;
    top: 10px;
    right: 20px;
    width: 90%;
    height: 40px;
    max-width: 400px;
    box-sizing: border-box;
    padding: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: 8px;
    font-family: sans-serif;
    font-size: 16px;

    display: flex;
    align-items: center;
    justify-content: space-evenly;

}

.hud-item {
    width: 20%;
    display: inline-block;
    text-align: center;
}
#show-info{
    background-color: rebeccapurple;
    color: white;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.45);
    text-shadow: 1px 0px 1px rgba(0, 0, 0, 0.67);
    border-color: transparent;
    font-size: 16px;
    padding: 3px;
    border-radius: 5px;
    pointer-events: all;
    cursor: pointer;
}

#wellbeing,
#hurt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(
            ellipse at center, 
            rgba(255, 0, 0, 0.15) 0%, 
            rgba(255, 0, 0, 0.1) 40%, 
            rgba(255, 0, 0, 0) 80%)
        ;
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.3s ease;
}
#wellbeing{
    background:
    radial-gradient(
        ellipse at center, 
        rgba(0, 255, 0, 0.15) 0%, 
        rgba(0, 255, 0, 0.1) 40%, 
        rgba(0, 255, 0, 0) 80%)
    ;
}

#damage-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background:
        radial-gradient(ellipse at center,
            rgba(255, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0) 70%)
        ;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 9999;
}

.shake {
    animation: shake 0.3s;
}

@keyframes shake {
    0% {
        transform: translate(0px, 0px);
    }

    20% {
        transform: translate(-5px, 5px);
    }

    40% {
        transform: translate(5px, -5px);
    }

    60% {
        transform: translate(-5px, -5px);
    }

    80% {
        transform: translate(5px, 5px);
    }

    100% {
        transform: translate(0px, 0px);
    }
}

#gameplay-info
{
    position: fixed;
    width: 90%;
    height: 85%;
    left: 5%;
    top: 5%;
    /* text-shadow: 1px 1px 2px black; */
    /* background-color: rgba(0, 0, 0, 0.5); */
    background-color: #fdfdEFCC;
    color: #333;
    backdrop-filter: grayscale(0.75);
    -webkit-backdrop-filter: grayscale(0.75);
    transition: opacity 0.3s ease;
    z-index: 9999;
    overflow-y: scroll;
    padding: 2rem;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.6;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);

    pointer-events: none;
    opacity: 0;
}
#gameplay-info h2,
#gameplay-info button{
    position: sticky;
}
#gameplay-info h2{
    background-color: #2b2b2b;
    color: wheat;
    top: 0;
    border-radius: 5px;
    text-align: center;
    font-size: 0.8rem;
    padding: 5px;
}
h2 small{
    font-size: 80%;
}
#gameplay-info button{
    top: 55px;
    padding: 5px;
    border-radius: 5px;
    background-color: rebeccapurple;
    color: white;
    cursor: pointer;
}
#gameplay-info h3 {
    margin-top: 2rem;
    font-size: 1.5rem;
    color: #2b2b2b;
    border-left: 5px solid #e74c3c;
    padding-left: 0.5rem;
}

#gameplay-info h4 {
    font-size: 1.2rem;
    color: #444;
    margin-top: 1rem;
}

#gameplay-info p {
    margin: 1rem 0;
    font-size: 1rem;
}

#gameplay-info ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    padding-left: 1rem;
}

#gameplay-info ul li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

#gameplay-info em {
    font-style: italic;
    color: #c0392b;
}

#gameplay-info b {
    font-weight: bold;
    color: #2c3e50;
}

#gameplay-info hr {
    border: none;
    height: 1px;
    background: #ccc;
    margin: 2rem 0;
}

#gameplay-info aside {
    margin-top: 1.5rem;
    background: #f0f8ff;
    padding: 1rem;
    border-left: 4px solid #3498db;
    font-style: italic;
    color: #2c3e50;
    border-radius: 6px;
}
