

body {
    margin: 0 auto;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    background-image:url("./back-ground-image.jpg") ;
    background-repeat: no-repeat;
    background-size: cover;
}
.main-container{
    display: flex;
    max-width: 100%;
    align-items: center;
    justify-content: center;
}
.main-heading {
    font-size: 48px; /* Adjust as needed */
    background: linear-gradient(90deg, #1207a4, #6053a0, #ff7e5f, #feb47b);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 5s ease infinite;
    text-align: center; /* Optional: center the text */
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}



.container {
    text-align: center;
    padding-top: 20px;
    box-sizing: border-box;
    width: 100%;
    margin: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weather-card {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.weather-card:hover {
    transform: scale(1.05);
}

#city-input {
    padding: 15px;
    margin: 10px 0;
    width: 100%;
    border: 1px solid #0287f5;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

#city-input:focus {
    outline: none;
    border-color: #2196F3;
}

#city-input::placeholder {
    color: #aaa;
}

.btn-conteiner {
    display: flex;
    justify-content: center;
    --color-text: #ffffff;
    --color-background: #2196F3;
    --color-outline: #012bfc;
    --color-shadow: #00000080;
  }
  
  .btn-content {
    display: flex;
    align-items: center;
    padding: 5px 6px 5px 20px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: var(--color-text);
    background: var(--color-background);
    transition: 1s;
    border-radius: 10px;
    box-shadow: 0 0 0.2em 0 var(--color-background);
  }
  
  .btn-content:hover, .btn-content:focus {
    transition: 0.5s;
    -webkit-animation: btn-content 1s;
    animation: btn-content 1s;
    outline: 0.1em solid transparent;
    outline-offset: 0.2em;
    box-shadow: 0 0 0.4em 0 var(--color-background);
  }
  
  .btn-content .icon-arrow {
    transition: 0.5s;
    margin-right: 0px;
    transform: scale(0.6);
  }
  
  .btn-content:hover .icon-arrow {
    transition: 0.5s;
    margin-right: 25px;
  }
  
  .icon-arrow {
    width: 20px;
    margin-left: 15px;
    position: relative;
    top: 6%;
  }
    
  /* SVG */
  #arrow-icon-one {
    transition: 0.4s;
    transform: translateX(-60%);
  }
  
  #arrow-icon-two {
    transition: 0.5s;
    transform: translateX(-30%);
  }
  
  .btn-content:hover #arrow-icon-three {
    animation: color_anim 1s infinite 0.2s;
  }
  
  .btn-content:hover #arrow-icon-one {
    transform: translateX(0%);
    animation: color_anim 1s infinite 0.6s;
  }
  
  .btn-content:hover #arrow-icon-two {
    transform: translateX(0%);
    animation: color_anim 1s infinite 0.4s;
  }
  
  /* SVG animations */
  @keyframes color_anim {
    0% {
      fill: white;
    }
  
    50% {
      fill: var(--color-background);
    }
  
    100% {
      fill: white;
    }
  }
  
  /* Button animations */
  @-webkit-keyframes btn-content {
    0% {
      outline: 0.2em solid var(--color-background);
      outline-offset: 0;
    }
  }
  
  @keyframes btn-content {
    0% {
      outline: 0.2em solid var(--color-background);
      outline-offset: 0;
    }
  }
#weather-info {
    display: none;
    margin-top: 20px;
}

#weather-icon {
    width: 100px;
    height: 100px;
}

#temperature {
    font-size: 24px;
    font-weight: bold;
    margin: 8px 0;
}

#description {
    font-size: 18px;
    margin-bottom: 10px;
}

#wind-speed {
    font-size: 16px;
    font-weight: 500;
    font-weight: 600;
}
#date{
  font-weight: 600;
}
#date::before,
#date::after {
  content: "";
  flex-grow: 1;
  height: 1px;
  background-color: var(--primary-color); /* Use primary color */
  margin: 0 10px;
}

@media (max-width: 768px) {
    .weather-card {
        width: 90%;
        padding: 15px;
    }
    #temperature {
        font-size: 20px;
    }

    #description, #wind-speed, #date {
        font-size: 16px;
        font-weight: 600;
    }
}
#city-name{
    width: max-content;
    padding: 8px 10px;
    border-radius: 5%;
    background-color:#2196F3;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

