﻿html,
body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

body {
  background: #f9f7fe;
  font-family: "Roboto", sans-serif;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 0 20px;
}

a {
  color: #885df1;
}

.video-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto 20px;
}

.video-container video {
  width: 100%;
  max-width: 600px;
  border-radius: 20px;
  display: block;
}

.weather-app {
  background: rgba(0, 0, 0, 0);
  max-width: 500px;
  width: min(600px, 100%);
  margin: 0 auto;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 30px 50px rgba(65, 50, 100, 0.08);
  position: relative;
  background-image: url("https://i.pinimg.com/originals/3a/76/20/3a762091c6d9fb10d75ed9793d3beb29.gif"); /* or use full URL if it's online */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 20px;
  border-radius: 20px;
}

header {
  border-bottom: 1px solid #f9f7fe;
  padding-bottom: 30px;
}

.search-input {
  background-color: #f9f7fe;
  border: none;
  color: rgba(39, 33, 66, 0.4);
  font-size: 16px;
  padding: 20px;
  width: 75%;
  border-radius: 6px;
}

.search-button {
  margin-left: 5px;
  font-size: 16px;
  background-color: #885df1;
  color: white;
  border: none;
  padding: 20px;
  line-height: 1;
  border-radius: 5px;
}

main {
  padding: 30px 0;
}

.current-temperature {
  font-size: 30px;
}

.current-weather {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.current-city {
  font-size: 38px;
  font-weight: 900;
  margin: 0;
}
.current-details {
  color: rgb(15, 15, 15);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.current-details strong {
  color: #ff0000;
}

.forecast {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  margin-top: 24px;
}

.forecast-card {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 16px 14px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.forecast-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 18px 30px rgba(65, 50, 100, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  background-color: rgba(255, 255, 255, 0.12);
}

.forecast-day {
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
}

.forecast-icon {
  font-size: 26px;
  margin-bottom: 10px;
}

.forecast-temp {
  font-size: 15.5px;
  color: #3f3d63;
}

@media (max-width: 940px) {
  .forecast {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .forecast {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .forecast {
    grid-template-columns: 1fr;
  }
}

.current-temperature-icon {
  position: relative;
  top: -8px;
  font-size: 40px;
  margin-right: 10px;
}

.current-temperature-value {
  font-size: 60px;
  font-weight: bold;
}

.current-temperature-unit {
  font-size: 24px;
  position: relative;
  top: -34px;
}

footer {
  border-top: 1px solid #f9f7fe;
  text-align: center;
  padding-top: 15px;

  color: rgb(255, 255, 255);
}
