@import url("https://fonts.googleapis.com/css2?family=Pacifico&display=swap");

body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #87ceeb; /*day color*/
  transition: background-color 0.5s;
  overflow: hidden;
  margin: 0;
}

body.night {
  background-color: #2c3e50; /*night color*/
}

.eiffel-tower.desktop {
  position: relative;
  width: 200px;
  height: 400px;
}

.eiffel-tower.mobile {
  display: none;
}

.base {
  position: absolute;
  bottom: 0px;
  width: 60px;
  background-color: #e7d4b5;
  box-shadow: 0 8px 5px rgba(0, 0, 0, 0.1);
}

.base-left {
  left: 9%;
  height: 170px;
  transform: skewX(-10deg);
  border-radius: 20px 20px 20px 20px;
}

.base-right {
  right: 9%;
  height: 170px;
  transform: skewX(10deg);
  border-radius: 20px 20px 20px 20px;
}

.leg {
  position: absolute;
  bottom: 130px;
  width: 45px;
  background-color: #e7d4b5;
}

.leg-left {
  left: 20%;
  height: 130px;
  transform: skewX(-10deg);
}

.leg-right {
  right: 20%;
  height: 130px;
  transform: skewX(10deg);
}

.leg-top {
  left: 50%;
  height: 90px;
  width: 60px;
  bottom: 260px;
  background-color: #e7d4b5;
  transform: translateX(-50%);
}

/* First level platform */
.first-level {
  position: absolute;
  bottom: 140px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 40px;
  background-color: #ffe8c5;
  border-radius: 40px;
  box-shadow: 0 8px 5px rgba(0, 0, 0, 0.1);
}

.second-level {
  position: absolute;
  bottom: 250px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 30px;
  background-color: #ffe8c5;
  border-radius: 40px;
  box-shadow: 0 8px 5px rgba(0, 0, 0, 0.1);
}

.third-level {
  position: absolute;
  bottom: 328px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 30px;
  background-color: #ffe8c5;
  border-radius: 30px;
  box-shadow: 0 8px 5px rgba(0, 0, 0, 0.1);
}

.top {
  position: absolute;
  bottom: 346px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 70px solid #e7d4b5;
}

.antenna {
  position: absolute;
  bottom: 410px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 30px;
  background-color: #a0937d;
  border-radius: 40px;
}

/* plane */
.airplaneAnimation {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  left: 0;
  top: 0;
}

.plane {
  position: absolute;
  animation: fly 4s linear infinite;
  left: -110px;
}

@keyframes fly {
  from {
    left: -150px;
  }
  to {
    left: 100%;
  }
}

