/* globals.css */

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f5fcde;
  margin: 0;
  padding: 20px;
  color: #333;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #222;
}

/* Main container with white background and subtle shadow */
.main-container {
  max-width: 600px;
  background: #fff;
  margin: 0 auto 30px;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Header with location icon and text */
header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-weight: 600;
  font-size: 1.1rem;
  color: #555;
}

header img {
  margin-right: 10px;
}

/* Search container */
.search-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

/* Search input styles */
#searchBar {
  flex: 1;
  padding: 10px 15px;
  font-size: 1rem;
  border: 2px solid #ddd;
  border-radius: 25px;
  transition: border-color 0.3s ease;
  outline: none;
}

#searchBar:focus {
  border-color: #0077ff;
  box-shadow: 0 0 6px #a8caff;
}

/* Search button container */
#searchButton {
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

#searchButton:hover {
  background-color: #e0e7ff;
}

/* Current location icon */
#currentLocation {
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

#currentLocation:hover {
  background-color: #e0f7fa;
}

/* Popular cities container */
#popularCities {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 30px;
}

/* City buttons */
.city-btn,
#refreshButton {
  background-color: #0077ff;
  color: white;
  border: none;
  padding: 10px 18px;
  font-size: 0.9rem;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0, 119, 255, 0.4);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.city-btn:hover {
  background-color: #005bb5;
  box-shadow: 0 6px 12px rgba(0, 91, 181, 0.6);
}

/* Display container for weather info */
#display {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 25px 20px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  font-size: 1.1rem;
  text-align: center;
  color: #222;
}

/* Spinner (example styling, adjust your spinner styles accordingly) */
.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #0077ff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  margin: 30px auto;
  animation: spin 1s linear infinite;
}

/* Bounce animation for icons */
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.bounce {
  animation: bounce 2s ease-in-out infinite;
}

/* Spinner animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

footer {
  font-size: 0.7rem;
  color: #555;
  text-align: center;
  padding: 2rem 0;
}
