* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
/* 
body {
  background: #56CCF2;
  background: -webkit-linear-gradient(to right, #2F80ED, #56CCF2);
  background: linear-gradient(to right, #2F80ED, #56CCF2);

  height: 100vh;
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: top center;
  font-family: Arial, Helvetica, sans-serif;
  background-size: cover;
}

.main {
  width: 50vh;
  margin: 100px auto;
  background-color: rgba(240, 248, 255, 0,6);
  padding: 20px;
  text-align: center
} */

body {
  background: #56CCF2;
  background: -webkit-linear-gradient(to right, #2F80ED, #56CCF2);
  background: linear-gradient(to right, #2F80ED, #56CCF2);

  height: 100vh;
  background-repeat: no-repeat;
  background-position: top center;
  font-family: Arial, Helvetica, sans-serif;
  background-size: cover;
  background-attachment: fixed; /* Add this property */
}


.main {
  width: 50vh;
  margin: 100px auto;
  background-color: rgba(240, 248, 255, 0, 6);
  padding: 20px;
  text-align: center;
  min-height: 100vh; /* Add this property */
}

header {
  width: 100%;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar-left {
  display: flex;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
}

.navbar-links {
  display: flex;
  list-style: none;
}

.navbar-links li {
  margin: 0 10px;
}

.navbar-links a {
  text-decoration: none;
  color: #fff;
  font-size: 16px;
}

.navbar-links a:hover {
  color: #56CCF2;
}

.navbar-right {
  display: flex;
  align-items: center;
}

.search-box {
  width: 200px;
  background-color: rgba(255, 255, 255, 0.6);
  border: none;
  outline: none;
  font-size: 14px;
  color: #000;
  height: 30px;
  border-radius: 5px;
  padding: 0 10px;
  margin-right: 20px;
}

.search-box:focus {
  background-color: rgba(255, 255, 255);
}

.daytime {
  font-size: 16px;
  font-weight: 600;
}

.search-btn {
  background-color: #56CCF2;
  border: none;
  outline: none;
  font-size: 14px;
  color: #fff;
  height: 30px;
  border-radius: 5px;
  padding: 0 10px;
  cursor: pointer;
  margin: 5px;
}

.input-search-btn {
  background-color: #3eb670;
  border: none;
  outline: none;
  font-size: 14px;
  color: #fff;
  height: 30px;
  border-radius: 5px;
  padding: 0 10px;
  cursor: pointer;
  margin: 5px;
}

.search-btn:hover {
  background-color: #2F80ED;
}


.box {
  padding: 20px;
  width: 100px;
}

.main > * {
  margin-bottom: 20px;
}

.input-box {
  width: 100%;
  background-color: rgba(240, 248, 255, 0.6);
  border: none;
  outline: none;
  font-size: 1.2rem;
  color: #582233;
  height: 50px;
  border-radius: 5px;
  padding: 0 10px;
  text-align: center;
}

.input-box:focus {
  background-color: rgba(255, 255, 255);
}

/* (A) HIDE DEFAULT CHECKBOX */

.toggle input { display: none; }

/* (B) TOGGLE BUTTON WRAPPER */

.toggle {

  position: relative;

  display: inline-block;

  width: 80px;

  height: 30px;

}

/* (C) CUSTOM TOGGLE BUTTON "OUTSIDE BOX" */

.slider {
  position: absolute;
  top: 0; bottom: 0;
  left: 0; right: 0;
  cursor: pointer;
  border: 2px solid #b92121;
  background-color: #bc2612;
}

.slider::before {
  content: "";
  width: 50%;
  height: 100%;
  position: absolute;
  top: 0; left: 0;
  background-color: #eee;

}

.slider, .slider::before { transition: all 0.2s; }

.toggle input:checked + .slider {

  border: 2px solid #258805;

  background-color: #8cbc13;

}

.toggle input:checked + .slider::before { left: 50%; }

.weather {
  display: none;
  color: #582233;
  padding: 20px;
  line-height: 2rem;
  border-radius: 10px;
  background-color: rgba(240, 248, 255, 0.6);
  height: 65vh;
}

.location {
  font-weight: bold;
}

.status {
  padding: 20px;
}

.temperature {
  font-size: 50pt;
  font-weight: 700;
  margin: 20px 0;
  text-shadow: 2px 4px rgba(0, 0, 0, 0.3);
}

.min-max,
.description {
  font-size: 12pt;
  font-weight: 600;
} 

.forecast-section {
  width: 100%;
  margin-top: 10px;
  padding: 5px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


.forecast {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  overflow-x: auto;
  margin-top: 10px;
  padding-bottom: 20px; /* Adding padding to prevent the scrollbar from overlapping the content */
}

.forecast-day {
  flex: 0 0 auto; /* Change this to prevent the cards from stretching and to keep their width fixed */
  margin: 0 10px;
}


.forecast-day {
  flex: 1;
  margin: 0 10px;
}

.forecast-date,
.forecast-temp,
.forecast-description {
  margin-bottom: 10px;
}

.forecast-card {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  /* box-shadow: 0 4px 6px rgba(255, 255, 255, 0.2); */
}

.forecast-date {
  font-size: 17px;
  /* font-weight: 700; */
  margin-bottom: 10px;
  color: #0c0c0c;
  /* text-shadow: 2px 4px rgba(0, 0, 0, 0.3); */
}

.forecast-temp {
  font-size: 15pt;
  margin-bottom: 10px;
  color: #F1A94E;
 /* text-shadow: 2px 4px #F1A94E; */
}

.forecast-description {
  font-size: 15pt;
  margin-bottom: 10px;
  color: #E45635;
  /* text-shadow: 2px 4px #E45635; */
}

.forecast-wind, .forecast-sunrise, .forecast-sunset {
  font-size: 15pt;
  margin-bottom: 10px;
  color: #5D4C46;
  /* text-shadow: 2px 4px #5D4C46; */
}