.main {
  position: absolute;
  width: 220px;
  height: 40px;
  background-color: #f4a6b8;
  border-radius: 0 100px 30px 100px;
  overflow: hidden;
  box-shadow: inset -10px -10px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.main:before,
.main:after {
  content: "";
  position: absolute;
  background-color: #ffffff;
  top: 10px;
}

.main:before {
  width: 40px;
  height: 10px;
  border-radius: 0 0 0 30px;
  left: 190px;
}

.main:after {
  width: 5px;
  height: 10px;
  border-radius: 20px;
  left: 160px;
  box-shadow: -10px 0 #ffffff, -20px 0 #ffffff, -30px 0 #ffffff, -40px 0 #ffffff,
    -50px 0 #ffffff, -60px 0 #ffffff, -70px 0 #ffffff, -80px 0 #ffffff,
    -90px 0 #ffffff, -100px 0 #ffffff, -110px 0 #ffffff, -120px 0 #ffffff;
}

.wingOne {
  position: absolute;
  width: 20px;
  border-right: 20px solid transparent;
  border-left: 20px solid transparent;
  border-top: 80px solid #f4a6b8;
  height: 0;
  top: 15px;
  left: 60px;
  transform: skew(-45deg) rotateX(30deg);
  z-index: 2;
}

.wingTwo {
  position: absolute;
  width: 20px;
  border-right: 20px solid transparent;
  border-left: 20px solid transparent;
  border-bottom: 80px solid #f18fa6;
  height: 0;
  top: -45px;
  left: 60px;
  transform: skew(45deg) rotateX(30deg);
  z-index: 1;
}

.wingTwo:after {
  content: "";
  position: absolute;
  width: 20px;
  border-right: 15px solid transparent;
  border-left: 15px solid transparent;
  border-bottom: 35px solid #f4a6b8;
  height: 0;
  left: -100px;
  top: 29px;
}

.wingOne:after {
  content: "";
  position: absolute;
  width: 20px;
  height: 25px;
  background-color: #f4a6b8;
  top: -105px;
  left: -140px;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
}

.wingTwo:before {
  content: "";
  position: absolute;
  width: 20px;
  height: 25px;
  background-color: #f18fa6;
  left: -80px;
  top: 35px;
  transform: skew(-55deg);
}

/* clouds */
.clouds {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
}

@keyframes cloud {
  from {
    left: -150px;
  }
  to {
    left: 100%;
  }
}

.cloud {
  position: absolute;
  width: 200px;
  height: 40px;
  background-color: #fff;
  border-radius: 100px;
  opacity: 0.8;
  box-shadow: 0 8px 5px rgba(0, 0, 0, 0.1);
}

.cloud:before,
.cloud:after {
  content: "";
  position: absolute;
  background-color: #fff;
  border-radius: 70%;
}

.cloud:before {
  width: 100px;
  height: 110px;
  top: -70px;
  left: 20px;
}

.cloud:after {
  width: 100px;
  height: 90px;
  top: -50px;
  right: 10px;
}

.cloudOne {
  top: 95px;
  left: 50;
  transform: scale(0.7);
  animation: cloud 25s linear infinite;
}

.cloudTwo {
  top: 200px;
  left: -200px;
  transform: scale(0.71);
  animation: cloud 18s linear infinite;
}

.cloudThree {
  top: 300px;
  left: -170px;
  transform: scale(0.63);
  animation: cloud 13s linear infinite;
}

.cloudFour {
  top: 250px;
  left: -280px;
  transform: scale(0.68);
  animation: cloud 5.5s linear infinite;
}

.cloudFive {
  top: 50px;
  left: -300px;
  transform: scale(0.8);
  animation: cloud 13s linear infinite;
}

.cloudSix {
  top: 400px;
  left: -130px;
  transform: scale(0.74);
  animation: cloud 13s linear infinite;
}

.cloudSeven {
  top: 550px;
  left: -170px;
  transform: scale(0.6);
  animation: cloud 5s linear infinite;
}
.cloudEight {
  top: 650px;
  left: -80px;
  transform: scale(0.65);
  animation: cloud 8s linear infinite;
}

.cloudNine {
  top: 690px;
  left: -280px;
  transform: scale(0.72);
  animation: cloud 4s linear infinite;
}

/* land */

.landOne {
  position: absolute;
  width: 100%;
  height: 400px;
  background-color: #97be5a;
  bottom: 0;
  left: 0;
}

.landOne.night-mode {
  background-color: #f18fa6;
}

/* sun */

.sun-light {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background-color: #ffde4d;
  left: calc(80% - 100px);
  top: calc(20% - 100px);
  opacity: 0.9;
  bottom: 900px;
  z-index: -1;
  display: inline-block;
}

/* fireworks */

.fireworks-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

.firework {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 5px;
  height: 5px;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 0 10px white;
  animation: firework-launch 1.3s ease-out forwards;
}

@keyframes firework-launch {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  99% {
    transform: translateY(-100vh);
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.explosion {
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 5px;
  background-color: white;
  border-radius: 50%;
  opacity: 0;
  animation: explosion-animation 0.5s ease-out forwards;
}

@keyframes explosion-animation {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(10);
    opacity: 0;
  }
}

/* day-night button */

.icon.sun {
  font-family: "Pacifico", cursive;
  font-size: 20px;
  color: #112211;
}

.theme-toggle {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #f0f0f0;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 34px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  transform: translateX(-50%) scale(1.05);
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.theme-toggle .icon {
  position: absolute;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-toggle .sun {
  opacity: 1;
  transform: rotate(0);
}

.theme-toggle .moon {
  opacity: 0;
  transform: rotate(-90deg);
}

body.night .theme-toggle .sun {
  opacity: 0;
  transform: rotate(90deg);
}

body.night .theme-toggle .moon {
  opacity: 1;
  transform: rotate(0);
}

.banner-container {
  position: absolute;
  animation: fly 4s linear infinite;
}

.rope {
  content: "";
  width: 40px;
  height: 2px;
  background: #eee;
  position: absolute;
  right: 10px;
  top: 55%;
  &:before {
    content: "";
    width: 40px;
    height: 2px;
    background: #eee;
    position: absolute;
    right: 35px;
    top: -9px;
    transform: rotate(210deg);
  }
  &:after {
    content: "";
    width: 40px;
    height: 2px;
    background: #eee;
    position: absolute;
    right: 35px;
    top: 9px;
    transform: rotate(-210deg);
  }
}

.banner {
  text-align: center;
  line-height: 44px;
  width: 300px;
  height: 44px;
  position: absolute;
  top: -22px;
  left: -382px;
  background: #ffffff;
}

.triangle {
  left: 0px;
  border-bottom: 22px solid transparent;
  border-top: 22px solid transparent;
  border-left: 22px solid;
  width: 0;
  height: 0;
  position: absolute;
  transition: border-left-color 0.5s;
}

/* media query */
@media (max-width: 1024px) {
  .landOne {
    height: 20%;
    position: absolute;
    width: 100%;
  }

  .sun-light {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #ffde4d;
    left: calc(80% - 100px);
    top: calc(20% - 100px);
    opacity: 0.9;
    bottom: 900px;
    z-index: -1;
    display: inline-block;
  }
}

@media (max-width: 600px) {
  body {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
  }

  .eiffel-tower.desktop {
    display: none;
  }

  .eiffel-tower.mobile {
    display: block;
    position: relative;
    width: 150px;
    height: 300px;
  }

  .base {
    position: absolute;
    bottom: 0px;
    width: 40px;
    background-color: #e7d4b5;
    box-shadow: 0 8px 5px rgba(0, 0, 0, 0.1);
  }

  .base-left {
    left: 9%;
    height: 80px;
    transform: skewX(-10deg);
    border-radius: 20px 20px 20px 20px;
  }

  .base-right {
    right: 9%;
    height: 80px;
    transform: skewX(10deg);
    border-radius: 20px 20px 20px 20px;
  }

  .leg {
    position: absolute;
    bottom: 80px;
    width: 40px;
    background-color: #e7d4b5;
  }

  .leg-left {
    left: 20%;
    height: 80px;
    transform: skewX(-10deg);
  }

  .leg-right {
    right: 20%;
    height: 80px;
    transform: skewX(10deg);
  }

  .leg-top {
    left: 50%;
    height: 40px;
    width: 50px;
    bottom: 180px;
    background-color: #e7d4b5;
    transform: translateX(-50%);
  }

  .first-level {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 30px;
    background-color: #ffe8c5;
    border-radius: 40px;
    box-shadow: 0 8px 5px rgba(0, 0, 0, 0.1);
  }

  .second-level {
    position: absolute;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 30px;
    background-color: #ffe8c5;
    border-radius: 40px;
    box-shadow: 0 8px 5px rgba(0, 0, 0, 0.1);
  }

  .third-level {
    position: absolute;
    bottom: 210px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 30px;
    background-color: #ffe8c5;
    border-radius: 30px;
    box-shadow: 0 8px 5px rgba(0, 0, 0, 0.1);
  }

  .top {
    position: absolute;
    bottom: 230px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 70px solid #e7d4b5;
  }

  .antenna {
    position: absolute;
    bottom: 297px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 20px;
    background-color: #a0937d;
    border-radius: 40px;
  }
  .landOne {
    position: absolute;
    width: 100%;
    height: 180px;
  }

  .sun-light {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #ffde4d;
    left: calc(80% - 100px);
    top: calc(20% - 100px);
    opacity: 0.9;
    bottom: 900px;
    z-index: -1;
    display: inline-block;
  }
}
