body {
  background: black;
  margin: 0;
  padding-bottom: 100px;
  overflow-x: hidden;
  overflow-y: auto;
}

.tabs {
  position: fixed;
  top: 50%;
  left: 30px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px; 
  z-index: 1000;
}

.tabs button {
    background: none;
    border: none;
    color: white; 
    font-family: Helvetica;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    text-align: left; 
    padding: 6px 10px;
    transition: color 0.3s ease;
}

.tabs button:hover {
    color: rgb(211,1,1);
}

.tabs button.active {
   color: rgb(211, 1, 1);
}

.navigation {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 450px;
  font-family: Helvetica;
  font-weight: bold;
}

.navigation li a { 
    display: block; 
    color: white; 
    text-align: center; 
    text-decoration: none;
    padding: 20px; 
    transition: all 0.5s ease-in-out;
    animation-duration: 0.9s;
}

.navigation li a:hover {
  color: #ff0000;
  animation-name: pulse79;
  animation-iteration-count: infinite;
}

.recommendations {
  font-family: Helvetica;
  font-weight: bold; 
  color: white;
  flex-direction: column;
  padding:10px;
}

.split-container {
  display: none;
  width: 100%;
  height: 100vh;
}

.split-container.active{
  display:flex;
}

.split {
  width: 50%;
  height: 100%;
}

.split.left {
  background: #000000;
}

.split.right {
  background: #000;
  min-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 100px;
}

.split.right .centered {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 40px;
}

.split.left .centered {
  justify-content: flex-start;
  align-items: center;
  padding-top: 0px; /* controls how far down everything starts */
  margin-left:150px;
}

.centered {
  color: white;
  font-family: Helvetica;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap:8px;
}

.square-box {
    width: 200px;
    height: 200px;
    background-color:rgb(211, 1, 1);
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    font-family: Helvetica;
    font-weight: bold;
    margin-left:10px;
    transition: all 0.5s ease-in-out;
    animation-duration: 0.9s;
    flex-direction: column;
    margin-bottom:40px;
    flex-shrink:0;
}

a {
    color: white;
    text-decoration: none;
    transition: all 0.5s ease-in-out;
    animation-duration: 0.9s;
}

a:hover {
    color: rgb(211, 1, 1);
    animation-name: pulse79;
    animation-iteration-count: infinite;
}

.split-right{
    min-width: 300px;
    height: 100vh;
    overflow-y:auto;
    overflow-x: hidden;
    gap: 10px;
}

.split.right .centered {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content:flex-start;
  height: auto;
  min-height: 100%;
}

.split.right h2 {
  margin-bottom: 6px;
}

.split.right h4 {
  margin: 0;
  white-space: nowrap;
}

.location {
    font-weight: bold;
    animation: location 3s;
    color: rgb(211, 1, 1);
    opacity:1;
    transition: opacity 1.0s ease-in-out;

}

.location:hover{
  opacity: 0;
}

@keyframes location {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}

h3 {
  font-size:15px;
  text-align: left;
  margin-right: 60px;
}

p { 
    font-family: Helvetica;
    font-size: 16px;
    font-weight:bold;    
    color:white;
    line-height: 1.5;
    max-width: 500px; /* restricts paragraph width */
    margin: 6px 0; /* centers paragraph horizontally */
    text-align:left;
}

.audio-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top:80px;
}

.playPause {
  transform: translateX(-130px);
  background-image: url(images/play.png);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  padding-top:125px;
}

.playPause img {
  width: 30px;   /* adjust as needed */
  height: 30px;
  transition: all 0.5s ease-in-out;
}

.playPause:hover {
   animation-name: pulse79;
   animation-iteration-count: infinite;
}

.split-container:not(#fajr) .split.left .centered {
  margin-left: 200px;
}

.instruct {
  font-family: Helvetica;
  font-weight: bold;
  color:rgb(211, 1, 1);
  margin-top: 25px;
  margin-bottom: 5px;

}

.next-act{
  background-color: rgb(211, 1, 1);
  color:white;
    border: none;
    display: block;
    font-size: 15px;
    font-family: Helvetica;
    font-weight: bold;
    border-radius: 14px;
    width: 120px;
    height: 30px;
    cursor: pointer;
    text-align:flex-start;
    margin-top:20px;
}

.next-act li a{
  transition: all 0.5s ease-in-out;
  animation-duration: 0.9s;
}
.next-act:hover{
animation: pulse79 0.8s ease-in-out infinite;
}

@keyframes pulse79{
    0% { transform: scale(1); }
    50% { transform: scale(1.07); }
    100% { transform: scale(1); }
}


@media screen and (max-width: 1000px){

  .navigation{
    flex-direction: row;
    align-items:center;
    gap:10px;
    padding:10px 0;
  }
  /*kill split on desktop*/
  .split-container{
    flex-direction: column;
    height:auto;
    width:100%;
    display:none; /*hide all by default*/
  }

  .split-container.active{
    display:flex;
  }

  .split {
    width:100%;
    height:auto; /*splits it vertically*/
  }

  .split.right{
    order:2;
  }
  .split.left{
    order:1;
  }

#fajr .split.left .centered {
  align-items:flex-start;
}

  #fajr .split.left .centered {
    align-items: flex-start; /* push to left */
    margin-left: 20px; /* adjust horizontal spacing */
    margin-right: 0;   /* remove the huge margin */
  }

  .split .centered{
    padding:20px;
    align-content:center;
    gap:16px;
  }

  .split-container .split.left .centered .audio-block {
    align-items: flex-start; /* push everything to the left */
    margin-left: 0; /* reset any previous left margin */
}

    .tabs {
    display: none; /* don't display on mobile*/
  }

  .playPause{
    margin-top:20px;
  }

  .next-act{
  margin-right: auto; /* optional padding from edge */
  margin-left:150px;
  display: block; 
}

#maghrib .next-act {
        margin-right: auto; /* optional padding from edge */
        margin-left:180px;
        display: block; 
    }

    /* ASR specific */
    #asr .next-act {
         margin-right: auto; /* optional padding from edge */
        margin-left:180px;
        display: block; 
    }

}