html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
}

.container {
  width: 100%;
  max-width: 600px;
  padding: 20px;
  background-color: #cbf3ff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

#city {
    
  width: 50%;
  padding: 10px;
  border: 1px solid #3f9fb8;
  border-radius: 4px;
  margin-bottom: 2rem;
}

#weather-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  width: 100%;
  display: flex;
  justify-content: center;
}

button {
  border-radius: 20px;
  background-color: #00329e;
  color: white;
  padding: 10px 20px;
  font-weight: bold;
  font-size: 16px;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 20, 63, 0.1);
  cursor: pointer;
}
button:hover {
  background-color: #001246;
}

#modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;           /* hidden by default */
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-phase {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  min-width: 300px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-phase.active {
  display: flex;
}

.top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: auto;
  display: flex;;
  justify-content: center;
    align-items: center;
}
h2{
    justify-self: center;
    margin-left: auto;
}
.close-btn {
  background: none;
  border: none;
  color: #333;
  font-size: 1.5rem;
  cursor: pointer;
  justify-self: end;
  margin-left: auto;
  align-self: flex-start;
}
.close-btn:hover {
  
  color: #ff0000;
}

.top .close-btn {

  text-decoration: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.loader {
  width: 40px;
  height: 40px;
  border: 5px solid #ccc;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

.dots-loader {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
}

.dots-loader span {
  width: 8px;
  height: 8px;
  background: #3498db;
  border-radius: 50%;
  animation: bounce 0.6s ease-in-out infinite both;
}

.dots-loader span:nth-child(2) { animation-delay: 0.2s; }
.dots-loader span:nth-child(3) { animation-delay: 0.4s; }

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40%           { transform: translateY(-10px); }
}