
.pixelify-sans-<uniquifier> {
  font-family: "Pixelify Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

.fredoka-<uniquifier> {
  font-family: "Fredoka", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}


:root {
  --light: #cfdfff;
  --blue-light: #a7c3fc;
  --blue-dark: #213252;
  --blue-saturated: #2452ad;
  --cream: #fff5db;
  --brown: #5e2716;
  --brown2: #9e7b70;
}

html {
	scrollbar-color: var(--brown) var(--blue-light);
}

header {
  position: relative;
  text-align: center;
  max-width: 700px;
  margin: auto;
  margin-top: 30px;
  margin-bottom: 20px;
  padding: 10px;
  border-radius: 10px;
  overflow: hidden;
  z-index: 0;
  min-height: 150px;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("fondoheader.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
  z-index: -1;
}
header p {
  background-color: rgba(255, 255, 255, 0.6); /* fondo blanco translúcido */
  padding: 0.75rem 1rem;
  border-radius: 12px;
  display: inline-block;
  max-width: 90%;
  margin: 10px auto 0;
  backdrop-filter: blur(4px); /* efecto "glass" */
  color: var(--blue-dark);
  font-weight: 500;
  line-height: 1.6;
}

h1 {
  font-family: "Pixelify Sans", sans-serif;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--blue-dark);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}


body {
  margin: 0;
  padding: 20px;
  background-image: url('chiaki, makoto fondo.jpeg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--blue-dark);
  font-family: "Fredoka", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-color: rgba(252, 244, 225, 0.3); /* o usa negro con 0.3 para oscurecer */
  z-index: -1;
}

/*-- #container {
	max-width: 1350px;
	margin: auto;
	margin-bottom: 20px;
	column-count: 4;
	column-gap: 30px;
	line-height: 0px;
} */

.back-button {
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 1000;
  display: inline-block;
}

.back-button img {
  width: 200px;
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.back-button:hover img {
  transform: scale(1.3);
}

.tooltip-text {
  visibility: hidden;
  background-color: #2452ad;
  color: #fff5db;
  border: 2px dashed #213252;
  font-size: 14px;
  font-family: "Pixelify Sans", sans-serif;
  text-align: center;
  border-radius: 8px;
  padding: 5px 10px;
  position: absolute;
  top: 15px; /* debajo de la imagen */
  left: 3px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
}

.back-button:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}


#container {
  max-width: 1350px;
  margin: auto;
  padding: 20px;
  padding-top: 50px;
  column-count: 4;
  column-gap: 30px;
  line-height: 0; /* para evitar espacios entre imágenes */
}


.cd {
  position: relative;
  display: block;
  overflow: visible;
  width: 300px;
  /*margin: 50px 0;*/
  margin-bottom: 150px;
  border: 2px solid grey;
  border-radius: 10px;
  transition: box-shadow 1s;
}

.cd img {
  width: 100%;
  height: auto;
  display: block;
  object-fit:cover;
}

.cd img.cover {
  position: relative;
  z-index: 4;
  border-radius: 10px;
}

.cd img.disk-spin {
  position: absolute;
  display: none;
  top: 150px;
  left: -50;
  width: 300px;
  z-index: 1;
  pointer-events: none;
}

@keyframes spin {
  from { rotate: 0deg; }
  to { rotate: 360deg; }
}


.cd:hover {
  box-shadow: 3px 2px 5px black;
}

.cd:hover .disk-spin {
  display: block;
  animation: spin 6s linear infinite;
}

.hov {
  opacity: 0;
  position: absolute;
  width: 100%;
  height: 99%;
  top: 1px;
  transition: 0.5s;
}

.cd:hover .hov {
  opacity: 1;
  z-index: 5;
}

.caption {
  position: absolute;
  text-align: center;
  width: 90%;
  padding: 5px;
  max-height: 90%;
  top: 5%;
  left: 5%;
  overflow-y: auto;
  background-image: url("paper cream template.jpeg");
  background-repeat: repeat-y;
  background-size: 150% 32px;
  background-position: top center;
  background-attachment: local;
  border-radius: 10px;
  border: 4px ridge var(--brown2);
  transition: 0.3s;
  line-height: 32px;
  font-size: 14px;
  
}


h3 {
  margin: 2px 0;
  padding: 2px;
  border-radius: 10px;
  background: var(--brown2);
  color: var(--cream);
  font-family: "Fredoka", sans-serif;
  font-size: 20px;
  font-weight: normal;
}

.date {
  display: block;
  margin-top: 10px;
  font-style: italic;
  color: var(--blue-saturated);
  border-bottom: 3px double var(--brown);
}

.fav::after {
 content: "♥ fav";
  font-weight: bold;
}
