* {
    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;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    padding: 20px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.door {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.door::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.door:hover:not(.opened):not(.locked) {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.door.locked {
    background: linear-gradient(135deg, #868686 0%, #5a5a5a 100%);
    cursor: not-allowed;
    opacity: 0.6;
}

.door.opened {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    cursor: pointer;
}

.door.opened::after {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 1.5rem;
    color: white;
}

.door-number {
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.door.locked .door-number {
    opacity: 0.5;
}

/* Skacząca ikonka prezentu przy okienkach */
.gift-emoji {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 2rem;
    z-index: 2;
    animation: giftBounce 2s ease-in-out infinite;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
    pointer-events: none;
}

.door.locked .gift-emoji {
    opacity: 0.5;
    animation: giftBounceSlow 3s ease-in-out infinite;
}

@keyframes giftBounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-8px) rotate(-5deg);
    }
    50% {
        transform: translateY(-12px) rotate(0deg);
    }
    75% {
        transform: translateY(-8px) rotate(5deg);
    }
}

@keyframes giftBounceSlow {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-6px) rotate(3deg);
    }
}

/* Sekcja dla niecierpliwego misiaczka */
.bear-section {
    margin-bottom: 50px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.bear-title {
    text-align: center;
    color: #ffd700;
    font-size: 2rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

.bear-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.bear-button {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
    position: relative;
    overflow: hidden;
    border: 3px solid #ffed4e;
}

.bear-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.bear-button:hover:not(.locked):not(.opened) {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.8);
}

.bear-button.locked {
    background: linear-gradient(135deg, #868686 0%, #5a5a5a 100%);
    border-color: #5a5a5a;
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.bear-button.opened {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    border-color: #8fd3f4;
}

.bear-button.opened::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.bear-emoji {
    font-size: 4rem;
    margin-bottom: 10px;
    z-index: 1;
    animation: bounce 2s ease-in-out infinite;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.bear-button.locked .bear-emoji {
    opacity: 0.5;
    animation: none;
}

.bear-date {
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 1;
    margin-bottom: 5px;
}

.bear-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.bear-button.locked .bear-date,
.bear-button.locked .bear-number {
    opacity: 0.5;
}

.bear-button.opening {
    animation: openDoor 0.5s ease-in-out;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Sekcja kalendarza grudniowego */
.calendar-section {
    margin-top: 40px;
}

.calendar-title {
    text-align: center;
    color: white;
    font-size: 2rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s;
}

.modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 10% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    color: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s;
    position: relative;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: white;
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s;
}

.close:hover {
    transform: scale(1.2);
}

.modal-body {
    text-align: center;
    padding: 20px 0;
}

.modal-body h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.modal-body p {
    font-size: 1.3rem;
    line-height: 1.6;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

/* Responsywność */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .bear-section {
        padding: 20px;
    }
    
    .bear-title {
        font-size: 1.5rem;
    }
    
    .bear-button {
        width: 150px;
        height: 150px;
    }
    
    .bear-emoji {
        font-size: 3rem;
    }
    
    .bear-date {
        font-size: 0.9rem;
    }
    
    .bear-number {
        font-size: 2rem;
    }
    
    .calendar-title {
        font-size: 1.5rem;
    }
    
    .calendar-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 15px;
    }
    
    .door {
        font-size: 1.5rem;
    }
    
    .door-number {
        font-size: 2rem;
    }
    
    .modal-content {
        margin: 20% auto;
        padding: 20px;
    }
    
    .modal-body h2 {
        font-size: 2rem;
    }
    
    .modal-body p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .bear-buttons {
        gap: 15px;
    }
    
    .bear-button {
        width: 120px;
        height: 120px;
    }
    
    .bear-emoji {
        font-size: 2.5rem;
    }
    
    .bear-date {
        font-size: 0.8rem;
    }
    
    .bear-number {
        font-size: 1.5rem;
    }
    
    .calendar-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .door {
        font-size: 1.2rem;
    }
    
    .door-number {
        font-size: 1.5rem;
    }
}

/* Animacja otwierania okienka */
@keyframes openDoor {
    0% {
        transform: perspective(500px) rotateY(0deg);
    }
    100% {
        transform: perspective(500px) rotateY(-90deg);
    }
}

.door.opening {
    animation: openDoor 0.5s ease-in-out;
}

