body {
    margin: 0;
    background: linear-gradient(135deg, #fce4ec, #f8bbd0);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
}

.card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    animation: fadeIn 0.6s ease;
}

button {
    padding: 12px 22px;
    margin: 10px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.text-btn {
    background: rgba(253, 245, 230, 0.75) !important;
    color: #8c2a3e !important;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(4px);
    padding: 10px 25px;
    margin: 10px 5px;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    border-radius: 12px;
}

.text-btn:hover {
    transform: scale(1.1);
    background: rgba(253, 245, 230, 0.9) !important;
}

#yes:not(.text-btn) {
    background: linear-gradient(45deg, #00c853, #69f0ae);
    color: white;
}

#no:not(.text-btn) {
    background: linear-gradient(45deg, #d50000, #ff5252);
    color: white;
}

.transparent-card {
    background: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    padding: 10px;
}

.elegant-text {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: #8c2a3e;
    font-weight: 600;
}

.text-bg-wrapper {
    background: rgba(253, 245, 230, 0.75);
    padding: 15px 20px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(4px);
}

#question {
    font-size: 36px;
    margin-bottom: 0;
}

.envelope-container {
    margin: 20px auto;
}

.envelope-img {
    width: 100%;
    max-width: 320px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.plan-item {
    display: flex;
    align-items: center;
    text-align: left;
    margin: 15px 0;
    padding: 15px;
    background: #fdf5e6;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 600;
    color: #4a3b32;
    border: 1px solid #d4c098;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.plan-item:hover {
    background: #faeed4;
}

.checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid #4a3b32;
    border-radius: 4px;
    margin-right: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    color: #4a3b32;
    flex-shrink: 0;
    transition: 0.2s;
}

.plan-item.done .checkbox {
    background-color: transparent;
}

.plan-item.done .checkbox::after {
    content: '✔';
}

.plan-item.done {
    background: #eef7ee !important;
    border-color: #a8d5a8;
}

.plan-item span {
    flex-grow: 1;
}

.infoBtn {
    margin-left: 10px;
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

iframe {
    margin-top: 15px;
    border-radius: 15px;
}

.card {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.music-controls {
    margin: 15px 0;
}

.music-controls button {
    margin: 5px;
    padding: 8px 12px;
    font-size: 14px;
}

#musicPanel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.music-box {
    background: white;
    padding: 12px 15px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.music-box button {
    border: none;
    background: transparent;
    color: #4a3b32;
    font-size: 22px;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    transition: 0.3s;
}

.music-box button:hover {
    transform: scale(1.1);
    color: #8c2a3e;
}

.hidden {
    display: none;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-box {
    background: white;
    padding: 25px;
    border-radius: 20px;
    width: 90%;
    max-width: 350px;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.modal-box input {
    width: 80%;
    padding: 10px;
    margin: 15px 0;
    border-radius: 10px;
    border: 1px solid #ccc;
}

.modal-buttons button {
    margin: 5px;
    padding: 8px 15px;
}

.error-text {
    color: red;
    font-size: 14px;
}

.hidden {
    display: none;
}

.plan-item {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeUp 0.4s forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}