@import url('https://fonts.googleapis.com/css2?family=Mountains+of+Christmas:wght@400;700&display=swap');


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

body {
    background: black;
    background-position: center;
    background-size: cover;
}

.cparol {
    /* margin-top: 5%; */
    position: relative;
    width: 100%;
    height: 750px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 1;
}

.cparol {
    background: black;
    background-position: center;
    background-size: cover;
    transition: background-image 0.8s ease;
}
.cparol .floor {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);

    width: 100%;
    max-width: 3500px;
    height: 550px; /* adjust to floor height */

    background-image: url('../pictures/floor3.png');
    background-repeat: repeat-x;
    background-size: auto 100%;
    background-position: bottom center;

    z-index: -2;
}

.cparol .top {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);

    width: 100%;
    max-width: 3500px;
    height: 550px; /* adjust to floor height */

    background-image: url('../pictures/top11.png');
    background-repeat: repeat-x;
    background-size: auto 100%;
    background-position: bottom center;

    z-index: -2;
}

.cparol .bg11 {
    position: absolute;
    width: 100%;
    max-width: 1500px;
    height: 100%;

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    background-image: url('../pictures/bg17.png');
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;

    z-index: -1;
} 
.max {
    position: absolute;
    width: 100%;
    max-width: 1200px;
    height: 100%;
}

.cparol .max .center {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);

    width: 250px;
    height: 250px;

    background-image: url('../gif/jomar.gif');
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;

    z-index: 0;
}

.cparol .max .right{
    position: absolute;
    bottom: -5%;
    right: 15%;

    width: 250px;
    height: 250px;

    background-image: url('../gif/right2.gif');
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;

    z-index: 0;
}


.cparol .max .left{
    position: absolute;
    bottom: -5%;
    left: 15%;

    width: 250px;
    height: 250px;

    background-image: url('../gif/left.gif');
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;

    z-index: 0;
}


.cparol.revealed-bg {
    background-image: url('../pictures/bg1.png');
}




/* Dark overlay */
.overlay {
    position: fixed;
    inset: 0;
    background: black;
    pointer-events: none;
    z-index: 8; /* ✅ REQUIRED */
}


/* Center button */
.cparol .reveal-btn {
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 150px 40px;
    font-size: 18px;
    background: transparent;
    color: white;
    border: 2px solid white;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.reveal-btn:hover {
    background: white;
    color: black;
}


.parol {
    position: relative;
    width: 100%;
    max-width: 450px;
    height: 100%;
    margin: auto;
}
.parol .text{
    padding-top: 2rem;
    text-align: center;
   
}

.parol .text p {
    font-family: 'Mountains of Christmas', cursive;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 8px #ffcc00;
}

.parol .text h1 {
    font-family: 'Mountains of Christmas', cursive;
    font-size: 3rem;
    color: #ffcc00;
    text-shadow: 0 0 12px orange;
    animation: flicker 2s infinite;
}



@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}



/* 🔽 BASE IMAGE (SPINS) */
.parol-base {
    position: absolute;
    inset: 0;
    
    background-image: url('../pictures/offparol.png');
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}



/* 🔼 TOP IMAGE (STATIC) */
.parolonly {
    position: absolute;
    inset: 0;
    top: 80px;
    background-image: url('../pictures/parolonly.png');
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;

    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

/* 🔄 SPIN ONLY BASE */
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.parol-base.spin {
    animation: spin 20s linear infinite;
}


.snowflake {
    position: fixed;
    top: -10px;
    color: white;
    font-size: 1rem;
    z-index: 15;
    pointer-events: none;
    user-select: none;
    animation: fall linear infinite;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
    }
}


.lights {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: red;
    animation: blink 1.5s infinite alternate;
}

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

@media screen and (max-width: 768px) {
  .max{
    display: none;
  }

 .cparol .bg11 {
        top: auto;              /* remove center positioning */
        bottom: 0;              /* 🔥 stick to bottom */
        left: 50%;
        transform: translateX(-50%); /* only center horizontally */
        height: 40%;            /* optional – adjust visual size */
        background-position: bottom center;
    }


}


/* ============================================= */

/* 🎓 TEACHERS SECTION */
.teachers-section {
    position: relative;
    height: 600px;
    z-index: -1;
    padding: 4rem 1rem;
    text-align: center;
    background-image: url('../pictures/bg1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    backdrop-filter: blur(4px);
}

.teachers-section .cloud {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);

    width: 100%;
    max-width: 3500px;
    height: 550px; /* adjust to floor height */

    background-image: url('../pictures/cloud3.png');
    background-repeat: repeat-x;
    background-size: auto 100%;
    background-position: bottom center;

    z-index: -2;
}

.teachers-title {
    font-family: 'Mountains of Christmas', cursive;
    font-size: 2.5rem;
    color: #ffcc00;
    margin-bottom: 3rem;
    text-shadow: 0 0 10px orange;
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: auto;
}

