body {
  background-image: url("/BGBlue1.png");
  background-repeat: repeat;
  background-position: top center;
  font-family: "Oregon LDO", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

h1,
h2,
h3,
h4 {
  text-align: center;
  margin: 6px auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.file-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  padding: 0.15rem;
  text-align: left; /* Change from center to left */
  transition: box-shadow 0.2s;
}

.file-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.13);
}

.file-icon {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.file-link {
  display: inline-block; /* Change from block to inline-block */
  color: #0074d9;
  text-decoration: none;
  font-weight: bold;
  margin-top: 0.5rem;
  word-break: break-all;
}

.file-link:hover {
  text-decoration: underline;
}

.file-row {
  grid-column: 1 / -1; /* Make each row span all columns */
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* filepath: c:\Websites\TMJWorks\CSS\TMJWorksList.css */
.tblWorks {
  border: 3px solid rgb(9, 9, 120);
  border-radius: 12px;
  background-color: whitesmoke;
  width: 100%;
  max-width: 1000px;
  margin: 2rem auto 0 auto; /* Center the table */
  border-collapse: separate; /* Use separate borders for better styling */
}

.tblWorks th {
  text-align: center;
  font-size: 1.1em;
  padding: 0.5rem 1rem;
  background: #dde6f7;
  color: navy;
}

.tblWorks td {
  padding: 0.5rem 1rem;
  vertical-align: middle;
  text-align: left; /* Left align text in cells */
}

.tblWorks td:first-child,
.tblWorks th:first-child {
  width: 1%;
  white-space: nowrap;
}

.tblWorks img {
  max-width: 36px;
  max-height: 36px;
  cursor: pointer;
  margin-left: 1.25rem !important;
  vertical-align: middle;
}

.tblWorks img:hover {
  border: 2px navy solid;
}

.tblWorks tr:nth-child(even) {
  background-color: #b3d4f8; /* light blue */
  color: navy;
}

.tblWorks tr:nth-child(odd) {
  background-color: #f5f5f5; /* light gray */
  color: navy;
}

.tblWorks tr:nth-child(even),
.tblWorks tr:nth-child(odd) {
  color: navy;
}

.tblWorks tr:nth-child(even) a,
.tblWorks tr:nth-child(odd) a {
  color: navy;
}

.file-icon {
  font-size: 1.25rem;
  margin-right: 0.5rem;
  margin-bottom: 0;
}

#nowPlaying {
  display: none; /* Hide by default */
  text-align: center;
  font-weight: bold;
  margin-bottom: 0.5em;
  background-color: rgb(220, 220, 220);
  color: rgb(9, 9, 120);
  padding: 0.5em;
  border: 2px solid rgb(9, 9, 120);
  border-radius: 8px;
  width: fit-content;
}

/* Ensure the parent h4 centers its content */
h4 {
  text-align: center;
}

#audioPlayer {
  display: none; /* Hide by default */
  margin: 1em auto;
  max-width: 400px;
}

.centered-btn {
  display: flex;
  justify-content: center;
}

/*         id="closePdfBtn"
        style="display: none; margin-bottom: 0.5em"*/
.btn {
  display: none;
  margin-bottom: 0.5em;
  background-color: white;
  color: black;
  border: 3px solid black;
  border-radius: 8px;
  cursor: pointer;
}
.btn:hover {
  background-color: darkblue;
  color: white;
}

/* Make iframe fill container in fullscreen */
#pdfContainer:fullscreen #pdfFrame {
  height: calc(100vh - 3.5em); /* 3.5em allows for button height + margin */
  width: 100vw;
}
