:root {
	--background: #0e191a;
	--accent-1: #3cc9c8;
	--accent-2: #ff00c1;
	--content-spacing: 5px;
	--text-color: white;
	--background-img: url("assets/background3.avif");
	--titleBars: url("assets/background3.avif");
	--border: 1px solid black;
	--font: "FreePixel";
	--book-review-height: 300px;
	--nav-top-margin: 20px;
	--block-spacing: 5px;
	--record-size: 270px;
}

@font-face {
	font-family: "FreePixel";
	src: url("https://sadhost.neocities.org/fonts/FreePixel.ttf") format("truetype");
}

@font-face {
	font-family: "PubsFont";
	src: url("assets/fonts/goudy.ttf") format("truetype");
}

/*
	Color palette https://www.color-hex.com/color-palette/57915
*/

html,
body {
	margin: 0;
	padding: 0;
	height: 100%;
	font-family: var(--font);
}

body {
	background-image: var(--background-img);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 100% 100%;
	background-attachment: fixed;
	color: var(--text-color)
}

header {
	background-image: url("./assets/header_tokyo.jpg");
	height: 20%;
	background-size: 50%;
}

footer {
	height: 30px;
	background-image: var(--titleBars);
	background-repeat: no-repeat;
	background-size: 100% 300%;
	background-position: center 95%;
	border: var(--border);
	margin-top: var(--content-spacing);
}

h2 {
	color: var(--accent-2);
}

#container {
	height: 100%;
	max-width: 80%;
	margin: 0 auto;
}

#flex {
	display: flex;
}

aside {
	width: 30%;
	margin-left: var(--content-spacing);
	margin-top: var(--content-spacing);
	/* border: var(--border); */
	background-color: var(--background);
	position: relative;
	display: flex;
	flex-direction: column;
}

main {
	width: 74%;
	/* background-color: var(--background); */
}

.block {
	margin-top: var(--content-spacing);
	/* border: var(--border); */
	background-color: var(--background);
}

.title {
	background-image: var(--titleBars);
	background-repeat: no-repeat;

	background-size: 100% 300%;
	background-position: center 95%;

	font-weight: bold;
	border: var(--border);
	font-size: 20px;
	padding: 5px;
}

.content {
	padding: 25px;
}

nav {
	position: sticky;
	top: var(--nav-top-margin);
}

nav ul {
	list-style-image: var(--arrows);
	margin-left: 0;
	padding-left: 30px;
}

nav ul li a {
	color: var(--accent-1);
}

#book-list {}

a {
	color: var(--accent-1);
}

/* Each book item */
.book {}

/* Clickable title */
.book-header {
	cursor: pointer;
}

.book-header.no-click {
	cursor: default;
	pointer-events: none;
}

.book-title {
	color: var(--accent-1);
}

.book-author {
	font-style: italic;
}

/* Hidden review */
.review {
	max-height: 0;
	overflow: hidden;
	/* transition: max-height 0.3s ease; */
	/* padding: 0 10px; */
	white-space: pre-line;
	margin: 5px 0;
}

/* When active (expanded) */
.book.active .review {
	max-height: var(--book-review-height);
	padding: 10px 20px;
	overflow: auto;
	border: 1px solid white;
}

#book-cover {
	width: 100%;
	display: flex;
	justify-content: center;
	transition: top 0.3s ease;
}

#book-cover img {
	border: var(--border);
	max-height: 250px;
	width: auto;
}

.book-arrow {
	display: inline-block;
	margin-right: 6px;
	transition: transform 0.2s ease;
}

.book.active .book-arrow {
	transform: rotate(90deg);
}

.nav-cover-stack {
	position: sticky;
	top: var(--nav-top-margin);
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.art-gallery {
	columns: 300px;
	column-gap: 10px;
}

.art-gallery img {
	width: 100%;
	object-fit: contain;
	display: block;
	margin-bottom: 20px;
}

.record-player {
    position: relative; /* This is the anchor for the absolute shine */
    width: min(var(--record-size), 100%);
    max-width: var(--record-size);
    margin: 0 auto;
}

.record {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    background: repeating-radial-gradient(#000, #141414 2px, #141414 2px);
    border: 6px solid #141414;
  	border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    animation: spin 5s linear infinite;
    animation-play-state: running; /* Only spins when playing */
}

.record.playing {
    animation-play-state: running;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.record-label {
    width: 44%;
    height: 44%;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    z-index: 2;
    position: relative;
}

.record-label img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#shine {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: conic-gradient(transparent 20deg,
                              rgba(255, 255, 255, .1) 40deg,
                              rgba(255, 255, 255, .1) 50deg,
                              transparent 60deg,
                              transparent 200deg,
                              rgba(255, 255, 255, .08) 220deg,
                              rgba(255, 255, 255, .08) 240deg,
                              transparent 250deg,
                              transparent 340deg);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10;
}

#spotify-player {
    margin-top: 20px;
    padding: 40px;
    /* position: sticky; */
    top: 250px;
}

.albums-top {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 50px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 40px;
}

/* LEFT SIDE */
.top-gallery {
    flex: 0 1 60%;
    width: 60%;
    min-width: 260px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 60px;
    padding: 10px;
    margin-top: 20px;
    box-sizing: border-box;
}

/* RIGHT SIDE */
#turntable {
    flex: 0 1 40%;
    width: 40%;
    min-width: 250px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 20px 20px 0;
    margin-top: 90px;
    box-sizing: border-box;
}

/* BOTTOM FULL WIDTH GRID */
.album-gallery {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 180px));
    gap: 60px;
    justify-content: start;
    padding: 10px;
    box-sizing: border-box;
}

/* Covers */
.gallery-item {
    width: 200px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

@media (max-width: 900px) {
  #flex {
    flex-direction: column;
  }

  aside,
  main {
    width: 100%;
  }

  aside {
    margin-left: 0;
  }

  .albums-top {
    gap: 30px;
  }

  .top-gallery,
  #turntable {
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
  }

  .top-gallery {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
  }

  .album-gallery {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
  }

  .record-player {
    max-width: 360px;
  }

  .gallery-item {
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
  }
}

#pubs-parchment {
	position: relative;
	background-image: url("assets/parchment.png");
	background-size: 140% 130%;
	background-repeat: no-repeat;
	background-position: center;
	margin-top: 50px;

	aspect-ratio: 1.5;

	transform: scale(1);
	transform-origin: center;
}

/* #pubs-parchment {
	position: relative;
	background-image: url("assets/parchment2.png");
	background-size: 120% 100%;
	background-repeat: no-repeat;
	background-position: center;

	aspect-ratio: 1.7;

	transform: scale(1);
	transform-origin: center;
} */

#pubs-content {
	position: absolute;
	top: 20%;
	left: 15%;
	right: 12%;
	bottom: 15%;

	overflow-y: auto;
	color: black;
}

#pubs-content ul {
	list-style-type: none;
	padding: 0;
	margin: 0;
	font-family: "PubsFont";
}

#pubs-content li {
	margin-bottom: 10px;
	line-height: 1.4;
}

.recruiter-button-gif {
  width: 100px;           /* control size */
  height: auto;
  display: block;
  margin: 10px auto;     /* center horizontally */
}