/* ========================================
   Styles for imaarons.com
   ======================================== */

body {
    font-family: 'Comic Relief', cursive, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
}

.rainbow {
    background: linear-gradient(to right, red, orange, yellow, green, blue, indigo, violet);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; /* Fallback */
}

ul {
    list-style-position: inside;
    padding: 0;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.visitor-counter {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    background-color: #000;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    border: 3px solid #00ff00;
    display: inline-block;
}

.counter-container {
    text-align: center;
}

.digit {
    display: inline-block;
    background-color: #000;
    color: #ff0000;
    border: 2px solid #666;
    padding: 5px 10px;
    margin: 0 2px;
    font-size: 24px;
    font-weight: bold;
}

.gif-container {
    margin: 30px 0;
}

.gif-container img {
    max-width: 400px;
    border-radius: 10px;
}

.music-player {
    margin: 30px 0;
}

.play-button {
    cursor: pointer;
    transition: transform 0.2s;
    max-width: 200px;
}

.play-button:hover {
    transform: scale(1.1);
}

.play-button:active {
    transform: scale(0.95);
}

img {
    max-width: 100%;
    height: auto;
}

footer {
    margin-top: 50px;
    padding: 20px;
    background-color: #f0f0f0;
    border-top: 2px solid #ccc;
}

footer a {
    margin: 0 10px;
}

.spacer-large {
    margin: 180px 0;
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.popup-content img {
    width: 100%;
    height: auto;
    display: block;
}

.unlock-button {
    position: absolute;
    bottom: 42%;
    right: 6%;
    width: 20%;
    height: 7%;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.unlock-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.unlock-button:focus {
    outline: 2px solid #00ff00;
    outline-offset: 2px;
}

/* ========================================
   Responsive Design
   ======================================== */

@media screen and (max-width: 768px) {
    body {
        font-size: 14px;
        padding: 10px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .gif-container img {
        max-width: 100%;
    }
    
    .visitor-counter {
        padding: 10px;
        font-size: 12px;
    }
    
    .play-button {
        max-width: 150px;
    }
    
    .popup-content {
        max-width: 95%;
    }
    
    .unlock-button {
        bottom: 42%;
        right: 8%;
        width: 20%;
        height: 7%;
    }
    
    ul {
        padding: 0;
    }

    .digit {
        font-size: 18px;
        padding: 3px 8px;
    }
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 20px;
    }
    
    body {
        font-size: 12px;
    }

    .play-button {
        max-width: 120px;
    }
    
    footer a {
        display: block;
        margin: 5px 0;
    }
}

/* ========================================
   Accessibility Improvements
   ======================================== */

/* Focus styles for keyboard navigation */
a:focus,
button:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .play-button {
        transition: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .rainbow {
        background: linear-gradient(to right, #ff0000, #ff7700, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
    }
    
    a {
        color: #0000ff;
        text-decoration: underline;
    }
}
