/* ====================================== FADE IN TRANSITION ====================================== */
.content, .trackContent, .site-footer {
    animation: fadein 3s;
    -moz-animation: fadein 3s; /* Firefox */
    -webkit-animation: fadein 3s; /* Safari and Chrome */
    -o-animation: fadein 3s; /* Opera */
}
@keyframes fadein {
    from {
        opacity:0;
    }
    to {
        opacity:1;
    }
}
@-moz-keyframes fadein { /* Firefox */
    from {
        opacity:0;
    }
    to {
        opacity:1;
    }
}
@-webkit-keyframes fadein { /* Safari and Chrome */
    from {
        opacity:0;
    }
    to {
        opacity:1;
    }
}
@-o-keyframes fadein { /* Opera */
    from {
        opacity:0;
    }
    to {
        opacity: 1;
    }
}

/* ====================================== COLORS ====================================== */

:root {
  --bg: #202123;
  --title: #a1987b;
  --title2: #686351;
  --text: #b1afaa;
  --text2: #a1987b;
  --text3: #44423a;
  --highlight: #233137;
}

/* ====================================== GENERAL ====================================== */

/* Reset */
*{
	margin:0;
	padding:0;
	font-weight: normal;
}

/* Custom text selection style */
::selection {
    background-color: var(--highlight);
}

/* Text selection for Firefox */
::-moz-selection {
    background-color: var(--highlight);
}

img {
    user-select: none; /* Prevent text and image selection */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE/Edge */
    pointer-events: none; /* Prevent image dragging */
}

html, body {
    height: 100%; /* Ensure the body takes up the full height of the viewport */
    margin: 0; /* Remove default margin */
}

body {
    display: flex;
    flex-direction: column; /* Stack children vertically */
	background: var(--bg);
	text-align: center;
	max-width: 960px;
    min-width: 250px;
	margin: 0 auto;
	padding: 0px 20px;
	font-family: 'IM Fell DW Pica', Georgia, 'Times New Roman';
    font-size: 20px;
    cursor: default;
}

h1 {
    font-family: 'IM Fell DW Pica SC', Georgia, 'Times New Roman';
    text-transform: uppercase;
    font-size: 2em;
    word-spacing: 20%;
    color: var(--title);
}

h2 {
    margin-bottom: 20px;
    font-family: 'IM Fell DW Pica SC', Georgia, 'Times New Roman';
    text-transform: uppercase;
    word-spacing: 20%;
	font-size: 1em;
    color: var(--title2);
}

h3 {
    margin-bottom: 0px;
    font-family: 'IM Fell DW Pica', Georgia, 'Times New Roman';
    font-style: italic;
    word-spacing: 20%;
	font-size: 1em;
    color: var(--title2);
}

p {
	margin-bottom: 20px;
	font-size: 1.1em;
	line-height: 1.6;
	color: var(--text);
}

.content {
	max-width: 960px;
	margin: 40px auto;
    flex: 1; /* Allow the content to grow and fill the available space */
    
}

#error {
    user-select: none; /* Prevent text and image selection */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE/Edge */
}

/* ====================================== HEADER ====================================== */
header {
	color: var(--title2);
	margin-top: 20px;
	height: auto;
    user-select: none; /* Prevent text and image selection */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE/Edge */
}

a:link, a:visited {
	text-decoration: none;
	font-size: 1.1em;
	line-height: 1.4em;
	color: var(--title2);
}

a:hover {
	color: var(--text);
}

a:active {
	color: var(--title2);
}

.site-title {	
	color: var(--title);
	font-size: 1.75em;
}

.site-artist {
	color: var(--text3);
	font-size: 1em;
    margin-bottom: 14px;
}

.site-subtitle {
	color: var(--title2);
	font-size: 1em;
	margin-bottom: 10px;
}

/* Small screens: smaller title font to fit in 1 line */
@media (max-width: 500px) {
    .site-title {
        font-size: 7vw;
    }
}
@media (max-width: 400px) {
    .site-artist {
        font-size: 5vw;
    }
}
@media (max-width: 500px) {
    .site-subtitle {
        font-size: 4vw;
    }
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(26, 1fr);
    gap: 0px;
    border-top-style: dotted;
    border-bottom-style: dotted;
    border-width: 2px;
    border-color: var(--text3);
    align-items: center; /* align vertical */
}

.nav-grid a {
	position: relative;
    padding: 0px;
    text-align: center;
}

/* Add a dot after each link except the last one */
.nav-grid a:not(:last-child)::after {
    content: "•"; /* Dot symbol */
    position: absolute;
    right: -0.2em; /* Adjust position to align with the gap */
    color: var(--title2);
    font-size: 0.6em; /* Adjust size of the dot */
}

/* Small screens: 2 rows and no dot at the end of row 1 */
@media (max-width: 768px) {
    .nav-grid {
        grid-template-columns: repeat(13, auto); /* 13 columns for 2 rows */
    }

    .nav-grid a:nth-child(13)::after {
        content: none; /* Hide the dot */
    }
}

