* {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif; /* Modern font */
  background: linear-gradient(135deg, #00b894, #0984e3); /* Yeşil ve mavi geçişi */
  color: #fff; /* Beyaz yazı rengi */
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}



.card {
  width: 90%;
  max-width: 470px;
  background: linear-gradient(135deg, #00b894, #0984e3); /* Yeşil ve mavi tonları */
  color: #fff;
  margin: 100px auto 0;
  border-radius: 20px;
  padding: 40px 35px;
  text-align: center;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4); /* Derin gölge efekti */
}

.search {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.search input {
  border: 0;
  outline: 0;
  background: #ebfffc;
  color: #555;
  padding: 10px 25px;
  height: 60px;
  border-radius: 30px;
  flex: 1;
  margin-right: 16px;
  font-size: 18px;
}

.search button {
  border: 0;
  outline: 0;
  background: #ebfffc;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  cursor: pointer;
}

.search button img {
  width: 16px;
}

.weather-icon {
  width: 170px;
  margin-top: 30px;
}

.weather h1 {
  font-size: 80px;
  font-weight: 500;
}

.weather h2 {
  font-size: 45px;
  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;
}

.humidity,
.wind {
  font-size: 28px;
  margin-top: -6px;
}

.weather {
  display: none;
}

.error {
  text-align: left;
  margin-left: 10px;
  font-size: 14px;
  margin-top: 10px;
  display: none;
}

.navbar {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 30px;
  padding: 0.8rem 2rem;
  /* Modern yazı tipi */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  /* Daha derin bir gölge */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  z-index: 99;
  /* Navbar'ın üstte olması için */
  transition: all 0.3s ease;
  /* Navbar'ın yumuşak geçiş efekti */
}

.navbar-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
}

.navbar-item {
  display: flex;
  align-items: center;
  position: relative;
}

.navbar-item a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem;
  border-radius: 5px;
  position: relative;
}

.navbar-item a:hover {
  color: #ffeb3b;
  /* Hover rengi sarı */
  transform: translateY(-2px);
  /* Hover'da hafif yükselme efekti */
}

.navbar-item a:before {
  content: '';
  position: absolute;
  width: 0%;
  height: 3px;
  background-color: #ffeb3b;
  transition: width 0.3s ease;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
}

.navbar-item a:hover:before {
  width: 100%;
  /* Hover'da alt çizgi büyür */
}

.navbar-item i {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.navbar-item a:hover i {
  transform: rotate(15deg);
  /* Hover'da simge dönüş efekti */
}

/* Resim ve simgeler */
.navbar-item a i {
  margin-right: 8px;
}






/* Mobil uyum */
@media (max-width: 768px) {
  .card {
    max-width: 90%; /* Daha küçük genişlikte kart */
    padding: 20px; /* Daha az padding */
  }

  .search input {
    height: 50px; /* Input kutusunu küçültüyoruz */
    font-size: 16px;
  }

  .weather-icon {
    width: 120px; /* Hava durumu simgesini küçültüyoruz */
  }

  .weather h1 {
    font-size: 60px; /* Sıcaklık başlığını küçültüyoruz */
  }

  .weather h2 {
    font-size: 35px; /* Şehir adını küçültüyoruz */
  }

  .details {
    flex-direction: column; /* Detayları dikey hale getiriyoruz */
    margin-top: 30px;
  }

  .col {
    margin-bottom: 10px; /* Detaylar arasında boşluk bırakıyoruz */
  }

  .navbar-menu {
    gap: 1rem; /* Menü öğeleri arasındaki boşluğu kısaltıyoruz */
  }

  .navbar-item a {
    font-size: 1rem; /* Menü öğelerini biraz daha küçültüyoruz */
  }
  
 
}



