* { box-sizing: border-box; }

#canvas {         /* canvas standalone */
  display: block;
}
    body {
      margin: 0;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      background: url('../img/web/fondo.png') no-repeat center center fixed;
      background-size: cover;
      color: white;
    }

    header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 12px 20px;
      background-color: rgba(0, 0, 0, 0.85);
    }

    .menu-icon {
      font-size: 24px;
      cursor: pointer;
    }

    #user-info {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    #login-btn, #logout-btn {
      background-color: #ffcc00;
      border: none;
      padding: 8px 14px;
      font-size: 0.9rem;
      border-radius: 8px;
      cursor: pointer;
    }

    #logout-btn {
      background-color: #cc3333;
    }

    .main-content {
      display: grid;
      grid-template-columns: 1fr 1000px 1fr;
      margin-top: 10px;
      height: calc(100vh - 60px);
    }

    canvas {
  image-rendering: pixelated;   /* Chrome / Firefox / Edge */
  image-rendering: crisp-edges; /* Safari */
}
    .stats-box {
  background-color: rgba(0, 0, 0, 0.6); /* Fondo oscuro semitransparente */
  padding: 10px 16px;
  border-radius: 10px;
  border: 2px solid white;
  font-family: monospace;
  font-size: 14px;
  margin-top: 10px;
  display: inline-block;
}
.banner-superior {
  width: 100%;
  background-color: #000; /* o transparent */
  text-align: left;
  padding: 1px 0;
  margin-left: 5%;
}

.banner-superior img {
  max-width: 35%;
  height: auto;
  object-fit: contain;
}


/*  bara izquierda*/
.main-content {
  display: grid;
  grid-template-columns: 200px 1fr 0;
  gap: 20px;
}

.blog-container {
  background-color: #1c1c1c;
  color: #fff;
  padding: 10px;
  font-family: Arial, sans-serif;
  border-radius: 10px;
  max-height: 90vh;
  overflow-y: auto;
}

.blog-container h3 {
  margin-top: 0;
  font-size: 1.2em;
  color: #ffd700;
}

#blog-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#blog-list li {
  padding: 8px 0;
  border-bottom: 1px solid #333;
  font-size: 0.9em;
}

#blog-list li:last-child {
  border-bottom: none;
}

@media (max-width: 768px) {
  .main-content {
    grid-template-columns: 1fr;
  }
  .blog-container {
    order: 2;
    margin-top: 20px;
  }
}
.menu-icon {
    font-size: 30px;
    cursor: pointer;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
    color: white;
}

.menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border-radius: 5px;
}

.menu a {
    display: block;
    color: white;
    text-decoration: none;
    margin: 5px 0;
}

.menu a:hover {
    text-decoration: underline;
}

.submenu {
    display: none;
    position: absolute;
    top: 60px;
    left: 150px; /* A la derecha del menú principal */
    background-color: rgba(0, 0, 0, 0.9);
    padding: 15px;
    border-radius: 5px;
    color: white;
    max-width: 300px;
}