/* reset + base */
* { margin:0; padding:0; box-sizing:border-box; }
body, button, input { font-family: 'Copperplate Gothic', Copperplate, sans-serif; }
.screen { position:fixed; top:0; left:0; width:100%; height:100%; background:#000; color:#fff; display:flex; align-items:center; justify-content:center; }
.hidden { display:none; }

/* DIALOGS */
.dialog {
  background: rgba(0,0,0,0.85);
  border: 2px solid #667b02;
  padding: 2rem;
  text-align:center;
  max-width: 400px;
}
.logo {
  width: 150px;
  margin-bottom: 1rem;
}
.logo-small { width:150px; display:inline-block; vertical-align:middle; margin-right:0.5rem; }

.home-dialog {
  max-width: 600px;              /* controls how wide the box can grow */
  margin: 4rem auto;             /* centers it and gives vertical breathing room */
  padding: 2.5rem;               /* adjust padding to taste */
  box-shadow: 0 8px 24px rgba(0,0,0,0.5); /* optional deeper shadow */
}
.home-dialog h3 {
  font-size: 1.25rem;            /* scale the heading */
  margin-bottom: 1rem;
  color: #f7ba31;                /* gold accent, if you like */
}
.home-dialog p {
  font-size: 1rem;
  color: #fff;
}


h1, h2, h3, p { margin-bottom:1rem; text-transform:uppercase; }
h1 { font-size:1.5rem; color:#ffffff; }
h2 { font-size:5rem; font-style: italic; color:#ffffff; }
h3 { font-size:5rem; color:#ffcc00; }

button {
  background:#111;
  color:#ffcc00;
  border:2px solid #ffcc00;
  padding:0.5rem 1rem;
  cursor:pointer;
  text-transform:uppercase;
}
button:hover { border-color:#669900; color:#669900; }

/* GATE */
#errorMsg { margin-top:1rem; color:#fd4b7b; }
#errorMsg a { color:#f7ba31; text-decoration:underline; }

/* HUB */
header {
  position:fixed; top:0; left:0; width:100%; padding:.5rem;
  background:rgba(0,0,0,0.9); text-align:center; border-bottom:1px solid #667b02;
}
/* 1. Make nav fixed across the bottom */
nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: space-around;
  padding: 1rem 0;
  border-top: 1px solid #667b02;
  z-index: 100;
}

#home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0rem;
  gap: 0rem;
  min-height: calc(100vh - /* header + nav heights */ 10rem);
}

#home h3 {
  font-size: 1.2rem;
  color: #f7ba31;   /* gold accent */
  text-align: center;
  width: 100%;       /* ensures the full line is used for centering */
  margin-top: 1.5rem;  /* optional spacing if you still want a gap */
}

#home {
  white-space: nowrap;        /* prevents automatic line breaks */
  overflow-x: auto;   /* horizontal overflow scrolls if needed */
  overflow-y: auto; /* vertical overflow is clipped */
}

#home p {
  font-size: 1.1rem;
  color: #fff;
  text-align: left;
  display: block;         /* ensure it’s a block-level element */
  margin: 1.5rem auto 0;  /* top margin 1.5rem, left/right auto, bottom 0 */
  max-width: 330px;
  margin-top: 3rem;  /* space between H3 and P */
  margin-bottom: 1.5rem;  /* moves the H3 away from what follows */
}


/* Let the title sit normally above the artwork */
#mindfm {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;    /* space between title and artwork */
}

#mindfm > h3 {
  text-align: justify;
  width: 50%;
}


/* MAIN CONTENT */

/* 2. Ensure main content sits above the nav bar */
main {
  position: absolute;
  top: 20rem;    /* adjust until content clears header */
  bottom: 6rem;  /* adjust until content sits above nav */
  left: 0rem;
  right: 0rem;
  padding: 1rem; /* your existing side padding */
  overflow-y: auto;
}

.apple-player {
  width: 360px;
  background: #f2f2f2;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 1rem;
  font-family: 'Copperplate Gothic', Copperplate, sans-serif;
  color: #000;
}

.player-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.artwork {
  width: 350px;
  height: 350px;
  background-image: url('../images/mindfm.png');
  background-size: cover;
  background-position: center;
  border: 2px solid #ffcc00;
  border-radius: 8px;
  margin: 0rem;
}
.airplay {
  font-size: 1.25rem;
  color: #667b02;
}

.progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.time {
  font-size: 0.75rem;
  width: 2rem;
  text-align: center;
}
.progress-bar {
  flex: 1;
  height: 4px;
  background: #ccc;
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}
.progress {
  width: 0%;
  height: 100%;
  background: #000;
  border-radius: 2px;
}
.thumb {
  position: absolute;
  top: 50%; left: 0;
  width: 12px; height: 12px;
  background: #000;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.controls {
  display: flex;
  justify-content: space-around;
  margin-bottom: 0.75rem;
}
.controls button {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #000;
}
.controls button:hover {
  color: #667b02;
}

.volume-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.vol-icon {
  font-size: 1rem;
}
.volume-slider {
  flex: 1;
  -moz-appearance: none;      /* Firefox */
  -webkit-appearance: none;   /* Chrome, Safari, Edge */
  appearance: none;           /* standard */
  height: 4px;
  background: #ccc;
  border-radius: 2px;
}
.volume-slider::-webkit-slider-thumb {
  -moz-appearance: none;      /* Firefox */
  -webkit-appearance: none;   /* Chrome, Safari, Edge */
  appearance: none;           /* standard */
  width: 12px; height: 12px;
  background: #000;
  border-radius: 50%;
  cursor: pointer;
}
