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

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #ffd1dc, #ffb7c5);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    color: #8a1c4a;
}

/* Password Modal */
.password-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 182, 193, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: opacity 0.5s ease;
}

.password-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: bounceIn 1s forwards;
}

.password-content h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 32px;
    margin-bottom: 20px;
    color: #d81b60;
}

.password-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ffb7c5;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 16px;
    text-align: center;
    outline: none;
    transition: border-color 0.3s;
}

.password-input:focus {
    border-color: #d81b60;
}

.submit-btn {
    background: #d81b60;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s, transform 0.2s;
}

.submit-btn:hover {
    background: #b71550;
    transform: scale(1.05);
}

/* Welcome Screen */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffd1dc, #ffb7c5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99;
    transition: opacity 0.8s ease;
}

.welcome-message {
    font-family: 'Dancing Script', cursive;
    font-size: 48px;
    color: #d81b60;
    text-align: center;
    animation: pulse 2s infinite, float 3s ease-in-out infinite;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Main Content */
.container {
    width: 100%;
    max-width: 900px;
    padding: 20px;
    margin-top: 50px;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab {
    background: rgba(255, 255, 255, 0.7);
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #d81b60;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
}

.tab.active {
    background: white;
    color: #d81b60;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.content-area {
    background: white;
    border-radius: 20px;
    padding: 30px;
    min-height: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.tab-content.active {
    display: block;
}

/* Love Letter Tab */
.letter {
    padding: 20px;
    background: #fff5f7;
    border-radius: 15px;
    border: 2px dashed #ffb7c5;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.letter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.letter h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 28px;
    color: #d81b60;
}

.letter-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.letter.expanded .letter-content {
    max-height: 500px;
}

/* Music Tab */
.song {
    background: #f8e8ee;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.song-icon {
    font-size: 24px;
    color: #d81b60;
}

.song-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.song-info p {
    color: #888;
    font-size: 14px;
}

/* Notes Tab */
.note {
    background: #fce4ec;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid #d81b60;
}

/* Gallery Tab */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    height: 200px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Decorative Elements */
.heart,
.teddy-bear {
    position: absolute;
    z-index: -1;
    opacity: 0.2;
    pointer-events: none;
}

.heart {
    color: #d81b60;
    font-size: 24px;
    animation: float 6s ease-in-out infinite;
}

.teddy-bear {
    font-size: 32px;
    animation: float 8s ease-in-out infinite;
}

/* Animations */
@keyframes bounceIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    60% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .welcome-message {
        font-size: 36px;
    }

    .tabs {
        flex-direction: column;
        align-items: center;
    }

    .tab {
        width: 100%;
        justify-content: center;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}