/* ================================= 
 Global rules and element rules
==================================== */

/* Heading styles */
h1 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 200%;
  padding: 30px 0;
  color: #fff;
}

h2 {
  font-size: 175%;
  font-weight: bold;
  color: black;
}

h3 {
  font-size: 150%;
  font-weight: bold;
  color: black;
}

/* Header container styling */
.container-fluid {
  background-color: #4598f7;
  height: 100px;
}

/* Button styling */
.btn {
  margin-top: 15px;
  width: 100%;
}

#searchButton {
  margin-top: 10px;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
}

#clearHistoryButton {
  margin-top: 10px;
  background-color: #dc3545;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
}

/* Search section styling */
#search-section {
  width: 25%;
  background-color: #f8f9fa;
  padding-top: 1rem;
  padding-bottom: 0.5rem;
  padding-left: 1.5rem;
}

/* Initially hidden element styling */
#show-and-hide {
  /* Initially hidden */
  display: none;
}

/* Visible element styling (when "show" class is applied) */
#show-and-hide.show {
  /* Visible when the show class is added */
  display: block;
}

/* Hover effect for search history items */
#recentSearches .list-group-item:hover {
  cursor: pointer;
}

/* Forecast card styling */
.forecastCard {
  width: 14rem;
}

/* Media Queries for smaller screens */
@media (max-width: 768px) {
  #search-section,
  #show-and-hide {
    width: 100%;
  }
}

@media (max-width: 448px) {
  .forecastCard {
    width: 100%;
    margin-inline: 1rem;
  }
}
