/* Reset some browser defaults */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: Arial, sans-serif;

  /* Full-page fixed gradient */
  background: #3EFF51;
  background: -moz-radial-gradient(center, #3EFF51 0%, #93CB74 70%, #FFFB00 100%);
  background: -webkit-radial-gradient(center, #3EFF51 0%, #93CB74 70%, #FFFB00 100%);
  background: radial-gradient(ellipse at center, #3EFF51 0%, #93CB74 70%, #FFFB00 100%);
  overscroll-behavior-y: none;
  overflow-y: hidden;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  overflow-x: hidden;  /* prevent horizontal scroll */
  margin: 0;
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Make main content flex-grow to fill screen */
#site-main {
  flex: 1 0 auto;  /* grow to fill available space */
}

/* Footer (music bar) does not push page taller */
#music-bar {
  flex-shrink: 0;
}

/* ----- HEADER ----- */
#site-header {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10; /* make it clickable above main content */
}

#home-button {
  background: #222;
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
}

#home-button:hover {
  background: #444;
}

/* ----- MAIN LAYOUT ----- */
#site-main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding-bottom: 3.5rem; /* make room for music bar */
}

/* Hide all sections except active */
[data-page][hidden] {
  display: none;
}

/* ----- FRONT PAGE ----- */
.front-actions {
  display: flex;
  gap: 2rem;               /* spacing between buttons */
  justify-content: center; /* horizontally center */
  align-items: center;     /* vertically center */
  height: 100%;
  pointer-events: auto; /* default, just in case */
  flex-wrap: wrap;         /* wrap if too narrow */
}

/* ----- UNIFIED BUTTON STYLE ----- */
button, .front-btn, #home-button, .arrow-btn {
  color: rgb(255, 255, 255);
  font-size: 22px;
  line-height: 22px;
  padding: 10px;
  border-radius: 50px;
  font-family: Georgia, serif;
  font-weight: normal;
  text-decoration: none;
  font-style: normal;
  font-variant: normal;
  text-transform: none;
  background-image: radial-gradient(rgb(11, 247, 255) 0%, rgb(239, 192, 255) 70%, rgb(239, 192, 255) 100%);
  box-shadow: rgba(65, 255, 149, 0.28) 14px 7px 26px 5px;
  border: 0px solid rgb(28, 110, 164);
  display: inline-block;
  cursor: pointer;
  transition: background 0.2s ease;
}

button:hover, .front-btn:hover, #home-button:hover, .arrow-btn:hover {
  background: #0BF7FF;
}

button:active, .front-btn:active, #home-button:active, .arrow-btn:active {
  background: #EFC0FF;
}

/* About + Contact buttons at bottom corners */
.front-actions button[data-nav-to="about"],
.front-actions button[data-nav-to="contact"] {
  position: fixed;
  bottom: 4.5rem; /* just above the music bar */
}

.front-actions button[data-nav-to="about"] {
  left: 1rem;
}

.front-actions button[data-nav-to="contact"] {
  right: 1rem;
}
/* Music Bar Container */
#music-bar {
  position: fixed;
  bottom: 20px; /* lifted slightly from bottom */
  left: 50%; 
  transform: translateX(-50%);
  width: 700px; /* fixed width */
  height: 70px; /* fixed height */
  background: radial-gradient(ellipse at center, #FFFFFF 0%, #FFF867 100%);
  color: #000;
  padding: 1rem;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  display: flex; 
  align-items: center; /* vertical alignment */
  justify-content: space-between; /* space between sections */
  gap: 1rem;
  z-index: 1000;
  box-sizing: border-box; /* include padding in size */
}

/* Hide default audio player */
#music-bar audio {
  display: none;
}

/* Player Buttons Container */
.player-ui {
  display: flex;
  align-items: center;
  gap: 1rem; /* space between controls, track info, slider */
  width: 100%; /* take full width */
  box-sizing: border-box;
}

/* Controls (prev/play/pause/next) */
.controls {
  display: flex;
  gap: 0.5rem;
  min-width: 150px; /* prevent buttons from moving */
  justify-content: flex-start;
}

/* Player Buttons */
.player-ui button {
  background: transparent;
  border: none;
  color: #000; /* black buttons for contrast */
  font-size: 1.5rem; 
  cursor: pointer;
  transition: color 0.2s ease; /* smooth hover transition */
}

.player-ui button:hover {
  color: #FFFFFF;  /* change icon color to white on hover */
}

/* Track info text container */
#track-info {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
  font-size: 0.9rem;
  position: relative;
  color: #FF4500;
}

#track-info span {
  display: inline-block;
  white-space: nowrap;
  transform: translateX(0);       /* start centered */
  opacity: 1;
  animation: moveLeftFade 10s forwards;
}

/* Keyframes for scrolling text */
@keyframes scrollText {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* optional: ensure the container hides overflow */
#track-info {
  overflow: hidden;
  position: relative;
}

