body {
  display: block;
  margin: 0 auto;
  max-width: fit-content;
  padding: 40px;
  background-image: url("body_background.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.weather-template {
  background-color: #f0ffff;
  padding: 30px 30px;
  opacity: 0.6;
  border-radius: 30px;
  font-family: "Cookie", cursive;
  justify-items: stretch;
}

form {
  display: flex;
  margin: 0 auto;
  padding: 20px;
  justify-content: center;
  gap: 25px;
  font-size: 20px;
}

input {
  border: none;
  border-radius: 20px;
  background-color: #e5b7b0;
  padding: 20px;
  font-family: "Cookie", cursive;
  font-size: larger;
}

.search-bar input::placeholder {
  color: #46232d;
}

.search-bar input[type="text"]:focus {
  background-color: #cbf9f9;
  outline: none;
}

#submit-button {
  color: #46232d;
}

#submit-button:hover {
  background-color: #cbf9f9;
  color: #46232d;
}

.header-second-section {
  display: grid;
  grid-template-columns: 1fr 1fr; 
  align-items: center;
  justify-items: center;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

h1 {
  font-size: 45px;
  margin: 0 auto;
  text-align: center;
  color: #a65a66;
  padding: 20px ;
}

.location {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.location h1:first-child {
  grid-column: 1;
}

.right-column {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  text-align: center;
}

.details {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  font-size: 20px;
  color: #46232d;
}

.weather-details {
  margin: 0 auto;
  color: #46232d;
  font-size: 20px;
}

#week {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 1fr;
  gap: 25px;
}

.footer-links {
  color: #46232d;
}

.submit-button {
  color: #46232d;
}

.submit-button:hover {
  background-color: #cbf9f9;
}

ul {
  padding: 0;
}

li {
  list-style: none;
  margin: 0 auto;
}

.weekdays {
  font-size: 30px;
  color: #a65a66;
  background-color: #cbf9f9;
  padding: 25px;
  border-radius: 20px;
}

.temperature {
  color: #46232d;
  font-size: 20px;
  text-align: center;
}

.weather-icon {
  display: flex;
  justify-content: center;
}

footer {
  padding: 20px;
  color: #46232d;
  font-size: larger;
  text-align: center;
}

/* MOBILE FIX */
@media (max-width: 600px) {
  form {
    flex-direction: column;
    gap: 15px;
  }

  input {
    width: 90%;
    font-size: 18px;
    padding: 15px;
  }

  .header-second-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  h1 {
    font-size: 30px;
    padding: 10px;
  }

  #week {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
  }

  .weekdays {
    width: 120px;
    height: 150px;
    font-size: 18px;
  }
}

/* --- new improvements --- */
html, body {
  height: 100%;
  width: 100%;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

@media (max-width: 600px) {
  form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  input {
    width: 80%;
    text-align: center;
  }
}
