.website {
  border-style: solid;
  border-width: 100px;
  border-color: white;
  display: flex;
  flex-direction: column;
  background: white;
}
.topnav {
  text-align: center;
}
.topnav a {
  margin: 0px 50px;
}
#sheet {
  display: flex;
  flex: 1;
  height: 500px;
}
.sheet-container {
  border-style: solid;
  border-width: max;
  border-color: white;
  padding: 10px;
  margin: 10px;
  display: flex;
  flex: 1;
  height: 600px;
}
.standard-block {
  padding: 10px;
}
.slides-container {
  flex: 1;
  aspect-ratio: 15/9;
  display: flex;
  margin: 10px;
}
#slide {
  flex: 1;
}
a:link {
  color: black;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-style: dotted;
  text-decoration-thickness: 0.5px;
}
a:visited {
  color: black;
  text-decoration-line: line-through;
}
.main-section-container {
  display: flex;
  justify-content: center;
  margin-top: 80px;
}
.main-section {
  width: 600px;
  margin-top: 0;
}
/* Ensure consistent spacing for both regular and collapsible headings */
.main-section > b {
  margin-top: 0;
  padding-top: 0;
  display: block;
  line-height: 1;
}
.main-section > .collapsible {
  margin-top: 0;
  padding-top: 0;
  line-height: 1;
}
.main-section > ul > li > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding-left: 1rem;
  margin-top: 0.5rem;
}

.main-section > ul > li > ul > li {
  flex: 0 0 calc(50% - 1rem);
  margin-bottom: 0.5rem;
}

/* Collapsible section styles */
.collapsible {
  cursor: pointer;
  padding: 0;
  margin: 0 0 32px 0;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  background: none;
  font-weight: bold;
  font-size: 1em;
  font-family: "Times New Roman", Times, serif;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.collapsible::after {
  content: '♥';
  font-size: 1em;
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.collapsible.collapsed::after {
  transform: rotate(-90deg);
}

.heart {
  display: none;
}

.content {
  max-height: 1000px;
  overflow-y: auto;
  overflow-x: hidden;
  transition: max-height 0.3s ease-out;
  margin-top: 10px;
  display: block;
}

.content.collapsed {
  display: none;
}

/* Remove default bullet points and add custom arrow */
.library-list {
  list-style: none;
  padding-left: 0;
}

.library-list li {
  margin-bottom: 0.5rem;
}

/* Table styles */
.scroll-table {
  overflow-x: auto;
  overflow-y: visible;
  width: 100%;
}

.library-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  margin-bottom: 2em;
}

.library-table th {
  text-align: left;
  padding: 8px;
  cursor: pointer;
  font-family: "Times New Roman", Times, serif;
  border-bottom: 1px solid #ddd;
  vertical-align: bottom;
  line-height: 1;
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
}

.library-table th:hover {
  background-color: #f5f5f5;
}

.library-table td {
  padding: 8px;
  border-bottom: 1px solid #eee;
}

.library-table tr:hover {
  background-color: #f9f9f9;
}

/* Sorting indicators */
.sort-icon {
  display: inline-block;
  margin-left: 5px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
}

.sort-asc .sort-icon {
  border-bottom: 4px solid #666;
}

.sort-desc .sort-icon {
  border-top: 4px solid #666;
}

.library-table th .sort-icon {
  display: inline-block;
  margin-left: 5px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  vertical-align: middle;
}

.library-table th[data-sort="date"],
.library-table th:first-child {
  min-width: 60px;
  width: 80px;
}

.library-table th[data-sort="author"],
.library-table th[data-sort="director"],
.library-table th[data-sort="artist"] {
  min-width: 150px;
}

.library-table th[data-sort="title"] {
  min-width: 220px;
  width: 400px;
}

.library-table th:last-child {
  min-width: 50px;
  width: 85px;
}

.scroll-table .library-table {
  width: 100%;
  table-layout: auto;
}

.scroll-log {
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
  margin-bottom: 24px;
  padding-right: 8px;
}

.scroll-log p {
  text-align: justify;
}

.scroll-log li {
  text-align: justify;
}

/* --- 2025 log table custom styles --- */
.scroll-table table {
  table-layout: fixed;
  width: 100%;
  min-width: 900px;
  border-collapse: separate;
  border-spacing: 0;
}
.scroll-table th, .scroll-table td {
  width: 250px;
  min-width: 250px;
  max-width: 250px;
  box-sizing: border-box;
  border-bottom: 1.5px dotted #ccc;
  border-right: 1.5px dotted #ccc;
  padding: 6px 8px;
  word-break: break-word;
  background: #fff;
}
.scroll-table th:first-child, .scroll-table td:first-child {
  width: 100px !important;
  min-width: 100px !important;
  max-width: 100px !important;
  font-weight: bold !important;
  text-align: left !important;
  border-left: 1.5px dotted #ccc;
}
.scroll-table tr:first-child th,
.scroll-table tr:first-child td {
  font-weight: bold !important;
  text-align: center !important;
  border-top: 1.5px dotted #ccc !important;
}
.scroll-table td:first-child,
.scroll-table th:first-child {
  font-weight: bold !important;
  text-align: left !important;
}
.scroll-table th {
  background: #fff;
  font-weight: bold;
}
.scroll-table thead th {
  text-align: center;
}
.scroll-table tbody th {
  text-align: left;
  font-weight: bold;
}
/* --- end 2025 log table custom styles --- */

/* Mobile responsive design */
@media screen and (max-width: 768px) {
  .website {
    border-width: 20px;
  }
  
  .main-section {
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
  }
  
  .main-section-container {
    margin-top: 40px;
  }
  
  .topnav a {
    margin: 0px 15px;
    font-size: 14px;
  }
  
  .scroll-table {
    max-height: 300px;
  }
  
  .library-table th,
  .library-table td {
    padding: 6px 4px;
    font-size: 14px;
  }
  
  .library-table th[data-sort="date"],
  .library-table th:first-child {
    min-width: 50px;
    width: 60px;
  }
  
  .library-table th[data-sort="author"],
  .library-table th[data-sort="director"],
  .library-table th[data-sort="artist"] {
    min-width: 100px;
  }
  
  .library-table th[data-sort="title"],
  .library-table th:last-child {
    min-width: 150px;
    width: 200px;
  }
  
  /* Override heading colors on mobile */
  h1, h2, h3, h4, h5, h6 {
    color: #003300 !important;
  }
  
  .collapsible {
    color: #003300 !important;
  }
}

@media screen and (max-width: 480px) {
  .website {
    border-width: 10px;
  }
  
  .main-section {
    padding: 0 15px;
  }
  
  .topnav a {
    margin: 0px 8px;
    font-size: 12px;
  }
  
  .main-section-container {
    margin-top: 20px;
  }
  
  .collapsible {
    font-size: 16px;
    margin: 0 0 24px 0;
  }
  
  .library-table th,
  .library-table td {
    padding: 4px 2px;
    font-size: 12px;
  }
  
  /* Override heading colors on mobile */
  h1, h2, h3, h4, h5, h6 {
    color: #003300 !important;
  }
  
  .collapsible {
    color: #003300 !important;
  }
}

/* Gallery styles for look.html */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 auto 60px auto;
  max-width: 600px;
}

.gallery-thumb {
  break-inside: avoid;
  margin-bottom: 16px;
}

.gallery-thumb img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
}

@media screen and (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
}

.floating-text table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
.floating-text th, .floating-text td {
  padding: 0.5em 0.7em;
  text-align: left;
}