#city-form span {
    float: right; /* Or use Flexbox from previous example */
    border: none;
    background-color: transparent;
    padding: 5px; /* Adjust padding if needed */
    border-radius: 50%; /* Make the button circular */
    cursor: pointer; /* Indicate clickable behavior */
  }

 
  .input-city-container{
    display: flex;
    gap: 5px;      
  }

.wind-container{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    }
     .fa-fan{
        font-size: 12px;  
        animation: rotation infinite 3s linear;
       }
       @keyframes rotation {
         from{
           transform:rotate(0deg);
         }
         
         to{
           transform:rotate(360deg);
         }
       } 


.date-container{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}


/* Toast container styles */
#toast-container {
  position: fixed;
  top: 25px;
  right: 30px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Toast styles */
.toast {
  position: relative;
  border-radius: 6px;
  background: #fff;
  padding: 20px 35px 20px 25px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  border-left: 8px solid #f00;
  overflow: hidden;
  transform: translateX(calc(100% + 30px));
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.25, 1.35);
  opacity: 0;
}

.toast.Warning {
  border-left: 8px solid rgb(242, 173, 36);
}

.toast.active {
  transform: translateX(0);
  opacity: 1;
}

.toast-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.toast-check {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 35px;
  width: 35px;
  background-color: #f00;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
}

.message {
  display: flex;
  flex-direction: column;
  margin: 0 20px;
}

.message-text {
  font-size: 20px;
  font-weight: 600;
}

.toast-check.fa-exclamation-circle {
  display: flex;
}

.text-1 {
  color: #333;
}

.text-2 {
  color: #666;
  font-weight: 600;
  font-size: 16px;
}

.toast-close {
  position: absolute;
  top: 10px;
  right: 15px;
  padding: 5px;
  cursor: pointer;
  opacity: 0.7;
}

.toast-close:hover {
  opacity: 1;
}

.progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: #ddd;
}

.progress::before {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  height: 100%;
  width: 100%;
  background-color: rgb(248, 65, 65);
}

.progress.active::before {
  animation: progress 3s linear forwards;
}

@keyframes progress {
  100% {
      right: 100%;
  }
}


#get-location{
  padding: 8px 16px;
  font-size: 20px;
  background: #2196F3;
  border: none;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;

}
#city-input-btn{
 gap: 20px;
 margin-left: -20px;
}
#location{
  font-weight: 500;
  background:#2196F3 ;
  max-width: max-content;
  padding: 8px 16px;
  color: #fff;
  display: inline-flex;
  border-radius: 5px;
}
#get-location {
  padding: 8px 16px;
  font-size: 22px;
  background: #2196F3;
  border: none;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

#get-location:hover {
  background: #1976D2;
}

#get-location:active {
  animation: clickEffect 0.3s forwards;
}

@keyframes clickEffect {
  0% {
      transform: scale(1);
      background: #2196F3;
  }
  50% {
      transform: scale(0.9);
      background: #1976D2;
  }
  100% {
      transform: scale(1);
      background: #2196F3;
  }
}

#get-location::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  transition: transform 0.5s;
}

#get-location:hover::before {
  transform: translate(-50%, -50%) scale(1);
}


.reset-button {
  display: inherit;
  justify-content: center;
  align-items: center;
  padding: 4px 10px;
  margin: 11px 0px;
  background: #2196F3;
  cursor: pointer;
  color: #fff;
  border-radius: 5px;
  font-weight: 600;
  transition: background 0.3s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.reset-button:hover {
  background: #1976D2;
}

.reset-button:active {
  animation: clickEffect 0.3s forwards;
}

@keyframes clickEffect {
  0% {
      transform: scale(1);
      background: #2196F3;
  }
  50% {
      transform: scale(0.9);
      background: #1976D2;
  }
  100% {
      transform: scale(1);
      background: #2196F3;
  }
}

.reset-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  transition: transform 0.5s;
}

.reset-button:hover::before {
  transform: translate(-50%, -50%) scale(1);
}

.reset-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid transparent;
  border-radius: 5px;
  box-sizing: border-box;
  animation: borderShine 2s infinite;
}

@keyframes borderShine {
  0% {
      border-color: #2196F3;
      box-shadow: 0 0 5px #2196F3;
  }
  50% {
      border-color: #1976D2;
      box-shadow: 0 0 20px #1976D2;
  }
  100% {
      border-color: #2196F3;
      box-shadow: 0 0 5px #2196F3;
  }
}