/* Scoped Mother Wrapper */
#emergency_wrapper {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  font-family: 'Arial', sans-serif;
  background-color: #120413;
}

/* Background Night Sky */
#emergency_wrapper #mt-bluesky {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(21, 10, 26);
  z-index: 1;
}

/* Stars Background */
#emergency_wrapper #stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 70%;
  background: radial-gradient(2px 2px at 20px 30px, #fff, rgba(0,0,0,0)),
              radial-gradient(2px 2px at 40px 70px, #fff, rgba(0,0,0,0)),
              radial-gradient(1px 1px at 90px 40px, #fff, rgba(0,0,0,0)),
              radial-gradient(2px 2px at 160px 120px, #fff, rgba(0,0,0,0)),
              radial-gradient(1.5px 1.5px at 230px 80px, #fff, rgba(0,0,0,0)),
              radial-gradient(2px 2px at 310px 150px, #fff, rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 350px 200px;
  z-index: 2;
}

/* Shooting Star */
#emergency_wrapper #sstar {
  position: absolute;
  width: 150px;
  height: 2px;
  background: linear-gradient(-45deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
  transform: rotate(-35deg);
  z-index: 3;
}

/* Moon & Rabbit */
#emergency_wrapper #moon {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  background: #ffe366;
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(255, 227, 102, 0.5);
  z-index: 4;
}
/* 
#emergency_wrapper #moon::after {
  content: '';
  position: absolute;
  top: -10px;
  left: -25px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background-color: #150a1a;
} */

#emergency_wrapper #moon::before {
  content: '';
  position: absolute;
  right: 15px;
  top: 20px;
  font-size: 45px;
  z-index: 5;
  transform: scaleX(-1);
}

/* Hook Line */
#emergency_wrapper #hock {
  position: absolute;
  left: 50%;
  top: 130px;
  width: 2px;
  height: 220px;
  background: rgba(255, 255, 255, 0.3);
  z-index: 5;
  transform-origin: top center;
  animation: swing 3s ease-in-out infinite alternate;
  display: none;
}

/* 404 Title */
#emergency_wrapper #title {
  position: absolute;
  top: 340px;
  left: 50%;
  transform: translateX(-50%) rotate(-10deg);
  color: #ffffff;
  font-size: 90px;
  font-weight: 900;
  letter-spacing: 12px;
  text-shadow: 3px 5px 0px rgba(0,0,0,0.5);
  z-index: 6;
  animation: swingText 3s ease-in-out infinite alternate;
}

/* "OH NO" Label */
#emergency_wrapper #oh {
  position: absolute;
  top: 310px;
  left: calc(50% - 160px);
  color: #a4ce00;
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  transform: rotate(-15deg);
  z-index: 6;
}

/* Text Section & Button */
#emergency_wrapper .txt {
  position: absolute;
  top: 480px;
  width: 100%;
  text-align: center;
  z-index: 7;
}

#emergency_wrapper .txt p {
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 25px;
  letter-spacing: 0.5px;
}

#emergency_wrapper .btn {
  display: inline-block;
  padding: 12px 36px;
  background-color: var(--theme-color-second);
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  text-transform: uppercase;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

#emergency_wrapper .btn:hover {
  background-color: #9bd64f;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Base Landscape Silhouette */
#emergency_wrapper #mt-base {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to top, #1c2e08 0%, #111d04 100%);
  border-top: 4px solid #2d450d;
  z-index: 3;
  display: none;
}

/* Animations */
@keyframes swing {
  0% { transform: rotate(-5deg); }
  100% { transform: rotate(5deg); }
}

@keyframes swingText {
  0% { transform: translateX(-52%) rotate(-12deg); }
  100% { transform: translateX(-48%) rotate(-6deg); }
}