/* Definición de la fuente personalizada */
@font-face {
    font-family: "MSDOS";
    src: url("/fonts/MSDOS.ttf") format("truetype"); 
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "MSDOS", "Courier New", Courier, monospace;
}

html, body {
  background-color: #000;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 1. Contenedor del BIOS */
#bios-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 95%;
  transition: opacity 1s ease-out;
}

#ascii-logo {
  color: #ff7700;
  white-space: pre;
  margin-bottom: 15px;
  font-size: clamp(3px, 0.55vw, 12px);
  line-height: 1.05;
}

#company-name {
  color: #ffffff;
  font-size: 1.4rem;
  letter-spacing: 3px;
  margin-bottom: 25px;
  text-transform: uppercase;
}

#progress-bar {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 15px;
  white-space: pre;
}

#info-line {
  color: #ffffff;
  font-size: 0.95rem;
  min-height: 1.5em;
}

/* 2. Pantalla MS-DOS */
#dos-container {
  display: none;
  position: absolute;
  top: 30px;
  left: 30px;
  right: 30px;
  bottom: 30px;
  text-align: left;
  transition: opacity 1s ease-out;
}

#dos-console {
  color: #ffffff;
  font-size: 16px;
  line-height: 1.4;
  white-space: pre-wrap;
  display: inline;
}

#dos-cursor {
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  animation: blink 1s infinite;
}

/* LIENZO DE WEBGL */
#melt-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999;
  display: none;
  pointer-events: none;
}

/* 3. Contenido de la web real */
#main-content {
  position: absolute;
  color: #ffffff;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.1s;
}

#bios-container.fade-out,
#dos-container.fade-out {
  opacity: 0;
  visibility: hidden;
}

#main-content.visible {
  opacity: 1;
  visibility: visible;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

#skip-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #000000;
  color: #ffffff;
  border: 2px solid #ffffff;
  padding: 10px 22px;
  font-size: 14px;
  cursor: pointer;
  opacity: 0.6; /* Semi-transparente por defecto */
  z-index: 1001; /* Por encima de todo, incluyendo el WebGL canvas */
  transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  letter-spacing: 1px;
}

#skip-btn:hover {
  opacity: 1; /* Color sólido al pasar el cursor */
  background-color: #ffffff; /* Inversión de color clásica */
  color: #000000;
}