/* @import url('https://fonts.cdnfonts.com/css/visby'); */

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

:root {
  --color1: #fc9842;
  --color2: #fe5f75;
  --color3: orangered;
  --white: #ffff;
  --light: #e5e5e5;
  --faded-white1: rgba(255, 255, 255, 0.25);
  --faded-white2: rgba(255, 255, 255, 0.1);
  --darkflow: rgba(58, 58, 58, 0.2);
  --black: #000;
}

body {
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, var(--color1), var(--color2));
  background-size: 200% 200%;
  animation: circlegradient 4s ease-in-out infinite;
  /* font-family: "Visby"; */
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes circlegradient {
  0% {
    background-position: 0% 0%;
  }

  100% {
    background-position: 50% 50%;
  }
}

.carrier {
  font-size: 18px;
  width: 90vw;
  max-width: 28em;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}

.enclosure {
  width: 100%;
  background: var(--faded-white2);
  backdrop-filter: blur(10px);
  padding: 3em 1.8em;
  border: 2px solid var(--faded-white1); /* Fixed a typo here */
  box-shadow: 0 1.8em 3.7em var(--darkflow);
  border-radius: 5px;
  /* position: relative; */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hexa {
  top: 5vh;
  left: 0.8%;
  position: absolute;
  margin: 0 auto;
  background-color: var(--white);
  opacity: 50%;
  border-radius: 10px;
  width: 100px;
  height: 63px;
  box-sizing: border-box;
}

.hexa:before,
.hexa:after {
  content: "";
  border: inherit;
  position: absolute;
  top: -0.5vh;
  left: -0.5vh;
  background-color: var(--white);
  border-radius: inherit;
  height: 100%;
  width: 100%;
}

.hexa:before {
  transform: rotate(60deg);
}

.hexa:after {
  transform: rotate(-60deg);
}

.hexa-1 {
  height: 5.5em;
  width: 5.5em;
  right: -18.5em;
  top: 9em;
  border-radius: 0.6em;
}

.search-bar {
  font-size: 1em;
  display: grid;
  grid-template-columns: 9fr 3fr;
  gap: 1.25em;
}

.search-bar input,
.search-bar button {
  outline: none;
  font-size: 1em;
  border: none;
}

.search-bar input {
  padding: 0.7em;
  background-color: transparent;
  border-bottom: 5px solid var(--faded-white1);
  color: var(--white);
  font-weight: 600;
}

.search-bar input::placeholder {
  color: var(--white);
  box-shadow: 0 1.8em 3.7em var(--darkflow);
  font-family: "Visby";
}

.search-bar input:focus {
  border-color: var(--white);
}

.search-bar button {
  width: auto;
  height: auto;
  font-size: medium;
  color: #fe5f75;
  background-color: var(--white);
  border-radius: 5px;
}

.search-bar button:focus {
  color: var(--color2);
  background-color: var(--white);
}

/* Media query for screens with a maximum width of 460px */
@media screen and (max-width: 460px) {
  .search-bar {
    grid-template-columns: 1fr; /* Adjust the grid layout for smaller screens */
  }

  .search-bar button {
    width: 100%; /* Make the button occupy the full width */
    margin-top: 1em; /* Add some spacing between input and button */
  }

  .hexa-1 {
    left: -4em;
  }
}

#answer,
h3 {
  color: var(--white);
  /* font-family: "Visby"; */
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.1em;
  margin: 1.25em 0;
}

.weather,
.desc {
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.9em;
  font-weight: 500;
  line-height: 1.5em;
}

.weather {
  margin-top: -0.7em;
}

#answer img {
  margin: 0.6em 0 0 0;
  width: 6.7em;
  filter: drop-shadow(0 1.8em 3.7em var(--darkflow));
}

#answer h1 {
  font-size: 4em;
  margin: 0.3m 0 0.7em 0;
  line-height: 0;
  font-weight: 400;
  color: var(--white);
}

.temp-container {
  display: flex;
  align-items: center;
}

.temp-container div {
  text-transform: lowercase;
  margin-top: 1.7em;
  padding: 0.3em 1em;
}

.temp-container div:first-child {
  border-right: 2px solid var(--white);
}

.temp-container .title {
  font-weight: 650;
  color: var(--white);
}

.temp-container .temp {
  font-weight: 300;
  color: var(--light);
}
