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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #0a0a0a;
    color: #e0e0e0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Login Screen Styles */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.login-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.login-box h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.prompt {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: #4a9eff;
    font-weight: 400;
}

.volume-reminder {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.5rem;
    margin-top: -1rem;
    opacity: 0.8;
}

#passwordInput {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #ffffff;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

#passwordInput:focus {
    outline: none;
    border-color: #4a9eff;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.2);
}

#passwordInput::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

#submitBtn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    background: #4a9eff;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.5px;
}

#submitBtn:hover {
    background: #357dd8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 158, 255, 0.3);
}

#submitBtn:active {
    transform: translateY(0);
}

.error-message {
    margin-top: 1rem;
    color: #ff6b6b;
    font-size: 0.95rem;
    min-height: 1.5rem;
}

/* Main Content Styles */
.main-container {
    min-height: 100vh;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    background: #0a0a0a;
}

/* Carousel Styles */
.carousel-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 60vh;
    max-height: 600px;
    min-height: 400px;
    background: #0a0a0a;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-image.active {
    opacity: 1;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #4a9eff;
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Text Display Styles */
.text-display-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.text-content {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

#textDisplay {
    font-size: 1.25rem;
    line-height: 1.8;
    text-align: center;
    color: #f0f0f0;
    padding: 1rem;
}

.text-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.line-indicator {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.next-button {
    padding: 0.75rem 2rem;
    background: #4a9eff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.next-button:hover {
    background: #357dd8;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(74, 158, 255, 0.3);
}

.next-button:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    transform: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-box {
        padding: 2rem;
    }
    
    .prompt {
        font-size: 1.8rem;
    }
    
    .main-container {
        padding: 1rem;
        gap: 2rem;
    }
    
    .text-display-container {
        padding: 1.5rem;
    }
    
    #textDisplay {
        font-size: 1.1rem;
    }
    
    .text-controls {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-container {
    animation: fadeIn 0.6s ease-out;
}