/* CSS for the entire page */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #fbcef7;
}
/* creates margins for the page content */
.page-content {
  margin: 0 70px;
}

/* centers main heading, vertical spacing and increases font size */
h1 {
  text-align: center;
  padding-top: 55px;
  font-size: 40pt;
  color: #e91e63;
  font-family: Georgia, serif, 'Jaxx LET', fantasy;
}
/* adds top padding to section headings, increases font size, and decorative font */
h2 {
  padding-top: 60px;
  font-size: 30px;
  color: #673ab7;
  font-family: Georgia, serif, 'Jaxx LET', fantasy;
}
/* adds colors to subheadings */
h3 {
  color: #35aac7;
}
/* styles paragraph, adds padding, larger font for accessibility */
p {
  color: #555;
  padding: 0 30px;
  font-size: 14pt;
}


/* format the navigation bar. creates a sticky nav bar with a background image, rounded corners, and drop shadow. uses flexbox to align nav items and ensures the bar stays visible when scrolling */
nav {
  background-image: url('../media/woman.webp');
  opacity: 0.9;
  background-position: center;
  position: sticky;
  top: 20px;
  padding: 5px;
  margin: 0 20px; 
  border-radius: 50px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
}
/* arranges navigation links horizontally, removes default list styling, and wraps items if needed */
#nav-links {
  list-style-type: none;
  display: flex;
  justify-content: right;
  align-items: center;
  margin: 10px;
  flex-wrap: wrap;
  gap: 5px;
}
/* styles each navigation link as a pill-shaped button */
#nav-links a {
  display: block;
  padding: 10px 18px;
  color: white;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: 40px;
  border: 0.5px solid aliceblue;
}
/* changes background color of navigation links on hover for interactive feedback */
#nav-links a:hover {
  background-color: #530d81;
}

/* switch style button with rounded corners, padding, and a border. bold font and pointer curser to indicate interactivity. */
#switchStyleButton{
  cursor: pointer;
  background-color: pink;
  border-radius: 20px;
  padding: 10px 20px;
  margin: 0 10px;
  border: 2px solid #e91e63;
  font-size: large;
  font-weight: 500;
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}

/* ensures that when navigating to a section, it appears just below the navbar. adds bottom margin to separate sections visually. */
section {
  scroll-margin-top: 105px; 
  margin-bottom: 30px;
}


/* format the intro section. uses flexbox to align intro image and text side by side */
#intro {
  display: flex;
  align-items: flex-start;
  gap: 24px; 
  margin-bottom: 20px;
  padding-top: 40px; 
  flex-wrap: wrap;
}
/* rounds the intro image corners and fixes its height for consistent appearance */
#intro img {
  border-radius: 10px;
  height: 400px; 
  position: static;
}
/* allows intro text to expand and align vertically with the image */
.intro-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
/* removes top margin from intro heading and increases font size */
.intro-text h1 {
  margin-top: 0; 
  margin-bottom: 10px;
  font-family: fantasy;
  font-size: 45pt;
  font-weight: bolder;
}


/* styles tables and cells with borders, background color, and padding */
table,
th,
td {
  text-align: center;
  padding: 5px 10px;
  border: 2px solid black;
  border-collapse: collapse;
  background-color: #ff88b0;
}
/* highlights table headers with background and extra padding */
th {
  background-color: #ff4081;
  color: white;
  padding: 10px;
}
/* sets fixed width for tables to maintain layout consistency */
table {
  width: 85%;
}

/* format the social links. uses flexbox to arrange social media links horizontally, centers them, and adds spacing between icons */
.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  list-style: none;
  flex-wrap: wrap;
}
/* adds horizontal margin to each social media icon for separation */
.social-links a {
  margin: 5px 40px;
}

/* aligns videos together in a row, centers them, and allows wrapping for smaller screens */
.video-row {
  display: flex; 
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
/* stacks video and titles vertically and centers it within each */
.video-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* adds space between the conclusion and footer */
#conclusion { 
  margin-bottom: 300px;
}

/* styles all links with color and removes underline by default */
a {
  color: #0d8884;
  text-decoration: none;
}
/* underlines links and changes color on hover for clear interactivity */
a:hover {
  color: #0f9d32;
  text-decoration: underline;
}


/* styles footer. adds spacing, border, color to the footer, and centers its content */
footer {
  margin-top: 20px;
  text-align: center;
  font-size: 0.8em;
  color: #666;
  padding: 15px;
  border-top: 1px solid #994eb7;
}
/* reduces font size for footer paragraphs */
footer p {
  font-size: 10pt;
}
/* arranges footer links horizontally and centers them, removing default list styling */
footer ul {
  list-style-type: none;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  gap: 20px;
}



