/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

 @font-face {
  font-family: Cepheid Sans Bold;
  font-display: swap;
  src: url(../fonts/VlvLPcu2ZqUYlX9c0XnMOeDIhY.woff2) format("truetype");
}

@font-face {
  font-family: Cepheid Sans Regular Placeholder;
  font-display: swap;
  src: url(../fonts/URdKmRWjgXffMOXKVsizM17Do.woff2) format("truetype");
}

:root {
  --main-color: #0c4675;
  --main-color-light: #0098ff;
  --modal-text-color: #0077c8;
  --modal-theme-green: #8DC63F;
  --modal-theme-purple: #7979B9;
  --swiper-pagination-color: white;
}
.app {
  overflow: hidden;
  min-height: 100vh;
  min-width: 100%;
  display: flex;
  align-items: center;
  font-family: "Cepheid Sans Bold", "Cepheid Sans Bold Placeholder", sans-serif;
  justify-content: center;
}

footer {
  position: relative;
  z-index: 1;
}

#snow canvas {
  position: absolute !important;
}

.container {
  z-index: 1;
  background-image: url("../img/bg-desktop.png");
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  background-size: cover;
  max-width: 1920px;
  max-height: 1080px;
  width: 100vw;
  height: 100vh;
}

.container .tooltip.fade-in {
  animation: show-tooltip 0.5s ease-in-out;
}

.container .tooltip {
  display: none;
  z-index: 9999;
  width: 175px;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  background-color: #000;
  color: #fff;
  border-radius: 6px;
  padding: 0.4rem;
  font-size: 0.85rem;
}

.container .tooltip::after {
  content: " ";
  position: absolute;
  top: 100%; /* At the bottom of the tooltip */
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: black transparent transparent transparent;
}

.calendar-title {
  margin-bottom: 10px;
  margin-top: -20px;
}

.calendar-title img {
  width: 120px;
  height: auto;
}
.tomorrow{
  display: none;
}
.calendar-cases {
  max-width: 940px;
  max-height: 60vh;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  width: 50vw;
}

.case {
  cursor: pointer;
  background-color: #000;
  border: 1px solid #000;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0px 7px 6px -6px rgba(255, 255, 255, 0.25), inset 0px 6px 4px -5px rgba(255, 255, 255, 0.25), inset 0px 0px 2px 1px rgba(0, 0, 0, 0.25);
  transition: transform 0.5s ease-in-out;
  width: 10vw;
  height: 10vw;
  max-width: 168px;
  max-height: 168px;
}

.case-with-icon img {
  margin-top: 1rem;
  width: 5vw;
  max-width: 75px !important;
}

