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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #234cff 0%, #0098bd 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Main story page styles */
.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.page.active {
    opacity: 1;
    transform: translateY(0);
}

.photo-container {
    position: relative;
    margin-bottom: 30px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.photo-container:hover {
    transform: scale(1.05);
}

.photo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.photo:hover {
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.caption {
    text-align: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    animation: fadeInUp 1s ease 0.5s both;
}

.subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.7s both;
}

.scroll-hint {
    position: absolute;
    bottom: 30px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    animation: bounce 2s infinite;
}

/* Login and upload page styles */
.login-page, .upload-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container, .upload-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 400px;
    width: 100%;
}

.login-header, .upload-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1, .upload-header h1 {
    color: white;
    font-size: 28px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.login-header p, .upload-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

.login-form-container, .upload-form-container {
    margin-bottom: 20px;
}

.login-form-container h2 {
    color: white;
    text-align: center;
    margin-bottom: 20px;
    font-size: 22px;
}

.login-form-container input, .upload-form-container input[type="text"] {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: white;
    font-size: 16px;
}

.login-form-container input::placeholder,
.upload-form-container input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.login-form-container button,
.upload-btn,
.login-btn {
    width: 100%;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-form-container button:hover,
.upload-btn:hover,
.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

.login-form-container p {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 15px;
}

.login-form-container a {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: bold;
}

.hidden {
    display: none !important;
}

/* File upload styles */
.file-input-container {
    position: relative;
    margin-bottom: 20px;
}

.file-input-container input[type="file"] {
    opacity: 0;
    position: absolute;
    z-index: -1;
}

.file-input-label {
    display: block;
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px dashed rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    color: white;
    text-align: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-input-label:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
}

.preview-container {
    margin-bottom: 20px;
    text-align: center;
    display: none;
}

.preview-container.show {
    display: block;
}

.preview-container img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.success-message {
    text-align: center;
    padding: 20px;
    background: rgba(76, 175, 80, 0.2);
    border-radius: 10px;
    border: 1px solid rgba(76, 175, 80, 0.5);
}

.success-message p {
    color: white;
    font-size: 18px;
    margin-bottom: 15px;
}

/* Navigation styles */
.navigation {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 100;
}

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

.nav-dot.active {
    background: white;
    transform: scale(1.2);
}

.navigation-links, .back-link {
    text-align: center;
    margin-top: 20px;
}

.nav-link, .back-btn {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin: 0 15px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.nav-link:hover, .back-btn:hover {
    color: white;
}

.login-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Animation styles */
.heart {
    position: absolute;
    color: #ff6b6b;
    font-size: 20px;
    pointer-events: none;
    animation: heartFloat 2s ease-out forwards;
}

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    pointer-events: none;
    z-index: 1000;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes heartFloat {
    0% {
        opacity: 1;
        transform: translateY(0) scale(0);
    }
    15% {
        transform: translateY(-10px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(0.5);
    }
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .photo {
        width: 200px;
        height: 200px;
    }

    .caption {
        font-size: 20px;
    }

    .login-container, .upload-container {
        padding: 20px;
        margin: 0 10px;
    }

    .login-header h1, .upload-header h1 {
        font-size: 24px;
    }
}