@import url("https://fonts.googleapis.com/css2?family=Bakbak+One&display=swap");

/* =====================================
   Main Body Layout - Controls Background Colors
   ===================================== */
body {
  background-image: radial-gradient(
    circle,
    rgb(246, 255, 0),
    rgb(0, 191, 255),
    blue
  );
}

/* =====================================
   Header Tag Styling
   ===================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Bakbak One, sans-serif;
  color: rgb(255, 255, 255);
  font-weight: 900;
}

/* =====================================
   START: MAIN BANNER-HEADER STYLING
   ===================================== */
.header {
  background-color: rgba(245, 222, 179, 0); /* Transparent background */
}

/* MAIN BANNER - Div Container for organizing header elements */
.headerOrganizationBox {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 3vw;
}

/* MAIN BANNER - Element One: Business Logo Div Container */
.headerImageContainer {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Business Logo Image - Ensures the logo scales appropriately */
.header-image {
  max-width: 100%;
  width: 50%;
  border: 2px groove white;
  border-radius: 8px;
  box-shadow: 0px 0px 2px 2px rgba(0, 0, 0, 0.7);
}

/* MAIN BANNER - Element Two: Catchy Header Title */
.catchyHeaderTitle {
  font-size: 8vw;
  text-align: center;
  -webkit-text-stroke: 0.5px rgb(0, 0, 0);
}

/* MAIN BANNER - Element Three: Main Button Container */
.headerButton {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 5vh;
  max-width: 100%;
  width: 100%;
}

/* MAIN BANNER - FAQ Button Styling */
/* FAQ Button Styling - General styling for the FAQ button element */
.headerButton button {
  height: 30%;
  max-width: 100%;
  font-family: Bakbak One;
  border-radius: 5px;
  background-image: linear-gradient(
    rgb(181, 181, 181),
    white,
    rgb(255, 255, 255),
    rgb(188, 188, 188)
  );
  border: 2px outset rgb(255, 255, 255);
  border-style: ridge;
  color: black;
}

.headerButton button:active:not(:disabled) {
  background-image: linear-gradient(
    rgb(181, 181, 181),
    white,
    rgb(255, 255, 255),
    rgb(188, 188, 188)
  );
}

/* FAQ BUTTON ID STYLING */
#actualButton {
  max-width: 100%;
  width: 180px;
  height: 5vh;
}

#actualButton:hover {
  background-color: rgba(255, 255, 255, 0.657);
  cursor: pointer;
}

/* =====================================
   END: MAIN BANNER-Header Styling
   ===================================== */

/* =====================================
   Current Forecast Link
   ===================================== */
.three-day-link {
  cursor: pointer;
  background-image: radial-gradient(
    circle,
    rgb(0, 0, 0),
    rgb(0, 208, 255),
    blue
  );
  color: rgb(255, 255, 255);
  border: 3px groove rgb(255, 255, 255);
  border-radius: 4px;
  font-family: "Bakbak One", sans-serif;
  text-decoration: none;
  padding: 8px 16px;
  display: inline-block;
  font-size: 1.5rem;
  -webkit-text-stroke: 0.8px black;
}

.three-day-link:hover {
  background-image: radial-gradient(
    circle,
    rgb(0, 0, 0),
    rgb(0, 208, 255),
    rgb(255, 247, 0)
  );
  border: 4px inset rgb(255, 255, 255);
}

.three-day-link-container {
  display: flex;
  justify-content: center;
  padding: 10px;
  text-align: center;
  -webkit-text-stroke: 0.8px black;
  margin-bottom: 15px;
}

/* =====================================
   START OF CURRENT FORECAST STYLING
   ===================================== */
.frontPageMenuMainBox {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2vh 0;
}

.frontPageMenu-Header {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.currentForecast {
  font-size: 5vh;
  -webkit-text-stroke: 0.8px rgb(0, 0, 0);
}

.cityName-container {
  text-align: center;
  margin-bottom: 20px;
}

.cityName-label {
  display: block;
  margin-bottom: 5px;
  font-family: Bakbak One;
  font-size: 2.2rem;
  color: white;
}

input[type="text"] {
  padding: 8px;
  border: 3px solid #00b7ff;
  border-radius: 4px;
  font-size: 1rem;
  width: 90%;
  font-family: Bakbak One;
  margin: 0 auto;
  text-align: center;
}

.inputContainer {
  display: flex;
  justify-content: center;
}

.button-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1vh 0;
}

/* Submit Button Styling - Styles the "Retrieve Forecast" button with hover effect */
.cityNameSubmitButton {
  height: 10vh;
  width: 200px;
  max-width: 100%;
  font-family: "Bakbak One", sans-serif;
  border-radius: 5px;
  background-image: linear-gradient(
    rgb(181, 181, 181),
    white,
    rgb(255, 255, 255),
    rgb(188, 188, 188)
  );
  border: 3px outset rgb(255, 255, 255);
  color: black;
  cursor: pointer;
}

.cityNameSubmitButton:active:not(:disabled) {
  background-color: rgba(212, 212, 212, 0.745);
  border: 5px inset rgb(255, 255, 255);
}

