/* Import Bureau Grot font - you'll need to add the actual font files or use a web font service */
@font-face {
    font-family: 'Bureau Grot';
    src: url('https://berlinkys.com/MyWebfontsKit/webFonts/BureauGrotCondensedBlack/font.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

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

body {
    font-family: 'Bureau Grot', sans-serif;
    background: #0F5132;
    color: #FFF8DC;
    padding: 20px;
    min-height: 100vh;
    font-weight: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/snowflake.png');
    background-size: 75px 75px;
    opacity: 0.1;
    z-index: -1;
    pointer-events: none;
}

.calendar-container {
    max-width: 1400px;
    margin: 0 auto;
}

.calendar-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 40px;
    color: #FFB863;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding: 20px;
}

/* Door styling */
/* Add after your existing .door styles */
.door {
    position: relative;
    aspect-ratio: 1/1;
    background: #8a0e16;
    border: 2px solid #D4AF37;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 184, 99, 0.5);
    animation: twinkleBorder 2s ease-in-out infinite;
}

@keyframes twinkleBorder {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 184, 99, 0.5),
                    0 0 20px rgba(255, 184, 99, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 184, 99, 0.8),
                    0 0 30px rgba(255, 184, 99, 0.6),
                    0 0 40px rgba(255, 184, 99, 0.4);
    }
}

/* Stagger the animation for each door */
.door:nth-child(odd) {
    animation-delay: 0s;
}

.door:nth-child(even) {
    animation-delay: 1s;
}

.door:nth-child(1) { transform: rotate(-2deg); }
.door:nth-child(2) { transform: rotate(1deg); }
.door:nth-child(3) { transform: rotate(-1deg); }
.door:nth-child(4) { transform: rotate(2deg); }
.door:nth-child(5) { transform: rotate(-1.5deg); }
.door:nth-child(6) { transform: rotate(1.5deg); }
.door:nth-child(7) { transform: rotate(-2deg); }
.door:nth-child(8) { transform: rotate(0.5deg); }
.door:nth-child(9) { transform: rotate(-1deg); }
.door:nth-child(10) { transform: rotate(2deg); }
.door:nth-child(11) { transform: rotate(-1deg); }
.door:nth-child(12) { transform: rotate(1deg); }
.door:nth-child(13) { transform: rotate(-2deg); }
.door:nth-child(14) { transform: rotate(1.5deg); }
.door:nth-child(15) { transform: rotate(-0.5deg); }
.door:nth-child(16) { transform: rotate(2deg); }
.door:nth-child(17) { transform: rotate(-1.5deg); }
.door:nth-child(18) { transform: rotate(1deg); }
.door:nth-child(19) { transform: rotate(-2deg); }
.door:nth-child(20) { transform: rotate(0.5deg); }
.door:nth-child(21) { transform: rotate(-1deg); }
.door:nth-child(22) { transform: rotate(2deg); }
.door:nth-child(23) { transform: rotate(-1.5deg); }
.door:nth-child(24) { transform: rotate(1deg); }
.door:nth-child(25) { transform: rotate(-1deg); }
.door:nth-child(26) { transform: rotate(2deg); }

.door:hover:not(.past) {
    transform: rotate(0deg) translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

/* Full image with vignette effect */
.door-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.door-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Vignette overlay */
.door-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, transparent 40%, rgba(0, 0, 0, 0.7) 100%);
    pointer-events: none;
}

/* Date label on door */
.door-date {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #B91D1D;
	color:#FFF8DC;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    z-index: 2;
}

/* Past date styling - greyed out */
.door.past {
    opacity: 0.4;
    filter: grayscale(100%);
    cursor: not-allowed;
    border-color: #666;
}

.door.past .door-date {
    background: rgba(100, 100, 100, 0.9);
}

/* Popup Modal */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.popup-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.popup-content {
    background: #B91D1D;
    border: 2px solid #D4AF37;
    border-radius: 5px;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: row;
}

.popup-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/snowflake.png');
    background-size: 30px 30px;
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}

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

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #D4AF37;
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 10;
    font-weight: normal;
}

.popup-close:hover {
    background: #bf8a4a;
}

.popup-image-container {
    flex: 0 0 40%;
    max-width: 400px;
    overflow: hidden;
    border-radius: 5px 0 0 5px;
    position: relative;
    z-index: 1;
}

