header {
  padding: clamp(1rem, 3vw, 3rem);
  font-size: clamp(2rem, 5vw, 5rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
header div {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.8rem, 5vw, 4rem);
}
header a {
  color: black;
  position: relative;
  text-decoration: none;
  z-index: 1;
  display: inline-block;
  border: 3px solid black;
  border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
  padding: 0.1rem 1rem;
  transition: color 0.3s ease-out, transform 0.2s ease-out;
  transform: rotate(0deg);
}
header a::after {
  content: "";
  position: absolute;
  inset: 0.1rem 0.6rem;
  z-index: -1;
  background-color: rgba(0, 0, 0, 0.15);
  transform: scaleX(0);
  transform-origin: bottom left;
  transition: transform 0.3s ease-out, height 0.3s ease-in, background-color 0.3s;
  border-radius: inherit;
}
header a:hover {
  transform: rotate(-1deg);
}
header a:hover::after {
  transform: scaleX(1);
}
header a:active::after {
  transform: scaleX(1);
  inset: 0;
  background-color: black;
}
header a:active {
  color: white;
}

@font-face {
  font-family: "ankush";
  src: url("/static/fonts/ankush.ttf") format("truetype");
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100lvh;
  width: 100vw;
  overflow-x: hidden;
  background-color: #d7e0e5;
  background-image: url("/static/images/bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  font-family: "ankush", cursive;
  font-size: 30px;
}
body #take_image_box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: auto;
  padding: 2rem;
  width: 90%;
  max-width: 900px;
  min-height: clamp(300px, 50vh, 600px);
  position: relative;
  z-index: 1;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
  filter: drop-shadow(0 0 35px rgba(0, 0, 0, 0.3));
}
body #take_image_box::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: #d7e0e5;
  background-image: url("/static/images/bg_yellow.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: url("#torn-paper") brightness(1);
  transition: filter 0.2s ease;
}
body #take_image_box:hover, body #take_image_box.dragging {
  transform: scale(1.005);
  filter: drop-shadow(0 0 50px rgba(0, 0, 0, 0.45));
}
body #take_image_box:hover::before, body #take_image_box.dragging::before {
  filter: url("#torn-paper") brightness(1.05);
}
body #take_image_box p {
  text-align: center;
  font-size: clamp(2.5rem, 4vw, 5rem);
  display: inline-block;
  border: 3px solid rgba(0, 0, 0, 0.8);
  border-radius: 255px 25px 225px 25px/25px 225px 25px 255px;
  padding: 0.5rem 1.5rem;
  background-color: #e9edef;
  mix-blend-mode: multiply;
}
body #take_image_box p:hover {
  background-color: #d7e0e5;
  transform: rotate(-1deg);
}
body #take_image_box p {
  transition: transform 0.2s ease-out, background-color 0.2s ease-out;
}
body .bg-entities {
  position: fixed;
  z-index: -1;
  pointer-events: none;
}
body .circuit-1 {
  top: 67%;
  left: -53px;
  width: 700px;
  rotate: -20deg;
}
body .circuit-2 {
  top: clamp(7%, 10vw, 18%);
  right: -60px;
  width: 580px;
  rotate: 24deg;
}
@media (max-width: 768px) {
  body .circuit-2 {
    display: none;
  }
}
body .resistor-1 {
  top: clamp(10%, 10vw, 18%);
  left: 10px;
  width: 280px;
  rotate: -24deg;
}
@media (max-width: 768px) {
  body .resistor-1 {
    left: 0;
    transform: translateX(-30%);
  }
}
@media (min-width: 1200px) {
  body .resistor-1 {
    left: 60px;
  }
}
body .capacitor {
  bottom: 0;
  right: -50px;
  width: 300px;
  rotate: 15deg;
}
@media (max-width: 850px) {
  body .capacitor {
    display: none;
  }
}
body .diode {
  right: -140px;
  top: 63%;
  rotate: -20deg;
}
@media (min-width: 1300px) {
  body .diode {
    right: -10px;
  }
}
@media (min-width: 1500px) {
  body .diode {
    right: 100px;
  }
}
body .diode-2 {
  top: 40%;
  left: -85px;
  rotate: -76deg;
  width: 210px;
}
@media (min-width: 1300px) {
  body .diode-2 {
    left: -15px;
  }
}
@media (min-width: 1500px) {
  body .diode-2 {
    left: 50px;
  }
}
body .battery-1 {
  top: 23%;
  left: 25%;
  rotate: 69deg;
}
body #take_image_box .camera {
  width: clamp(200px, 50vw, 250px);
  object-fit: contain;
}
body #take_image_box .bulb {
  top: 0;
  right: 0;
  rotate: 18deg;
  width: 221px;
}
@media (max-width: 750px) {
  body #take_image_box .bulb {
    top: -20%;
    right: -10%;
  }
}
body #take_image_box .battery {
  bottom: 25px;
  left: 0;
  rotate: -17deg;
}
body #take_image_box .capacitor {
  top: 23%;
  left: 10%;
  width: 204px;
  rotate: 15deg;
}
body #take_image_box .resistor {
  bottom: 10%;
  right: 0;
  rotate: 73deg;
  width: 200px;
}
@media (max-width: 589px) {
  body #take_image_box .resistor {
    display: none;
  }
}
