* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background-image: url("image.jpg");
  background-size: cover;
  background-position: fixed;
  background-repeat: no-repeat;
  font-family: "open sans", sans-serif;
  color: white;
}

header {
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.001);
  opacity: 90%;
}

header form {
  display: flex;
  justify-content: center;
  gap: 10px;
}

header input[type="search"] {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ccc;
  width: 250px;
  outline: none;
  transition: all 0.3s ease;
  font-family: "open sans", sans-serif;
  font-size: 0.95rem;
}

header input[type="search"]:focus {
  border-color: whitesmoke;
  box-shadow: 0 0 5px whitesmoke;
}

header input[type="submit"] {
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  background-color: olivedrab;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
  font-family: "open sans", sans-serif;
}

header input[type="submit"]:hover {
  background-color: olivedrab;
  transform: scale(1.05);
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px;
  text-align: center;
}

main h1 {
  font-family: "cascadia code", monospace;
  font-size: 0.8rem;
  margin-bottom: 10px;
  letter-spacing: 1px;
  font-weight: 300;
}

#weather-info {
  background-color: rgba(255, 255, 255, 0.1);
  opacity: 99%;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  padding: 20px 30px;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
}

#weather-info h2 {
  font-family: "open sans", sans-serif;
  font-size: 2.5rem;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

#weather-info p {
  margin: 5px 0;
  font-size: 1rem;
  font-family: "open sans", sans-serif;
  letter-spacing: 0.5px;
  color: white;
}

#did-you-know {
  background-color: rgba(55, 88, 57, 0.092);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  padding: 10px;
  margin: 10px auto;
  max-width: 800px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.01);
  line-height: 1.8;
  font-size: 1rem;
  opacity: 99%;
}

#did-you-know h3 {
  margin-bottom: 15px;
  color: olivedrab;
  font-family: "corbel", sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-align: center;
  text-shadow: 10px;
}

#did-you-know p {
  text-align: center;
  font-size: 0.96rem;
  line-height: 1.7;
  font-family: "open sans", sans-serif;
  color: white;
  letter-spacing: 0.5px;
  font-weight: 10;
}

footer {
  background-color: white;
  padding-top: 10px;
  padding-bottom: 10px;
  opacity: 99%;
  color: olivedrab;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.6px;
  font-family: "open sans", sans-serif;
}

footer a {
  color: #ffd700;
  text-decoration: none;
  font-style: italic;
}

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  header form {
    flex-direction: column;
    align-items: center;
  }

  header input[type="search"] {
    width: 150px;
  }

  main h1 {
    font-size: 2rem;
  }

  #weather-info {
    padding: 15px 20px;
  }

  #did-you-know {
    padding: 15px;
    font-size: 0.9rem;
  }

  footer {
    font-size: 0.7rem;
  }
}
#temperature {
  font-family: "open sans", sans-serif;
  font-size: 2rem;
  margin-bottom: 10px;
  letter-spacing: 1px;
  font-weight: 500;
}

#forecast {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.day {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  font-family: "open sans", sans-serif;
  font-size: 16px;
  color: white;
}

.day-name {
  font-weight: bold;
}

.day-temp {
  font-weight: 500;
}

#time {
  font-weight: 600;
  font-size: 1.05rem;
  margin-top: 0.1rem;
}
#emoji {
  width: 100%;
  font-size: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