/* =====================================
   END OF CURRENT FORECAST STYLING
   ===================================== */

/* =====================================
   START: FORECAST DISPLAY STYLING - Styles the section that displays weather forecast information
   ===================================== */
.foreCastBox {
  max-width: 100%;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 2vh;
  padding: 2vh 0;
}

/* Forecast Title Container - Displays city, state, and "Forecast" text */
.forecastTitleFormatting {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-size: 2rem;
  text-align: center;
  max-width: 100%;
  margin: 0;
  height: auto;
  font-family: Bakbak One, sans-serif;
}

/* City Name - Styles the city name display with text overflow handling */
#location {
  color: rgb(255, 255, 255);
  font-size: 2.5rem;
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-text-stroke: 0.8px rgb(0, 0, 0);
  height: auto;
}

/* State or Region - Styles the state display with text overflow handling */
#regionLocation {
  color: rgb(255, 255, 255);
  font-size: 2rem;
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-text-stroke: 0.8px rgb(0, 0, 0);
  height: auto;
}


/* =====================================
   Three Day Forecast Section
   ===================================== */
.threeDayForecastContainer {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%; /* Ensure it respects parent container */
}

.threeDayForecastContainerDropDown {
  display: none; /* Hidden by default */
  flex-direction: column;
  width: 98%;
  max-height: 90vh; /* Limits height, adjust as needed */
  overflow-y: auto; /* Enables vertical scrolling */
  border: 3px groove black;
  border-radius: 5px;
}

.threeDayForecastContainerDropDown2 {
  display: none;
  flex-direction: column;
  width: 98%;
  max-height: 90vh;
  overflow-y: auto;
  border: 3px groove black;
  border-radius: 5px;
}

.threeDayForecastContainerDropDown3 {
  display: none;
  flex-direction: column;
  width: 98%;
  max-height: 90vh;
  overflow-y: auto;
  border: 3px groove black;
  border-radius: 5px;
}

.detailedForecastHeader {
  -webkit-text-stroke: 0.5px black;
}

.dayOne,
.dayTwo,
.dayThree {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%; /* Ensure each day takes full container width for centering */
  border: 2px groove rgb(0, 0, 0);
  box-shadow: 0px 0px 5px 2px rgb(0, 0, 0);
}

/* Individual Day-Day Name-text styling */
.dayOneName,
.dayTwoName,
.dayThreeName {
  font-family: "Bakbak One", sans-serif;
  color: white;
  font-size: 2rem;
  -webkit-text-stroke: 0.8px black;
}

/* Individual Day-Date-text styling */
.dayOneDate,
.dayTwoDate,
.dayThreeDate {
  font-family: "Bakbak One", sans-serif;
  color: white;
  font-size: 1.5rem;
  -webkit-text-stroke: 0.8px black;
}

/* Individual Day-Condition-text styling */
.conditionDayOne,
.conditionDayTwo,
.conditionDayThree {
  font-family: "Bakbak One", sans-serif;
  color: white;
  font-size: 1.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Table styling for three-day forecast */
.threeDayForecastTable {
  font-family: "Bakbak One", sans-serif;
  color: white;
  margin-top: 20px;
  width: 100%; /* Ensure it fits its parent */
}

.threeDayTable {
  border-collapse: collapse;
  width: 100%;
  max-width: 100%; /* Prevent overflow */
  table-layout: fixed; /* Force columns to respect container width */
}

.threeDayTable th,
.threeDayTable td {
  padding: 8px;
  word-wrap: break-word; /* Prevent text overflow */
  overflow: hidden;
}

/* Table Asset Image Styling */
#weatherPictureOne,
#weatherPictureTwo,
#weatherPictureThree {
  max-width: 100%; /* Fit within parent */
  width: auto;
  height: auto;
}

/* Table Headers Styling */
.threeDayTableHeaderStyle {
  font-family: "Bakbak One", sans-serif;
  color: white;
  -webkit-text-stroke: 0.5px black;
  border: 2px inset rgb(255, 255, 255);
  width: auto;
  font-size: 1rem;
}

/* Dropdown Menu Styling */
.dropDownCursorButton {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 100%;
}

/* =====================================
   END: FORECAST DISPLAY STYLING
   ===================================== */

footer {
  background-color: #1a3c5e00; /* A weather-inspired dark blue */
  color: #ffffff;
  padding: 2rem 1rem;
  text-align: center;
  font-family: Bakbak-One, sans-serif;
}

.footer-content h4 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: bold;
  font-family: Bakbak-One, sans-serif;
}

.footer-content p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  font-family: Bakbak-One, sans-serif;
}

.footer-links {
  margin-top: 1rem;
  font-family: Bakbak-One, sans-serif;
}

.footer-links a {
  color: #a8c7fa; /* Light blue for links */
  text-decoration: none;
  font-size: 0.85rem;
  margin: 0 0.5rem;
  font-family: Bakbak-One, sans-serif;
}

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