.home-about {
    font-size: 0.8em;
	display:grid;
	grid-template-columns: repeat(2, 1fr);
	max-width: 160px;
	margin: 0px auto 10px auto;
}

/* ====================================== FOOTER ====================================== */
.footer-socials {
    display:flex;
    justify-content: center; /* align horizontal */
    align-items: center; /* align vertical */
    gap: 5px;
    max-width: 240px;
    height: 50px;
    margin: 0 auto;
    border-top-style: dotted;
    border-width: 2px;
    border-color: var(--text3);
}

.footer-tile, .footer-tile:visited {
    height: 30px;
    opacity: 0.5;
}

.footer-tile:hover {
    opacity: 1;
}

.footer-tile:active {
    opacity: 0.5;
}

.footer-socials img {
    width: 30px;
    height: 30px;
}

@media (max-width: 320px) {
    .footer-socials img {
    width: 9.5vw;
    height: 9.5vw;
    }
}

footer p {
    font-size: 0.7em;
    color: var(--text3);
    user-select: none; /* Prevent text and image selection */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE/Edge */
}

/* ====================================== HOME PAGE ====================================== */
/* Default layout (2 art columns for large screens) */
#alphabet-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
    align-items: start; /* Align items to the top of the grid cell */
}

 @media (max-width: 768px) {
    #alphabet-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

#alphabet-grid img {
	aspect-ratio: 1 / 1; /* 1:1 aspect ratio (square) */
    display: block;
    object-fit: contain; /* Ensure images fill the cell without distorting */
    line-height: 0; /* Remove extra space below images */
    width: 100%; /* Make images fill their grid cells */
    height: auto;
}

.tile {
    transition: brightness 2s;
}

/* Hover effects for released tiles */
.tile:not(.disabled):hover {
    cursor: pointer; /* Show the link pointer */
    filter: brightness(1.4); /* Increase brightness on hover */
    transition: filter 0.3s ease
}

.disabled {
    opacity: 0.5; /* Gray out unreleased tiles */
    pointer-events: none; /* Disable all mouse interactions */
    cursor: default; /* Use the default cursor (not the link pointer) */
}

/* ====================================== TRACK PAGE ====================================== */
.trackContent {
	max-width: 700px;
	margin:0px auto;
}

.content p, .trackContent p {
    text-align: justify;
}

#iframeContainer {
    position: relative;
    align-content: center;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    max-width: 700px;
    margin: 0px auto 40px auto;
}

#iframeContainer iframe {
    position: absolute;
    top: 0;
    left: 0;
    border-width: 0;
    width: 100%;
    height: 100%;
}

#trackStory1::first-letter {
	font-size: 1.2em;
}

/* Small screens: smaller title font to fit in 1 line */
@media (max-width: 500px) {
    #trackTitle {
    	font-size: 7.5vw;
    }
    #trackSubtitle {
    	font-size: 4vw;
    }
}

details {
    text-align: center;
    color: var(--title2);
    margin-top: 30px;
}

summary {
    max-width: 150px;
    margin: 0 auto;
    font-size: 0.9em;
    user-select: none; /* Prevent text and image selection */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE/Edge */
}

summary:hover {
    color: var(--text);
    cursor: pointer;
}

pre {
    max-width: 300px;
    margin: 20px auto 0px auto;
	font-family: 'IM Fell DW Pica', Georgia, 'Times New Roman';
    font-size: 1em;
    text-align: justify;
    white-space: preserve-breaks; /* Preserve line breaks and wrap text */
}

/* ====================================== TRACK PAGE MULTILINK ====================================== */
.multilink-songlinks {
    display:flex;
    justify-content: center; /* align horizontal */
    align-items: center; /* align vertical */
    gap: 5px;
    max-width: 240px;
    height: 60px;
    margin: 0 auto;
    margin-bottom: 20px;
    border-width: 2px;
    border-color: var(--text3);
}

.multilink-tile, .multilink-tile:visited {
    height: 60px;
    opacity: 0.5;
}

.multilink-tile:hover {
    opacity: 1;
}

.multilink-tile:active {
    opacity: 0.5;
}

.multilink-songlinks img {
    width: 60px;
    height: 60px;
}

@media (max-width: 360px) {
    .multilink-songlinks img {
    width: 16vw;
    height: 16vw;
    }
}



/* ====================================== FOOTER ====================================== */
.footer-socials {
    display:flex;
    justify-content: center; /* align horizontal */
    align-items: center; /* align vertical */
    gap: 5px;
    max-width: 240px;
    height: 50px;
    margin: 0 auto;
    border-top-style: dotted;
    border-width: 2px;
    border-color: var(--text3);
}

.footer-tile, .footer-tile:visited {
    height: 30px;
    opacity: 0.5;
}

.footer-tile:hover {
    opacity: 1;
}

.footer-tile:active {
    opacity: 0.5;
}

.footer-socials img {
    width: 30px;
    height: 30px;
}

@media (max-width: 320px) {
    .footer-socials img {
    width: 9.5vw;
    height: 9.5vw;
    }
}

footer p {
    font-size: 0.7em;
    color: var(--text3);
    user-select: none; /* Prevent text and image selection */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE/Edge */
}