﻿@font-face {
  font-family: "LT Perfume";
  src: url("fonts/LTPerfume2.ttf") format("truetype");
}
@font-face {
  font-family: "Gabrielle";
  src: url("fonts/gabrielle.ttf") format("truetype");
}

:root{
  --top-padding: 120px; /* adjust if top border/tab height changes */
  --footer-height: 60px;
}

*{box-sizing:border-box}

html, body{
  min-height:100%;
  background: url("images/grandientbg.png") center/cover fixed no-repeat;
}

body{
  font-family:"LT Perfume", Arial, sans-serif;
  line-height:1.6;
  margin:0;
  padding: var(--top-padding) 0 calc(var(--footer-height) + 20px);
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  user-select:none;
}

#black-particles{
  position:fixed;
  bottom:0;
  left:0;
  width:100%;
  height:100%;
  background-image: url("images/blackparticle.png");
  background-size: cover;
  background-position: center;
  opacity:0;
  z-index:2;
  pointer-events:none;
}

#border-bottom {
    transition: opacity 0.3s ease;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 300px;

  background: url("images/borderbottom.png") no-repeat bottom;
  background-size: cover;

  opacity: 0;
  z-index: 9999;
}

#page-overlay{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0);
  z-index:1;
  pointer-events:none;
  transition:opacity 0.3s ease;
}

/* Top fixed elements */
.top-border{
  width:100%;
  height:auto;
  position:fixed;
  top:0;
  left:0;
  z-index:10;
  transition:opacity .3s ease;
  opacity:1;
  pointer-events:none;
}
.hamburger-menu{
  position:fixed;
  top:10px;
  left:10px;
  z-index:14;
  pointer-events:none;
}
.hamburger-menu * {
  pointer-events:auto;
}
#hamburger-toggle{
  background:none;
  border:none;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:8px;
  border-radius:8px;
  box-shadow:0 0 30px rgba(0,0,0,0.35);
}
#hamburger-toggle span{
  width:25px;
  height:3px;
  background:#fff;
  transition:0.3s;
}
.sidebar{
  position:fixed;
  top:0;
  left:-420px;
  width:420px;
  height:100vh;
  background:#fff;
  z-index:15;
  transition:left 0.3s ease;
  padding:20px;
  box-sizing:border-box;
  text-align:center;
  box-shadow:5px 0 20px rgba(0,0,0,0.3);
  pointer-events: auto;
  overflow-y: auto;
  overflow-x: hidden;
}
.sidebar h1{
  color:#000;
  font-family:"Gabrielle", serif;
  font-size:2rem;
  margin-top:50px;
}
.sidebar-links-row{
  display:flex;
  flex-direction:column;
  justify-content:space-around;
  align-items:center;
  margin-top:50px;
  gap:20px;
  padding-bottom:100px;
}
.sidebar-link{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:20px 20px;
  min-width:180px;
  background:rgba(0,0,0,0.05);
  color:#000;
  text-decoration:none;
  font-family:initial;
  font-size:0.95rem;
  border-radius:12px;
  white-space:nowrap;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  pointer-events: auto;
}
.sidebar-link:hover{
  background:rgba(0,0,0,0.12);
  transform:translateY(-4px);
  box-shadow:0 8px 20px rgba(0,0,0,0.08);
}
.sidebar-icon{
  width:20px;
  height:auto;
}
.overlay{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.5);
  z-index:14;
  opacity:0;
  pointer-events:none;
  transition:opacity 0.3s ease;
}
.sidebar.open{
  left:0;
}
.overlay.open{
  opacity:1;
  pointer-events:auto;
}
.top-tab{
  position:fixed;
  top:10px;
  left:50%;
  transform:translateX(-50%);
  z-index:12;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:15px;
  padding:10px 18px;
  background:rgba(255,255,255,0.95);
  border-radius:999px;
  box-shadow:0 10px 20px rgba(0,0,0,0.16);
  border:1px solid rgba(0,0,0,0.08);
  pointer-events:none;
}
.top-tab * {
  pointer-events:auto;
}
.volume-control{
  position:fixed;
  top:10px;
  right:10px;
  z-index:13;
  display:flex;
  align-items:center;
  gap:8px;
  background:rgba(0,0,0,0.6);
  padding:8px 10px;
  border-radius:999px;
  box-shadow:0 10px 30px rgba(0,0,0,0.2);
  pointer-events:none;
}
.volume-control * {
  pointer-events:auto;
}
#volume-toggle{
  background:none;
  border:none;
  color:#fff;
  font-size:1.2rem;
  cursor:pointer;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:center;
  transform:translate(6px, -2px);
  width: 1.5rem;
  height: 1.5rem;
}
#volume-toggle:hover{
  opacity:0.8;
}
#volume-toggle.shifted{
  transform:translate(2px, -2px);
}
.volume-control input{
  width:0;
  opacity:0;
  transition:width 0.3s, opacity 0.3s;
}
.volume-control input:not(.hidden){
  width:120px;
  opacity:1;
}
.volume-control input.hidden{
  width:0;
  opacity:0;
  pointer-events:none;
}
.commission-btn{
  background:rgba(0,0,0,.7);
  color:#fff;
  border:none;
  border-radius:20px;
  padding:10px 18px;
  font-family: initial;
  font-size:.9rem;
  cursor:pointer;
  transition:background .2s ease, transform .2s ease;
  text-decoration:none;
}
.commission-btn:hover{ background:rgba(0,0,0,.85); transform:translateY(-1px); }