/* Volume slider container styling (keeps it inline with buttons) */
.volume-container {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 120px; /* fixed width to prevent shifting */
  justify-content: flex-end;
}

/* Volume slider */
#volume-slider {
  width: 100px;
  height: 6px;
  border-radius: 3px;
  background: #ccc;
  cursor: pointer;
  vertical-align: middle;
}

#volume-slider::-webkit-slider-thumb {
  cursor: pointer;
  background: #007BFF;
  border-radius: 50%;
  border: none;
  height: 16px;
  width: 16px;
}

#volume-slider::-webkit-slider-runnable-track {
  height: 6px;
  background: #ccc;
  border-radius: 3px;
}


/* ----- DRAWINGS CAROUSEL ----- */
.drawing-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.arrow-btn {
  background: #222;
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.arrow-btn:hover {
  background: #444;
}

.drawing-display {
  width: 400px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawing-display img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Splash screen styling */
#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #888; /* grey background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#enter-btn {
  padding: 20px 50px;
  font-size: 2rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  background: #0BF7FF;
  color: #fff;
  box-shadow: rgba(65, 255, 149, 0.28) 14px 7px 26px 5px;
  transition: background 0.2s ease;
}

#enter-btn:hover {
  background: #EFC0FF;
}
/* ----- CONTACT STYLE -----*/
.contact-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 12px 12px 12px;
  border: 2px solid #ccc;
  border-radius: 8px;
  outline: none;
  font-size: 16px;
  transition: border-color 0.3s;
}

.form-group textarea {
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #007BFF;
}

.form-group label {
  position: absolute;
  top: 12px;
  left: 12px;
  color: #aaa;
  font-size: 16px;
  pointer-events: none;
  transition: 0.2s ease all;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -8px;
  left: 10px;
  font-size: 12px;
  color: #007BFF;
  background: #fff;
  padding: 0 4px;
}

.submit-btn {
  padding: 12px;
  border: none;
  border-radius: 8px;
  background-color: #007BFF;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.submit-btn:hover {
  background-color: #0056b3;
}


/* CART POPUP */
/* Cart toggle button fixed top-right */
.cart-toggle-btn {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  padding: 0.5rem 1rem;
  cursor: pointer;
  background-color: #222;
  color: #fff;
  border: none;
  border-radius: 6px;
}

/* Cart popup styling */
.cart-popup {
  position: fixed;
  top: 60px;
  right: 20px;
  width: 300px;
  max-height: 70vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #ccc;
  padding: 1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  border-radius: 10px;
  z-index: 9999;
}
.cart-popup.hidden {
  display: none;
}

.cart-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}
.cart-item img {
  width: 50px;
  height: 50px;
  margin-right: 0.5rem;
  object-fit: cover;
}
.cart-item .cart-info {
  flex: 1;
}
.cart-item .cart-qty {
  width: 50px;
  margin-right: 0.5rem;
}
.cart-item button.remove-btn {
  background: transparent;
  border: none;
  color: red;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Close button top right inside popup */
.cart-close-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  position: absolute;
  top: 5px;
  right: 5px;
  cursor: pointer;
}

/* Checkout Style */

#card-element {
  padding: 12px;
  border: 2px solid #ccc;
  border-radius: 8px;
  background: #fff;
  margin-top: 5px;
  margin-bottom: 15px;
}
#card-element.StripeElement--focus {
  border-color: #007BFF;
  box-shadow: 0 0 0 2px rgba(0,123,255,0.2);
}
/* Checkout Style */

#checkout-form {
  display: grid;
  grid-template-columns: 1fr 1fr; /* left and right columns */
  gap: 20px;
  max-width: 900px;
  margin: 20px auto;
}

/* Default: everything in left column */
#checkout-form .form-group {
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Inputs and selects */
#checkout-form .form-group input,
#checkout-form .form-group select {
  width: 100%;
  padding: 12px 10px;
  border: 2px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
  margin-top: 5px;
  margin-bottom: 15px;
}

/* Floating labels */
#checkout-form .form-group label {
  position: absolute;
  top: 12px;
  left: 12px;
  color: #aaa;
  font-size: 16px;
  pointer-events: none;
  transition: 0.2s ease all;
}

#checkout-form .form-group input:focus + label,
#checkout-form .form-group input:not(:placeholder-shown) + label,
#checkout-form .form-group select:focus + label,
#checkout-form .form-group select:not(:placeholder-shown) + label {
  top: -8px;
  left: 10px;
  font-size: 12px;
  color: #007BFF;
  background: #fff;
  padding: 0 4px;
}

/* Place city, postal code, country in right column */
#checkout-form .form-group[name="city"],
#checkout-form .form-group[name="postal_code"],
#checkout-form .form-group[name="country"] {
  grid-column: 2; /* second column */
}

/* Full-width fields (card, submit) */
#checkout-form .form-group.full-width,
#checkout-form .submit-btn {
  grid-column: 1 / -1;
}

