* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

@font-face {
  font-family: 'Soda Land';
  src: url(assets/fonts/SODA-LAND.REGULAR.TTF);
}

@font-face {
  font-family: 'Happy Groovy';
  src: url(assets/fonts/HAPPYGROOVY-MVDWV.OTF);
}

@font-face {
  font-family: 'Congrats Script';
  src: url(assets/fonts/CONGRATS-SCRIPT.REGULAR.TTF);
}

:root {
  --text: "Soda Land";
  --heading: "Happy Groovy";
  --sub-heading: "Congrats Script";
  --primary: #AD8B73;
  --action-primary: #E3CAA5;
  --action-secondary: #FFFBE9;
}

html,
body {
  height: 100%;
  width: 100%;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;

}

/* mobile media query */
@media only screen and (max-width:768px) {
  .hidden {
    display: none;
  }

  #countdownOverlay {
    width: 100%;
    height: 100%;
    background-color: var(--action-primary);
    font-size: 3rem;
    display: flex;
    color: var(--action-secondary);
    justify-content: center;
    align-items: center;
    font-family: var(--text);
  }

  #countdownOverlay #NA {
    max-width: 70%;
    text-align: center;
  }

  #countdownOverlay #NA:before {
    content: "Sorry, this site is not available for your device yet.";
  }
}


