:root {
  --primary-color: #5598fd;
}

* {
  box-sizing: border-box;
}

.wrapper img {
  width: 100%;
}

.wrapper {
  display: flex;
  /* width: 100%; */
  height: 100vh;
  overflow: hidden;
}
.page-id-1008039 .kontenti {
  margin: 0 auto;
}

.sidebar {
  width: 30%;
  min-width: 250px;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.815);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  margin-top: 20px;
  position: relative;
}
.search input {
  width: 100%;
  height: 40px;
  border: 1px solid #ced4da;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  padding: 0 15px;
  font-size: 14px;
  color: #495057;
}
.search input:focus {
  outline: none;
  border: 1px solid var(--primary-color);
}
.search button {
  min-width: 40px;
  height: 40px;
  border: none;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  background: var(--primary-color);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}
.search ul {
  max-height: 300px;
  overflow-y: auto;
  position: absolute;
  width: 100%;
  top: 40px;
  border-radius: 5px;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  background-color: #fff;
}
.search ul li {
  padding: 10px 15px;
  border-bottom: 1px solid #f1f1f1;
  cursor: pointer;
  text-transform: capitalize;
}
.search ul li:last-child {
  border-bottom: none;
}
.search ul li:hover {
  background-color: #f1f1f1;
}
.search ul li.active {
  background-color: #f1f1f1;
}

.wrapper .weather-icon {
  width: 100%;
  text-align: center;
  margin-top: 20px;
  margin-bottom: 100px;
}
.weather-icon #icon {
  width: 70%;
  object-fit: cover;
}

.date-time {
  text-align: center;
}
.temperature {
  display: flex;
  justify-content: center;
}
.temperature #temp {
  font-size: 90px;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 0;
}
.temperature span {
  font-size: 40px;
  margin-top: 50px;
  display: block;
}
.divider {
  width: 100%;
  height: 1px;
  background: #e9ecef;
  margin: 20px 0;
}
.condition-rain {
  font-size: 12px;
  text-transform: capitalize;
  display: none;
}
.condition-rain div {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.condition-rain div i {
  width: 20px;
}
.location {
  display: flex;
  align-items: center;
  font-size: 14px;
  gap: 10px;
  margin-top: 10px;
  justify-content: center;
}
.main {
  width: 100%;
  padding: 40px 40px;
  background-color: #f6f6f8;
  position: relative;
  padding-bottom: 90px;
}

.main nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.main nav .options {
  display: flex;
  gap: 20px;
  align-items: center;
}
.main nav .options button {
  border: none;
  background: none;
  font-size: 20px;
  font-weight: 600;
  color: #000000;
  cursor: pointer;
  font-family: 'Newsreader', serif;
}
.main nav .options button.active {
  color: var(--primary-color);
}

.main nav .units button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #1a1a1a;
  background-color: #fff;
}
.main nav .units button.active {
  color: #585858;
  background-color: #dfdfdf;
  display: none;
}
.main .cards {
  display: flex;
  flex-direction: initial;
  gap: 20px;
  width: 100%;
  grid-gap: 20px;
  margin-top: 50px;
}

.cards .card:first-child {
  display: none;
}

.cards .card {
  width: 100%;
  height: 180px;
  border-radius: 20px;
  color: #1a1a1a;
  background-color: #fff;
  text-align: center;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card h2 {
  font-size: 20px;
  font-weight: 600;
  line-height: 0;
}
.card .card-icon {
  width: 50%;
  margin: 0 auto;
}
.card .day-temp {
  font-size: 12px;
  display: flex;
  justify-content: center;
}
.highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 50px;
}
.highlights .heading {
  width: 100%;
  font-size: 20px;
  font-weight: 600;
}

.card2:nth-child(3) {
  display: none;
}
.card2 {
  width: 100%;
  height: 200px;
  border-radius: 20px;
  color: #1a1a1a;
  background-color: #fff;
  padding: 10px 20px;
  display: flex;
  flex-direction: column;
}
.card2 .card-heading {
  color: #636363;
  /* padding: 10px 0; */
  font-weight: 600;
}

.card2 .content {
  /* margin-top: 50px; */
}
.card2 .content p:first-child {
  text-align: center;
  font-size: 40px;
  font-weight: 500;
  margin: 0;
}
.card2 .content p:nth-child(2) {
  font-size: 16px;
  margin-top: 40px;
  font-weight: 500;
  text-align: left;
}
.credits {
  text-align: center;
  font-size: 12px;
  color: #c2c2c2;
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
}

@media screen and (max-width: 1024px) {
.wrapper {
  display: block;
  width: 100%;
  overflow: auto;
  border-radius: 0;
  height: auto;
  padding: 0;
}

  .temperature {
    justify-content: center;
  }

  .condition-rain {
    text-align: center;
  }

  .cards .card {
    width: 100%;
  }

  .cards .card:last-child {
    width: 100%;
  }

  .card2 {
    width: 100%;
  }
  .card2:nth-child(3) {
    display: flex;
}
  .sidebar {
    width: 100%;
    text-align: center;
  }

  .main .cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
  grid-gap: 1rem;
  }

  .main {
    padding: 20px 20px;
  }

  .wrapper .weather-icon {
    margin-bottom: 0;
  }
}
