@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;400;700&display=swap");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: url('bodybg.jpg') no-repeat center center fixed; /* Add background image */
  background-size: cover; 
  position: relative;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.629); 
  z-index: -1; 
}










/* Navbar */
#navbar {
  position: fixed;
  width: 100%;
  padding: 10px 20px;
  transition: background-color 0.3s ease;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#navbar .logo {
  font-size: 24px;
  color: #fff;
}

#navbar .menu-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  height: 24px;
  cursor: pointer;
}

#navbar .bar {
  width: 24px;
  height: 2px;
  background-color: #fff;
  margin: 3px 0;
}


/* Banner */
.banner {
  height: 80vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  overflow: hidden; 
  transition: background-image 0.5s ease; 
}

.banner.night {
  background-image: url('nightban.jpg');
  background-color: rgba(0, 0, 0, 0.6);
}

.banner.day {
  background-image: url('ban.jpg');
  /* background-color: rgba(255, 255, 255, 0.3); */
}


.banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.24) ; 
  
}

.banner * {
  position: relative; 
  z-index: 1;
}






/* Calendar */

.calendar, .calendar_weekdays, .calendar_content {
  max-width: 400px;
}

.calendar {
  margin: auto;
  font-family: 'Muli', sans-serif;
  font-weight: 400;
  background-color: rgba(26, 23, 23, 0.338); 
}

.calendar_content, .calendar_weekdays, .calendar_header {
  position: relative;
  overflow: hidden;
}

.calendar_weekdays div {
  display: inline-block;
  vertical-align: top;
  color: white !important; 
}

.calendar_weekdays div, .calendar_content div {
  width: 14.28571%;
  overflow: hidden;
  text-align: center;
  background-color: transparent;
  font-size: 14px;
}

.calendar_content div {
  border: 1px solid transparent;
  float: left;
  
}

.calendar_content div:hover {
  border: 1px solid #dcdcdc;
  cursor: default;
}

.calendar_content div.blank:hover {
  cursor: default;
  border: 1px solid transparent;
}

.calendar_content div.past-date {
  color: #d5d5d5;
}

.calendar_content div.today {
  font-weight: bold;
  font-size: 14px;
  color: #3df20b !important;
  border: 1px solid #dcdcdc;
}

.calendar_content div.selected {
  background-color: #f0f0f0;
}

.calendar_header {
  width: 100%;
  text-align: center;
}

.calendar_header h2 {
  padding: 0 10px;
  font-family: 'Muli', sans-serif;
  font-weight: 300;
  font-size: 18px;
  color: #99e90e;
  float: left;
  width: 70%;
  margin: 0 0 10px;
}

button.switch-month {
  background-color: transparent;
  padding: 0;
  outline: none;
  border: none;
  color: #dcdcdc;
  float: left;
  width: 15%;
  transition: color .2s;
}

button.switch-month:hover {
  color: #87b633;
}

/* Responsive */
@media (max-width: 768px) {
  #navbar {
      padding: 10px;
  }

  #navbar .logo {
      font-size: 18px;
  }

  #navbar .bar {
      width: 20px;
      height: 2px;
  }


}




















/* weather container */
.container {
  border: 1px solid #289ce9;
  border-radius: 40px;
  margin: 50px auto;
  padding: 20px;
  color: white;
  max-width: 1000px !important;
  background: linear-gradient(to bottom, #0b0033 0%, #ff440086 50%, #ffa60088 100%);
  opacity: 90%;
  /* height: 60%; */
  position: relative;
}

.date-container {
  font-weight: 300;
  font-size: 20px;
  float: right;
  margin-top: -10px;
}

.time {
  font-size: 30px;
  text-align: center;
}

.location-container {
  float: left;
  font-weight: 300;
  font-size: 20px;
  margin-top: 5px;
  display: flex;
  align-items: center;
}

.location {
  margin-left: 10px;
}

.today-weather {
  position: relative;
  margin: 40px auto;
  font-size: 25px;
  font-weight: 200;
  text-align: center;
  color: white;
  padding: 20px;
  border-radius: 8px;
  min-width: 400px;
  max-width: 550px;
  width: 100%; 
}

.today-weather .day {
  font-weight: 400;
  font-size: 30px;
  display: block;
  text-align: center;
  margin: 0 auto;
}

.weather-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  background-size: cover;
  background-position: center;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.current-temp {
  font-size: 70px;
  font-weight: 400;
}

.other-currents {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  font-weight: 300;
  font-size: 16px;
  margin: 5px;
}

.weather-forecast {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
}

.weather-forecast-item {
  border: 1px solid white;
  justify-content: space-evenly;
  border-radius: 15px;
  width: 100%;
  padding: 8px;
  margin: 10px;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0px 0px 10px 3px rgba(234, 234, 234, 0.11);
}

/* ::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}

::-webkit-scrollbar-thumb {
  background: #858585;
  border-radius: 9px;
}

::-webkit-scrollbar-thumb:hover {
  background: #858585;
}

::-webkit-scrollbar-track {
  background: #F0F0F0;
  border-radius: 30px;
  box-shadow: inset 0px 0px 0px 0px #F0F0F0;
} */

/* Responsive adjustments for smaller screens */
@media screen and (max-width: 600px) {
  .container {
    margin: 20px 10px;
    padding: 15px;
    border-radius: 20px;
  }

  .date-container,
  .time,
  .location-container {
    font-size: 16px;
  }

  .today-weather {
    margin: 20px auto;
    padding: 15px;
    border-radius: 8px;
    min-width: 100%; /* Full width on smaller screens */
  }

  .today-weather .day {
    font-size: 24px;
    margin: 0 auto;
  }

  .current-temp {
    font-size: 50px;
  }

  .other-currents {
    font-size: 14px;
  }

  .weather-forecast-item {
    padding: 6px;
    margin: 5px;
  }

  .hourly-forecast-item {
    width: 70px;
    padding: 6px;
    margin: 0 3px;
  }

  .hourly-forecast-item img {
    width: 40px;
    height: 40px;
  }

  .weather-background {
    height: 100vh;
    background-size: contain;
  }
}

.search-container {
  margin: 20px 0;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.search-container input {
  padding: 8px;
  width: 60%;
  font-size: 0.9em;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-right: 5px;
}

.search-container button {
  padding: 8px 12px;
  font-size: 0.9em;
  background-color: rgba(100, 148, 237, 0.285);;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: white;
  margin-right: 5px;
}

.search-container #shareWeather {
  padding: 8px;
  /* background-color: #00cece; */
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: white;
}

.search-container #shareWeather i {
  font-size: 1.2em;
}


