* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: white;
  font-family: "Bricolage Grotesque", sans-serif;
}
:root {
  /* Neutral */
  --neutral-900: hsl(243, 96%, 9%);
  --neutral-800: hsl(243, 27%, 20%);
  --neutral-700: hsl(243, 23%, 24%);
  --neutral-600: hsl(243, 23%, 30%);
  --neutral-300: hsl(240, 6%, 70%);
  --neutral-200: hsl(250, 6%, 84%);
  --neutral-0: hsl(0, 0%, 100%);

  /* Orange */
  --orange-500: hsl(28, 100%, 52%);

  /* Blue */
  --blue-500: hsl(233, 67%, 56%);
  --blue-700: hsl(248, 70%, 36%);
}
body {
  background-color: var(--neutral-900);
}
main {
  padding: 2.5vw 10vw;
  min-width: 100vw;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.search-widget-container {
  display: flex;
  gap: 0.625rem; /* 10px */
  align-items: center;
}
.header-container {
  margin-top: 2vw;
  text-align: center;
  font-size: 1.25rem; /* 20px */
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 3.5vw;
}
.search-btn {
  color: white;
  background-color: var(--blue-500);
  border: 0.125rem solid var(--blue-500); /* 2px */
  border-radius: 0.3125rem; /* 5px */
  padding: 0.75rem 0.9375rem; /* 12px 15px */
  font-size: 0.875rem; /* 14px */
  transition: 0.3s;
}
.search-btn:hover {
  cursor: pointer;
  color: var(--blue-500);
  background-color: transparent;
}
.search-bar {
  display: flex;
  gap: 0.625rem; /* 10px */
  background-color: var(--neutral-800);
  border: 0.125rem solid var(--neutral-800); /* 2px */
  padding-left: 0.9375rem; /* 15px */
  border-radius: 0.3125rem; /* 5px */
}
#search-input-field {
  height: 2.5rem; /* 40px */
  background-color: transparent;
  border: none;
  outline: none;
  display: inline-block;
  width: 18.75rem; /* 300px */
}
#search-input-field,
#search-input-field::placeholder {
  font-size: 0.9375rem; /* 15px */
}
.nav-drop-container {
  border-radius: 0.3125rem; /* 5px */
  display: flex;
  gap: 0.3125rem; /* 5px */
  align-items: center;
  justify-content: center;
  background-color: var(--neutral-800);
  padding: 0.4375rem 0.625rem; /* 7px 10px */
}
.nav-drop-container:hover {
  cursor: pointer;
}
.unit-settings-btn-img {
  height: 14px;
  width: auto;
}
.dropdown-main {
  position: relative;
}
.drop-active {
  /* animation: dropdown 0.15s ease-in-out; */
  position: absolute;
  z-index: 10;
  top: 2.5rem;
  right: 0.1rem;
  min-width: max-content;
  background-color: var(--neutral-800);
  border: 1px solid var(--neutral-700);
  border-radius: 0.3125rem;
}
.drop-label {
  font-size: 12px;
  padding: 0.3rem 0.5rem;
  color: var(--neutral-300);
}
.drop-item-container {
  padding: 0.3rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
hr {
  border: none; /* remove default border */
  height: 1px; /* thickness */
  background-color: var(--neutral-700);
}
.drop-btn {
  font-size: 14px;
  display: flex;
  padding: 0.3rem 0.5rem;
  border-radius: 0.3125rem;
  justify-content: space-between;
}
.search-result-item:hover,
.imp-metric-toggle:hover,
.drop-btn:hover {
  cursor: pointer;
  background-color: var(--neutral-700);
}
.search-bar-container {
  position: relative;
}
.search-active {
  position: absolute;
  background-color: var(--neutral-800);
  width: 100%;
  text-align: left;
  top: 3rem;
  border-radius: 0.3125rem;
  padding: 0.3rem 0.5rem;
}

.search-result-item {
  padding: 0.3rem 0.5rem;
  font-weight: 400;
  font-size: 14px;
  border-radius: 0.3125rem;
}
.search-result-item p {
  font-family: "DM Sans", sans-serif;
}

.app-container {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  width: 100%;
  height: 70vh;
  gap: 1.4rem;
}
.left {
  width: 100%;
  justify-self: start; /* Aligns horizontally to the left */
  align-self: start; /* Aligns vertically to the top */
}
.weather-panel {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  line-height: 2rem;
  align-items: center;
}
#wp-location {
  font-family: "DM Sans";
  font-size: 22px;
  font-weight: 500;
}
#wp-date {
  font-family: "DM Sans";
  color: var(--neutral-200);
  font-size: 15px;
}
#wp-temp {
  font-size: 50px;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.1rem;
}
.wp-temp-info img {
  height: 75px;
}
.wp-temp-info {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.weather-panel {
  background-image: url("assets/images/bg-today-large.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 15rem;
  border-radius: 0.5rem;
  padding: 1rem;
}

.loading-weather-panel {
  min-height: 15rem;
  background-color: var(--neutral-800);
  border-radius: 0.5rem;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}
.loading-weather-panel img {
  animation: rotateLoad 2.5s linear 0s infinite;
}
@keyframes rotateLoad {
  from {
    transform: rotateZ(0deg);
  }
  to {
    transform: rotateZ(360deg);
  }
}

.eip-item {
  background-color: var(--neutral-800);
  border: 1px solid var(--neutral-700);
  border-radius: 0.5rem;
  padding: 1rem;
}
.extra-info-panel {
  margin-top: 1.4rem;
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}
.eip-item p:first-child {
  font-size: 15px;
  color: var(--neutral-200);
  font-weight: 200;
}
.eip-item p:nth-child(2) {
  margin-top: 1rem;
  font-size: 25px;
  font-weight: 200;
}
.daily-forecast-panel {
  margin-top: 2rem;
}
.daily-forecast-panel p:first-child {
  font-family: "DM Sans";
  font-weight: 500;
  font-size: 17px;
}
.forecast-grid {
  margin-top: 1rem;
  gap: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}

.forecast-item {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 0.7rem;
  background-color: var(--neutral-800);
  border-radius: 0.5rem;
  border: 1px solid var(--neutral-700);
}
.forecast-icon-items {
  height: 50px;
  align-self: center;
}

.forecast-temp-cont {
  display: flex;
  justify-content: space-between;
}
.right {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-height: 100%;
  background-color: var(--neutral-800);
  border: 1px solid var(--neutral-700);
  border-radius: 0.5rem;
  overflow: auto;
  padding: 1rem 0.8rem;
}
.hourly-container {
  overflow: auto;
  margin-top: 1.2rem;
  max-height: 29rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hourly-item {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem;
  background-color: var(--neutral-700);
  border: 1px solid var(#3a3a54);
  border-radius: 0.3125rem;
}
.hourly-item-info img {
  height: 40px;
}
.hourly-item-info {
  display: flex;
  gap: 0.2rem;
  align-items: center;
}
.right::-webkit-scrollbar {
  width: 5px;
}
.right::-webkit-scrollbar-track {
  background-color: transparent;
}
.right::-webkit-scrollbar-thumb {
  background-color: var(--neutral-700);
}
::-webkit-scrollbar {
  width: 5px;
}
#loading-daily-panel {
  margin-top: 1.4rem;
}
.right-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#hourly-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.hourly-drop-main {
  display: flex;
  gap: 0.3rem;
  background-color: var(--neutral-700);
  padding: 0.4rem 0.6rem;
  border-radius: 0.312rem;
  position: relative;

  font-size: 15px;
}
.hourly-drop-main:hover {
  cursor: pointer;
}
.hourly-drop-main img {
  height: 20px;
  width: 10px;
}
.hourly-drop-container {
  position: relative;
}
.hourly-drop-active-state {
  position: absolute;
  top: 2.7rem;
  gap: 0.4rem;
  min-width: max-content;
  background-color: var(--neutral-700);

  display: flex;
  flex-direction: column;
  border-radius: 0.3125rem;
  z-index: 10;
}
.hourly-active-items {
  z-index: inherit;
  padding: 0.2rem 0.6rem;
}
.hourly-active-items:hover {
  background-color: var(--neutral-600);
  cursor: pointer;
}
/* media queries */
@media (max-width: 500px) {
  main {
    padding: 2.5vw;
  }
  .logo-nav {
    width: 8rem;
  }
  .nav-drop-container {
    font-size: 0.625rem;
    gap: 0.1;
  }
  .unit-settings-btn-img {
    height: 0.7rem;
  }
  .unit-drop-btn-img {
    height: 0.35rem;
  }
  .weather-panel {
    flex-direction: column;
    justify-content: space-around;
  }
}
@media (max-width: 460px) {
  .header-container h1 {
    font-size: 4rem;
    line-height: 4.3rem;
    text-align: center;
  }
  .search-widget-container {
    flex-direction: column;
  }
  .search-btn {
    width: 100%;
  }
}
@media (min-width: 446px) and (max-width: 459px) {
  .header-container h1 {
    font-size: 3rem;
  }
}
@media (max-width: 350px) {
  .header-container h1 {
    font-size: 3rem;
  }
  #search-input-field {
    width: 16rem;
  }
}
@media (max-width: 700px) {
  .app-container {
    grid-template-columns: 1fr;
    height: auto;
  }
  .hourly-container {
    max-height: none;
  }
}
.hidden {
  display: none;
}
