@import url("https://fonts.googleapis.com/css?family=Pacifico");

body {
  background-image: url("https://images5.alphacoders.com/492/492784.jpg");
  background-repeat: no-repeat;
  background-size: cover;
}

header>h1 {
  text-align: center;
  font-family: "Pacifico", cursive;
  color: #fff;
  font-size: 3rem;
  text-shadow: 3px 3px 5px #0ac7ca;
}

#astronaut>img {
  padding-top: 150px;
  display: block;
  left: 60%;
  animation: anim 20s linear infinite;
  position: absolute;
}

#astronaut2>img {
  padding-top: 150px;
  display: block;
  left: 15%;
  position: absolute;
  animation: anim2 20s linear infinite;
  animation-delay: 1s;
}

@keyframes anim {
  0% {
    transform: translateY(0px);
  }

  10% {
    transform: translateY(30px) rotate(10deg);
  }

  20% {
    transform: translateY(60px) rotate(20deg);
  }

  30% {
    transform: translateY(90px) rotate(30deg);
  }

  40% {
    transform: translateY(120px) rotate(20deg);
  }

  50% {
    transform: translateY(150px) rotate(30deg);
  }

  60% {
    transform: translateY(120px) rotate(40deg);
  }

  70% {
    transform: translateY(90px) rotate(10deg);
  }

  80% {
    transform: translateY(60px) rotate(20deg);
  }

  90% {
    transform: translateY(30px) rotate(10deg);
  }

  100% {
    transform: translateY(0px);
  }
}

@keyframes anim2 {
  0% {
    transform: translateY(0px);
  }

  10% {
    transform: translateY(-30px) rotate(-10deg);
  }

  20% {
    transform: translateY(-60px) rotate(-20deg);
  }

  30% {
    transform: translateY(-90px) rotate(-10deg);
  }

  40% {
    transform: translateY(-120px) rotate(0deg);
  }

  50% {
    transform: translateY(-150px) rotate(-10deg);
  }

  60% {
    transform: translateY(-120px) rotate(0deg);
  }

  70% {
    transform: translateY(-90px) rotate(20deg);
  }

  80% {
    transform: translateY(-60px) rotate(10deg);
  }

  90% {
    transform: translateY(-30px) rotate(0deg);
  }

  100% {
    transform: translateY(0px);
  }
}

* {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
  overflow-x: hidden;
}

.container {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calculator {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  width: min(90vw, 360px);
  padding: 16px;
  border-radius: 18px;
  box-shadow:
    0 0 25px rgba(111, 231, 221, 0.25),
    0 15px 40px rgba(0, 0, 0, 0.4);
}

.calculator form input {
  border: 0;
  outline: 0;
  width: clamp(48px, 14vw, 65px);
  height: clamp(48px, 14vw, 65px);
  font-size: clamp(18px, 4vw, 25px);
  margin: 6px;
  border-radius: 12px;
  box-shadow:
    -6px -6px 15px rgba(255, 255, 255, 0.08),
    6px 6px 15px rgba(0, 0, 0, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  cursor: pointer;
  transition: 0.3s;
}

.calculator form input:hover {
  background: #6fe7dd;
  color: #000;
  transform: scale(1.08);
}

form .display {
  display: flex;
  justify-content: flex-end;
  margin: 20px 0;
}

form .display input {
  text-align: right;
  flex: 1;
  font-size: clamp(26px, 6vw, 45px);
  color: #6fe7dd;
  box-shadow: none;
  background: transparent;
}

form input.equal {
  width: calc(2 * clamp(48px, 14vw, 65px) + 12px);
  background: #00f5d4;
  color: #000;
  font-weight: bold;
}

form input.operator {
  color: #31141e;
}

#astronaut img,
#astronaut2 img {
  width: clamp(80px, 20vw, 150px);
}

@media (max-width: 480px) {

 header h1 {
        font-size: 1.8rem;
    }

    #astronaut img,
    #astronaut2 img {
        width: 90px;
        opacity: 0.8;
    }

    #astronaut {
        left: 65%;
        top: 120px;
    }

    #astronaut2 {
        left: 5%;
        top: 140px;
    }

    .container {
        padding: 10px;
    }
}