.popup-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-details {
    flex: 1;
    padding: 40px 30px 30px 30px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    position: relative;
    z-index: 1;
}

.popup-details h2 {
    color: #D4AF37;
    font-size: 2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: normal;
}

.popup-details h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: normal;
}

.popup-details p {
    font-family: "Inter", sans-serif;
	font-weight:400;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: normal;
}

.popup-details strong {
    color: #FFF8DC;
    font-weight: normal;
}

.popup-event-content {
    flex: 1;
    margin-bottom: 20px;
}

.popup-book-button {
    display: inline-block;
    background: #D4AF37;
    color: #000000;
    padding: 15px 40px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: background 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
    font-weight: normal;
    margin-top: auto;
}

.popup-book-button:hover {
    background: #bf8a4a;
}

.snowflakes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
  overflow: hidden; 
}

@media (max-width: 768px) {
    .snowflakes {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        overflow: hidden !important;
        z-index: 999 !important;
    }
}



.snowflake {
  color: #fff;
  font-size: 1em;
  font-family: Arial;
  text-shadow: 0 0 1px #000;
  position: absolute;
  top: -20%; 
  transform: translateZ(0);
  animation: fall linear infinite;
}

@keyframes fall {
  0% {
    opacity: 0;
    transform: translateY(0) translateZ(0);
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(110vh) translateZ(0);
  }
}

.snowflake:nth-child(1) { left: 10%; animation-duration: 10s; animation-delay: 0s; }
.snowflake:nth-child(2) { left: 20%; animation-duration: 12s; animation-delay: 2s; }
.snowflake:nth-child(3) { left: 30%; animation-duration: 8s; animation-delay: 4s; }
.snowflake:nth-child(4) { left: 40%; animation-duration: 14s; animation-delay: 1s; }
.snowflake:nth-child(5) { left: 50%; animation-duration: 11s; animation-delay: 3s; }
.snowflake:nth-child(6) { left: 60%; animation-duration: 9s; animation-delay: 5s; }
.snowflake:nth-child(7) { left: 70%; animation-duration: 13s; animation-delay: 2s; }
.snowflake:nth-child(8) { left: 80%; animation-duration: 10s; animation-delay: 4s; }
.snowflake:nth-child(9) { left: 90%; animation-duration: 12s; animation-delay: 1s; }
.snowflake:nth-child(10) { left: 95%; animation-duration: 11s; animation-delay: 3s; }

/* Responsive adjustments */
@media (max-width: 1200px) {
    .calendar-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .calendar-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        padding: 10px;
    }
    
    .popup-content {
        flex-direction: column;
    }
    
    .popup-image-container {
        flex: 0 0 auto;
        max-width: 100%;
        max-height: 300px;
        border-radius: 12px 12px 0 0;
    }
    

}

@media (max-width: 768px) {
    .calendar-title {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .door-date {
        font-size: 1rem;
        padding: 8px 15px;
        bottom: 10px;
    }

    .popup-image-container {
        max-height: 250px !important;
    }
    .popup-details h2 {
        font-size: 1.3rem !important;
        letter-spacing: 0.5px !important;
        margin-bottom: 8px !important;
        margin-top: 5px !important;
    }

    .popup-details h3 {
        font-size: 1.3rem !important;
        letter-spacing: 0.3px !important;
        margin-bottom: 8px !important;
        margin-top: 0 !important;
    }

    .popup-details p {
        font-size: 1.05rem !important;
        line-height: 1.7 !important;
        margin-bottom: 10px !important;
    }
    
    .popup-book-button {
        font-size: 1rem;
        padding: 12px 30px;
    }
}



@media (max-width: 480px) {
    .calendar-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 10px;
    }
    
    .door-date {
        font-size: 0.7rem;
        padding: 5px 10px;
        bottom: 5px;
    }
}

.load-more-btn {
    display: block; /* Changed from display: none */
    margin: 30px auto;
    padding: 15px 40px;
    background: #FFB863;
    color: #000;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    font-family: 'Bureau Grot', sans-serif;
}

.load-more-btn:hover {
    background: #D4AF37;
}

.door.hidden-mobile {
    display: none !important;
}