.teacher-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.teacher-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px rgba(255,200,0,0.6);
}

.teacher-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #ffcc00;
    margin-bottom: 1rem;
}

.teacher-card h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.teacher-card p {
    color: #ffcc99;
    font-size: 0.95rem;
}

/* ================================== */
/* 🎄 HEADER */
.head {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;

    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 30;

    /* background: rgba(0, 0, 0, 0.55); */
    background-color: transparent;
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255,255,255,0.15);

    display: flex;
    align-items: center;
}

/* LOGO */
.header-left {
    font-family: 'Mountains of Christmas', cursive;
    font-size: 1.8rem;
    color: #ffcc00;
    text-shadow: 0 0 10px orange;
}

/* NAV */
.header-nav {
    display: flex;
    gap: 1.5rem;
}

.header-nav a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    position: relative;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: #ffcc00;
    transition: width 0.3s ease;
}

.header-nav a:hover::after {
    width: 100%;
}

/* MOBILE */
@media (max-width: 600px) {
    .header-nav {
        display: none;
    }

    .header-left {
        font-size: 1.5rem;
    }
}

.site-header {
    opacity: 0;
    transition: opacity 0.8s ease;
}

body.revealed .site-header {
    opacity: 1;
}
/* =============================== */

.christmas-section {
    width: 100%;
    position: relative;
    padding: 4rem 1rem;
    text-align: center;
    background-image: url('../pictures/bg1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    backdrop-filter: blur(4px);
    color: #fff;
}

.christmas-section .cloud {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);

    width: 100%;
    max-width: 3500px;
    height: 550px; /* adjust to floor height */

    background-image: url('../pictures/cloud3.png');
    background-repeat: repeat-x;
    background-size: auto 100%;
    background-position: bottom center;

    z-index: -2;
}

.christmas-section .floor11 {
    
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);

    width: 100%;
    max-width: 3500px;
    height: 550px; /* adjust to floor height */

    background-image: url('../pictures/floor12.png');
    background-repeat: repeat-x;
    background-size: auto 100%;
    background-position: bottom center;

    z-index: -2;
}

.christmas-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center; /* 🔥 key fix */
  gap: 140px;               /* adjust this value */
}

/* LEFT */
.christmas-left {
  text-align: left;
}

.christmas-left h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  font-weight: 700;
}

.christmas-left p {
  margin: 20px 0 30px;
  max-width: 480px;
  font-size: 1.2rem;
  color: #e2f3ea;
}

.christmas-btn {
    position: relative;
  display: inline-block;
  background: rgb(0, 63, 139);
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  border: solid 2px white;
}

.christmas-btn .hat-btn{
    position: absolute;
    width: 90px;
    top: -34px;
    left: -50px;
    transform: rotate(-20deg);
    z-index: -1;
}

.santa-group {
  display: flex;
  justify-content: center; 
}

.santa-group img {
  height: 300px;
}

/* RIGHT *//* RIGHT */
.christmas-right {
    border: solid 2px white;
    border-radius: 16px;
  display: flex;
align-items: center;
  justify-content: center;
  flex-direction: column;
  align-items: center; /* centers tree and event-box horizontally */
}

.tree {
  height: 400px;
  object-fit: contain; /* scales tree without stretching */
}

.event-box {
  position: relative;
  padding: 20px 24px;
  
  width: 100%;
  max-width: 360px; /* limits width on large screens */
}

.event-box h3 {
    position: relative;
  margin-bottom: 16px;
  font-size: 2rem;
  width: 360px;
  text-align: left;
    font-family: 'Mountains of Christmas', cursive;
}

.event-box h3 .hat{
    position: absolute;
    width: 40px;
    top: -15px;
    left: -18px;
    transform: rotate(-20deg);
    z-index: -1;
}

/* Countdown */
.countdown {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.time-box {
    border: solid 2px white;
  background: #2f9e6f;
  border-radius: 10px;
  padding: 10px 12px;
  flex: 1; /* make all boxes equal width */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.time-box span {
  font-size: 1.4rem;
  font-weight: 700;
}

.time-box small {
  font-size: 0.75rem;
  opacity: 0.9;
}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
  .christmas-container {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .christmas-left {
    text-align: center;
  }

  .tree {
    height: 300px; /* smaller on mobile */
  }

  .event-box {
    max-width: 90%;
  }

  
    .santa-group {
        display: none;
    }

    .teachers-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .christmas-left h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    }

    .christmas-right {
    border: none;
    }

    
    .event-box h3 {
        text-align: center;
    }

    .event-box h3 .hat{
        position: absolute;
        width: 40px;
        top: -15px;
        left: 35px;
        transform: rotate(-20deg);
        z-index: -1;
    }
    .christmas-left p {
        font-size: 1rem;
    }
}