/* --- Font Imports --- */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital@0;1&family=Playfair+Display:wght@700&display=swap');

/* --- Keyframe Animations --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- General Body Styles --- */
body {
    margin: 0;
    font-family: 'Lora', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    overflow: hidden;
}

/* --- Art Container --- */
#art-container {
    height: 100vh;
    width: 100vw;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

#art-container::-webkit-scrollbar {
    display: none;
}

/* --- Loading Indicator --- */
#loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -25px;
    margin-top: -25px;
    width: 50px;
    height: 50px;
    border: 4px solid transparent;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 200;
}

/* --- Art Slide & Content Wrapper --- */
.art-slide {
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    scroll-snap-align: start;
    padding: 20px;
    box-sizing: border-box;
}

.art-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: 90vh;
    width: 100%;
    transition: opacity 0.6s ease-in-out;
}

/* --- Image Styling --- */
.art-content-wrapper img {
    max-width: 100%;
    max-height: 70vh; /* Can be larger now */
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px; /* Space between image and info */
}

/* --- Art Info Box --- */
.art-info {
    text-align: center;
    width: 100%;
    max-width: 650px;
}

.art-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #111;
}

.art-author {
    font-size: 1rem;
    color: #555;
    margin: 0 0 12px 0;
    font-style: italic;
}

.art-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* --- Similar Button --- */
#similar-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#similar-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

#similar-btn:active {
    transform: scale(0.9);
}

#similar-btn svg {
    stroke: #333;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Responsive Design --- */
@media (max-width: 600px) {
    .art-content-wrapper img {
        max-height: 65vh;
        margin-bottom: 15px;
    }

    .art-title {
        font-size: 1.2rem;
    }

    .art-author {
        font-size: 0.95rem;
    }
    
    .art-description {
        font-size: 0.85rem;
    }

    #similar-btn {
        width: 45px;
        height: 45px;
    }
}
