:root {
  --background-color: #000000;
  --content-background-color: #000000;
  --sidebar-background-color: #000000;
  --text-color: #fdfdfd;
  --sidebar-text-color: #dddddd;
  --link-color: #f3f3f3;
  --link-color-hover: #ececec;
  --accent-color: #a6cf3c;
  --font: Courier New, monospace;
  --heading-font: Courier New, monospace;
  --font-size: 18px;
  --margin: 40px;
  --padding: 5px;
  --border: 2px solid #ffffff;
  --round-borders: 3px;
  --sidebar-width: 300px;
}

body {
  font-size: var(--font-size);
  margin: 0;
  padding: 0;
  color: var(--text-color);
  font-family: var(--font);
  line-height: 1.2;
  background: var(--background-color);
  background-image: url(../backgrounds/bg%20starsa.gif);
  cursor: url("cursors/mov2.cur"), auto;
 
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

a {
  color: var(--link-color);
  text-decoration: underline;
}

a:hover {
  color: var(--link-color-hover);
}

.layout {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--margin);
  gap: 30px;
}

header {
  font-size: 1.2em;
  border: var(--border);
  border-radius: var(--round-borders);
  background: var(--content-background-color);
  text-align: center;
  padding: var(--padding);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.header-pfp {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.header-title {
  font-family: var(--heading-font);
  font-size: 1.5em;
  font-weight: bold;
}

.credits-section {
  width: 100%;
  border: var(--border);
  border-radius: var(--round-borders);
  background: var(--content-background-color);
  padding: var(--padding);
  text-align: center;
  box-sizing: border-box;
}

.credit-box {
  background: var(--content-background-color);
  padding: var(--padding);
  font-size: 0.95em;
  text-align: center;
  line-height: 1.6;
  border-radius: var(--round-borders);
}

.credit-box h2 {
  font-family: var(--heading-font);
  font-size: 1.3em;
  margin-bottom: 0.5em;
  color: var(--accent-color);
}

.doctor-grid-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.doctor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1em;
  max-width: 700px;
  width: 100%;
}

.linked-credit {
  display: flex;
  align-items: flex-start;
}

.linked-credit > div {
  display: flex;
  flex-direction: column;
}

.linked-credit .credit {
  font-size: 0.75em;
  color: #a6cf3c;
  font-style: italic;
  text-decoration: none;
  margin-left: 0.2em;
}


.footer-nav {
  width: 100%;
  border: var(--border);
  border-radius: var(--round-borders);
  background: var(--content-background-color);
  padding: 10px 20px;
  font-size: 0.9em;
  margin-top: -10px;
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav li {
  display: flex;
  align-items: center;
  padding: 5px;
}

.footer-nav li > a,
.footer-nav li > details summary {
  display: inline-block;
  padding: 5px 10px;
  font-weight: bold;
  text-decoration: none;
  color: var(--link-color);
}

.footer-nav li > a:hover,
.footer-nav li > details summary:hover {
  color: var(--link-color-hover);
  text-decoration: underline;
}

.footer-nav details {
  position: relative;
}

.footer-nav details ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--content-background-color);
  border: var(--border);
  border-radius: var(--round-borders);
  padding: 10px;
  list-style: none;
  min-width: 150px;
  z-index: 1000;
}

.footer-nav details[open] ul {
  display: block;
}

.discord-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--accent-color);
  color: #000000 !important;
  border-radius: 6px;
  font-size: 0.9em;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.discord-button:hover {
  background: #ffffff;
  color: white;
}

.discord-button img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}


li.discord {
  position: relative;
}


.tooltip-text-discord {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  color: #000000;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.75em;
  white-space: nowrap;
  transition: opacity 0.2s ease;
  z-index: 999;
  border: 1px solid #fff;
  margin-top: 6px; /* optional spacing */
}


.footer-nav li:hover .tooltip-text-discord {
  visibility: visible;
  opacity: 1;
}

footer {
  font-size: 0.75em;
  border: var(--border);
  border-radius: var(--round-borders);
  background: var(--content-background-color);
  padding: 15px;
  text-align: center;
  margin-top: -12px;
}


#catfooter {
  margin-bottom: 0.2em;
}

#catfooter img {
  width: 150px;
  height: auto;
}

#skip-to-content-link {
  position: fixed;
  top: 0;
  left: 0;
  padding: 0.375rem 0.75rem;
  font-size: 1.25rem;
  background-color: var(--content-background-color);
  color: var(--text-color);
  transform: translateY(-3rem);
  transition: transform 0.1s ease-in;
  z-index: 99999999999;
}

#skip-to-content-link:focus {
  transform: translateY(0);
}


@media (max-width: 800px) {
  .doctor-grid{
     grid-template-columns: repeat(2, minmax(0, 1fr)); 
    gap: 0.75em; 
  }
  body {
    font-size: 14px;
  }

  .layout {
    padding: 20px;
  }

  .images {
    flex-wrap: wrap;
  }

  .images img {
    width: 100%;
  }

  footer a {
    color: #ffffff !important;
    text-decoration: underline;
  }

  footer a:hover {
    color: #ffffff !important;
  }
}


