/* ===== BODY ===== */
body {
  margin: 0;
  font-family: "MS Sans Serif", Arial, sans-serif;
   background-image: url('https://media4.giphy.com/media/v1.Y2lkPTc5MGI3NjExcDA3aW5idmQ0dzh5NHIzNTh1azdxZm9sZnN0OGxhemQ1b3Fud3ZkdiZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/S3bkh4BuHMyfC/giphy.gif');
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh; /* centra verticalmente */
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.page-container {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

/* ===== SIDEBAR IZQUIERDO ===== */
.sidebar {
  width: 200px;
  background: #e0e0e0;
  border: 5px solid #808080;
  border-right-color: #fff;
  border-bottom-color: #fff;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 40vh;
}

.sidebar-header {
  color: blue;
  text-decoration: underline;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.sidebar li {
  margin: 5px 0;
}

.sidebar a {
  display: block;
  background: #dcdcdc;
  padding: 6px;
  text-align: center;
  color: blue;
  text-decoration: none;
  font-weight: bold;
  border: 2px solid #808080;
  border-top-color: #fff;
  border-left-color: #fff;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080;
}

.sidebar a:hover {
  background: #c0c0c0;
}

/* ===== VENTANA PRINCIPAL ===== */
.window {
  background: #dcdcdc;
  border: 5px solid #808080;
  border-top-color: #fff;
  border-left-color: #fff;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center; /* centra contenido */
  min-width: 500px;
}

.window-header {
  background: navy;
  color: white;
  font-weight: bold;
  padding: 5px;
  width: 100%;
  text-align: center;
}

.window-content {
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center; /* centra galería y texto */
}

/* ===== GALERÍA DENTRO DE VENTANA ===== */
.gallery {
  width: auto;
  background: linear-gradient(180deg, #f0f0f0, #d0d0d0);
  border: 5px solid #808080; 
  border-top-color: #fff;
  border-left-color: #fff;
  box-shadow: inset 2px 2px 5px #a0a0a0;
  padding: 10px;
  text-align: center;

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

/* Encabezado galería */
.gallery-header {
  width: 100%;
  font-size: 18px;
  color: navy;
  font-weight: bold;
  margin-bottom: 10px;
  text-shadow: 1px 1px 0 #fff;
  text-align: center;
}

/* ===== IMÁGENES ===== */
.image-box {
  position: relative;
  width: 120px;
  border: 4px solid #808080;
  border-right-color: #fff;
  border-bottom-color: #fff;
  background-color: #c0c0c0;
  padding: 4px;
}

.image-box img {
  width: 100%;
  border: 4px inset #808080;
  display: block;
}

.image-title {
  position: absolute;
  top: 4px;
  left: 4px;
  color: #00ffff;
  font-family: "Comic Sans MS", cursive;
  font-size: 11px;
  text-shadow: 1px 1px 1px black;
}

.image-text {
  position: absolute;
  bottom: 4px;
  left: 4px;
  color: red;
  font-family: "Impact", sans-serif;
  font-size: 12px;
  text-shadow: 1px 1px 1px black;
}

/* ===== TABLAS DE INTERESES ===== */
table.interests {
  border-collapse: collapse;
  width: 100%;
}

table.interests td {
  border: 1px solid #808080;
  padding: 4px;
  background-color: #e0e0e0;
}

/* ===== BARRA DE BOTONES ===== */
.button-bar img {
  margin: 5px;
  border: 2px inset #808080;
}

/* ===== PIE DE PÁGINA ===== */
.footer {
  font-size: 12px;
  color: #404040;
  margin-top: 15px;
}
