@import url("https://fonts.googleapis.com/css?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

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

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  direction: rtl; /* تحديد الاتجاه من اليمين لليسار */
}

.container {
  position: relative;
  width: 350px;
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.search-box {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.search-box input {
  width: 80%;
  height: 40px;
  padding: 0 10px;
  border: 2px solid #ddd;
  border-radius: 10px;
  outline: none;
  font-size: 16px;
  color: #333;
}

.search-btn {
  height: 40px;
  padding: 0 15px;
  margin-right: 10px; /* تغيير المارجين لتناسب الاتجاه من اليمين لليسار */
  border: none;
  border-radius: 10px;
  background: #4facfe;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.search-btn:hover {
  background: #00c6fb;
}

.weather-info {
  color: #333;
  margin-top: 20px;
}

.weather-info h2 {
  font-size: 24px;
  font-weight: 600;
  color: #4facfe;
  margin-bottom: 10px;
}

.weather-info p {
  font-size: 18px;
  margin: 5px 0;
}

#weather-icon {
  margin-top: 10px;
  font-size: 80px;
  display: inline-block;
}