*{
    margin: 0;
    padding: 0;
    font-family: 'Times New Roman', Times, serif;
    box-sizing: border-box;
}

body {
    background: #222;
}



.card {
    width: 90%;
    max-width: 470px;
    background: linear-gradient(135deg, #00feba, #5b548a);
    color: #fff;
    margin: 100px auto 0;
    border-radius: 50px;
    padding: 40px 35px;
    text-align: center;
}

.search {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search input {
    border: 0;
    outline: 0;
    background: #ebfffc;
    color: black;
    padding: 10px 25px;
    height: 60px;
    border-radius: 80px;
    flex: 1;
    margin-right: 16px;
    font-size: 18px;
}   

.search button {
    outline: 0;
    border: 0;
    background: #ebfffc;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
}

.search button i{
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    color: black;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.Weather-icon{
    width: 170px;
    margin-top: 30px;
}

.weather h1{
    font-size: 80px;
    font-weight: 500;

}

.weather h2{
    font-size: 82px;
    font-weight: 400;
    margin-top: -10px;
}

.details{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    margin-top: 50px;
}

.col{
    display: flex;
    align-items: center;
    text-align: left;
}

.col img{
    width: 40px;
    margin-right: 10px;
}


.wind, .humidity{
     font-size: 28px;
     margin-top: -6px;
}
   
.weather{
    display: none;
}

.error{
    text-align: left;
    margin-left: 10px;
    font-size: 50px;
    margin-top: 200px;
    display: none;
}

/* Theme toggle button */
.theme-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--card-gradient);
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-color);
  font-size: 1.2rem;
  transition: transform 0.2s;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

/* Light theme overrides */
body.light {
  --bg-color: #f5f5f5;
  --text-color: #222;
  --card-gradient: linear-gradient(135deg, #dff9f6, #a1c4fd);
  --input-bg: #fff;
} 

:root {
  --bg-color: #1a1a2e;
  --text-color: #fff;
  --card-gradient: linear-gradient(135deg, #00feba, #5b548a);
  --input-bg: #ebfffc;
  --error-color: #ff6b6b;
}


