/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&display=swap');

/* ==========================
   Global Base Styles
========================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Times New Roman', Times, serif;
  font-size: 19px;       /* base size */
  line-height: 1.65;     /* base line height */
  background-color: #ffffff;
  color: #000000;
}

p, li, a, h1, h2, h3, h4, h5, h6 {
  line-height: 1.65;      /* globally consistent */
}

p {
  margin-bottom: 1.2em;   /* space after paragraphs */
  text-align: justify;     /* full-line justification */
}

/* Container for max width */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================
   Header
========================== */
header {
  width: 100%;
  height: 250px; /* original 200px + 50px expansion */
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  background: url("https://tpetaiamusic.neocities.org/images/Copilot_20250831_220639.png") no-repeat center bottom;
  background-size: cover;
  background-position: center calc(100% + 125px); /* shifted down by 125px */
  color: #FFFFFF; /* header text now white */
  box-sizing: border-box;
  padding: 20px;
  border: 1px solid #001F54;
  outline: 5px solid #001F54;
  margin: 10px 0;
}

header h1 {
  font-size: 48px;
  font-weight: bold;
  margin: 0;
  color: #FFFFFF; /* ensure white text applies to h1 */
}

/* Mobile Header */
/* Mobile Header */
@media (max-width: 768px) {
  header {
    justify-content: center !important;
    align-items: center !important;
    padding: 20px 10px !important;
    height: auto;
    background-position: center calc(100% + 125px);
    background-size: contain;
    box-sizing: border-box;
  }

  header h1 {
    font-size: 36px;
    line-height: 1.4;
    text-align: center !important;
    margin: 0 auto;
    color: #FFFFFF !important; /* enforce white text on mobile */
  }
}


/* ==========================
   Navbar
========================== */
nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1000;
}

nav a {
  font-family: 'Cinzel', serif;
  text-decoration: none;
  color: black;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

/* Mobile Navbar */
@media (max-width: 768px) {
  nav {
    justify-content: space-between;
  }
}

/* ==========================
   Banner
========================== */
.site-banner {
  width: 100%;
  max-width: 1200px;
  height: 150px;
  background-color: #001F54;
  border: 1px solid black;
  margin: 0 auto 20px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ==========================
   Compositions Grid
========================== */
.compositions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.composition-item {
  cursor: pointer;
}

.composition-placeholder {
  width: 100%;
  aspect-ratio: 8.5 / 11;
  background-color: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  text-align: center;
}

/* ==========================
   Popup / Overlay
========================== */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-content {
  background-color: #fff;
  padding: 20px;
  max-width: 800px;
  width: 90%;
  position: relative;
  border-radius: 10px;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

.popup iframe {
  width: 100%;
  height: 400px;
  margin-bottom: 15px;
}

.popup-description p {
  margin-bottom: 10px;
  line-height: 1.65;
}

/* ==========================
   Footer
========================== */
.footercontainer {
  background-color: #001F54;
  color: white;
  text-align: center;
  padding: 30px 20px;
  font-family: 'Cinzel', serif;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  border: 1px solid black;
}

.footercontainer p {
  margin: 10px 0;
}

.footercontainer a {
  color: white;
  text-decoration: none;
  margin: 0 12px;
  font-size: 18px;
  transition: color 0.3s;
}

.footercontainer a:hover {
  color: #A3C1AD;
}

/* ==========================
   Mobile Adjustments
========================== */
@media (max-width: 768px) {
  body, p, li, a, h1, h2, h3, h4, h5, h6 {
    font-size: 19px;       /* same font size on mobile */
    line-height: 1.65;     /* same line height on mobile */
  }

  p {
    margin-bottom: 1.2em;
  }
}

