/*
  Josh's Custom CSS Reset
  https://www.joshwcomeau.com/css/custom-css-reset/
*/
*, *::before, *::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, picture, video, canvas, svg {
  display: block;
}
input, button, textarea, select {
  font: inherit;
}
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}
#root, #__next {
  isolation: isolate;
}
/************************************************************/
/* General Styles */
body {
  font-family: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  text-align: center;
  background-color: #4682B4;
  color: #fff;
}

h1 {
  font-size: 2.25rem;
  margin-top: 2rem;
}
/************************************************************/
/* Location Form */
form {
  position: relative;
  max-width: 300px;
  margin: 1.5rem auto;
  margin-bottom: 2rem;
}

input {
  color: #fff;
  background-color: rgba(255,255,255,0.2) !important;
  padding: 0.6rem 2.5rem 0.6rem 1rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50px;
}

input::placeholder {
  color: rgba(255,255,255,0.8);
}
/* search icon button */
form button {
  cursor: pointer;
  background: none;
  border: none;
  position: absolute;
  right: 12%;
  top: 21%;
}
/************************************************************/
/* Weather display */
.weather-display {
  background-color: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  max-width: 80vw;
  margin: 2rem auto;
  padding: 1rem 2rem;
}

.display-container {
  display: grid;
  align-items: center;
  justify-items: center;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  column-gap: 1rem;
  row-gap: 2rem;
  margin: 2rem 0;
}

.icon-temp-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 4rem 8rem;
}

.data-container {
  display: grid;
  grid-template-columns: 50% 50%;
  justify-content: center;
  gap: 2rem;
}

.subcontainer {
  background-color: rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 1rem;
  min-width: max-content;
}

/* Responsive styles */
@media screen and (max-width: 550px) {
  .weather-display {
    padding: 1rem;
    max-width: 90vw;
  }
  .icon-temp-container {
    padding: 2rem 4rem;
  }
  .data-container {
    gap: 1rem;
  }
}

@media screen and (max-width: 400px) {
  h1 {
    margin-top: 1rem;
  }
  form {
    margin: 1rem auto;
  }
  .display-container {
    margin: 1rem 0;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .icon-temp-container {
    padding: 1rem 2rem;
  }
  .subcontainer {
    padding: 0.5rem;
  }
}

.address {
  font-size: 2rem;
  font-weight: 800;
}

.time {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.8);
}

.icon {
  width: 9rem;
  height: auto;
  margin: 0 auto;
  /* display: none; */
}

.display-container {
  display: none;
}

.conditions {
  font-size: 2rem;
  font-weight: 550;
}

.data-label {
  font-weight: 550;
  color: rgba(255,255,255,0.8);
}

.data-value {
  font-size: 1.8rem;
  font-weight: 600;
}

.footer {
  color: rgba(255,255,255,0.8);
  margin-top: 6rem;
  margin-bottom: 2rem;
}

.footer a {
  color: rgba(255,255,255,0.6);
}