/* Ensure html and body take full height */
html, body {
  height: 100%;
  margin: 0;
}

/* Global Styles */
body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background-color: #f4f7f9;
  padding-top: 70px; /* Adjust to your header height */
  color: #333;
}
  /* Header styles */
  .site-header {
    position: fixed;
    top: 0;
    width: 94%;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #34495e; /* Using the theme color */
    color: #eee;
  }
  .site-header img.logo {
      height: 50px;
      margin-right: 15px;
  }
  .site-header h1 {
      font-size: 1.5em;
      margin: 0;
  }
  .container {
      padding: 20px;
  }
.wrapper {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100%;
  padding-bottom: 200px;
}
.container {
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
}

.container a {
  font-size: 18px;
}

/* Breadcrumb Styles */
.breadcrumb {
  margin-bottom: 15px;
  font-size: 22px;
}
.breadcrumb a {
  text-decoration: none;
  color: #34495e;
  margin-right: 5px;
}
.breadcrumb span {
  color: #c2c2c2;
  margin-right: 5px;
}

.separator::before {
  content: "\A"; /* Inserts a line break */
  white-space: pre; /* Ensures the newline is honored */
}

/* List Styles */
ul {
  list-style-type: none;
  padding: 0;
}
li {
  margin: 10px 0;
  padding: 10px;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* mouse symbol for links */
div.directory-item, li.directory-item, li.file-item,
div.directory-item a, li.directory-item a, li.file-item a {
  cursor: pointer;
}

/* Directory Items (in a list) */
.directory-item {
  padding: 15px;
}

/* Grid Layout for Directories */
.directories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.directories-grid .directory-item {
  background-color: #fff;
  padding: 15px;
  border-radius: 5px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* File Item Styles (for both music and image files) */
.file-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  margin: 10px 0;
  padding: 15px;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Link Styles */
.directory-link,
a.play-file {
  color: #34495e;
  text-decoration: none;
  word-break: break-all;
}
a.show-transcript {
  text-decoration: none;
  color: #34495e;
  font-size: 20px;
  margin-left: 10px;
}
a.show-transcript:hover {
  color: rgb(113, 146, 167);
}

.currently-playing {
  background-color: #bfd0df; /* Adjust to your preferred color */
}

/* Footer Player Styles */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #34495e;
  color: #fff;
  padding: 7px;
  text-align: center;
  z-index: 1000;  /* Make sure it sits on top */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Modal Styles */
#transcriptModal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
}
#transcriptModal .modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 20px;
  border-radius: 5px;
  width: 90%;
  max-width: 800px;
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
}
#transcriptModal .close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

/* Basic Markdown Styles */
#transcriptContent h1,
#transcriptContent h2,
#transcriptContent h3 {
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
}
#transcriptContent p {
  line-height: 1.6;
}
#transcriptContent pre {
  background-color: #f6f8fa;
  padding: 10px;
  overflow-x: auto;
}


/* Center the reload control */
#directory-controls {
  text-align: center;
  margin-top: 20px;
}

/* Style the button (remove border, background, etc.) */
#reload-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* Add a rotation animation */
@keyframes rotate-icon {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(180deg); }
}

#reload-button svg {
  animation: none;
}

#reload-button svg.rotate {
  animation: rotate-icon 0.5s linear;
  transition: opacity 1s ease;
  opacity: 0;
  cursor: auto;
}