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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5d7e3 0%, #e8c5d8 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.screen {
    display: none;
    width: 100%;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.5s ease-in;
    overflow-y: auto;
}

.screen.active {
    display: flex;
}

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

/* Password Screen */
.password-container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.password-container h1 {
    font-size: 60px;
    margin-bottom: 20px;
}

.password-container h2 {
    color: #6b4e71;
    margin-bottom: 30px;
    font-size: 24px;
}

#password-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e8c5d8;
    border-radius: 10px;
    font-size: 16px;
    margin-bottom: 20px;
    outline: none;
    transition: border-color 0.3s;
}

#password-input:focus {
    border-color: #e75480;
}

#submit-password {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #e75480 0%, #d63384 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

#submit-password:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 84, 128, 0.4);
}

#submit-password:active {
    transform: translateY(0);
}

.error {
    color: #e75480;
    margin-top: 15px;
    font-size: 14px;
    min-height: 20px;
}

/* Valentine Screen */
.valentine-container {
    background: white;
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.images-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.image-container img {
    width: 100%;
    height: 300px;
    border-radius: 20px;
    object-fit: cover;
}

.success-container .image-container img {
    height: auto;
    max-height: 400px;
}

.question {
    color: #6b4e71;
    font-size: 32px;
    margin-bottom: 40px;
    font-weight: 700;
}

.button-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 80px;
}

.yes-btn {
    padding: 18px 50px;
    background: linear-gradient(135deg, #e75480 0%, #d63384 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(231, 84, 128, 0.3);
}

.yes-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(231, 84, 128, 0.5);
}

.no-btn {
    padding: 15px 40px;
    background: white;
    color: #6b4e71;
    border: 2px solid #e8c5d8;
    border-radius: 50px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease-out, background 0.2s;
    position: relative;
    will-change: transform;
}

.no-btn:hover {
    background: #fdf3f7;
}

/* Success Screen */
.success-container {
    background: white;
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    text-align: center;
    max-width: 600px;
    width: 100%;
    animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes popIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-title {
    color: #6b4e71;
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 700;
}

.success-subtitle {
    color: #888;
    font-size: 20px;
    margin-top: 15px;
}

.relationship-duration {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #fdf3f7 0%, #fff 100%);
    border-radius: 20px;
    border: 2px solid #e8c5d8;
}

.duration-label {
    color: #6b4e71;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 500;
}

.duration-time {
    color: #e75480;
    font-size: 32px;
    font-weight: 700;
    margin: 10px 0;
    line-height: 1.4;
}

.duration-since {
    color: #888;
    font-size: 16px;
    margin-top: 15px;
    font-style: italic;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .password-container,
    .valentine-container,
    .success-container {
        padding: 30px 20px;
    }

    .images-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .question {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .yes-btn {
        padding: 15px 40px;
        font-size: 20px;
    }

    .no-btn {
        padding: 12px 30px;
        font-size: 18px;
    }

    .success-title {
        font-size: 28px;
    }

    .success-subtitle {
        font-size: 18px;
    }

    .relationship-duration {
        padding: 20px;
        margin-top: 30px;
    }

    .duration-label {
        font-size: 16px;
    }

    .duration-time {
        font-size: 24px;
    }

    .duration-since {
        font-size: 14px;
    }

    .image-container img {
        height: 200px;
        max-height: 200px;
    }

    .button-container {
        min-height: 100px;
    }
}

@media (max-width: 480px) {
    .question {
        font-size: 20px;
    }

    .yes-btn {
        padding: 12px 35px;
        font-size: 18px;
    }

    .no-btn {
        padding: 10px 25px;
        font-size: 16px;
    }

    .success-title {
        font-size: 24px;
    }

    .success-subtitle {
        font-size: 16px;
    }
}
