* {
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease;
}

body {
  background-color: #f9f7fe;
  font-family: "Roboto", sans-serif;
}

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

footer {
  border-top: 1px solid #f0ebe8;
  color: rgba(0, 0, 0, 0.6);
  font-size: 13px;
  padding: 30px 0 0 0;
  text-align: center;
}

a {
  color: #885df1;
}

main {
  padding: 30px 0;
}

.weather-app {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 30px 50px rgba(65, 50, 100, 0.08);
  margin: 45px auto;
  margin-top: 20px;
  max-width: 600px;
  padding: 30px;
}

.search-form {
  display: flex;
  gap: 5px;
}

.search-form-input {
  background-color: #f9f7fe;
  border: none;
  border-radius: 6px;
  color: #272142;
  font-size: 16px;
  padding: 20px;
  width: 80%;
}

input::placeholder {
  color: #885df1;
}

input:focus {
  outline: transparent;
  border: 2px solid #885df1;
  box-shadow: 0 0 10px rgba(139, 93, 241, 0.2);
}

.search-form-button {
  background-color: #885df1;
  border: none;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  font-size: 16px;
  padding: 15px 30px;
  transition: background-color 0.3s ease;
}

.search-form-button:hover {
  background-color: #7a4dd4;
}

.error-message {
  background-color: rgba(246, 82, 130, 0.1);
  border: 2px solid #f65282;
  border-left: 4px solid #f65282;
  border-radius: 6px;
  color: #f65282;
  display: none;
  font-weight: bold;
  margin-bottom: 15px;
  padding: 12px 15px;
}

.weather-app-data {
  display: flex;
  justify-content: space-between;
}

.weather-app-city {
  color: #272142;
  font-size: 38px;
  line-height: 48px;
  margin: 0;
}

.weather-app-details {
  color: rgba(39, 33, 66, 0.6);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.weather-app-details strong {
  color: #f65282;
}

.weather-app-temperature-container {
  align-items: flex-start;
  display: flex;
}

.weather-app-icon {
  height: 88px;
  width: 88px;
}

.weather-app-temperature {
  color: #272142;
  font-size: 88px;
  font-weight: bold;
  line-height: 88px;
}

.weather-app-unit {
  color: #272142;
  font-size: 28px;
  margin-top: 6px;
}

.weather-forecast-container {
  display: flex;
  justify-content: space-around;
  margin-top: 30px;
}

.weather-forecast-date {
  text-align: center;
  color: rgba(39, 33, 66, 0.4);
  font-size: 16px;
  line-height: 20px;
}

.weather-forecast-icon {
  display: block;
  height: 88px;
  margin: 0 auto;
  width: 88px;
}

.weather-forecast-temperatures {
  color: #f65282;
  display: flex;
  justify-content: center;
  margin-top: 10px;
  text-align: center;
}

.weather-forecast-temp {
  padding: 0 10px;
}

body.dark {
  background: linear-gradient(
    179.4deg,
    rgb(12, 20, 69) -16.9%,
    rgb(71, 30, 84) 119.9%
  );
}

body.dark header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark footer {
  border-top-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

body.dark a {
  color: #c9a0dc;
}

body.dark .weather-app {
  background-color: rgba(79, 59, 120, 0.3);
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.3);
}

body.dark .search-form-input::placeholder {
  color: #f65282;
}

body.dark input:focus {
  outline: transparent;
  border: 3px solid #f65282;
  box-shadow: 0 0 10px rgba(246, 82, 130, 0.2);
}

body.dark .weather-app-city {
  color: #ffffff;
}

body.dark .weather-app-details {
  color: rgba(255, 255, 255, 0.6);
}

body.dark .weather-app-temperature {
  color: #ffffff;
}

body.dark .weather-app-unit {
  color: #ffffff;
}

body.dark .weather-forecast-date {
  color: rgba(255, 255, 255, 0.6);
}

body.dark .dark-theme-button {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

body.dark .dark-theme-button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.dark-theme-button {
  background: #885df1;
  border: 1px solid #ffffff;
  border-radius: 6px;
  color: #ffff;
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin: 20px auto;
  padding: 8px 12px;
  transition: all 200ms ease-in-out;
}

.dark-theme-button:hover {
  background: #7a4dd4;
}