/* tab media query */
@media only screen and (min-width:769px) {
  #countdownOverlay {
    position: absolute;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-family: var(--heading);
    color: var(--action-secondary);
  }

  #countdownOverlay #timer {
    font-size: 8rem;
    position: absolute;
    transition: .3s ease;
    z-index: 5;
  }

  .upper p,
  .lower p {
    font-size: 8rem;
    opacity: 0;
    transition: .8s ease;
  }

  .upper {
    position: relative;
    height: 50%;
    width: 100%;
    top: 0%;
    background-color: var(--action-primary);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: all .8s ease;
  }


  .lower {
    padding: 10px;
    display: flex;
    justify-content: center;
    width: 100%;
    height: 50%;
    background-color: var(--action-primary);
    position: relative;
    bottom: 0;
    transition: .8s ease;
  }

  #text {
    cursor: pointer;
    position: absolute;
    bottom: 4.5%;
    left: 4rem;
    z-index: 5;
    padding: 6px 12px;
    font-size: 1.8rem;
    border-radius: 6px;
    background-color: var(--action-primary);
    color: var(--action-secondary);
    font-family: "Soda Land";
    display: none;
  }


  .hero {
    cursor: pointer;
    position: absolute;
    display: flex;
    bottom: 4.5%;
    left: 4rem;
    width: 40vw;
    gap: 14px;
    align-items: center;
    z-index: 5;
    display: none;
  }

  #bgm {
    position: absolute;
    bottom: 4.5%;
    left: 4rem;
    z-index: 10;
    cursor: pointer;
  }

  #main {
    width: 100%;
    height: 100%;
    position: relative;
  }


  #section1 {
    position: relative;
    height: 100%;
    width: 100%;
    background-color: var(--primary);
  }

  #navBar {
    display: flex;
    position: fixed;
    z-index: 5;
    width: 100%;
    justify-content: space-between;
    align-items: start;
    padding-left: 4rem;
  }

  .text {
    height: 9rem;
  }

  .flag {
    width: 32rem;
    position: absolute;
    right: 0;
    top: -30%;
  }

  #age {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -100%);
    font-size: 12rem;
    color: var(--action-primary);
    font-family: var(--heading);
    transition: .3s ease;
  }

  #tap {
    position: absolute;
    background-color: var(--action-primary);
    display: flex;
    border-radius: 8px;
    gap: 4px;
    padding: 6px 12px;
    font-size: 2rem;
    font-family: "Soda Land";
    color: var(--action-secondary);
    transform: translate(70%, 400%);
    z-index: 2;
    pointer-events: none;
    transition: .3s ease;
  }

  #tap img {
    height: 40px;
    transform: rotate(-20deg);
  }

  #cake {
    cursor: pointer;
    position: absolute;
    width: 250px;
    height: 200px;
    top: 65%;
    left: 50%;
    margin-top: -70px;
    margin-left: -125px;
  }

  .plate {
    width: 270px;
    height: 110px;
    position: absolute;
    bottom: -10px;
    left: -10px;
    background-color: #ccc;
    border-radius: 50%;
    box-shadow: 0 2px 0 #b3b3b3, 0 4px 0 #b3b3b3, 0 5px 40px rgba(0, 0, 0, 0.5);
  }

  #cake>* {
    position: absolute;
  }

  .layer {
    position: absolute;
    display: block;
    width: 250px;
    height: 100px;
    border-radius: 50%;
    background-color: #553c13;
    box-shadow: 0 2px 0px #6a4b18, 0 4px 0px #33240b, 0 6px 0px #32230b, 0 8px 0px #31230b, 0 10px 0px #30220b, 0 12px 0px #2f220b, 0 14px 0px #2f210a, 0 16px 0px #2e200a, 0 18px 0px #2d200a, 0 20px 0px #2c1f0a, 0 22px 0px #2b1f0a, 0 24px 0px #2a1e09, 0 26px 0px #2a1d09, 0 28px 0px #291d09, 0 30px 0px #281c09;
  }

  .layer-top {
    top: 0px;
  }

  .layer-middle {
    top: 33px;
  }

  .layer-bottom {
    top: 66px;
  }

  .icing {
    top: 2px;
    left: 5px;
    background-color: #f0e4d0;
    width: 240px;
    height: 90px;
    border-radius: 50%;
  }

  .icing:before {
    content: "";
    position: absolute;
    top: 4px;
    right: 5px;
    bottom: 6px;
    left: 5px;
    background-color: #f4ebdc;
    box-shadow: 0 0 4px #f6efe3, 0 0 4px #f6efe3, 0 0 4px #f6efe3;
    border-radius: 50%;
    z-index: 1;
  }

  .drip {
    display: block;
    width: 50px;
    height: 60px;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
    background-color: #f0e4d0;
  }

  .drip1 {
    top: 53px;
    left: 5px;
    transform: skewY(15deg);
    height: 48px;
    width: 40px;
  }

  .drip2 {
    top: 69px;
    left: 181px;
    transform: skewY(-15deg);
  }

  .drip3 {
    top: 54px;
    left: 90px;
    width: 80px;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
  }

  .candle {
    background-color: #7b020b;
    width: 16px;
    height: 50px;
    border-radius: 8px / 4px;
    top: -20px;
    left: 50%;
    margin-left: -8px;
    z-index: 5;
  }

  .candle:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 16px;
    height: 8px;
    border-radius: 50%;
    background-color: #ad030f;
  }

  .flame-thread {
    position: absolute;
    left: 50%;
    top: -13%;
    height: 0.7rem;
    width: 0.18rem;
    background-color: black;
  }

  .flame {
    position: absolute;
    z-index: 2;
    background-color: #F4D03F;
    opacity: 0.9;
    box-shadow: inset 0 -5px 5px #D35400, 5px -5px 20px #FBFFA3;
    width: 20px;
    height: 30px;
    top: -58%;
    left: -10%;
    border-radius: 50%;
    animation: flame 0.5s infinite;
  }

  @keyframes flame {

    from,
    to {
      transform: scale(1, 1);
    }

    25% {
      transform: scale(0.9, 1.1);
    }

    50% {
      transform: scale(1.1, 0.9);
    }

    75% {
      transform: scale(0.95, 1.05);
    }
  }

  #scroll-down,
  #scroll-up {
    position: absolute;
    width: 4.4rem;
    height: 4.4rem;
    bottom: 4.5%;
    right: 4rem;
    border-radius: 50%;
    border: 2px solid var(--action-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  #scroll-down {
    opacity: 0;
  }


  #scroll-down .arrow,
  #scroll-up .arrow {
    height: 25px;
    width: 25px;
    border-left: 2px solid var(--action-secondary);
    border-bottom: 2px solid var(--action-secondary);
    transform: rotate(-45deg);
  }

  #scroll-up .arrow {
    border-left: none;
    border-bottom: none;
    border-right: 2px solid var(--action-secondary);
    border-top: 2px solid var(--action-secondary);
  }

  .scroll-tooltip {
    width: max-content;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    background-color: var(--action-primary);
    position: absolute;
    font-size: 1.5rem;
    z-index: 5;
    opacity: 1;
    color: var(--action-secondary);
    font-family: "Soda Land";
    transition: .5s ease;
    pointer-events: none;
    transform: translateX(-100%);
    /* opacity:0; */
  }

  .scroll-tooltip-arrow {
    position: absolute;
    border-style: solid;
    border-width: 8px 0px 8px 8px;
    border-color: transparent transparent transparent var(--action-primary);
    transform: translate(-50%, -50%);
    right: -10%;
    top: 55%;
  }

  #section2 {
    height: 100%;
    width: 100%;
    position: relative;
    background-color: var(--primary);
    display: none;
  }

  .tooltip {
    width: max-content;
    border-radius: 6px;
    background-color: var(--action-primary);
    position: absolute;
    font-family: "Soda Land";
    color: var(--action-secondary);
    font-size: 1.5rem;
    padding: 0.2rem 0.6rem;
    right: 2%;
    transform-origin: 0 0;
    transform: translateY(40%);
    display: flex;
    align-items: center;
    transition: .5s ease;
    pointer-events: none;
    opacity: 0;
  }

  .tooltip-arrow {
    position: absolute;
    left: 50%;
    transform: translateY(-160%);
    border-style: solid;
    border-width: 0px 12px 12px 12px;
    border-color: transparent transparent var(--action-primary) transparent;
  }


  .card {
    width: 18rem;
    height: 22rem;
    position: absolute;
    background: linear-gradient(to bottom, #FFFFFF, #f2e8e2cd);
    top: 35%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 6px;
    perspective: 1500px;
    transition: .5s ease;
    cursor: pointer;
  }

  .card .cover {
    position: relative;
    height: 100%;
    width: 100%;
    transform-origin: 0 0;
    transform-style: preserve-3d;
    transition: .5s ease;
  }

  .card .front,
  .card .back {
    position: absolute;
    height: 100%;
    width: 100%;
    backface-visibility: hidden;
  }

  .front {
    background: linear-gradient(to bottom, #FFFFFF, #f2e8e2cd);
    border-radius: 6px;
    padding: 16px;
  }

  .card .back {
    background: linear-gradient(to bottom, #FFFFFF, #f2e8e2cd);
    opacity: 0.9;
    border-radius: 6px;
    transform: rotateY(180deg);
  }

  #message {
    position: absolute;
    padding: 0.5rem;
    text-align: center;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    font-family: "Soda Land";
    font-size: 1.2rem;
    border-radius: 6px;
    outline: 2px solid;
    opacity: 0;
    transition: 1s ease;
  }

  #heading {
    font-family: "Happy Groovy";
    font-size: 3.6rem;
    text-align: center;
    height: 70%;
    position: relative;
    top: 50%;
    transform: translateY(-50%);

  }

  #subHeading {
    font-family: "Congrats Script";
    font-size: 2.6rem;
    text-align: center;


  }

}

/* desktop media query */
@media only screen and (min-width:992px) {

  .flag {
    top: -4rem;
    width: 40rem;
  }


  #age {
    top: 50%;
    transform: translate(-50%, -100%);
  }

  .card {
    width: 17rem;
    height: 20rem;
    top: 30%;
  }
}