@font-face {
  font-family: "MidnightFlame";
  src: url("MidnightFlame.woff2") format("woff2");
}

/*HOME PAGE*/
* {
  box-sizing: border-box; /* Makes sizing easier */
}

body {
  background-image: url("homepage.png");
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #000;
  color: #e9e3eb;
  font-family: Georgia, serif;
  margin: 0;
  padding: 20px;
  min-height: 100vh;
  
  cursor: url('wandoff.png'), auto;
}

/* Main Container: Centers everything and limits max width */
.container {
  max-width: 1290px; 
  margin: 0 auto;    /* Centers the block */
  background-color: #9e8b9d80;
  padding: 20px;
  border-radius: 10px;
  display: flex;
  flex-direction: column; /* Stacks items vertically */
  gap: 20px; /* Space between sections */
}

/* Header */
header {
  text-align: center;
  font-family: "MidnightFlame", serif;
  font-size: 20pt;
}

header img {
  max-width: 100%; /* Ensures logo doesn't overflow on small screens */
  height: auto;
}

/* Navigation */
nav ul {
  list-style: none;
  margin: 0;
  display: flex; /* Makes list items horizontal */
  justify-content: center; /* Centers the list */
  gap: 20px; /* Space between links */
  background-color: #e9e3eb;
  padding: 15px;
  border-radius: 25px;
}

nav a {
  color: #2f0127;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

/* Content Grid: Puts Article and Aside side-by-side */
.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr; /* Article takes 2 parts, Aside takes 1 part */
  gap: 20px;
}

/* Article Styling */
.welcome {
  background-color: #9e8b9d;
  padding: 20px;
  border-radius: 10px;
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.welcome-img {
  width: 150px;
  height: auto;
  border-radius: 5px;
}

/* Aside Styling */
aside {
  background-color: #9e8b9d;
  padding: 20px;
  border-radius: 10px;
  font-style: italic;
}

/* Content2 Grid: Puts pictures, spotify and guestbook side-by-side */
.content2-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Row2 Boxes */
.row2 {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #9e8b9d;
  text-align: center;
  padding: 15px;
  border-radius: 10px;
}
.song {
  padding: 0;
  border-radius: 10px;
}
.row2:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.row2 a {
  color: #e9e3eb;
  text-decoration: none;
}

/* Footer */
.content3-grid {
  display: grid;
  grid-template-columns: 4fr 1fr;
  gap: 20px;
}


.row3 {
  background-color: #9e8b9d;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

.game {
  background-image: url(images/fond.jpg);
  background-position: center;
  background-size: cover;
}

.game a {
  color: #e9e3eb;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.social-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

a {
  text-decoration: none;
  color: #352b50;
}

/*MONTHLY SUMMARY - COOL WEBSITE PAGE*/

/* Page Header */
.page-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-header h1 {
  font-family: 'MidnightFlame', Georgia, serif;
  font-size: 2.5rem;
  color: #e9e3eb;
  margin-bottom: 10px;
}

/* Month Badge - makes March stand out */
.badge {
  display: inline-block;
  background-color: #e9e3eb;
  color: #2f0127;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 1rem;
  letter-spacing: 1px;
  text-align: center;
}

.intro {
  font-family: Georgia, serif;
  background-color: #9e8b9d;
  color: #e9e3eb;
  padding: 25px;
  border-radius: 12px;
}

/* Grid Layout for Cards */
.summary-grid {
  column-count: 3; /* Creates 3 columns that stack vertically */
  column-gap: 25px; /* Space between columns */
  width: 100%;
  max-width: 1400px; /* Optional: limit total width */
  margin: 0 auto;
}

/* Card Styling */
.card {
  display: flex;
  flex-direction: column;
  background-color: #9e8b9d;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 25px; /* Space between cards in the SAME column */
  break-inside: avoid; /* Prevents card from splitting across columns */
  width: 100%; /* Ensures card fills the column width */
}

.card h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #e9e3eb;
  border-bottom: 2px solid #e9e3eb;
  padding-bottom: 10px;
  flex-shrink: 0; /* Prevents header from shrinking */
}

/* Stat Styling */
.stat {
  margin-bottom: 15px; /* Space between stats */
  padding: 10px;
  background-color: rgba(233, 227, 235, 0.1);
  border-radius: 8px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  /* NEW PROPERTIES TO FIX THE ISSUE */
  display: inline-block; /* Makes the box wrap around content */
  width: auto; /* Removes forced full width */
  max-width: 100%; /* Prevents it from exceeding card width */
}

.stat:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.stat strong {
  display: block;
  color: #e9e3eb;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.stat p {
  color: #d8c8d8;
  margin: 0;
  font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .summary-grid {
    column-count: 2; /* 2 columns on tablets */
  }
}

@media (max-width: 768px) {
  .summary-grid {
    column-count: 1; /* 1 column on mobile */
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
}

/*MUSIC PAGE*/
.artists {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  background-color: transparent;
}

.artist-card {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;   /* Keeps everything inside the box */
  border-radius: 8px;
}

.artist-card img {
  position: absolute; /* Takes it out of the flow so it fills the box */
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease; /* Smooth zoom effect */
}

.hover-name {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.8); /* Dark semi-transparent background */
  color: white;
  padding: 10px;
  text-align: center;
  font-size: 14px;
  opacity: 0; /* Hidden by default */
  transition: all 0.3s ease; /* Smooth slide up */
  pointer-events: none; /* Let clicks pass through to the image */
}

.library {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 equal columns */
  gap: 15px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  background-color: transparent;
}

/* Container for the image and text */
.album-card {
  position: relative; /* Essential for positioning the text */
  width: 100%;
  padding-bottom: 100%; /* This creates the 1:1 square ratio! */
  height: 0; /* Height is determined by padding */
  overflow: hidden;   /* Keeps everything inside the box */
  border-radius: 8px;
  margin-bottom: 15px; /* Space between items */
}

/* The Image */
.album-card img {
  position: absolute; /* Takes it out of the flow so it fills the box */
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease; /* Smooth zoom effect */
}

/* The Hidden Text */
.hover-text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.8); /* Dark semi-transparent background */
  color: white;
  padding: 10px;
  text-align: center;
  font-size: 14px;
  opacity: 0; /* Hidden by default */
  transform: translateY(100%); /* Pushed down below the image */
  transition: all 0.3s ease; /* Smooth slide up */
  pointer-events: none; /* Let clicks pass through to the image */
}

.playlists {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  background-color: transparent;
}

/* HOVER EFFECTS */
.album-card:hover img {
  transform: scale(1.05); /* Slight zoom on hover */
}

.album-card:hover .hover-text {
  opacity: 1; /* Show text */
  transform: translateY(0); /* Slide up to normal position */
}

.artist-card:hover img {
  transform: scale(1.05); /* Slight zoom on hover */
}

.artist-card:hover .hover-name {
  opacity: 1; /* Show text */
  transform: translateY(0); /* Slide up to normal position */
}

/* Responsive Grid */
@media (max-width: 1200px) {
  .library {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .library {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .library {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 400px) {
  .library {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .artists {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .artists {
    grid-template-columns: 1fr;
  }
}