:root {
    --text-color: #fff;
    --bg-color: #1a1a1a;
    --accent-green: #00ff00;
}
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: "Comic Sans MS", cursive;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    -webkit-user-select: none;
}
#game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: opacity 0.5s ease;
}
#score {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 2rem;
}
.image-wrapper {
    position: relative;
    width: 20%;
    max-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}
#click-target {
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#click-target:active, #click-target.clicked {
    transform: scale(0.92);
}
#end-text {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-family: monospace;
    font-size: 1.5rem;
    color: rgb(4,4,4);
    display: none;
    pointer-events: none;
    z-index: 100;
}
@keyframes shake {
    0% { transform: translate(0, 0) rotate(0deg); }
    10% { transform: translate(-40px, -40px) rotate(-15deg); }
    20% { transform: translate(40px, 40px) rotate(15deg); }
    30% { transform: translate(-40px, 40px) rotate(-15deg); }
    40% { transform: translate(40px, -40px) rotate(15deg); }
    50% { transform: translate(-20px, 50px) rotate(-10deg); }
    60% { transform: translate(50px, -20px) rotate(10deg); }
    70% { transform: translate(-50px, 20px) rotate(-25deg); }
    80% { transform: translate(20px, -50px) rotate(25deg); }
    90% { transform: translate(-20px, 20px) rotate(-15deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}
body.shaking {
    animation: shake 0.05s infinite;
}
body.blackout {
    background-color: #000000;
}
body.blackout #game-container {
    opacity: 0;
    pointer-events: none;
}
body.blackout #end-text {
    display: block;
}