/* Reset basic spacing */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #fff3e8;
  font-family: sans-serif;
  color: #a63403;
  padding: 20px;
}

/* Navigation Styles */
.main-nav {
  background-color: #fae7d4; /* Matches your panel color */
  padding: 15px 0;
  border-radius: 12px;
  margin-bottom: 40px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-weight: bold;
  font-size: 1.2rem;
  text-decoration: none;
  color: #a63403;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links a {
  text-decoration: none;
  color: #a63403;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 0.7;
}

/* Mobile Nav Adjustment */
@media (max-width: 600px) {
  .nav-container {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

/* 1. The Grid Container */
.bento-wrapper {
  display: grid;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  /* Default: 1 column for mobile */
  grid-template-columns: 1fr;
}

/* 2. The Panel Styling */
.panel {
  background-color: #fae7d4;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* 3. Desktop Layout (Screens wider than 768px) */
@media (min-width: 768px) {
  .bento-wrapper {
    /* Switch to 3 columns on desktop */
    grid-template-columns: repeat(3, 1fr);
  }

  /* "Another peaceful Saturday" spans 2 columns */
  .panel-wide {
    grid-column: span 2;
  }

  .panel-full {
    grid-column: span 3;
  }
}

.panel iframe {
  width: 100%;
  height: 352px; /* Standard Spotify tall playlist height */
  border-radius: 12px;
  border: none;
}

.fancyheader {
	font-family: Georgia, serif;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #a63403;
  text-align: left;
  background-color: #fff3e8;
}

.spotify {
	color: #1DB954;
}

.centered-text {
  display: flex;
  align-items: center;      /* Vertically center */
  justify-content: center;  /* Horizontally center */
  text-align: center;       /* Optional: center-align multiline text */
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

#typewriter {
	
  font-style: italic;
  color: #444;
  border-right: 2px solid #444;
  overflow: hidden;
  width: fit-content;
  display: block;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal;

}

/* target the container for the image and text */
.panel.recent-additions {
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensures it matches the height of sibling panels */
}

.panel.recent-additions img {
  width: 100%;
  height: 250px; /* Force a height so text has room */
  object-fit: cover; /* Crops the image slightly to fit the area */
  border-radius: 8px;
  margin-bottom: 12px;
}

.panel.recent-additions h3 {
  margin-top: auto; /* Pushes the text to the bottom if needed */
  text-align: center;
  
  
  
}



/* --- DISCOGS SLIDESHOW FIXES --- */

.recent-additions {
  display: flex;
  flex-direction: column;
}

.discogs-slideshow {
  /* CRITICAL: This traps the absolute items inside this specific box */
  position: relative; 
  width: 100%;
  /* CRITICAL: Because the children are absolute, this parent needs a forced height so it doesn't collapse to 0px */
  min-height: 350px; 
  margin-top: 15px;
}

.discogs-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  /* Make sure the animation name matches the keyframes below */
  animation: fadeCycle 20s infinite; 
}

.discogs-cover {
  width: 100%;
  height: 100%;
  object-fit: contain; 
  border-radius: 8px;
  display: block;
}

.discogs-text {
  text-align: center; /* Replaces the old <center> tag */
  margin-top: 12px;
}

.discogs-text p {
  margin-bottom: 4px;
}

/* The Cross-fade Animation */
@keyframes fadeCycle {
  0%, 15% { 
    opacity: 1; 
    z-index: 2; /* Brings current image to the front */
  }
  20%, 100% { 
    opacity: 0; 
    z-index: 1; /* Pushes hidden images to the back */
  }
}