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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.page {
    animation: fadeIn 0.6s ease-in;
    width: 100%;
}

.page.hidden {
    display: none;
}

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

/* Landing Page */
.landing-content {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.8s ease-out;
}

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

.title {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 15px;
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.subtitle {
    font-size: 1.5rem;
    color: #764ba2;
    margin-bottom: 10px;
}

.description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

.floating-hearts {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.heart {
    position: absolute;
    font-size: 1.5rem;
    animation: float 8s infinite ease-in;
}

.heart:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.heart:nth-child(2) {
    left: 20%;
    animation-delay: 1s;
}

.heart:nth-child(3) {
    left: 30%;
    animation-delay: 2s;
}

.heart:nth-child(4) {
    left: 40%;
    animation-delay: 3s;
}

.heart:nth-child(5) {
    left: 50%;
    animation-delay: 4s;
}

@keyframes float {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-100vh);
    }
}

/* Buttons */
.btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #e0e0e0;
    color: #333;
}

.btn-secondary:hover {
    background: #d0d0d0;
}

.btn-danger {
    background: #ff6b6b;
    color: white;
}

.btn-danger:hover {
    background: #ff5252;
    transform: translateY(-2px);
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.3rem;
}

/* Quiz Page */
#quiz {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 20px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

#quiz h2 {
    color: #667eea;
    margin-bottom: 30px;
    text-align: center;
}

.quiz-container {
    width: 100%;
}

.question-box {
    margin-bottom: 30px;
    animation: slideIn 0.5s ease-out;
}

.question-box.hidden {
    display: none;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.question {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-btn {
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.option-btn:hover {
    background: #667eea;
    color: white;
    transform: translateX(5px);
}

.input-field {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 2px solid #667eea;
    border-radius: 10px;
    margin-bottom: 15px;
}

.success-message {
    font-size: 1.5rem;
    color: #26c281;
    text-align: center;
    margin-bottom: 20px;
}

#quiz-success {
    text-align: center;
}

/* Games Page */
#games {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 20px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

#games h2 {
    color: #667eea;
    margin-bottom: 30px;
    text-align: center;
}

.games-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.game-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.3);
}

.game-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.game-card p {
    margin-bottom: 20px;
    opacity: 0.9;
}

/* Love Letter */
#letter {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 20px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

#letter h2 {
    color: #667eea;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2rem;
}

.letter-container {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 40px;
    border-radius: 15px;
    border-left: 5px solid #667eea;
    margin-bottom: 30px;
    min-height: 300px;
}

.letter-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    font-family: 'Georgia', serif;
}

/* Gallery */
#gallery {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 20px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

#gallery h2 {
    color: #667eea;
    margin-bottom: 15px;
    text-align: center;
}

.gallery-info {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.gallery-container {
    position: relative;
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
    background: #f0f0f0;
}

.gallery-slider {
    display: flex;
    transition: transform 0.5s ease;
    border-radius: 15px;
}

.slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    overflow: hidden;
}

.slide img {
    max-width: 100%;
    max-height: 600px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    z-index: 10;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.nav-btn.prev {
    left: 10px;
}

.nav-btn.next {
    right: 10px;
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
    max-height: 60px;
    overflow-y: auto;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.dot.active {
    background: #667eea;
    transform: scale(1.3);
}

/* Reasons */
#reasons {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 20px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

#reasons h2 {
    color: #667eea;
    margin-bottom: 30px;
    text-align: center;
}

.reasons-container {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.reason-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.reason-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.reason-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* Fun Facts */
#facts {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 20px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

#facts h2 {
    color: #667eea;
    margin-bottom: 30px;
    text-align: center;
}

.facts-container {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.fact-card {
    background: white;
    border: 2px solid #667eea;
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.fact-card:hover {
    background: #f0f4ff;
    transform: translateX(5px);
}

.fact-card h3 {
    color: #667eea;
    margin-bottom: 10px;
}

/* Yes or No Game */
#yesorno {
    background: rgba(255, 255, 255, 0.95);
    padding: 60px 20px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.yesorno-container {
    text-align: center;
}

#yesorno h2 {
    color: #667eea;
    margin-bottom: 20px;
}

.big-question {
    font-size: 2rem;
    color: #764ba2;
    margin-bottom: 40px;
    font-weight: bold;
}

.buttons-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-no {
    position: relative;
}

.btn-no:hover {
    left: 100px;
}

/* Proposal Page */
#proposal {
    background: rgba(255, 255, 255, 0.98);
    padding: 40px 20px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.proposal-content {
    text-align: center;
}

.proposal-title {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 20px;
    animation: slideDown 0.8s ease-out;
}

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

.proposal-text {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
}

.ring-animation {
    margin: 40px 0;
    perspective: 1000px;
}

.ring {
    font-size: 5rem;
    animation: spin 2s linear infinite;
}

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

.proposal-question {
    font-size: 2.5rem;
    color: #764ba2;
    margin: 40px 0;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.proposal-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.proposal-message {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    animation: slideUp 0.8s ease-out;
}

.proposal-message.hidden {
    display: none;
}

.message-text {
    font-size: 1.3rem;
    margin-top: 15px;
}

/* Confetti */
.confetti-piece {
    position: fixed;
    pointer-events: none;
    animation: confetti-fall 3s linear forwards;
}

@keyframes confetti-fall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .landing-content {
        padding: 40px 20px;
    }

    .title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .btn-large {
        padding: 15px 30px;
        font-size: 1.1rem;
    }

    .proposal-title {
        font-size: 2rem;
    }

    .proposal-question {
        font-size: 1.8rem;
    }

    .big-question {
        font-size: 1.5rem;
    }

    .question {
        font-size: 1.1rem;
    }

    .games-container {
        grid-template-columns: 1fr;
    }

    .buttons-container {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-no:hover {
        left: 50px;
    }

    .proposal-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .letter-container {
        padding: 30px 20px;
    }

    .slide img {
        max-height: 500px;
    }

    .nav-btn {
        padding: 8px 12px;
        font-size: 1.5rem;
    }

    #letter h2,
    #gallery h2,
    #reasons h2,
    #facts h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .landing-content {
        padding: 30px 15px;
        border-radius: 15px;
    }

    .title {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        margin: 5px;
    }

    #quiz,
    #games,
    #letter,
    #gallery,
    #reasons,
    #facts,
    #yesorno,
    #proposal {
        padding: 30px 15px;
        border-radius: 15px;
    }

    .proposal-title {
        font-size: 1.5rem;
    }

    .proposal-question {
        font-size: 1.4rem;
    }

    .ring {
        font-size: 3rem;
    }

    .option-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .letter-container {
        padding: 20px 15px;
    }

    .letter-content {
        font-size: 1rem;
    }

    .slide img {
        max-height: 400px;
    }

    .nav-btn {
        padding: 6px 10px;
        font-size: 1.2rem;
    }

    #letter h2,
    #gallery h2,
    #reasons h2,
    #facts h2 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .reason-card,
    .fact-card {
        padding: 15px;
    }

    .reason-card h3,
    .fact-card h3 {
        font-size: 1rem;
    }
}
