/* Basic body styling with background image */
body {
  font-family: Arial, Helvetica, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  position: relative;
  color: #d3d3d3;
  overflow: hidden;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("https://c4.wallpaperflare.com/wallpaper/597/73/315/night-moon-sky-clouds-wallpaper-preview.jpg")
      no-repeat center center fixed;
  background-size: cover;
  z-index: -1;
}

/* Weather container border with gradient background */
.weather-container-border {
  position: relative;
  text-align: center;
  background: linear-gradient(to bottom, rgba(57, 57, 57, 0.8), rgba(35, 35, 35, 0.8), rgba(13, 13, 13, 0.8));
  padding: 5px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  width: 100%;
  max-width: 610px;
  box-sizing: border-box;
  transition: all 0.3s ease-out;
}

.weather-container-border:hover {
  background: linear-gradient(to bottom, rgba(19, 19, 19, 0.8), rgba(26, 26, 26, 0.8), rgba(7, 7, 7, 0.8));
  padding: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

/* Weather container with gradient background */
.weather-container {
  position: relative;
  text-align: center;
  background: linear-gradient(to bottom, rgba(27, 27, 27, 0.6), rgba(37, 37, 37, 0.6), rgba(32, 32, 32, 0.6));
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(7, 7, 7, 0.5);
  width: 100%;
  max-width: 600px;
  box-sizing: border-box;
  transition: all 0.3s ease-out;
}

.weather-container:hover {
  background: linear-gradient(to bottom, rgba(27, 27, 27, 1), rgba(37, 37, 37, 1), rgb(23, 23, 23));
  transform: scale(1.01);
  box-shadow: 0 0 15px rgba(7, 7, 7, 0.7);
}

/* Input text styling with hover and focus effects */
input[type="text"] {
  padding: 10px;
  border: 1px solid #aaa;
  border-radius: 5px;
  width: 200px;
  margin-right: 10px;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  background: #cdcfdb;
  color: #0c0c0c;
  text-decoration: solid;
}

input[type="text"]:hover {
  box-shadow: 0 0 15px rgba(122, 123, 255, 0.5);
  border-color: #07131d;
}

input[type="text"]:focus {
  outline: 2px solid #282638;
  box-shadow: 0 0 8px rgba(122, 123, 255, 0.5);
  border-color: #3e3e3e;
}

/* Button styling with hover effect */
button {
  padding: 10px;
  border: none;
  border-radius: 5px;
  background: #36394b;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.1s ease;
}

button:hover {
  background: #141729;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
  border: 1px solid #333;
}

button:active {
  background: #3f3f3f;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
  transform: translateY(2px);
}

/* Weather info section */
#weather-info {
  margin-top: 20px;
}

/* City header styling */
.city-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

#city-name {
  margin: 0;
  margin-right: 10px;
}

/* Weather icon with hover effect */
#weather-icon {
  width: 50px;
  height: 50px;
  display: none;
  transition: transform 0.3s ease;
}

#weather-icon:hover {
  transform: scale(1.2);
}

/* Text hover effect for brightness */
.hover-bright {
  transform: scale(1.1);
  transition: color 0.3s ease-in-out;
}

.hover-bright:hover {
  color: #fff;
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.8), 
  0 0 2px rgba(255, 255, 255, 0.6), 
  0 0 3px rgba(255, 255, 255, 0.4);
}

/* Weather table styling */
#weather-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
  display: none;
  background-color: #303030;
  border-radius: 8px;
  overflow: hidden;
}

#weather-table th,
#weather-table td {
  padding: 12px;
  border: none;
  text-align: left;
  color: #fff;
}

#weather-table th {
  background-color: #383838;
  font-weight: bold;
}

#weather-table tr:nth-child(even) {
  background-color: #404040;
}

#weather-table tr:nth-child(odd) {
  background-color: #303030;
}

#weather-table tr:hover {
  background-color: #505050;
}