/* Header layout (keep original left/right absolute positioning but responsive) */
.page-header{
  position:relative;
  padding:20px 0;
  width:100%;
  max-width:1400px;
  box-sizing:border-box;
  display:block;
}

/* Use percentages and clamp widths rather than calc with big offsets */
.header-left{
  position:absolute;
  left:0;
  top:0;
  width:48%;
  max-width:600px;
  text-align:center;
  padding:10px;
}
.header-right{
  position:absolute;
  right:0;
  top:0;
  width:48%;
  max-width:600px;
  text-align:center;
  padding:10px;
}

/* Ensure headings don't overflow */
.page-header h1{ margin:0; color:#333; font-size:clamp(18px,3vw,40px); word-break:break-word; }

.audio-label{
  margin:0;
  padding:5px 0;
  font-size:1rem;
  color:#fff;
  cursor:pointer;
}

audio::-webkit-media-controls-volume-slider,
audio::-webkit-media-controls-mute-button,
audio::-webkit-media-controls-volume-control-container,
audio::-webkit-media-controls-timeline-container {
  display:none !important;
}
audio::-moz-volume-slider,
audio::-moz-volume-control-container {
  display:none !important;
}

audio {
  display:none;
}

.audio-player{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:0;
  background: rgba(0, 0, 0, 0.66);
  padding: 12px 16px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  max-width: 360px;
  margin: 30px auto 0;
  cursor:pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  transform-origin: top center;
  position: relative;
  z-index: 1;
}

.audio-player:hover{
  transform: scale(1.05);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
  background: rgba(0, 0, 0, 0.77);
}

.audio-controls{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  max-width:360px;
}

.audio-seek{
  width:100%;
  appearance:none;
  background:rgba(255,255,255,.2);
  height:6px;
  border-radius:4px;
  outline:none;
}

.audio-seek::-webkit-slider-thumb{
  appearance:none;
  width:14px;
  height:14px;
  border-radius:50%;
  background:#fff;
  cursor:pointer;
  box-shadow:0 0 0 2px rgba(0,0,0,.3);
}

.audio-seek::-moz-range-thumb{
  width:14px;
  height:14px;
  border-radius:50%;
  background:#fff;
  cursor:pointer;
  border:none;
}

.audio-btn{
  background:rgba(0,0,0,.49);
  color:#fff;
  border:none;
  border-radius:20px;
  padding:8px 18px;
  font-family:"Gabrielle", Arial, sans-serif;
  font-size:1rem;
  cursor:pointer;
  transition:background .2s ease, transform .2s ease;
}

.audio-btn:hover{
  background:rgba(0,0,0,.85);
  transform:translateY(-1px);
}

.audio-time{
  font-size:0.9rem;
  color:#fff;
  padding:4px 10px;
  border-radius:12px;
}

.audio-end{
  margin:50px 0 0;
  color:rgba(0,0,0,0.55);
  font-size:1rem;
}

/* Images: consistent sizing and stacking within each side */
.header-left img,
.header-right img{
  width:100%;
  max-width:300px;
  height:auto;
  margin:20px auto 0;
  display:block;
}

.header-right a{
  display:inline-block;
}

.header-right a img{
  transition: transform 0.25s ease, opacity 0.25s ease, filter 0.25s ease;
}

.header-right a:hover img,
.header-right a:focus img{
  transform: scale(1.03);
  opacity:0.95;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.25));
}

/* Main and footer */
main,
footer{
  max-width:900px;
  margin:0 auto;
  text-align:center;
  padding:20px 0;
}
footer{
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  z-index:11;
  margin-top:0;
  height:var(--footer-height);
  display:flex;
  align-items:center;
  justify-content:center;
  background:transparent;
  transform: translateY(100%);
  transition: transform 0.5s ease;
}
footer.pop-up{
  transform: translateY(0);
}
footer p{ font-size:12px; margin:0; }

/* Make layout adapt on small screens: switch absolute to static stacking */
@media (max-width:920px){
  .header-left,
  .header-right{
    position:static;
    width:100%;
    max-width:none;
    padding:6px 20px;
  }
  .page-header{ padding-top:10px; }
  /* reduce top padding so content isn't too far down on small screens */
  body{ padding:100px 0 calc(var(--footer-height) + 20px); }
}

/* Extra small screens: smaller buttons and tighter spacing */
@media (max-width:480px){
  .commission-btn{
    padding:8px 12px;
    font-size:0.8rem;
  }
  .top-tab{ gap:10px; }
  body{ padding:80px 0 calc(var(--footer-height) + 20px); }
}

/* Extra safety: avoid top-border covering content when images load */
.page-header,
main{ z-index:1; position:relative; }
