/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #000000;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header styles */
header {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.domain {
    font-size: 14px;
    font-weight: 300;
    opacity: 0.7;
    letter-spacing: 0.5px;
}

/* Main content styles */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.egg-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.egg {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
    max-height: 30vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
}

.egg img {
    max-height: 30vh;
    width: auto;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.5))
            drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
    animation: eggPulse 4s ease-in-out infinite;
}

.egg:hover, .egg:focus {
    transform: scale(1.02);
    filter: brightness(1.05);
    outline: none;
}

.egg:active {
    transform: scale(0.98);
}

.response-text {
    font-size: 16px;
    font-weight: 300;
    text-align: center;
    min-height: 24px;
    opacity: 0.9;
    transition: opacity 0.5s ease;
    max-width: 80%;
}

/* Utility class for fading text in */
.text-transition {
    opacity: 0;
    animation: textFade 0.5s ease-in forwards;
}

@keyframes textFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes eggPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.5))
                drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.5))
                drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .egg img {
        max-height: 25vh;
    }
    
    .response-text {
        font-size: 14px;
    }
    
    .domain {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .egg img {
        max-height: 20vh;
    }
    
    .response-text {
        font-size: 12px;
        max-width: 90%;
    }
}

/* Accessibility focus styles */
:focus {
    outline: 1px solid rgba(255, 255, 255, 0.3);
    outline-offset: 3px;
}

.noscript-message {
    margin-top: 10px;
    font-size: 14px;
    color: #ff8080;
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    .text-transition {
        animation: none;
        transition: none;
    }
    .egg img {
        animation: none;
    }
}

