/* Main info box styling */
.info-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #f5f5f5; /* Soft, light background */
    color: #333;  /* Dark text for good contrast */
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); /* Soft shadow for depth */
    font-size: 16px;
    z-index: 1000;
    border: 5px solid black;
    width: 300px; /* Define a width to maintain consistent size */
}

/* The options container (Buttons container) */
.info-box-buttons {
    display: flex;
    justify-content: space-evenly;  /* Evenly space buttons */
    margin-top: 20px;  /* Add some spacing from the text */
}

/* Button styling with Nintendo-like feel */
.info-box-buttons button {
    font-family: 'press_start_2pregular';
    color: black;
    background-color: #ffffff;
    font-size: 0.9em;  /* Slightly larger font for readability */
    font-weight: 300;
    box-shadow: inset 0 -4px 0 0 rgba(0, 0, 0, 0.2);
    transition: 0.1s;
    text-shadow: 0px 2px rgba(0, 0, 0, 0.2);
    appearance: none;
    outline: none;
    padding: 10px 20px;  /* Increased padding for a larger, more button-like appearance */
    border-radius: 8px;
    animation: bounce 1s linear infinite;
    cursor: pointer;
    margin: 0 5px;  /* Small space between buttons */
    z-index: 60;
}

.info-box-buttons button:hover {
    background-color: #45a049; /* Slightly darker green on hover */
    transform: translateY(-2px); /* Button lifts on hover */
}

.info-box-buttons button:active {
    transform: translateY(2px); /* Button "presses" down on click */
}

/* Button style for "No" (different color) */
.info-box-buttons button:nth-child(2) {
    background-color: #FF6F61; /* A warm, friendly red */
}

.info-box-buttons button:nth-child(2):hover {
    background-color: #e65c53;  /* Darker red on hover */
}

/* Text message styling */
.info-box p {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    color: #333;
    letter-spacing: 0.5px;
}

/* Optional: Adding a slight animation when the box appears */
@keyframes popIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.info-box {
    animation: popIn 0.3s ease-out;
}

.grayscale {
    filter: grayscale(90%);
    transition: filter 0.3s ease-in-out;
}

.death-info-box {
    position: absolute;
    z-index: 9999;
    pointer-events: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    padding: 30px;
    background-color: rgba(20, 20, 20, 0.9);
    color: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    text-align: center;
}

.death-info-box .death-message {
    color: white !important;
}


.death-info-box .info-box-buttons button {
    margin-top: 20px;
    padding: 10px 30px;
    font-size: 18px;
    border-radius: 8px;
    background-color: #ff5555;
    border: none;
    color: white;
    cursor: pointer;
}

.death-info-box .info-box-buttons button:hover {
    background-color: #ff4444;
}

.death-info-box .countdown {
    font-size: 20px;
    margin: 10px 0;
}

.death-message {
    color: white !important;
    font-size: 6rem !important;
    text-shadow:
        0 0 10px white,
        0 0 20px #00ccff,
        0 0 30px #0099ff;
    letter-spacing: 4px;
    animation: death-pulse 1.5s ease-in-out infinite;
    position: relative;
    z-index: 1000;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.7));
}

@keyframes death-pulse {
    0% { 
        transform: scale(1);
        text-shadow: 
            4px 4px 0 rgba(0, 0, 0, 0.8),
            6px 6px 0 rgba(0, 0, 0, 0.4),
            0 0 30px rgba(255, 255, 255, 0.5),
            0 0 60px rgba(0, 150, 255, 0.4);
    }
    50% { 
        transform: scale(1.1);
        text-shadow: 
            6px 6px 0 rgba(0, 0, 0, 0.8),
            8px 8px 0 rgba(0, 0, 0, 0.4),
            0 0 50px rgba(255, 255, 255, 0.7),
            0 0 80px rgba(0, 150, 255, 0.6);
    }
    100% { 
        transform: scale(1);
        text-shadow: 
            4px 4px 0 rgba(0, 0, 0, 0.8),
            6px 6px 0 rgba(0, 0, 0, 0.4),
            0 0 30px rgba(255, 255, 255, 0.5),
            0 0 60px rgba(0, 150, 255, 0.4);
    }
}