@import url('//fonts.googleapis.com/css2?family=Ephesis&family=Jaro:opsz@6..72&family=Monsieur+La+Doulaise&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('//fonts.googleapis.com/css2?family=Ephesis&family=Jaro:opsz@6..72&family=Monsieur+La+Doulaise&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bonheur+Royale&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    min-height: 100dvh;
    height: 100dvh;
    padding: 12rem clamp(0.5rem, 3vw, 1.5rem) clamp(3.5rem, 14vh, 8rem);
    overflow-x: hidden;
    background-color: #f0f0f0;
    font-family: Arial, sans-serif;
    background-image: url('./assets/main-background-2027.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Wide laptop: same 16:9 frame, goat shifted so the center stays open */
@media (max-width: 1440px) {
    body {
        background-image: url('./assets/main-background-responsive-1.png');
    }
}

/* Tablet and squarer windows: 4:3 artwork */
@media (max-aspect-ratio: 3/2) {
    body {
        background-image: url('./assets/main-background-responsive-2.png');
    }
}

/* Phone and portrait tablets: tall artwork, text sits in the open glow above the goat */
@media (max-aspect-ratio: 4/5) {
    body {
        background-image: url('./assets/main-background-responsive-3.png');
        justify-content: flex-start;
        padding-top: 22vh;
        padding-bottom: 1rem;
    }
}

.text{
    margin: 0 auto;
    color: #ffee00;
    font-weight: 700;
    text-shadow: 4px 4px 3px #333;
    font-size: clamp(10rem, 9vw, 10rem);
    line-height: 1.05;
    text-align: center;
    max-width: 100%;
    padding: 0 0.5rem;
    word-spacing: 1rem;
}

.jaro-font{
    font-family: "Jaro", serif;
    font-optical-sizing: auto;
    font-weight: 100;
    font-style: normal;
    font-size: 7rem;
  }

.title{
    margin-top: 0;
}

#fireworks {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.title,
.countdown {
    position: relative;
    z-index: 2;
}

.countdown.new-year {
    color: #ffee00;
    font-size: clamp(2.4rem, 8vw, 5.5rem);
    line-height: 1.1;
    text-align: center;
    text-shadow: 0 3px 10px rgba(80, 0, 0, 0.75);
}

.countdown {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: clamp(0.2rem, 2vw, 1.25rem);
    color: #333;
    width: auto;
    max-width: 100%;
    justify-content: center;
    margin-top: clamp(0.35rem, 2.5vh, 1.75rem);
    padding: 0 0.25rem;
}

.countdown-box {
    flex: 0 1 auto;
    min-width: 0;
    width: clamp(4rem, 18vw, 9.5rem);
}

.time-box {
    padding: 0 0.1rem 0.1rem;
    border-radius: 5px;
    /* background-color: #f51a16; */
    color: #fff8e1;
    margin: 0 auto;
    text-align: center;
    width: 100%;
    font-size: clamp(1.7rem, 7vw, 7rem);
    font-weight: 700;
    line-height: 0.9;
    text-shadow: 0 2px 8px rgba(90, 0, 0, 0.75);
    /* box-shadow: 5px 5px 5px rgb(0, 0, 0); */
}

.day{
    border-radius: 27% 60% 5px 10px;
}

.hour{
    border-radius: 66% 33% 5px 10px;
}

.minute{
    border-radius: 99% 50% 5px 10px;
}

.second{
    border-radius: 35% 45% 5px 10px;
}

.time-unit{
    font-size: clamp(2rem, 3.5vw, 6rem);
    color: #ffe082;
    text-align: center;
    text-shadow: 0 2px 6px rgba(90, 0, 0, 0.8);
    line-height: 1.1;
}

.bonheur-royale-regular {
  font-family: "Bonheur Royale", cursive;
  font-weight: 400;
  font-style: normal;
}

.montserrat-font {
    font-family: "Montserrat", serif;
    font-optical-sizing: auto;
    font-style: normal;
  }


.ephesis-regular {
    font-family: "Ephesis", serif;
   
    font-style: normal;

}

.department {
    padding-top: 3rem;
    font-size: 3rem;
    color: #ffee00;
    font-weight: 700;
    text-shadow: 4px 4px 3px #333;
}

@media (max-width: 768px) {
    body {
        padding-bottom: clamp(2.5rem, 12vh, 5.5rem);
    }

    .countdown {
        margin-top: clamp(0.3rem, 2vh, 1rem);
        gap: 0.35rem;
    }

    .text {
        font-size: clamp(2.2rem, 11vw, 4.5rem);
    }
}

@media (max-width: 480px) {
    .text {
        font-size: clamp(2rem, 12vw, 3.1rem);
    }

    .time-box {
        font-size: clamp(1.45rem, 9vw, 2.3rem);
    }

    .time-unit {
        font-size: clamp(1rem, 3.4vw, 2rem);
    }

    .mute-btn {
        padding: 4px 16px;
        font-size: 1em;
    }
}

@media (max-height: 700px) {
    body {
        justify-content: flex-start;
        height: 100dvh;
        padding-top: 10rem;
        padding-bottom: clamp(2.25rem, 12vh, 5.5rem);
    }

    .countdown {
        margin-top: 0.5rem;
    }

    .text {
        font-size: clamp(2rem, 8vw, 4rem);
    }

    .time-box {
        font-size: clamp(1.4rem, 6vh, 3rem);
    }

    .time-unit {
        font-size: clamp(0.7rem, 2.5vh, 1.4rem);
    }
}

#bg-music {
    position: absolute;
    width: 1px;
    height: 1px;
    left: -9999px;
    border: 0;
    pointer-events: none;
}

/* Add this to styles.css */
.mute-btn {
  position: fixed;
  left: 50%;
  bottom: clamp(0.75rem, 3vh, 1.5rem);
  transform: translateX(-50%);
  z-index: 2;
  background: #fd130b;
  color: #bd1414;
  border: none;
  border-radius: 25px;
  padding: 5px 24px;
  font-size: 1.2em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: background 0.2s, color 0.2s;
}

.mute-btn:hover {
  background: #f66f60;
  color: #000;
}

.mute-btn:active {
  background: #ffe082;
}