/* CSS for Random Song Generator */
#songInput {
  width: 100px;
  padding: 12px; 
  border-radius: 10px;
  border: 2px solid #e91e63;
}
/* centers the section and limits its width for focus */
#random-song {
  background: #eda8d6;
  border: 2px solid #e91e63;
  border-radius: 20px;
  padding: 30px;
  margin: 40px auto;
  max-width: 700px;
  box-shadow: 0 4px 16px rgba(233, 30, 99, 0.08);
  text-align: center;
}
/* styles random song heading */
#random-song h2 {
  color: #e91e63;
  font-size: 40px;
  font-family: 'Jaxx LET', fantasy;
  margin-bottom: 10px;
}
/* styles input box inside random song section  */
#random-song input[type="number"] {
  border: 2px solid #e91e63;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 1.1em;
  margin-right: 10px;
  outline: none;
  transition: border 0.2s;
}
/* highlights input box border when focused */
#random-song input[type="number"]:focus {
  border-color: #673ab7;
}
/* random song generator button style */
#generateBtn {
  background-color: pink;
  border-radius: 20px;
  padding: 10px 24px;
  border: 2px solid #e91e63;
  font-size: large;
  font-weight: 500;
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  color: #530d81;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
/* inverts button colors on hover for interactive feedback */
#generateBtn:hover {
  background-color: #e91e63;
  color: #fff;
}
/* adds margin and rounded corners to song iframe */
#songIframe {
  margin-top: 24px;
  border-radius: 16px;
  border: 2px solid #e91e63;
}



/* CSS for the Albums. sets max width for albums and centers it on page */
.music-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
/* arranges album covers with spacing between items */
.albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 45px;
  padding: 15px;
}
/* positions each album container, sets fixed size, and allows overflow for hover effects */
.album-container {
  position: relative;
  width: 250px;
  height: 250px;
  margin: 0 auto;
  overflow: visible;
}
/* ensures album covers fill their container, adds shadow, and enables smooth transform on hover */
.album-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  cursor: pointer;
  position: relative;
  z-index: 2;
}
/* positions CD media image absolutely for hover animation, initially hidden */
.album-media {
  position: absolute;
  width: 220px;
  height: 220px;
  right: -60px;
  top: 20px;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1;
}
/* ensures CD image fits its container and applies a subtle shadow */
.album-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.3));
}
/* moves the album cover left on hover for a dynamic effects */
.album-container:hover .album-cover {
  transform: translateX(-15px);
}
/* fades in and shifts the CD media image on hover */
.album-container:hover .album-media {
  opacity: 1;
  right: -40px;
}
/* styles modal overlay for album details, covering the viewport with a semi-transparent background */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1100;
  display: none;
  justify-content: center;
  align-items: center;
}
/* activates the modal with full opacity and scale */
.songs-modal {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  width: 80%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  transform: scale(0.8);
  opacity: 0;
  transition: all 0.3s ease;
  position: relative;
}
/* activates the modal with full opacaity and scale */
.songs-modal.active {
  transform: scale(1);
  opacity: 1;
}
/* arranges the modal header with space between title and close button */
.modal-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* styles modal title (album titles) */
.modal-title {
  margin: 0;
  color: #333;
}
/* styles the close button with increased size and pointer cursor */
.close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
}
/* adds padding to modal content */
.modal-content {
  padding: 20px;
}
/* arranges album info in a row, aligns items at the top, and adds spacing */
.album-info {
  display: flex;
  margin-bottom: 20px;
  align-items: flex-start;
}
/* sets a fixed size and rounded corners for the album cover in the modal */
.modal-album-cover {
  width: 300px; 
  height: 300px; 
  object-fit: cover; 
  border-radius: 5px; 
  margin-right: 20px; 
}
/* allows album details to expand and adds top padding for alignment */
.album-details {
  flex: 1;
  padding-top: 5px;
}
/* styles album metadata with muted color and spacing */
.album-meta {
  color: #666;
  margin-bottom: 15px;
  line-height: 1.6;
  font-size: 0.95rem;
}
/* uses grid layout for metadata rows, aligning lables and values */
.album-meta-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 10px;
  margin-bottom: 6px;
}
/* styles metadata lables with bold font and minimum width */
.meta-label {
  color: #444;
  font-weight: 600;
  min-width: 70px;
  display: inline-block;
}
/* ensures strong tags in metadata are bold and aligned */
.album-meta strong {
  color: #444;
  font-weight: 600;
  display: inline-block;
  width: 80px;
}
/* allows metadata values to expand to fill available space */
.meta-value {
  flex: 1;
}
/* increases line height and sets color for song text in the modal */
.songs-text {
  line-height: 1.6;
  color: #333;
}