/* =====================================
   Responsive Design - Media Queries
   ===================================== */

/* 320px Width */
@media screen and (min-width: 320px) {
  /* Header adjustments */
  #actualButton {
    height: 5vh;
  }

  /* Current forecast adjustments */
  .frontPageMenuMainBox {
    justify-content: flex-start;
    padding: 1vh 0;
  }

  .frontPageMenu-Header {
    align-items: flex-start;
  }

  /* Three-day forecast adjustments */
  .threeDayForecastContainer {
    flex-direction: column;
  }
  .dayOne,
  .dayTwo,
  .dayThree {
    width: 100%;
  }
  .threeDayTable {
    font-size: 1rem;
  }
  /* Table Headers Styling */
  .threeDayTableHeaderStyle {
    font-size: 0.7rem;
  }
}

/* 375px Width */
@media screen and (min-width: 375px) {
  /* Current forecast adjustments */
  .frontPageMenu-Header {
    align-items: flex-start;
  }
  .currentForecast {
    font-size: 5vh;
    -webkit-text-stroke: 0.8px rgb(0, 0, 0);
  }
  /* Table Headers Styling */
  .threeDayTableHeaderStyle {
    font-size: 0.7rem;
  }
}

/* 450px Width */
@media screen and (min-width: 450px) {
  /* Header adjustments */
  .catchyHeaderTitle {
    font-size: 5vw;
  }

  /* Current forecast adjustments */
  .currentForecast {
    font-size: 32px;
  }

  .cityName-label {
    font-size: 2.2rem;
  }
  /* Table Headers Styling */
  .threeDayTableHeaderStyle {
    font-size: 0.7rem;
  }
  .headerButton {
    height: 8vh;
  }
  #actualButton {
    height: 8vh;
  }
}

/* 540px Width */
@media screen and (min-width: 540px) {
  /* Header adjustments */
  .catchyHeaderTitle {
    font-size: 5vw;
  }

  /* Current forecast adjustments */
  .currentForecast {
    font-size: 10vh;
  }

  .cityNameSubmitButton {
    height: 12vh;
  }

  /* Three-day forecast adjustments */
  .threeDayForecastContainer {
    flex-direction: row;
    justify-content: space-between;
    max-width: 100%;
    align-items: stretch;
  }
  .threeDayTable {
    font-size: 0.8rem;
    width: 100%;
  }
  /* Table Headers Styling */
  .threeDayTableHeaderStyle {
    font-size: 0.7rem;
  }
  .dayOne,
  .dayTwo,
  .dayThree {
    width: 32%;
    max-width: 32%;
    min-height: 20vh; /* Set a minimum height for consistency */
  }
  .conditionDayOne,
  .conditionDayTwo,
  .conditionDayThree {
    max-width: 90%; /* Adjust to fit better in narrower box */
  }
  .headerButton {
    height: 8vh;
  }
  #actualButton {
    height: 8vh;
  }
}

/* 800px Width */
@media screen and (min-width: 800px) {
  /* Header adjustments */
  .headerOrganizationBox {
    flex-wrap: nowrap;
    justify-content: space-around;
    padding: 3vw;
    max-width: 100%;
    width: auto;
  }

  .catchyHeaderTitle {
    font-size: 4vw;
  }

  .headerImageContainer {
    width: 20%;
  }

  .header-image {
    height: 50%;
  }

  .headerButton {
    width: 20%;
  }

  #actualButton {
    height: 5vh;
  }

  /* Current forecast adjustments */
  .currentForecast {
    font-size: 10vh;
  }

  .cityName-label {
    font-size: 3.2rem;
  }

  .cityNameSubmitButton {
    height: 12vh;
  }

  /* Three-day forecast adjustments */
  .threeDayForecastContainer {
    flex-direction: row;
    justify-content: space-between;
    max-width: 100%;
    align-items: stretch;
  }
  .dayOne,
  .dayTwo,
  .dayThree {
    width: 32%; /* Fit three across with slight spacing */
    max-width: 32%;
    min-height: 20vh;
  }
  .conditionDayOne,
  .conditionDayTwo,
  .conditionDayThree {
    max-width: 90%; /* Adjust to fit better in narrower box */
  }
  .threeDayTable {
    width: 100%;
    font-size: 1.1rem;
  }
  #weatherPictureOne,
  #weatherPictureTwo,
  #weatherPictureThree {
    max-width: 80%; /* Slightly smaller in row layout */
  }
}

/* Only on devices with a mouse and not touchscreen */

@media (hover: hover) and (pointer: fine) {
  .headerButton button:hover {
    background-image: linear-gradient(
      rgb(97, 97, 97),
      white,
      rgb(255, 255, 255),
      rgb(83, 83, 83)
    );
  }
  .cityNameSubmitButton:hover {
    background-color: rgba(212, 212, 212, 0.745);
    background-image: linear-gradient(
      rgb(181, 181, 181),
      rgb(5, 255, 201),
      rgb(238, 255, 0),
      rgb(188, 188, 188)
    );
    border: 4px inset rgb(255, 255, 255);
  }
}
