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

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #1a1a1a;
    font-family: 'Arial', sans-serif;
    transition: background-color 2s ease;
}

/* Menu styles */
.menu-bar {
    width: 100%;
    background: #D4AF37;
    padding: 15px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transition: background-color 2s ease;
    z-index: 100;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.menu-item {
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    letter-spacing: 1px;
}

.menu-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.menu-item.active {
    background-color: rgba(0, 0, 0, 0.3);
}

.menu-content {
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
}

.menu-content.active {
    max-height: 500px;
}

.menu-content-inner {
    padding: 25px 30px;
}

.aia-logo-wrap {
    overflow: visible;
}

.aia-emojis {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    z-index: 1;
}

.aia-emoji {
    position: absolute;
    font-size: 20px;
    animation: emojiFloat 4s ease-out forwards;
    pointer-events: none;
}

@keyframes emojiFloat {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(0.5);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(1.2);
    }
}

#menuText {
    line-height: 1.6;
    font-size: 16px;
}

#menuText h2 {
    margin-bottom: 1px;
    font-size: 24px;
}

#menuText p {
    margin-bottom: 5px;
}

/* Rainbow animation keyframes */
@keyframes rainbow {
    0% { color: #ff0000; }
    16.66% { color: #ff8000; }
    33.33% { color: #ffff00; }
    50% { color: #00ff00; }
    66.66% { color: #0080ff; }
    83.33% { color: #8000ff; }
    100% { color: #ff0000; }
}

.menu-content a {
    text-decoration: none;
    font-weight: bold;
    animation: rainbow 3s linear infinite;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.menu-content a:hover {
    text-decoration: underline;
}

.menu-content p:has(a) {
    text-align: left;
}

/* Main content styles */
.main-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 100px;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Image container styles */
.image-container {
    position: relative;
    display: inline-block;
    padding: 8px;
    background: #D4AF37;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
    transition: all 2s ease;
    cursor: pointer;
}

.image-container:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(2deg) scale(1.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.golden-frame {
    position: relative;
    border: 3px solid #D4AF37;
    border-radius: 4px;
    background: white;
    padding: 2px;
    transition: border-color 2s ease;
}

.progress-bar {
    position: absolute;
    bottom: 6px;
    left: 5%;
    height: 2px;
    width: 90%;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 2px;
    z-index: 10;
    transform-origin: left;
    transition: transform 1s linear;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.6), 0 0 1px rgba(0, 0, 0, 0.8);
}

.framed-image {
    display: block;
    width: 350px;
    height: auto;
    min-width: 350px;
    border-radius: 2px;
    transition: opacity 2s ease;
}

.tagline {
    text-align: center;
    margin-top: 20px;
    max-width: 350px;
    color: #FFD700;
    font-style: italic;
    font-size: 18px;
    font-weight: bold;
    font-family: Georgia, 'Times New Roman', Times, serif;
    transition: all 2s ease;
    word-wrap: break-word;
    line-height: 1.4;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .menu-bar {
        position: sticky;
        top: 0;
        gap: 8px;
        padding: 8px 0;
    }
    
    .menu-item {
        font-size: 12px;
        padding: 5px 8px;
    }
    
    .main-content {
        padding-top: 20px;
        flex: 1;
    }
    
    .image-container {
        margin: 10px;
        padding: 5px;
    }
    
    .image-container:hover {
        transform: perspective(1000px) rotateX(0deg) rotateY(0deg) scale(1);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    }
    
    .framed-image {
        width: 65vw;
        min-width: 200px;
        max-width: 300px;
    }
    
    .tagline {
        max-width: 65vw;
        font-size: 14px;
        margin-top: 12px;
        padding: 0 10px;
    }
    
    .menu-content {
        position: fixed;
        top: 37px;
        left: 0;
        right: 0;
        z-index: 99;
        max-height: 0;
        box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    }
    
    .menu-content.active {
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .menu-content-inner {
        padding: 12px 15px;
    }
    
    #menuText {
        font-size: 13px;
    }
    
    #menuText h2 {
        font-size: 16px;
    }
    
    .progress-bar {
        height: 1px;
    }
    
    .menu-content img[src="Aia.png"] {
        max-width: 100px !important;
    }
}
