/* CSS principal de Samu */

/* Fuente autohosteada */
/* Fuente autohospedada Permanent Marker */
@font-face {
  font-family: 'Permanent Marker';
  src: url('/fonts/PermanentMarker-Regular.woff2') format('woff2'),
       url('/fonts/PermanentMarker-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

/* Centrado de todo */
* {
  text-align: center;
}

/* Para que el footer quede abajo */
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

body > *:not(footer) {
  flex: 1; /* Empuja el footer hacia abajo */
}

/* Fuente principal */
body {
  background-color: #444444;
  color: ivory;
  font-family: 'Permanent Marker', cursive, Verdana, sans-serif;
}

/* Header con banner */
header {
  background: url("banner.jpg") no-repeat center center;
  background-size: cover;
  height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: ivory;
  text-align: center;
}

/* Estilo para la página 404 */
#notfound {
  font-size: 40px; /* más pequeño que el resto de h1 */
  color: #b48e69;
  margin-top: 100px;
}

.notfound-btn {
  background-color: #b48e69;
  color: ivory;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 20px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.notfound-btn:hover {
  background-color: ivory;
  color: #b48e69;
  transform: scale(1.05);
}

h1 {
  color: #b48e69;
  font-size: 80px;
  background-color: rgba(0, 0, 0, 0.5);
  display: inline-block;
  padding: 10px 20px;
  font-family: 'Permanent Marker', cursive !important;
}

/* H1 con enlace sin subrayado */
h1 a {
  text-decoration: none;
  color: inherit;
  font-size: inherit;
  font-family: 'Permanent Marker', cursive !important;
}

h1 a:hover {
  color: gray;
  font-family: 'Permanent Marker', cursive !important;
}

/* Estilos para el nav */
nav ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

nav li {
  display: inline-block;
  margin: 0 10px 50px;
}

nav a {
  background-color: #b48e69;
  text-decoration: none;
  color: ivory;
  font-weight: bold;
  font-size: 22px;
  padding: 18px 24px;
  margin: 5px;
  border: 2px solid #b48e69;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-family: 'Permanent Marker', cursive !important;
}

nav a:hover {
  background-color: ivory;
  color: #b48e69;
  transform: scale(1.05);
  font-family: 'Permanent Marker', cursive !important;
}

#botonEnlace {
  background-color: #b48e69;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-family: 'Permanent Marker', cursive !important;
}

#botonEnlace:hover {
  background-color: ivory;
  color: #b48e69;
  font-family: 'Permanent Marker', cursive !important;
}

/* Contenedor general de publicaciones (letras) */
#publicaciones {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  text-align: left;
}

#publicaciones img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin-bottom: 15px;
}

/* Cada letra como tarjeta */
#publicaciones > div {
  max-width: 600px;
  margin: 0 auto 30px;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: left;
}

/* Efecto hover en la tarjeta */
#publicaciones > div:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.6);
}

/* Título de cada letra */
#publicaciones h2 {
  font-size: 24px;
  color: #b48e69;
  margin-bottom: 10px;
  text-decoration: none;
  font-weight: bold;
  font-family: 'Permanent Marker', cursive !important;
}

/* Texto de la letra en publicaciones */
#publicaciones pre {
  font-family: 'Trebuchet MS', sans-serif !important;
  white-space: pre-wrap;
  line-height: 1.5;
  color: ivory;
  overflow-x: auto;
  text-align: left;
}

/* 🎵 Estilo especial para la página de canción */
#letra {
  max-width: 700px;
  margin: 30px auto;
  padding: 25px;
  background-color: rgba(0,0,0,0.5);
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.6);
  text-align: left;
}

#letra pre {
  font-family: 'Trebuchet MS', sans-serif !important;
  font-size: 18px;
  white-space: pre-wrap;
  line-height: 1.6;
  color: ivory;
  text-align: left;
}

/* 🎶 Sección de Álbumes */
.albumes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

.album {
  max-width: 200px;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;             /* centrado */
  flex-direction: column;    /* columna */
  align-items: center;       /* centra todo horizontalmente */
  text-align: center;        /* texto centrado */
}

.album:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.6);
}

.album-imagen {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.album-nombre {
  font-size: 18px;
  color: #b48e69;
  margin: 0;
  text-decoration: none;
  font-family: 'Permanent Marker', cursive !important;
  text-align: center; /* asegura centrado si es muy largo */
}

.album-link {
  text-decoration: none;
  color: inherit;
  font-family: 'Permanent Marker', cursive !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Sección de canciones en album.html */
.cancion {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background-color: rgba(0,0,0,0.4);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  text-align: left;
  transition: transform 0.3s, box-shadow 0.3s;
}

.cancion:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.6);
}

/* Título de la canción */
.cancion h3 {
  font-size: 22px;
  color: #b48e69;
  margin-bottom: 10px;
  text-decoration: none;
  font-weight: bold;
  font-family: 'Permanent Marker', cursive !important;
}

/* Texto de la letra dentro de album.html */
.cancion pre {
  font-family: 'Trebuchet MS', sans-serif !important;
  white-space: pre-wrap;
  line-height: 1.5;
  color: ivory;
  overflow-x: auto;
  text-align: left;
}

/* Enlaces dentro de la tarjeta */
.cancion a {
  text-decoration: none;
  color: inherit;
  font-family: 'Trebuchet MS', sans-serif !important;
}

.volver-container {
  text-align: center;
  margin: 30px 0;
}

#volverBtn {
  background-color: #222;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-family: 'Permanent Marker', cursive;
  font-size: 1.1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

#volverBtn:hover {
  background-color: #444;
  transform: scale(1.05);
}

/* Imagen responsiva genérica */
img:not(.album-imagen) {
  max-width: 50%;
  height: auto;
}

/* Footer */
footer {
  background-color: #333;
  color: ivory;
  text-align: center;
  padding: 10px;
}