.regular-case {
  background-image: url("../img/regular-case.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.blue-case {
  background-image: url("../img/blue-case.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.regular-case span {
  margin-top: 0.5rem;
  font-size: 4vw;
  font-weight: bold;
  /* color: var(--main-color-light); */
  color: transparent;
  text-shadow: 0px 0px 0px var(--main-color-light), 0 1px 1px #ffffff6e, 0px 0px 2px #000;
}

.blue-case span {
  margin-top: 0.5rem;
  /* color: var(--main-color); */
  color: transparent;
  font-size: 4.5rem;
  font-weight: bold;
  text-shadow: 0px 0px 0px var(--main-color), 0 1px 2px #ffffff6e, 0px 0px 1px #000;
}

.case-with-icon span {
  margin-top: 0;
  font-size: 2vw;
  position: absolute;
  top: 0;
  right: 0.5rem;
}

.case-of-the-day.regular-case .animated-case{
  background-image: url("../img/grey-case.png");
  background-position-x: center;
  background-position-y: center;
  background-size: contain;
  background-repeat: no-repeat;
}

.case-clicked .case.case-of-the-day .animated-case{
  animation: stop;
}

.case-of-the-day .animated-case{
  position: absolute;
  width: 100%;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .25s filter ease-in, .25s -webkit-filter ease-in;
}

.case-of-the-day .animated-case:hover {
  filter: brightness(1.3);
}

#confetti {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  width: 500px;
  height: 475px;
}

.case-clicked .case {
  border: none;
  transform: scale(1.05);
  box-shadow: 0px 8px 30px #000000d1;
  animation: none;
  background-color: transparent;
}

.case-container{
  position: relative;
  padding: 5px;
  flex: 1 1 25%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.beam{
  display: none;
  content: "";
  position: absolute;
  background-position: bottom;
  background-repeat: no-repeat;
  bottom: 30px;
  left: 0;
  right: 0;
  left: 50%;
  transform: translateX(-50%);
  animation: show-flare 0.5s ease-in-out;
  width: 30vw;
  height: 36vh;
  max-width: 600px;
  max-height: 400px;
  background-size: contain;
}

.case-clicked .beam{
  display: block;
}

.beam.purple-beam{
  background-image: url(../img/purple-beam.png);
}

.beam.blue-beam{
  background-image: url(../img/blue-beam.png);
}

.beam.yellow-beam{
  background-image: url(../img/yellow-beam.png);
}

@keyframes show-flare {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-active {
  display: block;
}

.modal-active .content-modal {
  animation: show-popup 0.5s ease-in-out;
}

.content-modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  width: 50%;
  min-width: 300px;
  max-width: 380px;
}

.content-modal h3 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 1rem;
  line-height: 1.2em;
  color: var(--modal-text-color);
}

.content-modal .day {
  display: flex;
  flex-direction: column;
  text-align: center;
  width: 20%;
  margin-bottom: 1.5rem;
}

.content-modal .day-name {
  font-weight: 400;
  font-family: "Roboto", Sans-serif;
}

.content-modal .day-number {
  font-size: 60px;
  line-height: 1.2em;
  font-weight: bold;
  color: #000;
}

.content-modal .learn-more {
  margin-top: 1.5rem;
}

.content-modal .learn-more a {
  color: #fff;
  border: 1px solid var(--modal-text-color);
  color: var(--e-global-color-4136ee6);
  background-color: var(--e-global-color-primary);
  border-radius: 5px 5px 5px 5px;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  transition: all .3s;
}

.content-modal .learn-more a:hover {
  background-color: #fff;
  color: var(--modal-text-color);
}

.content-modal .learn-more a:hover,
.content-modal .learn-more a:focus {
  outline: none;
}

.modal .description {
  font-family: "Cepheid Sans Regular", "Cepheid Sans Regular Placeholder", sans-serif;
}

.content-modal .close-button {
  position: absolute;
  right: 24px;
  top: 24px;
  width: 16px;
  cursor: pointer;
}

.content-modal .ps {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: #888888;
}

.content-modal .theme {
  font-size: 16px;
  font-weight: 600;
  line-height: 0.5;
  text-transform: uppercase;
  line-height: 1.2em;
  color: var(--modal-theme-green);
}

.content-modal .theme.purple-theme {
  font-size: 16px;
  font-weight: 600;
  line-height: 0.5;
  text-transform: uppercase;
  line-height: 1.2em;
  color: var(--modal-theme-purple);
}

.bullets{
  display: none;
}

@keyframes show-popup {
  0% {
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 0;
  }
  45% {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 1;
  }
  80% {
    transform: translate(-50%, -50%) scale(0.95);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes show-tooltip {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }
  45% {
    transform: scale(1.05);
    opacity: 1;
  }
  80% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

.swiper {
  display: none;
}

/* RESPONSIVE */
@media screen and (max-width: 1024px) {
  .calendar-cases {
    display: none;
  }

  .swiper-container, .swiper {
    overflow: visible !important; 
  }
  .swiper-slide{
    transition: opacity 0.5s ease-in-out;
    opacity: 0 !important;
    visibility: hidden;
  }
  .swiper-slide-active{
    opacity: 1 !important;
    visibility: visible;
  }

  .bullets{
    position: relative;
  }

  .bullets .swiper-pagination .swiper-pagination-bullet{
    width: 11px;
    height: 11px;
    border: 2px solid #FFF;
    opacity: 1;
    background-color: transparent;
  }

  .bullets .swiper-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active{
    background-color: #FFF;
  }
}

@media screen and (max-width: 1024px) and (min-width: 431px) {
  .beam{
    width: 70vw;
    height: 70vh;
  }

  .bullets .swiper-pagination{
    bottom: -100px !important;
  }

  .container {
    background-image: url("../img/bg-tab.png");
    max-width: 1024px;
  }

  .swiper-slide{
    display: flex;
    flex-wrap: wrap;
  }

  .swiper.tab {
    display: block;
    max-width: 430px;
    max-height: 600px;
    width: 50vw;
    height: 60vh;
  }

  .bullets.mob{
    display: none;
  }

  .calendar-title{
    margin-top: 0;
    margin-bottom: 0;
  }

  .case-container{
    flex: 1 1 50%;
  }

  .case{
    width: 18vw;
    height: 18vw;
  }

  .regular-case span{
    font-size: 8vw;
  }

  .case-with-icon img{
    width: 8vw;
  }

  .case-with-icon span{
    font-size: 4vw;
  }

  .bullets.tab{
    display: block;
  }
}

@media screen and (max-width: 430px) {
  .container {
    background-image: url("../img/bg-mob.png");
  }

  .beam{
    width: 150vw;
    height: 100vh;
  }

  .swiper.mob {
    display: block;
    max-width: 252px;
    max-height: 580px;
  }

  .bullets.mob{
    display: block;
  }

  .case{
    width: 46vw;
    height: 46vw;
  }

  .bullets .swiper-pagination{
    bottom: -50px !important;
  }

  .regular-case span{
    font-size: 20vw;
  }

  .case-with-icon img{
    width: 20vw;
  }

  .case-with-icon span{
    font-size: 10vw;
  }
}