.modal {
  display: none;
  position: fixed;
  z-index: 9999999999999 !important;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  display: flex;
    flex-direction: column;
    background-color: #fff;
    padding: 0.5rem;
    border: 2px solid #daeaf3;
    border-radius: 1rem;
    width: 1300px;
    max-width: 90%;
    max-height: 90%;
    position: relative;
    overflow-y: auto;
  gap: 0.5rem;
  scrollbar-color: #222 #fff;
  scrollbar-width: auto;
}

#modal-content {
  display: flex;
  flex-direction: row-reverse;
  gap: 0.5rem;
}

/* #bar-adon-picture {
  display: flex;
  flex-direction: column;
  min-width: 223px;
  margin-right: 10px;
  min-height: 100%;
} */

#bar-adon-picture {
  display: flex
;
position: relative;
  flex-direction: column;
  min-width: 223px;
  max-width: 223px;
  min-height: 100%;
  border-radius: 0.5rem;
}

#picture-container img{
  border-radius: 10px;
  max-height: inherit;
}

/* #bar-adon-picture img {
  min-width: 223px;
  min-height: 223px;
  max-width: 400px;
  border-radius: 10px;
} */

#picture-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-width: 223px;
  max-height: 223px;
  border-top-right-radius: 0.5rem;
  border-top-left-radius: 0.5rem;
  background-position: 50%;
  aspect-ratio: 1 / 1;
}

#bar-adon-picture .desktop-banner {
  /* min-width: 223px; */
  /* min-height: 223px; */
  /* max-width: 400px; */
  width: 100%;
  height: inherit;
  object-fit: cover;
  border-radius: 10px;
}

#bar-adon-picture .mobile-banner{ 
  display: none;
}

#picture-information {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  color: #fff;
  border-bottom-right-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  height: 100%;
  height: -webkit-fill-available;
  width: -webkit-fill-available;
  width: -moz-available;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 40%,
    rgba(0, 0, 0, 0.2) 80%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

#picture-information p {
  font-size: 14px;
}
#modal-pdf {
  width: -webkit-fill-available;
  width: -moz-available;
  height: 600px;
  -webkit-overflow-scrolling: touch;
}

#audio-player {
  width: 100%;
  width: -webkit-fill-available;
  width: -moz-available;
  max-width: 100%;
  height: 50px;
  background-color: #f5f5f5;
  border-top-right-radius: 50px;
  border-bottom-right-radius: 50px;
}

#pdf-viewer {
  width: 100%;
  height: 100%;
  border-radius: 0.5rem;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
}

.modal-header h2, .modal-header h4{
  font-weight: bold;
}

#modal-title-simul{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
}

#modal-title-simul button{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  border: none;
  background-color: #0F536C;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
}

#modal-title-simul button h4{
  color: #fff;
  font-weight: bold;
}

.close-modal {
  position:absolute;
  color: #aaa;
  left: 0;
  margin-left: 1rem;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-modal:hover {
  color: black;
}

.preloader-wrapper {
  width: 100%;
  height: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader {
  width: 48px;
  height: 48px;
  background-image: url("../../images/preloader.gif");
  background-size: cover;
  background-repeat: no-repeat;
}

.audio-custom-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-left: 10px;
  height: 50px;
  align-items: center;
}

.audio-control-button {
  padding: 0.5rem;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #f5f5f5;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.audio-control-button:hover {
  background: #e5e5e5;
}

#modal-audio {
  display: flex;
  flex-direction: row;
  align-items: center;
  background: #f5f5f5;
  height: 50px;
  border-radius: 50px;
  max-width: -webkit-fill-available;
  max-width: -moz-available;
}

#modal-pdf object {
  display: block; /* Prevents unwanted spacing */
  margin: 0 auto; /* Centers the object */
  width: fit-content;
}

#modal-pdf .pdf-mobile-button {
  display: none;
  width: 100%;
  padding: 12px;
  background-color: #d22830;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
}

#modal-pdf.mobile-view {
  height: auto;
}

#modal-pdf.mobile-view #pdf-viewer {
  display: none;
}

#modal-pdf.mobile-view .pdf-mobile-button {
  display: block;
}

.report-link{
    max-width: 100%;
  width: 100%;
  color: #fff !important;
}

.report-button{
  display: flex;
justify-content: center;
align-items: center;
gap: 0.25rem;
align-self: stretch;
border-radius: 0.5rem;
border: 1px solid #FFC300;
background: rgba(0, 0, 0, 0.40);
padding: 0.25rem;
width: 100%;

}

.report-button h3 {
  padding: 0;
  color: #fff;
  text-decoration: none;
}

.custom-audio-player {
  width: 100%;
    max-height: 50px;
    height: 100%;
    border-radius: 50px;
    padding: 0.35rem;
    background: #f5f5f5;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.player-controls button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  color: #333;
  transition: color 0.2s;
}

.player-controls button:hover {
  color: #666;
}

.progress-bar-container {
  flex-grow: 1;
  margin: 0 10px;
}

.progress-bar {
  width: 100%;
  height: 5px;
  -webkit-appearance: none;
  background: #ddd;
  border-radius: 2.5px;
  outline: none;
}

.progress-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  background: #333;
  border-radius: 50%;
  cursor: pointer;
}

.time-display {
  font-family: monospace;
  font-size: 14px;
  color: #666;
}

.time-display span {
  margin: 0 5px;
}

.playback-speed {
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 1rem;
  background: white;
  cursor: pointer;
}

@media (max-width: 768px) {
  .modal-content .chevron-left{
    width: unset;
  }

  .modal-content .chevron-right{
    width: unset;
  }

  #modal-audio{
    height: unset;
  }

  .custom-audio-player{
    max-height: unset;
    height: unset; 
    border-radius: 1.25rem;
  }

  .player-controls{
    flex-wrap: wrap;
  }

  /* Modal styles */
  .modal {
    overflow: scroll;
  }
  /*TEST*/
  #modal-content {
    display: flex;
    flex-direction: column !important;
  }

  #modal-title-simul {
    display: grid !important;
    grid-template-rows: auto auto;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

#modal-simul {
    grid-column: 1 / -1;
    grid-row: 1;
    text-align: center;
    margin: 0;
}

#prev-interview {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
}

#next-interview {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

#modal-title-simul h4 {
    margin: 0;
}

  #bar-adon-picture {
    width: 100%;
    max-width: none !important;
    align-items: center;
  }

  #picture-container{
    max-width: none !important;
    max-height: none !important;
    border-radius: 10px;
  }

  #picture-container img{
    border-radius: 10px;
    max-height: inherit;
  }


  #picture-information {
    margin-top: -1px;
    padding: 10px;
    width: 100%;
    height: auto;
  }

  .modal-content {
    width: 95%;
    overflow: auto;
    padding: 0.25rem 1rem;
    max-height: 90%;
  }

  .modal-content::-webkit-scrollbar {
    width: 10px;
  }
  .modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 8px;
  }
  
  .modal-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 8px;
    width: 20px;
    border: 10px solid #f1f1f1;
  }
  
  #pdf-viewer {
    max-height: 500px ;
    height: -webkit-fill-available;
    height: -moz-available;
  }

  #modal-pdf{
    height: 500px !important;
  }
  /* For Firefox */
  .modal-content {
    scrollbar-width: thick;
    scrollbar-color: #888 #f1f1f1;
  }

  #modal-title-simul button {
    padding: 0.5rem; 
  }
}