:root {
  --main-bg: linear-gradient(135deg, #74ebd5 0%, #ACB6E5 100%);
  --card-bg: #fff;
  --card-radius: 18px;
  --card-shadow: 0 6px 24px rgba(44, 62, 80, 0.15);
  --primary: #2980b9;
  --primary-hover: #3498db;
  --input-border: #b2bec3;
  --input-focus: #2980b9;
  --list-bg: #f1f2f6;
  --list-hover: #dff9fb;
  --list-color: #2d3436;
  --error-bg: #ffe5e5;
  --error-color: #d63031;
}
*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
 
  overflow: hidden;
}
.card-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  padding: 20px;
  background-image: url(cloud.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  

}
.card {
  background: transparent;


  padding: 20px;
  width: fit-content;
  margin: 50px auto;
  text-align: center;
  transition: all 1s ease;
   animation-name: fade-in;
  animation-timing-function: ease-in-out;
  animation-duration: 1.5s;
  animation-fill-mode: forwards;
  animation-iteration-count:1;
  transform: scale(0.5);
  animation-direction: alternate;
  opacity: 0;

}   

@keyframes fade-in{
   
    100%{
        opacity: 1;
         transform: scale(1);
    }
}
h1 {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--card-bg);
  transition: all 0.3s ease ;
}
h1:hover {
  color: var(--primary);
}

input {
  background-color: transparent;
  width: 100%; 
  padding: 10px;
  margin-bottom: 15px;
  border:none;
  border-bottom: solid 2px var(--input-border);
  border-radius: 5px;
  font-size: 16px;
}
input::placeholder {
  color: var(--input-border);
   background: transparent;
}
input:focus {
  border-color: var(--input-focus);
  outline: none;
  background-color: transparent;
  box-shadow: 0px 0px 20px rgba(41, 128, 185, 0.2);
}
button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 35px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
}
button:hover {
  background: var(--primary-hover);
  box-shadow: 10px 10px 20px rgba(41, 128, 185, 0.2);
}

#result {
  margin-top: 20px;
  background-color: transparent;
 
}
#result ul {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  list-style: none;
  padding: 10px;
  background: transparent;
   box-shadow: var(--card-shadow);
  border-radius: var(--card-radius);
  border-radius: 5px;
}
.description,.humidity, .wind-speed, .sunrise, .sunset {
   display: flex;
  justify-content: center;
  align-items: center;
  font-size: 15px;
  font-weight: bold;
  padding:10px 50px;
  background: transparent;
  border-radius: 10px;

  color: var(--card-bg);
  transition: all 1s ease;
}

#result ul li:hover {
  transform: translateX(-20px);
  box-shadow: var(--card-shadow);
}
.city-name,.temp{
  font-size: 40px;
  font-weight: bold;
   color: var(--card-bg);
    display: flex;
  justify-content: center;
  align-items: center;
   padding:10px 50px;
  background: transparent;
  border-radius: 10px;
    transition: all 1s ease;
}
img {
  width: 100px;
  height: 100px;
  margin-left: 10px;
} 
.loading-container{
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.loading, .loading-2, .loading-3 {
 

  justify-self: center;
  background-color: var(--primary);
  width: 20px;
  height: 20px ;
  border-radius: 50%;
  animation-name: load;
  animation-timing-function: ease-in-out;
 animation-duration: 1.5s;
  animation-fill-mode: both;
  animation-iteration-count:infinite;
  animation-direction: alternate;
  opacity: 0;
}
.loading {
animation-delay: 0.2s;
 }
.loading-2 { 
 animation-delay: 0.4s; 
 }
.loading-3 {
 animation-delay: 0.8s;
 }

@keyframes load {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(-20px);
    opacity: 0.5;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.error {
  background: var(--error-bg);
  color: var(--error-color);
  padding: 10px;
  border-radius: 5px;
}