*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: none;
    outline: none;
    font-family: sans-serif;
}

body {
    min-height: 100vh;
    margin: 0; /* Remove default margins */
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('pexels-lastly-772803.jpg');
    background-size: cover; /* Ensures the image covers the viewport */
    background-repeat: no-repeat; /* Prevents tiling */
    background-position: center; /* Centers the image */
    background-attachment: fixed; /* Keeps the background stable during scroll */
}


.container{
    width: 400px;
    height: min-content;
    background-image: url('pexels-alexfu-1229102.jpg');
    background-position:center;
    background-size:0;
    border-radius: 20px;
    padding: 20px;
    padding-top: 20px;;
}
.search-box{
    width: 100%;
    height: min-content;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden; /* Ensures smooth transitions for child elements */
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smooth zoom effect */
}
.search-box:hover {
    transform: scale(1.1); /* Slightly enlarges the container */
  }
  .search-box:hover {
    transform: scale(1.1); /* Shrinks the container slightly */
  }

.search-box input{
    width: 84%;
    font-size: 20px;
    text-transform: capitalize;
    color: #000;
    background-color: #e6f5fb;
    padding: 12px 16px;
    border-radius: 80px;
}

.search-box input::placeholder{
    color: #000;
}

.search-box button{
    width: 46px;
    height: 46px;
    background-color: #e6f5fb;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
}
.search-box button:hover{
    color: #1c9ec5;
    background-color: #ffffff;
    border-radius: 10px;
    border-color: #494949;
    transition: all 0.1s ease 0s;
}

.weather-body{
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-block: 20px;
    display: none;
}
.weather-body img{
    width: 20%;
}

.weather-box{
    margin-block: 20px;
    text-align: center;
}

.weather-box .temperature{
    font-size: 40px;
    font-weight: 800;
    position: relative;
}

.weather-box .temperature sup{
    font-size: 20px;
    position: absolute;
    font-weight: 600;
}

.weather-box .description{
    font-size: 20px;
    font-weight: 700;
    text-transform: capitalize;
}

.weather-details{
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.humidity, .wind{
    display: flex;
    align-items: center;
}

.humidity{
    margin-left: 20px;
}

.wind{
    margin-right: 20px;
}

.weather-details i{
    font-size: 36px;
}

.weather-details .text{
    margin-left: 10px;
    font-size: 16px;
}

.text span{
    font-size: 20px;
    font-weight: 700;
}

.location-not-found{
    margin-top: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.location-not-found h1{
    font-size: 20px;
    color: #6b6b6b;
    margin-block-end: 15px;
}
.location-not-found img{
    width: 80%;
}
.icon {
    font-size: 50px; /* Set the size of the icon */
    transition: transform 0.7s ease-in-out; /* Smooth transition for the rotation */
  }
.icon:hover {
    transform: rotate(360deg); /* Rotates the icon by 360 degrees */
  }
  .icon1 {
    font-size: 60px;
    transition: color 0.6 ease-in-out; /* Smooth color change transition */
  }
  .icon1:hover {
    color: #00acf0; /* Changes color to tomato */
  }