@font-face {
  font-family: "Futuristic";
  src: url("font/futuristic.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Gabriola";
  src: local("Gabriola"), url("font/gabriola.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "constantian";
  src: local("constantian"), url("font/constan.ttf") format("ttf");
  font-weight: normal;
  font-style: normal;
}

body,
html {
  margin: 0;
  padding: 0;
  background: white;
  /* background: radial-gradient(circle, #79c098, #e7ecb4, #aedad7); */
  /* background: radial-gradient(circle, #000428, #004e92); */
}
header {
  background-color: #d3e8e2;
  padding: 20px;
  text-align: center;
  z-index: 10;
}

header a {
  color: #657f8f;
  font-family: "Futuristic", serif;
  text-decoration: none;
}
#particle-container {
  position: absolute;
  width: 99%;
  height: 99%;
  z-index: 0;
}

.container {
  position: relative;
  color: rgb(101, 127, 143);
  text-align: center;
}

h1 {
  font-family: "Futuristic", serif;
  font-size: 4.2rem;
  margin: 0;
  z-index: 5;
}
.animacionFYS {
  width: 40%;
  margin-left: 15%;
  margin-right: 15%;
}
.button-container {
  width: 100%;
  height: 100%;
  z-index: 4;
  overflow: hidden;
  padding: 20px;
}

.button-container .btn {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  font-size: 1rem; /* Ajuste inicial para el texto dentro del bot¨Žn */
  padding: 5px;
  box-sizing: border-box;
}

.button-container .btn:hover {
  background-color: white;
  color: var(--random-color);
  border: 2px solid var(--random-color);
}

@media (max-width: 1024px) {
  h1 {
    font-size: 2.5rem;
  }

  .button-container .btn {
    width: 85px;
    height: 85px;
    font-size: 1rem;
    padding: 5px;
  }
  .btemas a,
  .bcontNotas a {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 3rem;
  }
  .animacionFYS {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .button-container .btn {
    width: 80px;
    height: 80px;
    font-size: 0.9rem;
    padding: 5px;
  }
  .btemas a,
  .bcontNotas a {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.5rem;
  }

  .button-container .btn {
    width: 90px;
    height: 90px;
    font-size: 1rem;
    padding: 25px;
  }
}

/* esto son pruebas del 17/01 */
/* prueba de imagenes dentro de los botones */

#button-container .btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Estilo del tooltip */
.tooltip {
  visibility: hidden;
  opacity: 0;
  bottom: 120%; /* Aparece arriba del bot¨Žn */
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  text-align: center;
  border-radius: 5px;
  padding: 8px 12px;
  font-size: 0.9rem;
  white-space: nowrap;
  z-index: 10;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none; /* Evitar interferencia del mouse */
}

/* Flecha del tooltip */
.tooltip::after {
  content: "";
  top: 100%; /* Aparece debajo del tooltip */
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
}

/* Mostrar el tooltip cuando se pasa el mouse por encima */
.btn:hover .tooltip {
  visibility: visible;
  opacity: 1;
}
.container button {
  width: 100%;
  padding: 10px 20px;
  margin: 5px;
  border: none;
  border-radius: 25px;
}
.btemas a {
  color: #657f8d;
  font-family: "constantian", serif;
  text-decoration: none;
}
.btemas {
  color: #657f8d;
  background-color: #e6ebb3;
  font-size: 1rem;
  font-weight: 700;
  z-index: 10;
}

.bcontNotas a {
  color: #b57ba6;
  font-family: "constantian", serif;
  text-decoration: none;
}
.bcontNotas {
  color: #b57ba6;
  background-color: #e6ebb3;
  /* background-color: #c5e7e4; */
  font-size: 1rem;
  font-weight: 700;
  z-index: 10;
}
