body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: #2b2b2b;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.container {
  background: #3d2f2f;
  color: white;
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  width: 95%;
  max-width: 600px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

h1 {
  margin: 0;
  font-size: 2rem;
}

.subtitle {
  margin: 0.5rem 0 2rem;
  font-size: 1.1rem;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.search-country {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  width: 100%;
  flex-wrap: nowrap; 
}

#buscarPais {
  padding: 0.6rem;
  border-radius: 12px;
  border: none;
  font-size: 1rem;
  width: 60%;           
  box-sizing: border-box;
  overflow-x: auto;     
  white-space: nowrap;  
  flex: none;           
}

#codigoPais {
  padding: 0.6rem;
  border-radius: 12px;
  font-size: 1rem;
  width: 35%;          
  flex: none;
}

input[type="text"] {
  padding: 0.8rem;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  width: 300px;       
  max-width: 100%;
  box-sizing: border-box;
}

button {
  background: #00c851;
  color: white;
  border: none;
  padding: 0.9rem 3rem;
  border-radius: 25px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:disabled {
  background: #555;
  cursor: not-allowed;
}

button:hover:enabled {
  background: #007e33;
}

.footer {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: #ff6961;
}
