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

@font-face {
  font-family: "Roboto Thin";
  src: url(font/roboto.thin.ttf) format("truetype");
}

@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;700&display=swap");

.morning-clrs {
  --background: linear-gradient(248.66deg, #ff7e7e 0%, #8159a9 100%);
}

.afternoon-clrs {
  --background: linear-gradient(248.66deg, #6192ca 0%, #7571ec 100%);
}

.night-clrs {
  --background: linear-gradient(248.66deg, #322956 0%, #674ea9 100%);
}

body {
  font-family: "Roboto", sans-serif;
  background-image: var(--background);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.app-container {
  --text-shadow: -4.51px 2.26px 0.75px rgba(0, 0, 0, 0.15);
  color: white;
  padding: 1.5rem;
  border-radius: 10px;
}

.app-container header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
}

.toggle-metric {
  background-color: rgba(255, 255, 255, 0.16);
  width: 90px;
  height: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 20px;
  border-radius: 100px;
  position: relative;
  cursor: pointer;
}

.selected-metric {
  background-color: rgba(255, 255, 255, 0.18);
  border-radius: 100px;
  width: 50px;
  height: 30px;
  position: absolute;
  left: 0;
  transition: transform 0.5s ease;
}

#metric {
  display: none;
}

#metric:checked + .selected-metric {
  transform: translateX(40px);
}

.weather-section {
  margin-bottom: 1rem;
}

.weather-section img {
  width: 100px;
}

.temp-wrapper {
  display: flex;
  font-family: "Roboto Thin", sans-serif;
}

.temp {
  display: flex;
}

.temp h1 {
  font-size: 6.875rem;
  font-weight: 100;
  text-shadow: var(--text-shadow);
}

.temp .degree {
  font-size: 2rem;
}

.weather-description {
  align-self: flex-end;
  position: relative;
  left: -15px;
  text-transform: capitalize;
}

.date-section {
  margin-bottom: 1rem;
  font-family: "Roboto Thin";
}

.date {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.day-and-hour {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.weather-details {
  font-family: "Roboto Thin", sans-serif;
  display: flex;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  margin-bottom: 60px;
}

.weather-details img {
  width: 17px;
}

.detail {
  display: contents;
}

.forecast-section {
  position: relative;
}

.forecast {
  display: flex;
  gap: 0.5rem;
  overflow-y: auto;
}

.forecast-day-card {
  display: grid;
  gap: 0.5rem;
  justify-items: center;
  align-content: space-between;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 1rem 0.5rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.373);
}

.forecast-section img {
  width: 50px;
}

.arrow-right {
  position: absolute;
  height: 60px;
  right: -20px;
  top: 2.5rem;
  cursor: pointer;
}

.arrow-left {
  position: absolute;
  height: 60px;
  left: -20px;
  top: 2rem;
  cursor: pointer;
  transform: rotate(180deg);
}

footer {
  font-size: 12px;
  color: white;
  margin-top: auto
}

footer nav {
  display: flex;
  place-content: center;
  gap: 0.5rem;
}

footer a {
  color: white;
  font-family: "Roboto Thin", sans-serif;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

@media (min-width: 570px) {
  body {
    height: 100vh;
    place-items: center;
  }

  .app-container {
    background-image: linear-gradient(
      140deg,
      rgba(255, 255, 255, 0.242),
      transparent 60%
    );
  }

  .arrow-right,
  .arrow-left {
    display: none;
  }
}

@media (min-width: 650px) {
  .app-container {
    padding: 2rem 4rem;
  }
}