#catfooter {
  margin-bottom: 0.2em;
}

#catfooter img {
  width: 150px;
  height: auto;
}

#skip-to-content-link {
  position: fixed;
  top: 0;
  left: 0;
  padding: 0.375rem 0.75rem;
  font-size: 1.25rem;
  background-color: var(--content-background-color);
  color: var(--text-color);
  transform: translateY(-3rem);
  transition: transform 0.1s ease-in;
  z-index: 99999999999;
}

#skip-to-content-link:focus {
  transform: translateY(0);
}

@media (max-width: 800px) {
  body {
    font-size: 14px;
  }

  .layout {
    padding: 20px;
  }

  .images {
    flex-wrap: wrap;
  }

  .images img {
    width: 100%;
  }

  footer a {
    color: #ffffff !important;
    text-decoration: underline;
  }

  footer a:hover {
    color: #ffffff !important;
  }
}


.tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
}

.tooltip-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 100%; /* show below the image */
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  color: #000000;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.75em;
  white-space: nowrap;
  transition: opacity 0.2s ease;
  z-index: 999;
  border: 1px solid #fff;
  margin-top: 6px;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}


.programs-section {
  display: flex;
  flex-direction: column;
  gap: 2em;
  width: 100%;
  border: var(--border);
  border-radius: var(--round-borders);
  background: var(--content-background-color);
  padding: var(--padding);
  box-sizing: border-box;
}


.program-card {
  display: flex;
  align-items: center;
  gap: 1.5em;
  background: var(--content-background-color);
  padding: 1em;
  border-radius: 10px;
  text-align: left;
  width: 100%;
}


.program-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 10px;
  background: black;
  flex-shrink: 0;
}


.program-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3em;
}


.program-title {
  font-family: var(--heading-font);
  font-size: 1.3em;
  color: var(--accent-color);
  font-weight: bold;
}

.program-author {
  font-weight: bold;
  color: var(--text-color);
}

.program-tagline {
  font-style: italic;
  font-size: 0.9em;
  color: var(--sidebar-text-color);
}

.program-download-button {
  display: inline-block;
  width: fit-content;
  min-width: 120px;
  text-align: center;
  margin-top: 0.5em;
  padding: 0.5em 1em;
  background: var(--accent-color);
  color: black;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
}


.program-download-button:hover {
  background: #000;
  color: white;
}

/* container for search + filters */
.scenepack-filters {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
  margin: 1.5em 0;
}

/* search bar */
#searchInput,
#searchInputOthers, #searchInputSPN{
  padding: 0.5em 1em;
  font-size: 1em;
  font-family: 'Courier New', monospace;
  border: 2px solid var(--accent-color, #a6cf3c);
  background-color: black;
  color: white;
  border-radius: 6px;
  outline: none;
  width: 250px;
  transition: 0.3s;
}

#searchInput:focus,
#searchInputOthers:focus,
#searchInputSPN:focus{
  border-color: #a6cf3c;
  box-shadow: #a6cf3c;
   outline: none;
  outline-offset: 0;
}

/* checkboxes group */
.checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75em;
  justify-content: center;
}

.checkboxes label {
  font-size: 0.95em;
  color: var(--text-color, white);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35em;
}

/* checkbox itself */
.checkboxes input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid #a6cf3c;
  border-radius: 3px;
  background-color: transparent;
  position: relative;
  cursor: pointer;
  transition: all 0.2s;
}

.checkboxes input[type="checkbox"]:checked {
  background-color: #a6cf3c;
  border-color: #a6cf3c;
}

.checkboxes input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 3px;
  height: 8px;
  border: solid black;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.platform-selector {
  display: flex;
  justify-content: center;
  gap: 1.5em;
  margin-top: 2em;
}

.platform-btn {
  padding: 0.75em 1.5em;
  font-size: 1em;
  background-color: var(--accent-color);
  color: #000000;
  border: none;
  border-radius: 8px;
  font-family: var(--font);
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease;
  justify-content: center;
}

.platform-btn:hover {
  background-color: #000;
  color: white;
}

.doctor-grid {
  display: none;
}


.scenepack-filters {
  display: none;
}

#resetPlatformBtn {
  margin: 1em auto;
  padding: 0.5em 1em;
  font-family: var(--font);
  background: var(--accent-color);
  color: #000000;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

#resetPlatformBtn:hover {
  background: #000;
  color: white;
}

.platform-wrapper {
  
  background: var(--content-background-color);
  padding: 2em;
  display: flex;
  justify-content: center;
  margin: 2em 0;
  transition: all 0.3s ease;
}

.platform-selector {
  display: flex;
  justify-content: center; 
  align-items: center;    
  gap: 2em;
  margin: 2em auto;       
}


.platform-btn {
  display: flex;
  padding: 1em 2em;
  background-color: var(--accent-color);
  color: #000000;
  border: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-family: var(--font);
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 160px;
 
  text-align: center;
}

.platform-btn:hover {
  background-color: #000;
  color: white;
}

#help {
  text-align: center;
  font-size: 17px;
  top: 50px;
  position: relative;
  display: none;
}

.icon {
  width: 19px;
  height: 19px;
  vertical-align: text-bottom;
}

