.forecast {
  background-color: var(--primary-color);
  padding: 50px;
  height: 880px;
  width: 100%;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav ul {
  list-style: none;
}

nav ul li {
  display: inline-block;
  margin-right: 10px;
}

nav ul li a {
  text-decoration: none;
  color: #c5c5c5;
  font-size: 18px;
  transition: opacity .15s ease;
}

nav ul li a:hover {
  opacity: .8;
}

nav ul li a.menu-active {
  color: var(--secondary-color);
  position: relative;
  font-weight: bold;
}

nav ul li a.menu-active::after {
  content: '';
  height: 1px;
  width: 100%;
  background-color: var(--secondary-color);
  position: absolute;
  bottom: -5px;
  left: 0;  
}

.temp-units {
  margin-left: 340px;
}

.temp-units li a {
  background-color: var(--white);
  color: var(--secondary-color);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.temp-units li a.active-unit {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.toggle-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-container span {
  color: var(--secondary-color);
}

.toggle-container .toggle {
  visibility: hidden;
}

.toggle-container .label {
  margin-left: 15px;
  background-color: var(--white);
  width: 80px;
  height: 40px;
  border-radius: 30px;
  position: relative;
  cursor: pointer;
  transition: background-color .3s linear;
}

.toggle-container .ball {
  position: absolute;
  top: 5px;
  left: 5px;
  height: 30px;
  width: 30px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  animation: slideOff .3s linear forwards;
}

.toggle:checked + label {
  background-color: #151515;
}

.toggle:checked + .label .ball {
  animation: slideOn .3s linear forwards;
  background-color: #fff;
}

@keyframes slideOn {
  0% {
    transform: translateX(0) scale(1);
  }
  50% {
    transform: translateX(20px) scale(1.2);
  }
  100% {
    transform: translateX(40px) scale(1);
  }
}

@keyframes slideOff {
  0% {
    transform: translateX(40px) scale(1);
  }
  50% {
    transform: translateX(20px) scale(1.2);
  }
  100% {
    transform: translateX(0) scale(1);
  }
}

.next-7-days-forecast {
  width: 800px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 40px 0;
}

.next-7-days-forecast .day {
  background-color: var(--white);
  height: 134px;
  width: 110px;
  padding: 15px 30px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.day .day-in-week {
  font-size: 14px;
  color: var(--secondary-color);
}

.day img {
  width: 50px;
  margin: 10px 0;
}

.day .temp-container p {
  font-size: 14px;
  color: var(--secondary-color);
  display: inline;
}

.day .temp-container .min-temp {
  color: #b1b1b1;
}

.carousel {
  overflow: hidden;
  width: 800px;
}

.screen-container {
  display: flex;
}

.hourly-graph {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 800px;
}
