body {
    font-family: 'Google Sans', sans-serif;
    background-color: #0e0e0e;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

h1 {
    font-size: 48px;
    color: #ff4d4d;
    text-shadow: 0 0 55px rgb(255 49 49 / 50%);
    margin: 0;
    animation: subtleFlicker 1s infinite;
}

/* Base styles for note and instructions */
.note,
.instructions {
    text-align: left;
    color: #e0e0e0;
    background-color: rgba(14, 14, 14, 0.9);
    padding: 20px;
    border: 1px solid #ff4d4d;
    box-shadow: 0 0 50px rgba(255, 0, 0, 0.5);
    max-width: 600px;
    margin: 20px auto;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    display: none;
    /* Ensure it starts hidden */
}

/* Visible state */
.visible {
    opacity: 1;
    visibility: visible;
    display: block;
    /* Ensure it takes space when visible */
}

/* Hidden state */
.hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}

.note h2,
.instructions h2 {
    color: #ff4d4d;
    text-shadow: 0 0 50px rgba(255, 0, 0, 0.7);
    margin-bottom: 20px;
    margin-top: 0px;
}

.note p,
.instructions p {
    font-size: 18px;
    margin: 10px 0;
}

.note button,
.instructions button {
    background-color: #ff4d4d;
    color: #0e0e0e;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.note button:hover,
.instructions button:hover {
    background-color: #ff6d6d;
}

.hidden {
    display: none;
}

.footer-line {
    border: none;
    border-top: 2px solid #ff4d4d;
    width: 80%;
    margin: 20px 0;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

footer {
    position: absolute;
    bottom: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 80%;
    flex-wrap: wrap;
    /* Ensure responsiveness */
}

footer a {
    color: #ff4d4d;
    text-decoration: none;
    font-size: 16px;
    text-shadow: 0 0 50px rgba(255, 0, 0, 0.7);
    transition: color 0.3s, transform 0.3s;
}

footer a:hover {
    text-decoration: underline;
    color: #ffffff;
    transform: scale(1.1);
}

@keyframes subtleFlicker {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.9;
    }

    100% {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 36px;
    }

    .note,
    .instructions {
        max-width: 90%;
        padding: 15px;
    }

    footer {
        gap: 10px;
        width: 90%;
    }

    footer a {
        font-size: 14px;
    }
}