/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-text: #333;
    --background: #000;
    --text-color: #fff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background);
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
}

/* Names container */
.names-container {
    text-align: center;
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
}

/* Single name display */
.name-display {
    padding: 2rem;
}

.arabic-name {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 0.75rem;
    direction: rtl;
    font-family: 'Amiri', 'Arabic Typesetting', 'Times New Roman', serif;
    line-height: 1.3;
}

.name {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.age {
    font-size: 1.5rem;
    opacity: 0.7;
    letter-spacing: 0.1em;
}

/* Footer */
footer {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.info-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}

.info-link:hover {
    opacity: 1;
    color: rgba(255, 255, 255, 0.9);
}

/* Pause indicator */
.paused {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    opacity: 0.5;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Loading state */
.loading {
    text-align: center;
    padding: 3rem;
    opacity: 0.7;
}

/* Error state */
.error {
    background-color: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff6b6b;
    padding: 2rem;
    border-radius: 4px;
    margin: 1rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .arabic-name {
        font-size: 2.5rem;
    }
    
    .name {
        font-size: 1.8rem;
    }
    
    .age {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .arabic-name {
        font-size: 2rem;
    }
    
    .name {
        font-size: 1.3rem;
    }
    
    .age {
        font-size: 1rem;
    }
    
    .paused {
        font-size: 0.8rem;
    }
}