body {
  font-family: "Montserrat";
  margin: 0;
  padding: 0;
  background-size: cover; 
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center center;
}

button {
  border: none;
  background-color: white;
  margin:0;
}
img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.heading {
  color: #509E2F;
  font-family: "M PLUS 1";
  font-weight: bold;
  margin-left: 3%;
}

/* Recognise select styles */

.select-label {
  background: #f6f6f6;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-family: "M PLUS 1";
}
.select-menu {
  max-height: 0;
  background: white;
  margin-top: 6px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: max-height 0.28s ease;
}
.select.open .select-menu { max-height: 120px; }
.recognise-audio-item {
  padding: 8px 12px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}
.recognise-audio-item:last-child { border-bottom: none; }



.handle {
  width: 80px;
  height: 6px;
  background: #ccc;
  border-radius: 3px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 9999;
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.info {
  position:fixed;
  width:100%;
  box-sizing: border-box;
  background-color: white;
  border-top-left-radius: 25px;
  border-top-right-radius: 25px;
  bottom: 0%;
  padding-top: 18px;
  padding-left: 2%;
  padding-right: 2%;
  overflow: visible;
  height:40px;
  transition: height 0.5s ease;
  -webkit-overflow-scrolling: touch; 
}
.info:focus,
.info:active,
.info:hover {
    height: 80%;                 /* Expand area when interacting */
}

.info-content {
  height: 100%;
  overflow: auto;
  box-sizing: border-box;
}

.collapsible {
  background-color: white;
  color:black;
  cursor: pointer;
  margin-bottom: 1%;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size:medium;
  font-family: "M PLUS 1";
}

.arrow {
  display: inline-block;
  
}

.content {
  padding: 0 18px;
  background-color: white;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  font-family: "M PLUS 1";
}

.number {
  font-size: larger;
  vertical-align: middle;
  float: inline-start;
  margin-right: 1%;
  font-weight: bold;
}

.credit, .subheading {
  left: 4%;
}

.credit {
  color: #979797;
  font-size: smaller;
}

.poem{
  text-align: center;
  font-family: "Lusitana";
  margin-top:25px;
}

.logo{
  align-content: center;
}

.dropdown{
  display: inline-block;
  right:0%;
  width: 320px;
  position:fixed;
  top:5%
}
.dropdown input {
  display: none;
}

/* ---------- BUTTON BASE ---------- */
.dropdown label {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  cursor: pointer;
  background: white;
  border-radius: 30px 0 0 30px;     
  transition: transform 0.35s ease;
  transform: translateX(calc(320px - 60px)); /* push most of the bar off-screen to the right, leave ~64px visible */
  will-change: transform;
}

.dropdown label .icon {
  width: 28px;
  height: 28px;
  background: #509E2F;
  clip-path: polygon(25% 20%, 75% 50%, 25% 80%);
  border-radius: 50%;
  transition: 0.20s ease;
  cursor: pointer;
  flex-shrink: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.dropdown label .icon.playing {
  background: url('audio.svg') center/contain no-repeat #509E2F;
  clip-path: none;
  border-radius: 50%;
}



/* text styling */
.dropdown label .subtitle {
  font-size: 10px;
  color: #888;
  letter-spacing: 1px;
}

.dropdown label .credit {
  font-size: 11px;
  color: #AFD98B;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.dropdown label .title {
  font-size: 14px;
  font-weight: 600;
}

#player {
  height: 24px;
  width: auto;
  max-width: 120px;
}

.dropdown input:checked + label {
  background: #509E2F;                    
  border-radius: 12px 12px 0 0;                   
  transform: translateX(0); /* slide fully into view when expanded */
}

.dropdown input:checked + label .icon {
  background: white;                    /* darker icon */
}

/* pulled state: slide the label fully into view without toggling the checkbox */
.dropdown.pulled label {
  transform: translateX(0);
}

/* ---------- DROPDOWN ---------- */
.menu {
  background: white;
  
  overflow: hidden;
  max-height: 0;
  border-radius: 0 0 12px 12px;
  transition: max-height .30s ease;
}

/* slide open */
.dropdown input:checked ~ .menu {
  max-height: 200px;
}

.menu a, .menu .audio-item {
  display: block;
  padding: 12px 20px;
  text-decoration: none;
  color: black;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.menu a:hover, .menu .audio-item:hover {
  background: #f4f4f4;
}

.menu a:last-child, .menu .audio-item:last-child {
  border-bottom: none;
}
