/* Common styles */
body {
  background-image: url('./img/background.jpg');
  background-size: cover; 
  background-attachment: fixed; 
  background-repeat: no-repeat;
  margin: 0;
  font-family: 'Poppins', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: #ffffff;
  overflow: hidden;
}

.container {
  text-align: center;
  padding: 30px;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  width: 90%;
  max-width: 600px;
  animation: fadeIn 1.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

button {
  border-radius: 20px;
  font-weight: bolder;
  background-color: #ffc107;
  color: #000;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover {
  background-color: #e0a800;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

img {
  max-width: 100%;
  height: auto;
  max-height: 250px;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

img:hover {
  transform: scale(1.1);
}

p {
  font-size: 18px;
  font-weight: bold;
  margin: 10px 0;
}

#alert, #result {
  font-size: 22px;
  margin: 20px 0;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.container-btn {
  margin-top: 20px;
}

@media (max-width: 768px) {
  body {
    background-size: cover;
    background-position: center;
  }

  img {
    max-height: 150px;
  }

  p {
    font-size: 16px;
  }

  #alert, #result {
    font-size: 20px;
  }
}

@media (max-width: 576px) {
  body {
    background-size: cover;
    background-position: center;
  }

  img {
    max-height: 120px;
  }

  p {
    font-size: 14px;
  }

  #alert, #result {
    font-size: 18px;
  }
}
