/* Import Google Fonts for the spooky theme */
@import url('https://fonts.googleapis.com/css2?family=Creepster&family=Inter:wght@400;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #1a202c; /* Equivalent to bg-gray-900 */
    color: #e2e8f0; /* Equivalent to text-white */
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Grayscale effect for the result screen to match the original ghost.html */
body.grayscale {
    filter: grayscale(100%);
}

.ghost-emoji {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 3rem;
    animation: bounce 2s infinite;
}

.quiz-container, .result-container {
    width: 100%;
    max-width: 48rem; /* Equivalent to max-w-2xl */
    padding: 2rem; /* Equivalent to p-8 */
    background-color: #2d3748; /* Equivalent to bg-gray-800 */
    border-radius: 1rem; /* Equivalent to rounded-2xl */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* Equivalent to shadow-xl */
    border: 1px solid #4a5568; /* Equivalent to border border-gray-700 */
    margin: 1rem;
}

.quiz-title, .result-title {
    font-family: 'Creepster', cursive;
    font-size: 3rem; /* Equivalent to text-5xl */
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: #fca5a5; /* Equivalent to text-red-400 */
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.result-title {
    font-size: 3.75rem; /* Equivalent to text-6xl */
    animation: pulse 2s infinite;
}

.question-group {
    margin-bottom: 1.5rem; /* Equivalent to mb-6 */
}

.question-group p {
    font-size: 1.125rem; /* Equivalent to text-lg */
    margin-bottom: 0.5rem; /* Equivalent to mb-2 */
}

.question-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Equivalent to space-x-2 */
    margin-bottom: 0.5rem;
}

.question-group input[type="radio"] {
    accent-color: #ef4444; /* Equivalent to form-radio text-red-500 */
}

.submit-btn, .try-again-btn, .close-modal-btn {
    padding: 0.75rem 1.5rem; /* Equivalent to px-6 py-3 */
    background-color: #dc2626; /* Equivalent to bg-red-600 */
    color: #ffffff;
    font-weight: 700;
    border-radius: 9999px; /* Equivalent to rounded-full */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* Equivalent to shadow-lg */
    transition: background-color 0.3s, transform 0.3s;
    border: none;
    cursor: pointer;
}

.submit-btn:hover, .try-again-btn:hover, .close-modal-btn:hover {
    background-color: #b91c1c; /* Equivalent to hover:bg-red-700 */
    transform: scale(1.05);
}

.try-again-btn {
    padding: 1rem 2rem; /* Equivalent to px-8 py-4 */
    font-size: 1.25rem; /* Equivalent to text-xl */
}

.hidden {
    display: none;
}

/* Modal styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Equivalent to bg-black bg-opacity-70 */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.modal-content {
    background-color: #2d3748; /* Equivalent to bg-gray-800 */
    padding: 2rem; /* Equivalent to p-8 */
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.04); /* Equivalent to shadow-2xl */
    text-align: center;
    border: 1px solid #4a5568;
}

.modal-content p {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Keyframes for animations */
@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}
