* {
  margin: 2px;
  padding: 2px;
}

body {
  margin: 2px;
  padding: 2px;
  /* overflow-y: hidden; */
  overflow-x: hidden;
  font-size: 30px;
  font-family: sans-serif;
  background-color: black;
  background-image: url("./images/background.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  background-attachment: fixed;
}

.search-bar-container {
  width: 400px;
  margin: auto;
  text-align: center;
}

.search-bar-container input,
.search-bar-container button {
  display: inline-block;
  vertical-align: middle;
  margin-top: 10px;
}

#search-input {
  max-width: 600px;
  box-shadow: -1px 2px 30px purple;
  padding: 10px;
  font-size: 20px;
  text-shadow: -1px 2px -20px;
  border-radius: 20px;
  width: 100%;
  border: none;
}

#search-btn {
  font-size: 18px;
  font-weight: 600;
  margin-top: 10px;
  background-color: rgba(34, 0, 255, 0.414);
  box-shadow: -1px 2px 30px purple;
  color: white;
  width: 150px;
  height: 50px;
  border: none;
  border-radius: 5px;
  transition: background-color 0.5s ease;
  cursor: pointer;
}

#search-btn:hover {
  font-size: 18px;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0);
  border: 1px solid rgba(0, 115, 255, 0.582);
  color: rgb(34, 0, 255);
  box-shadow: -1px 2px 30px yellow;
  opacity: 0.8;
}

/* Weather display styles */
.weather-container {
  color: white;
  text-shadow: -1px 2px 20px blue;
  background-color: #0000005e; /* white background */
  box-shadow: -1px 2px 40px purple;
  border: 5px solid rgba(0, 0, 255, 0.238);
  max-width: 670px;
  height: auto;
  font-size: 30px;
  font-weight: 600;
  margin: 20px auto;
  padding: 20px;
  text-align: center;
  border-radius: 30px;
}

#city {
  color: white;
  text-shadow: -1px 2px 20px gold;

  font-size: 30px;
  font-weight: bold;
  margin-bottom: 10px;
  font-weight: 600;
}

#weather {
  color: white;
  text-shadow: -1px 2px 20px gold;

  font-size: 18px;
  margin-bottom: 20px;
  font-weight: 600;
}

.temp-container {
  color: white;

  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-weight: 600;
}

#temp {
  color: white;
  text-shadow: -1px 2px 20px gold;

  font-size: 50px;
  font-weight: bold;
  font-weight: 600;
}

#max,
#min {
  color: white;
  text-shadow: -1px 2px 20px gold;
  font-size: 30px;
  font-weight: 600;
}

#day-night {
  color: white;
  text-shadow: -1px 2px 20px gold;

  font-weight: 600;
  font-size: 30px;
  margin-bottom: 10px;
}
/* ************* ************************** ************* **************************************************** */
/* Styling for paragraph elements */
p {
  color: white;
  text-shadow: -1px 2px 20px blue;
  font-size: 30px;
  font-weight: 600;
  padding: auto;
}

/* Styling for h3 heading elements */
h3 {
  color: white;
  text-shadow: -1px 2px 20px blue;
  font-size: 30px;
  font-weight: 600;
  padding: auto;
}
/* ************* ************************** ************* **************************************************** */

.weather-container {
  /* ... other styles ... */
  /* background-image: url("sun.png"), url("moon.png"), url("cloud.png"); replace with your image URLs */
  background-size: 50px 50px, 50px 50px, 50px 50px; /* adjust the image size */
  background-position: center, center, center; /* center the images */
  background-repeat: no-repeat, no-repeat, no-repeat; /* prevent the images from repeating */
}

.weather-container.sun {
  background-position: center 0; /* adjust the position of the sun image */
}

.weather-container.moon {
  background-position: center 100px; /* adjust the position of the moon image */
}

.weather-container.cloud {
  background-position: center 200px; /* adjust the position of the cloud image */
}
/* ************* ************************** ************* **************************************************** */

.weather-icon.sun {
  color: #ffcc00;
  font-size: 30px;
}

.weather-icon.thermometer {
  color: #87ceeb;
  font-size: 30px;
}

.weather-icon.cloud {
  color: #add8e6;
  font-size: 30px;
}

.weather-icon.moon {
  color: #c9e4ca;
  font-size: 30px;
}

/* Target all elements with the class fa-sun */
.fa-sun {
  color: #ffc400;
  text-shadow: -1px 2px 20px gold;
}

/* Target all elements with the classes fa and fa-sun */
.fas.fa-sun {
  color: #ffc400;
  text-shadow: -1px 2px 20px gold;
}

/* Target all elements with the classes fa, fa-sun, and weather-icon */
.fas.fa-sun.weather-icon {
  color: #ffc400;
  text-shadow: -1px 2px 20px gold;
}

/* Target all elements with the class fa-moon */
.fa-moon {
  color: #d6eaff;
  text-shadow: -1px 2px 20px blue;
}
/* Target all elements with the classes fa and fa-moon */
.fas.fa-moon {
  color: #d6eaff;
  text-shadow: -1px 2px 20px blue;
}

/* Target all elements with the classes fa, fa-moon, and weather-icon */
.fas.fa-moon.weather-icon {
  color: #d6eaff;
  text-shadow: -1px 2px 20px blue;
}
/* ***************************************************************************************** */
/* Add a class to the temperature span element */
.forecast-row span:nth-child(2) {
  /* Change the color for each day of the week */
  /* Sunday */
  &:nth-child(2):nth-of-type(1) {
    color: #ff69b4; /* pink */
  }
  /* Monday */
  &:nth-child(2):nth-of-type(2) {
    color: white;
    text-shadow: -1px 2px 20px gold;
    font-size: 30px;
    font-weight: 600;
  }
  /* Tuesday */
  &:nth-child(2):nth-of-type(3) {
    color: #ffc107; /* orange */
  }
  /* Wednesday */
  &:nth-child(2):nth-of-type(4) {
    color: #8b9467; /* brown */
  }
  /* Thursday */
  &:nth-child(2):nth-of-type(5) {
    color: #4b5154; /* gray */
  }
  /* Friday */
  &:nth-child(2):nth-of-type(6) {
    color: #9b59b6; /* purple */
  }
  /* Saturday */
  &:nth-child(2):nth-of-type(7) {
    color: #2ecc71; /* green-blue */
  }
}
