* {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3 {
  font-family: "Poppins", sans-serif;
}

body,
p,
li {
  font-family: "Lato", sans-serif;
}

code,
pre {
  font-family: "Fira Code", monospace;
}

html {
  box-sizing: border-box;
  font-size: 16px;
  background: linear-gradient(135deg, #ffffff, #c3c3f3, #0046f6);
  background-size: 400% 400%;
}

header {
  top: 20px;
  background-color: #15256d;
  display: flex;
  justify-content: center;
  border-bottom: silver 5px solid;
}

.nav-bar {
    height: 3rem;
    justify-content: center;
    align-items: center;
    display: flex;
    padding: 1rem;
}

.nav-bar ul {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-bar li {
  display: inline-flex;
  flex-direction: column;
  padding: 0rem 1rem;
  color: white;
}

.nav-bar a {
  color: white;
  text-decoration: none;
}

.page-header {
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 1rem;
  text-align: center;
}

.page-header h1,
.page-header h2,
.page-header h3 {
  padding-bottom: 1rem;
}

.project-page-link h3 {
  display: flex;
  justify-content: center;
  padding-top: 2rem;
}

.main-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 1rem;
}

.boss-selection-and-viewer-wrapper {
  display: flex;
  flex-direction: column;
  justify-items: center;
  align-items: center;
  padding: 0 2rem;
  width: 80%;
}

.boss-selection-bar-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
  align-content: center;
  height: 15rem;
  margin: 0 0 2rem 0;
  width: 100%;
  box-sizing: border-box;
}

.boss-selection-bar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  border-radius: 25px;
  flex-grow: 1;
  border: 10px solid #325291;
  background-color: rgb(8, 3, 94);
  overflow-x: auto;
  padding: 0 1rem;
  scrollbar-width: auto;
  scrollbar-color: #888 rgb(8, 3, 94);
}

/* --- WebKit scrollbar styles for permanent visibility on compatible browsers --- */
.boss-selection-bar::-webkit-scrollbar {
  height: 12px;
}
.boss-selection-bar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}
.boss-selection-bar::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
  border: 3px solid rgb(8, 3, 94);
}


.boss-selection-item {
  display: flex;
  border: 8px solid #325291;
  z-index: 1;
  height: 5rem;
  width: 5rem;
  cursor: pointer;
  margin: 0.5rem;
  border-radius: 25px;
  flex-shrink: 0;
}

.boss-selection-item-wrapper {
  display: flex;
  height: 10rem;
  width: 10rem;
  justify-content: flex-start;
  flex-direction: column;
  align-items: center;
  margin: 1rem;
}

.boss-selection-item-name {
  color: white;
  font-size: 0.9rem;
  margin: 0.5rem;
  text-align: center;
}

.selected-boss-viewer-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
  gap: 2rem;
  padding: 0 0 2rem 0;
  margin-bottom: 2rem;
  width: 100%;
}

.selected-boss-viewer-wrapper {
  border: rgb(8, 3, 94) solid 15px;
  background-color: rgb(8, 3, 94);
  border-radius: 25px;
}

#three-container {
  overflow: hidden;
  width: 100%;
  height: 25rem;
  display: flex;
  justify-content: center;
  border: 10px solid #325291;
  border-radius: 25px 25px 0 0;
  border-bottom: none;
  box-sizing: border-box;
  cursor: pointer;
}

#three-container canvas {
  width: 100%;
  height: 100%;
  transform: scale(1.02);
}

.animation-item-bar {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  overflow-x: auto;
  background-color: rgb(23, 23, 109);
  padding: 0.5rem;
  border: 10px solid #325291;
  border-radius: 0 0 25px 25px;
  scrollbar-width: auto;
  scrollbar-color: #888 rgb(23, 23, 109);
}

/* --- WebKit scrollbar styles for permanent visibility on compatible browsers --- */
.animation-item-bar::-webkit-scrollbar {
  height: 12px;
}
.animation-item-bar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}
.animation-item-bar::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
  border: 3px solid rgb(23, 23, 109);
}

.animation-item-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: top;
  width: 10rem;
  flex-shrink: 0;
}

.animation-item {
  display: flex;
  border: 8px solid #325291;
  z-index: 1;
  height: 5rem;
  width: 5rem;
  cursor: pointer;
  margin: 0.5rem;
  border-radius: 25px;
}

.animation-item-wrapper h4 {
  font-size: 1rem;
  padding: 0.5rem;
  color: white;
  text-align: center;
}

.selected-boss-code-embed-wrapper {
  display: flex;
  flex-direction: column;
  border: rgb(8, 3, 94) solid 15px;
  border-radius: 25px;
  background-color: rgb(23, 23, 109);
}

.selected-boss-code-header {
  border: 10px solid #325291;
  border-radius: 25px 25px 0 0;
  background-color: #f8f8f8;
  text-align: center;
  padding: 1rem;
  min-height: 2rem;
}

.boss-card-code-embed {
  display: flex;
  font-size: 0.75rem;
  width: 100%;
  border: 10px solid #325291;
  background-color: #f8f8f8;
  box-sizing: border-box;
  flex-grow: 1;
  border-radius: 0 0 25px 25px;
  width: 100%;
  height: 25rem;
  overflow: auto;
}

.footer {
    display: flex;
    justify-content: center;
    align-content: center;
    height: 4em;
    background-color: #15256d;
    position: relative;
    bottom: -4.33rem; /*Puts footer at bottom of page*/
    border-top: silver 5px solid;
}

.copyright {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
}

.copyright p {
    color: silver;
    font-size: 1.25rem;
}

