@charset "UTF-8";

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-image: url(../imagens/academia.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  overflow-y: hidden;
  overflow-x: hidden;
}

.container {
    text-align: center;
    margin-top: 15px;
    padding: 5px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.445);
    width: 100%;
    max-width: 400px;
}


h1 {
  font-size: 24px;
  margin-bottom: 10px;
  color: black;
}

h2 {
  font-size: 16px;
  color: black;
}

p {
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.4;
  color: #222222;
}

p#resultado{
    font-size: 15px;
    margin-top: 20px;
    color: black;
}

#subtitulo{
    font-weight: bolder;
    font-size: 15px;
    color:rgb(20, 20, 20);
}

label, input {
  display: block;
  width: 90%;
  padding: 10px;
  margin-bottom: 10px;
  text-align: center;
  border: solid;
  border-radius: 5px;
  background-color: #f0f0f0;
  color: black;
}

button {
  padding: 10px;
  background-color: #f07167;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #d6405d;
}

footer {
  text-align: center;
  padding: 10px;
  margin-top: auto;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  background-color: rgba(233, 233, 233, 0.185);
  width: 100vw;
  bottom: 0px;
}

footer p {
  margin: 0;
  font-size: 15px;
  color: black;
}

/* Estilo para o alerta personalizado */
.custom-alert {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 40px 60px;
  font-size: 22px;
  background-color: #333;
  color: #fff;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  z-index: 9999;
}

.custom-alert.show {
  display: block;
}

.custom-alert.success {
  box-shadow: 0 0 10px rgba(0, 128, 0, 0.5), 0 4px 8px rgba(0, 128, 0, 0.3); /* Sombra verde para sucesso */
}

/* Adiciona sombra ao alerta de erro */
.custom-alert.error {
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.5), 0 4px 8px rgba(255, 0, 0, 0.3); /* Sombra vermelha para erro */
}


@media (min-width: 768px) {
  .container {
    max-width: 400px;
    margin: 0 auto;
    margin-top: 15px;
  }
}

/* Adicione este CSS no seu arquivo CSS */
@media (max-width: 600px) {
  /* Centralize o conteúdo no centro da tela */
  .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
  }

  /* Reduza o tamanho da fonte dos alertas */
  #customAlert {
    font-size: 18px;
  }

  /* Reduza o tamanho da fonte do título */
  h1 {
    font-size: 28px;
  }

  /* Ajuste o tamanho dos inputs */
  input[type="number"] {
    font-size: 16px;
    padding: 10px;
  }

  /* Aumente o tamanho do botão */
  #calcular {
    font-size: 18px;
    padding: 10px 20px;
  }
}
