
body {
  background-color: rgb(243, 227, 203);
  font-family:Arial, Helvetica, sans-serif;
  font-size: 18px;
  margin: 0;
  overflow-x: hidden;

  
  display: flex;
  justify-content: center;
  align-items: flex-start; 
  min-height: 100vh;
}

.container {
  background-color: #fff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin: 20px auto;
  position: relative;
  width: 100%;
  max-width: 1000px;
  border: #f4b3b3 3px solid;
}

form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 8px;
}

.search-form-input {
  flex: 1;
  padding: 12px 15px;
  border-radius: 5px;
  border: 1px solid rgb(200, 129, 129);
  font-size: 16px;
  background-color: rgb(238, 250, 250);
  height: 45px; 
  box-sizing: border-box;
}

.search-form-button {
  height: 45px;           
  padding: 0 20px;         
  border-radius: 5px;
  border: 1px solid rgb(200, 129, 129);
  font-size: 16px;
  font-weight: 500;
  background-color: rgb(200, 248, 248);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}


.theme-toggle {
  height: 45px;            
  width: 45px;
  font-size: 20px;
  cursor: pointer;
  border-radius: 5px;
  background: rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.2s ease;
}
.theme-toggle:hover {
  background: rgba(0,0,0,0.15);
  transform: scale(1.05);
}

.weather-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  margin-top: 20px;
}

.city {
  font-size: clamp(1.5rem, 4vw, 3rem);
  color: rgb(50, 50, 50);
}
.details {
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  color: rgb(100, 100, 100);
}
.details strong {
  color: rgb(228, 127, 127);
}

.weather-details {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: right;
}
.temperature {
  font-size:clamp(2rem, 5vw, 4rem);
  font-weight: bold;
  color: rgb(50, 50, 50);
}
.unit {
  font-size: clamp(1rem, 4vw, 3rem);
  color: rgb(141, 136, 136);
}
.icon {
  font-size: clamp(2rem, 5vw, 3rem);
  color: rgb(50, 50, 50);
}

.weather-forecast {
  display: grid;
  gap: 15px;
  margin-top: 30px;
}

.weather-forecast-day {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  font-size: clamp(0.8rem, 1.5vw, 1rem);
}

.weather-forecast-date {
  font-weight: 600;
  margin-bottom: 5px;
}

.weather-forecast-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto;
}

.weather-forecast-temperatures {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 8px;
  color: #f65282;
}
@media (max-width:600px){
  .container{
    margin:15px;
    width:auto;
  }
}
@media (min-width: 992px) {
  .weather-forecast {
    grid-template-columns: repeat(6, 1fr);
  }
}
/* Tablet: 3+3 */
@media (min-width: 600px) and (max-width: 991px) {
  .weather-forecast {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* Mobile: 2+2+2 */
@media (max-width: 599px) {
  .weather-forecast {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Footer */
footer {
  text-align: center;
  padding: 10px; /* smaller padding by default */
  margin-top: 15px;
  font-size: clamp(0.6rem, 1vw, 1rem); /* scales down automatically */
  color: rgb(100, 100, 100);
  white-space: nowrap;  /* force one line */
  overflow-x: auto;     /* allow horizontal scroll if too long */
}

/* On very small screens, remove padding completely and shrink font */
@media (max-width: 400px) {
  footer {
    padding: 5px;
    font-size: 0.6rem;
  }
}

/* Dark theme */
.black {
  background: #232223;
}
.black .container {
  background: #eeeaec;
  border: 3px solid rgb(137, 105, 105);
}
.black footer {
  color: #5d5858;
}
.black .city {
  color: #554e4e;
}
.black .details {
  color: #524a4a;
}
.black .details strong {
  color: #d48080;
}
.black .temperature {
  color: #5b5050;
}
.black .unit {
  color: #544b4b;
}


