* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-image: url('assets/abuch.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    width: 100%;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 40px;
    font-size: 2.5em;
    font-weight: 600;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.calendar-day {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #b71c1c 0%, #e57373 100%);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8em;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.calendar-day:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.calendar-day.pulsating {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@media (max-width: 768px) {
    .calendar-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    
    .calendar-day {
        font-size: 1.4em;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .container {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .calendar-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .calendar-day {
        font-size: 1.2em;
    }
}

/* Password Dialog Styles */
.hidden {
    display: none !important;
}

.password-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dialog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.dialog-container {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    z-index: 2001;
    animation: dialogFadeIn 0.3s ease-out;
}

.dialog-title {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 2em;
    font-weight: 600;
}

.password-input {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 20px;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.password-input:focus {
    outline: none;
    border-color: #b71c1c;
}

.dialog-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.dialog-button {
    padding: 12px 30px;
    font-size: 1.1em;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.dialog-button-primary {
    background: linear-gradient(135deg, #b71c1c 0%, #e57373 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.dialog-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.dialog-button-secondary {
    background: #f0f0f0;
    color: #333;
}

.dialog-button-secondary:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.password-error {
    margin-top: 15px;
    color: #e74c3c;
    text-align: center;
    font-size: 0.9em;
    animation: shake 0.5s ease-in-out;
}

@keyframes dialogFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Love Page Styles */

.love-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/abuch.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.love-container {
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.love-title {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 30px;
    font-weight: 600;
    animation: fadeIn 0.5s ease-in;
}

.love-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.5s ease-in;
}

.love-paragraph {
    font-size: 1.2em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
    animation: fadeIn 0.5s ease-in;
}

.love-poem {
    font-size: 1.1em;
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
    animation: fadeIn 0.5s ease-in;
    font-style: italic;
    text-align: center;
}

.love-text {
    font-size: 3em;
    color: #333;
    margin-bottom: 40px;
    font-weight: 600;
    animation: fadeIn 0.5s ease-in;
}

.back-button {
    background: linear-gradient(135deg, #b71c1c 0%, #e57373 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2em;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.back-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.link-button {
    display: inline-block;
    background: linear-gradient(135deg, #b71c1c 0%, #e57373 100%);
    color: white;
    text-decoration: none;
    padding: 15px 40px;
    font-size: 1.2em;
    border-radius: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
    animation: fadeIn 0.5s ease-in;
}

.link-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.discount-code {
    font-size: 1.5em;
    font-weight: bold;
    color: #b71c1c;
    background: #ffebee;
    padding: 15px 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
    animation: fadeIn 0.5s ease-in;
    border: 2px solid #b71c1c;
    display: flex;
    align-items: center;
    gap: 20px;
}

.discount-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

