body {
    margin: 0;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    background-color: #000;
    color: white;
}

canvas {
    display: block;
}

#blocker {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    z-index: 10;
}

#instructions {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.instruction-text {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.instruction-controls {
    font-size: 1rem;
    line-height: 1.5;
    color: #aaa;
}

#modal-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 20;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

#modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 90%;
    max-height: 90%;
    position: relative;
    background-color: #1a1a1a;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

#modal-image {
    max-width: 100%;
    max-height: 50vh;
    border-radius: 8px;
    object-fit: contain;
}

#modal-text {
    color: white;
    text-align: center;
    padding: 20px;
    max-width: 800px;
}

#modal-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

#modal-poem {
    font-style: italic;
    margin-top: 10px;
    line-height: 1.4;
}

#close-button {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #fff;
    color: #000;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease-in-out;
    user-select: none;
}
#close-button:hover {
    transform: scale(1.1);
}

#cursor {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: #ccc;
    border-radius: 50%;
    pointer-events: none;
    z-index: 5;
}

#cursor.active {
    background-color: #4CAF50;
}

@media (max-width: 768px) {
    .instruction-text {
        font-size: 1.2rem;
    }
    .instruction-controls {
        font-size: 0.8rem;
    }
}

#voice-over-instruction {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #4CAF50;
    font-style: normal;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}