/* ---- boss-link-styles (moved from inline <style>) ---- */
.bl-section { margin: 2rem; padding: 2rem; background: #ffffff; border: #0046f6 5px solid; border-radius: 0.5rem; box-sizing: border-box; color: #1b2a5a; }
.bl-section h2 { text-align: center; color: #15256d; font-family: 'Poppins', sans-serif; margin-bottom: 0.75rem; }
.bl-section h3 { text-align: center; color: #15256d; font-family: 'Poppins', sans-serif; font-size: 1.2rem; margin: 2rem 0 1rem; }
.bl-intro, .bl-note { max-width: 900px; margin: 0 auto 1.25rem; line-height: 1.6; }
.bl-chain { display: flex; align-items: stretch; justify-content: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.bl-node { flex: 1 1 0; min-width: 0; padding: 0.75rem; background: #eef2ff; border: 2px solid slateblue; border-radius: 0.5rem; text-align: center; display: flex; flex-direction: column; gap: 0.3rem; }
.bl-node strong { color: #15256d; font-size: 0.95rem; }
.bl-node span { color: #2645c5; font-size: 0.8rem; line-height: 1.35; }
.bl-node code { background: #ffffff; border: 1px solid #c3c3f3; border-radius: 0.25rem; padding: 0.1rem 0.3rem; font-size: 0.75rem; color: #15256d; overflow-wrap: anywhere; }
.bl-arrow { align-self: center; color: #0046f6; font-size: 1.4rem; font-weight: 700; }
.bl-code-wrap { max-width: 980px; margin: 0 auto; }
.bl-file { background: #15256d; color: #ffffff; font-family: 'Fira Code', monospace; font-size: 0.8rem; padding: 0.5rem 1rem; border-radius: 0.4rem 0.4rem 0 0; }
.bl-code { margin: 0; padding: 1rem; overflow-x: auto; background: #0f172a; color: #e2e8f0; font-size: 0.82rem; line-height: 1.7; border-radius: 0 0 0.4rem 0.4rem; }
.bl-code .c { color: #94a3b8; }
.bl-code .m { background: rgba(167,139,250,0.28); border-radius: 0.2rem; padding: 0 0.15rem; }
.bl-code .s { background: rgba(96,165,250,0.30); border-radius: 0.2rem; padding: 0 0.15rem; }
.bl-code .l { background: rgba(74,222,128,0.28); border-radius: 0.2rem; padding: 0 0.15rem; }
.bl-code .t { color: #fbbf24; }
.bl-legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; justify-content: center; margin: 0.75rem 0; font-size: 0.85rem; }
.bl-legend i { display: inline-block; width: 0.9rem; height: 0.9rem; border-radius: 0.2rem; vertical-align: -0.1rem; margin-right: 0.35rem; }
.bl-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem; margin-top: 1rem; }
.bl-link { padding: 1rem 1.25rem; border-radius: 0.5rem; background: #f6f7ff; border-left: 5px solid; line-height: 1.5; font-size: 0.93rem; }
.bl-link h4 { margin: 0 0 0.35rem; color: #15256d; font-family: 'Poppins', sans-serif; font-size: 1rem; }
.bl-link code, .bl-card code { font-family: 'Fira Code', monospace; font-size: 0.8rem; background: #eef2ff; padding: 0.05rem 0.3rem; border-radius: 0.2rem; overflow-wrap: anywhere; }
.bl-link.m { border-color: #8b5cf6; } .bl-link.s { border-color: #3b82f6; } .bl-link.l { border-color: #22c55e; }
.bl-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.25rem; }
.bl-card { padding: 1rem 1.25rem; background: #eef2ff; border-radius: 0.5rem; border-top: 4px solid #0046f6; line-height: 1.5; font-size: 0.93rem; }
.bl-card h4 { margin: 0 0 0.4rem; color: #15256d; font-family: 'Poppins', sans-serif; font-size: 1rem; }
.bl-table-wrap { overflow-x: auto; }
.bl-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.bl-table th { background: #15256d; color: #ffffff; text-align: left; padding: 0.6rem 0.7rem; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.8rem; }
.bl-table td { padding: 0.55rem 0.7rem; border-bottom: 1px solid #d6dcf5; vertical-align: top; }
.bl-table tr:nth-child(even) td { background: #f6f7ff; }
.bl-table code { font-family: 'Fira Code', monospace; font-size: 0.78rem; overflow-wrap: anywhere; }
.bl-refs { text-align: center; font-size: 0.9rem; line-height: 1.8; margin-top: 1.5rem; }
.bl-refs a { color: #0056b3; font-weight: 700; }
@media (max-width: 900px) { .bl-chain { flex-direction: column; } .bl-arrow { transform: rotate(90deg); } }
@media (max-width: 768px) {
  .bl-section { margin: 1rem 0.5rem; padding: 1rem 0.75rem; border-width: 3px; }
  .bl-code { font-size: 0.72rem; }
  .bl-table thead { display: none; }
  .bl-table, .bl-table tbody, .bl-table tr, .bl-table td { display: block; width: 100%; box-sizing: border-box; }
  .bl-table tr { border: 2px solid slateblue; border-radius: 0.5rem; margin-bottom: 0.75rem; overflow: hidden; }
  .bl-table td { display: flex; justify-content: space-between; gap: 1rem; text-align: right; }
  .bl-table td::before { content: attr(data-label); font-weight: 700; color: #15256d; text-align: left; flex: 0 0 40%; }
}
.bl-legend .bl-c1 { background: #a78bfa; } .bl-legend .bl-c2 { background: #60a5fa; } .bl-legend .bl-c3 { background: #4ade80; } .bl-legend .bl-c4 { background: #fbbf24; }
.bl-note.bl-note-gap { margin-top: 1rem; }
