@import url("https://fonts.googleapis.com/css?family=Lato:400,700|Montserrat:900");

html {
  display: grid;
  min-height: 100%;
}

body {
  display: grid;
  margin: 0;
}

.link {
  position: absolute;
  top: 10px;
  left: 0;
  height: 100px;
  z-index: 2;
}

.background {
  position: relative;
  width: 100%;
  height: 100vh;
  background-image: url("./holiday.jpg");
  background-size: cover;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.carousel-main {
  position: relative;
  width: 100%;
  height: calc(100vh - 140px);
  background-color: #276FBF;
  flex: 1;
}

/* Fade effect enhancements */
.carousel-main.flickity-enabled.is-fade .flickity-slider {
  position: relative;
}

.carousel-main.flickity-enabled.is-fade .flickity-slider > .slide {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
}

.carousel-main.flickity-enabled.is-fade .flickity-slider > .slide.is-selected {
  opacity: 1;
  z-index: 1;
}

.carousel-nav {
  position: relative;
  width: 100%;
  height: 140px;
  background-color: #183059;
  padding: 10px 0;
  flex-shrink: 0;
}


.container {
  top: calc(50% - 240px);
  position: relative;
  margin: auto;
  overflow: hidden;
  width: 650px;
  height: 480px;
}

h1 {
  font-family: "Lato", sans-serif;
  text-align: center;
  margin-top: 1em;
  font-size: 2em;
  text-transform: uppercase;
  letter-spacing: 5px;
  color: #f56821;
  background-color: white;
}

#timer {
  color: #F6F4F3;
  text-align: center;
  text-transform: uppercase;
  font-family: "Lato", sans-serif;
  font-size: 0.7em;
  letter-spacing: 5px;
  margin-top: 25%;
}

.days,
.hours,
.minutes,
.seconds {
  display: inline-block;
  padding: 20px;
  width: 100px;
  border-radius: 5px;
}

.days {
  background: #EF2F3C;
}

.hours {
  background: #F6F4F3;
  color: #183059;
}

.minutes {
  background: #276FBF;
}

.seconds {
  background: #F0A202;
}

.numbers {
  font-family: "Montserrat", sans-serif;
  color: #183059;
  font-size: 4em;
}

.white {
  position: absolute;
  background: #F6F4F3;
  height: 85px;
  width: 75px;
  left: 30%;
  top: 2%;
}

.white .triangle {
  border-bottom: 14px solid #F6F4F3;
}

.white .string {
  background: #F6F4F3;
  border: 1px solid #F6F4F3;
}

.red {
  position: absolute;
  background: #EF2F3C;
  left: 18%;
  top: 9%;
  height: 65px;
  width: 70px;
}

.red .triangle {
  border-bottom: 14px solid #EF2F3C;
}

.red .string {
  background: #EF2F3C;
  border: 1px solid #EF2F3C;
}

.blue {
  position: absolute;
  background: #276FBF;
  height: 80px;
  width: 80px;
  left: 60%;
  top: 5%;
}

.blue .triangle {
  border-bottom: 14px solid #276FBF;
}

.blue .string {
  background: #276FBF;
  border: 1px solid #276FBF;
}

.balloon {
  border: 1px solid #000;
  border-radius: 50% 50% 50% 50%/40% 40% 60% 60%;
  z-index: 2;
}

.eye {
  position: absolute;
  width: 7px;
  height: 7px;
  top: 40%;
  left: 22%;
  background: #000;
  border-radius: 50%;
}

.eye:after {
  content: "";
  left: 35px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #000;
  position: absolute;
}

.mouth {
  position: absolute;
  top: 45%;
  left: 43%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.happy {
  border: 2px solid;
  border-color: transparent #000 #000 transparent;
  transform: rotate(45deg);
}

.triangle {
  position: absolute;
  left: 40%;
  bottom: -10%;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
}

.string {
  position: absolute;
  height: 70px;
  width: 1px;
  left: 48%;
  top: 100%;
  z-index: -1;
}

.star {
  width: 20px;
  height: 20px;
  background: #F6F4F3;
  -webkit-clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.star-red {
  width: 30px;
  height: 30px;
  margin-left: 51px;
  margin-top: -5px;
  background: #EF2F3C;
  -webkit-clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

footer {
  position: fixed;
  bottom: 0;
  right: 0;
  text-transform: uppercase;
  padding: 10px;
  font-family: "Lato", sans-serif;
  font-size: 0.7em;
}

footer p {
  letter-spacing: 3px;
  color: #EF2F3C;
}

footer a {
  color: #F6F4F3;
  text-decoration: none;
}

footer a:hover {
  color: #276FBF;
}


.slide {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide-nav {
  width: 100px;
  height: 100px;
  margin-right: 10px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.slide-nav:hover,
.slide-nav.is-nav-selected {
  opacity: 1;
  border-style: solid;
  border-color: rgb(245, 104, 33);
  box-sizing: border-box;
  border-radius: 7px;

}

.slide-nav img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 5px;
}

/* Lazy loading styles - only for main carousel */
.carousel-main .slide img {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.carousel-main .slide img.flickity-lazyloaded {
  opacity: 1;
}

.carousel-main .slide img.flickity-lazyerror {
  opacity: 0.5;
}

/* For fade effect, ensure images are visible when parent slide is selected */
.carousel-main.flickity-enabled.is-fade .slide.is-selected img.flickity-lazyloaded {
  opacity: 1;
}

/* Navigation carousel images - always visible */
.slide-nav img {
  opacity: 1;
}
