/* General Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f9;
  color: #333;
}

header {
  background-color: #0077b6;
  color: white;
  padding: 20px;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
}

nav ul li a:hover {
  text-decoration: underline;
}

#weatherForm {
  margin-top: 10px;
}

#cityInput {
  padding: 10px;
  width: 200px;
  border: none;
  border-radius: 5px;
}

button {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  background-color: #023e8a;
  color: white;
  cursor: pointer;
  margin: 5px;
}

button:hover {
  background-color: #03045e;
}

.container {
  display: flex;
  padding: 20px;
}

/* Advertisement Styles */
.ad-left, .ad-right {
  width: 200px;
  background-color: #e0e0e0;
  padding: 10px;
  text-align: center;
}

.ad-left img, .ad-right img, .ad-bottom img {
  max-width: 100%;
  height: auto;
}

.ad-bottom {
  background-color: #e0e0e0;
  padding: 10px;
  text-align: center;
}

/* Main Content Styles */
main {
  flex: 1;
  margin: 0 20px;
}

.current-weather, .forecast, .content {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

h2 {
  margin-top: 0;
  font-size: 1.8rem;
  color: #0077b6;
}

#currentWeather {
  font-size: 1.2rem;
}

/* Forecast Grid */
.forecast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.forecast-day {
  text-align: center;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.forecast-day h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #023e8a;
}

.weather-icon {
  font-size: 2rem;
  margin: 10px 0;
}

.forecast-day p {
  margin: 5px 0;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .ad-left, .ad-right {
    width: 100%;
    margin-bottom: 20px;
  }

  main {
    margin: 0;
  }

  .forecast-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

/* IP Page Styles */
.ip-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.ip-icon {
  width: 50px;
  height: 50px;
}

/* Speed Test Page Styles */
.speed-bar {
  width: 100%;
  height: 20px;
  background-color: #e0e0e0;
  border-radius: 10px;
  margin: 10px 0;
  overflow: hidden;
}

.progress {
  height: 100%;
  background-color: #2a9d8f;
  width: 0;
  transition: width 0.5s ease;
}