body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #e4e3e3;
}

.game-header {
    position: fixed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: #ffc900;
    padding: 0 20px;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.503);
}

#game-title {
    margin: 0;
    font-size: 23px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);

}

#restart-btn {
    border-radius: 8px;
    font-size: 16px;
    color: #F9DD9C;
    background-color: #418B24;
    padding: 10px 18px;
    border: none;
    cursor: pointer;
}

#restart-btn:hover {
    background-color: #387221;
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 70px;
    height: calc(100vh - 70px);
    width: 100%;
}

#game-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 2px solid #ccc;
    border-radius: 12px;
    background-color: #fff;
    background-size: contain;
    touch-action: manipulation;

}

#message-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
   
}

.klecks {
    position: absolute;
    cursor: pointer;
    touch-action: none;
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    outline: none;
    pointer-events: auto;
    -webkit-user-select: none;
    -webkit-touch-callout: none;

}

.klecks:hover {
    cursor: pointer;
    touch-action: manipulation;
}

.klecks:active {
    outline: none;
}

.hidden-message {
    position: absolute;

    top: 100px;
    right: 200px;

    font-size: 28px;
    font-weight: bold;
    color: black;

    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    max-width: 500px;
    text-align: left;
}

.hidden-message strong {
    font-weight: 900;
}


#taunt-popup {
    position: absolute;
    top: 120px;
    z-index: 1000;
    pointer-events: none;   /* click through it*/

    display: none;             
    align-items: center;        
    justify-content: center;
    gap: 25px;

    animation: tauntFloat 0.7s ease-in-out infinite alternate;
}

#taunt-popup.show {
    display: flex;            
}

#taunt-popup img {
    width: 150px;
    height: auto;
    display: block;
    flex-shrink: 0;
}

#taunt-popup .taunt-text {
    margin: 0;
    padding: 0;
    font-size: 56px;
    font-weight: bold;
    color: rgb(0, 0, 0);
    line-height: 1;
    white-space: nowrap;
    -webkit-text-stroke: 1px white;

}

#taunt-popup.left {
    left: 30px;
    flex-direction: row;          
}

#taunt-popup.right {
    right: 30px;
    flex-direction: row-reverse;  
}

#taunt-popup.right img {
    transform: scaleX(-1);
}

@keyframes tauntFloat {
    from {
        transform: translateY(0px);
    }
    to {
        transform: translateY(-8px);
    }
}