/* Submit button styling */
#checkout-form .submit-btn {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  background-color: #007BFF;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
}

#checkout-form .submit-btn:hover {
  background-color: #0056b3;
}

/* Responsive: single column on small screens */
@media (max-width: 600px) {
  #checkout-form {
    grid-template-columns: 1fr;
  }

  /* All fields occupy full width */
  #checkout-form .form-group,
  #checkout-form .submit-btn {
    grid-column: 1;
  }
}
 #music-bar {
  width: 700px; /* keep fixed size */
  left: 50%;
  transform: translateX(-50%);
}
.listen-buttons {
  text-align: center;
  margin-bottom: 1rem;
}
.listen-buttons button {
  margin: 0.5rem;
  /* inherits your unified gradient button style */
}

.listen-box {
  display: flex;
  aspect-ratio: 20/9;          /* keep proportions */
  width: 60vw;                 /* ~3/5 of viewport width */
  max-width: none;             /* remove cap */
  height: 60vh;                /* ~3/5 of viewport height */
  margin: auto;                /* center horizontally and vertically */
  border: 2px solid #ccc;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.listen-box.hidden { 
  display: none; 
}

.listen-left {
  width: 20%;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border-right: 1px solid #ddd;
  overflow: hidden;
}

.listen-scroll {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 1rem;
}

.spotify-btn {
  background: #1DB954;
  color: #fff;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
}

.listen-right {
  width: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;   /* keep YouTube ratio */
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-placeholder iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.custom-play {
  position: absolute;
  font-size: 3rem;
  color: #fff;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  padding: 1rem 1.5rem;
  cursor: pointer;
}
.cart-empty-msg {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, margin 0.4s ease, padding 0.4s ease;
  margin: 0;
  padding: 0 10px;
  pointer-events: none;
}

.cart-empty-msg.show {
  max-height: 120px;
  margin: 12px 0 16px 0;
  padding: 10px;
}

.cart-empty-text {
  display: inline-block;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  color: #d00;
  font-size: 0.9rem;
  text-align: center;
}

.cart-empty-msg.show .cart-empty-text {
  opacity: 1;
  transform: translateY(0);
}
/* ----- SHOP ITEMS CONTAINER ----- */
#shop-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 flexible columns */
  gap: 40px 50px;
  justify-items: center;

  overflow-y: scroll;           /* enable vertical scrolling */
  height: calc(100vh - 160px);  /* adjust scrollable height */
  box-sizing: border-box;
  padding: 90px 30px 90px 30px; /* use padding for top/bottom space instead of ::before/after */

  /* Hide scrollbar */
  scrollbar-width: thin;        
  scrollbar-color: transparent transparent;
}

#shop-items::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

/* Make shop page itself not affected by scroll */
#shop[data-page] {
  overflow: hidden;
  padding-bottom: 0;
}

/* ----- EACH SHOP ITEM CARD ----- */
.shop-item {
  background-color: #fff;                 
  border-radius: 12px;                    
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 25px;                
  width: 100%;                  
  max-width: 250px;             
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease;
}

.shop-item:hover {
  transform: translateY(-5px);
}

.shop-item img {
  border-radius: 10px;  
  max-width: 100%;
  margin-bottom: 15px;
}

.shop-item .arrow-btn {
  font-size: 1.2rem;
  padding: 5px 10px;
  margin: 0 5px;
  border-radius: 50px;
  background-image: radial-gradient(rgb(11, 247, 255) 0%, rgb(239, 192, 255) 70%, rgb(239, 192, 255) 100%);
  box-shadow: rgba(65, 255, 149, 0.28) 14px 7px 26px 5px;
  color: #fff;
  cursor: pointer;
}

.shop-item .arrow-btn:hover {
  background: #0BF7FF;
}

.shop-item p {
  margin: 5px 0;
  text-align: center;
  font-size: 0.9rem;
}

.shop-item button {
  margin-top: 10px;
  align-self: center;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  #shop-items {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 160px);
  }
}
/* ----- ALBUMS ----- */
.albums-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px 30px;
  justify-items: center;
  padding: 90px 30px;  /* similar to shop-items padding */
  overflow-y: auto;
  height: calc(100vh - 160px); /* fit within main area minus header/footer */
  box-sizing: border-box;
}

.album-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 250px;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.album-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.album-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.album-card h3 {
  font-family: Georgia, serif;
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #000;
}

.album-card p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 12px;
}

.album-card .album-link {
  font-family: Georgia, serif;
  text-decoration: none;
  font-size: 0.95rem;
  color: #fff;
  background-image: radial-gradient(rgb(11, 247, 255) 0%, rgb(239, 192, 255) 70%, rgb(239, 192, 255) 100%);
  padding: 10px 20px;
  border-radius: 50px;
  box-shadow: rgba(65, 255, 149, 0.28) 14px 7px 26px 5px;
  transition: background 0.2s ease;
  display: inline-block;
}

.album-card .album-link:hover {
  background: #0BF7FF;
}
