/* Declaración de la fuente personalizada (si está presente en sources/) */
@font-face {
  font-family: 'HBCFont';
  src: url('sources/font.ttf') format('truetype');
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

body, html {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  font-family: 'HBCFont', Arial, Helvetica, sans-serif;
  background-color: #000;
}

/* Capa 1: Imagen de Fondo WebP (Rayos + Cuadrícula integrados) */
.bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('sources/background.webp') no-repeat center center;
  background-size: cover;
  z-index: 1;
}

/* Capa 2: Canvas superpuesto para las burbujas */
#bubble-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none; /* Permite hacer clic en los botones debajo si fuera necesario */
}

/* Capa 3: Interfaz principal */
.ui-container {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.menu-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 650px;
  max-height: 75vh;
  overflow-y: auto;
  padding: 10px;
}

/* Estilo de los botones/tarjetas */
.app-card {
  width: 100%;
  height: 80px;
  background: rgba(24, 24, 24, 0.85);
  border: 2px solid #444;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  cursor: pointer;
  flex-shrink: 0;
  /* GPU acceleration for WebKit */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.app-card:hover,
.app-card:focus {
  border-color: #3b93d8;
  background: rgba(34, 34, 34, 0.95);
  outline: none;
}

.app-icon {
  width: 60px;
  height: 48px;
  background: #235896;
  border: 1px solid #5b9bf2;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-right: 18px;
  flex-shrink: 0;
}

.icon-text {
  color: #fff;
  font-weight: bold;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.app-details {
  display: flex;
  flex-direction: column;
  color: #fff;
}

.app-title {
  font-size: 20px;
  font-weight: bold;
}

.app-description {
  font-size: 14px;
  color: #ccc;
  margin-top: 2px;
}

/* Footer */
.footer {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 3;
}

.brand-title {
  color: #fff;
  font-size: 24px;
  opacity: 0.9;
}

.brand-title span {
  font-weight: bold;
  font-size: 28px;
}

.status-text {
  color: #88c0d0;
  font-size: 16px;
}