/* Hourly forecast container styles */
.hourly-forecast-container {
  overflow-x: auto;
  white-space: nowrap;
  padding: 20px 10px;
  border-radius: 8px;
}

/* Hourly forecast main styles */
.hourly-forecast {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 35px;
}

/* Hourly forecast item styling */
.hourly-forecast-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 10px;
  padding: 15px 10px;
  margin: 0 5px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
  width: 140px;
  box-sizing: border-box;
}

.hourly-forecast-time {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  text-align: center !important;
  width: 100%;
}

.hourly-forecast-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 8px;
}

.hourly-forecast-description {
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
}

.hourly-forecast-temp {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

/* Responsive design for smaller screens */
@media screen and (max-width: 600px) {
  .hourly-forecast {
    gap: 10px;
  }

  .hourly-forecast-item {
    width: 100px;
    padding: 10px;
  }

  .hourly-forecast-time {
    font-size: 14px;
  }

  .hourly-forecast-icon {
    width: 40px;
    height: 40px;
  }

  .hourly-forecast-temp {
    font-size: 16px;
  }
}

/* Scrollbar customization */
::-webkit-scrollbar {
  height: 4px;
}

::-webkit-scrollbar-thumb {
  background: #181818;
  border-radius: 10px;
}

::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 10px;
}

/* Hover effect */
.hourly-forecast-item:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/* Background styles for different weather conditions */
.weather-background {
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.sunny {
  background: url('') no-repeat center center;
  background-size: cover;
}

.cloudy {
  background: url('cloud1-unscreen.gif') no-repeat center center;
  background-size: 1300px 500px;
}

.rain {
  background: url('lightrain.gif') no-repeat center center;
  background-size: cover;
}

.snow {
  background: url('snoww.gif') no-repeat center center;
  background-size: cover;
}

.haze {
  background: url('cloud1-unscreen.gif') no-repeat center center;
  background-size: 1300px 500px;
}

.partly-cloudy {
  background: url('cc1.gif') no-repeat center center;
  background-size: cover;
}

.mostly-cloudy {
  background: url('cc1.gif') no-repeat center center;
  background-size: cover;
}

.partly-sunny {
  background: url('') no-repeat center center;
  background-size: cover;
}

.mist {
  background: url('fog.png') no-repeat center center;
  background-size: cover;
}

.heavy-rain {
  background: url('rain.gif') no-repeat center center;
  background-size: cover;
}

.drizzle {
  background: url('rain3.gif') no-repeat center center;
  background-size: cover;
}


.thunderstorm {
  background: url('thunder.gif') no-repeat center center;
  background-size: cover;
}







/* map */
.map-container {
  margin: 20px auto;
  max-width: 1500px;
  
}





footer {
  background-color: #41424241;
  color: #ecf0f1;
  padding: 10px 20px; /* Adjust padding to fit within 5vh to 7vh height */
  text-align: center;
  position: relative;
  bottom: 0;
  width: 100%;
  min-height: 6vh; /* Minimum height for the footer */
  max-height: 7vh; /* Maximum height for the footer */
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}


.footer-content strong {
  color: #f39c12; /* Highlighting the website name */
}

.linkedin-link {
  color: #3498db;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-top: 4px; /* Adjusted margin to fit within the height constraint */
}

.linkedin-link:hover {
  text-decoration: underline;
}

/* Responsive design */
@media (max-width: 600px) {
  footer {
      padding: 8px 15px; /* Adjusted padding for smaller screens */
  }

  .footer-content p, .footer-content a {
      font-size: 5px !important;
  }
}