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

body, html {
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    font-family: 'Arial', sans-serif;
    background: #000;
}

#container {
    height: 100vh;
    width: 100vw;
    position: relative;
}

/* Start screen styling */
#start-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

#start-button {
    padding: 20px 40px;
    font-size: 24px;
    font-weight: bold;
    color: white;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#start-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

#start-button:active {
    transform: scale(0.95);
}

/* Image display styling */
#image-display {
    height: 100vh;
    width: 100vw;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

#current-image {
    max-width: 100vw;
    max-height: 100vh;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: opacity 0.1s ease-in-out;
}

/* Loading screen styling */
#loading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
    background: #000;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #333;
    border-top: 5px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loading p {
    font-size: 18px;
    color: #ccc;
}

/* Error screen styling */
#error {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
    background: #000;
    color: white;
    text-align: center;
}

#error p {
    font-size: 18px;
    color: #ff6b6b;
    margin-bottom: 20px;
}

#retry-button {
    padding: 10px 20px;
    font-size: 16px;
    color: white;
    background: #ff6b6b;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#retry-button:hover {
    background: #ff5252;
}

/* Hidden class */
.hidden {
    display: none !important;
}

/* Fade transition for images */
.fade-out {
    opacity: 0 !important;
}

.fade-in {
    opacity: 1 !important;
}