/* Alejandro Barrionuevo Rosado */

/* 
  Copyright 2012 The Press Start 2P Project Authors (cody@zone38.net), with Reserved Font Name "Press Start 2P".
  This Font Software is licensed under the SIL Open Font License, Version 1.1.
  This license is available at: https://scripts.sil.org/OFL
*/
@font-face {
  font-family: 'PressStart2P';
  src: url('/font/PressStart2P-Regular.ttf') format('truetype');
}

/* Estilos personalizados */

html {
  position: relative;
  min-height: 100%;
}

body {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  font-family: var(--bs-font-sans-serif);
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background-color: #4CA433;
  color: white;
  padding: 20px;
  text-align: center;
}

section {
  margin: 20px;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  flex: 1;
}

footer {
  background-color: #4CA433;
  color: white;
  padding: 20px;
  text-align: center;
  font-size: large;
  flex-shrink: 0;
}

.footer-btn {
  margin-top: 10px;
}

.footer-btn:hover {
  background-color: #333;
}

h1,
h3 {
  margin-bottom: 20px;
}

#titulo {
  font-family: 'PressStart2P', sans-serif;
}

.form-group {
  max-width: 600px;
  margin: 0 auto;
}

.input-group {
  margin-bottom: 10px;
}

.bottom {
  color: white;
}

.btn {
  margin-top: 5px;
}

.oculto {
  display: none;
}

#divInfo {
  width: 90%;
  margin: 10px auto;
  text-align: justify;
  padding: 15px;
}

@media (max-width: 768px) {
  .btn {
    width: 100%;
    margin-top: 5px;
  }

  #divInfo {
    font-size: 14px;
    width: 90%;
    margin: 10px auto;
    text-align: left;
    padding: 15px;
  }

  #tituloCalculadora {
    text-align: center;
  }
}

.theme-toggle-checkbox {
  display: none;
}

.theme-toggle-label {
  position: absolute;
  top: 12px;
  right: 10px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.theme-toggle-label img {
  width: 60px; 
  height: 70px; 
}

@media (max-width: 768px) {
  .theme-toggle-label {
    position: relative; 
    top: auto;
    right: auto;
    margin-top: 10px; 
    margin-right: 10px; 
  }
}

/* Estilos adicionales para temas */

body.overworld {
  background-color: #f8f9fa;
  background-image: url('../img/overworld_1920x1080.png');
}

body.nether {
  background-color: #000000;
  background-image: url('../img/nether_1920x1080.png');
}

@media (max-width: 768px) {
  body.overworld {
    background-color: #f8f9fa;
    background-image: url('../img/overworld_1080x1920.png');
  }
}

header.nether {
  background-color: #c91d1d;
}

footer.nether {
  background-color: #c91d1d;
}

section.nether {
  background-color: rgba(47, 47, 47, 0.8);
  color: white;
}

body.nether .form-control:focus,
body.nether .form-control:hover {
  border-color: #dc3545; 
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25); 
}

body.nether .form-control::placeholder {
  color: #6c757d; 
}
