body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f0f0;
}

.art-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    touch-action: pan-y;
}

.swiper-container {
    width: 100%;
    height: 300%;
    display: flex;
    flex-direction: column;
}

.art-card {
    width: 100%;
    height: 33.333%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.art-card.visible {
    opacity: 1;
}

.art-image {
    max-width: 90%;
    max-height: 75%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background-color: #fff;
}

.caption-container {
    margin-top: 15px;
    padding: 0 20px;
    max-height: 15%;
    overflow-y: auto;
}

.caption-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.caption-detail {
    font-size: 14px;
    color: #555;
    text-decoration: none;
    margin-top: 5px;
    display: inline-block;
}

#random-button {
    position: fixed;
    top: 25px; /* Changed from bottom */
    right: 25px;
    width: 50px; /* Slightly smaller for top corner */
    height: 50px;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 10;
}

#version-display {
    position: fixed;
    bottom: 10px;
    left: 10px;
    font-size: 10px;
    color: #888;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 2px 5px;
    border-radius: 3px;
    z-index: 10;
}

/* --- Error State --- */
body.error-state .swiper-container { display: none; }
body.error-state .art-container::before {
    content: attr(data-error-message);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #c73410;
    background-color: #fbeae5;
}