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*/
}

/* 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 10s 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: 4;
}

.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);
}

.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;
}

/* day-night button */
.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: 32px;
  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);
}

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

.banner-container {
  position: absolute;
  animation: fly 10s 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);
    z-index: -5;
  }
  &:after {
    content: '';
    width: 40px;
    height: 2px;
    background: #eee;
    position: absolute;
    right: 35px;
    top: 9px;
    transform: rotate(-210deg);
    z-index: -5;
  }
}

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

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