@font-face {
  font-family: "Determination";
  src: url("fonts/determination.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

body {
  cursor: url("dog.cur"), auto;
}

body {
  margin: 0;
  padding: 0;
  background: #000;
  color: #fff;
  font-family: "Determination", monospace;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  overflow-x: hidden;
  cursor: url("dog.cur"), auto;
}

@keyframes scrollbarred {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

.container {
  padding: 40px;
  max-width: 700px;
  width: 100%;
  animation: fadeIn 1.1s ease;
  margin-top: 10px;
}

.logo {
  max-width: 100%;
  height: auto;
  margin-bottom: 30px;
  animation: logoPop 1.2s ease;
}

.shortpie {
  color: transparent;
  text-align: center;
  -webkit-text-stroke: 0.02px black;
  background: linear-gradient(90deg, #fff, #0046b0, #fff);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: scrollbarred 15s linear infinite;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  letter-spacing: 2px;
  display: inline;
}

h2 {
  display: inline;
}

h3 {
  font-size: 2.75rem;
  margin-bottom: 20px;
  letter-spacing: 3px;
  opacity: 0.9;
}

h4 {
  font-size: 18px;
  margin: -7px 0 12px 0;
  color: transparent;
  text-align: center;
  -webkit-text-stroke: 0.03px black;
  background: linear-gradient(90deg, #000, #555, #fff);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: scrollbarred 0.8s linear infinite;
}

.desc {
  font-size: 1.2rem;
  margin-top: 75px;
  margin-bottom: 20px;
  line-height: 1.5;
  opacity: 0.9;
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  cursor: url("dog.cur"), auto;
}

.button {
  padding: 10px 25px;
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  font-family: "Determination", monospace;
  font-size: 1.2rem;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0;
  transition: none;
  cursor: url("dog.cur"), auto;
}

.button:hover {
  background: #fff;
  color: #000;
  cursor: url("dog.cur"), auto;
}

.chapter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 20px;
  justify-content: center;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: all 0.4s ease;
  cursor: url("dog.cur"), auto;
}

.button-label {
  position: relative;
  z-index: 1; /* Text always stays above the gif */
}

.chapter-button-1 {
  font-family: "Determination", monospace;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  background-color: black;
  border: 2px solid #fff;
  padding: 16px 32px;
  font-size: 1.5rem;
  cursor: inherit;
  z-index: 1;
  color: white;

  /* Initial soft white glow */
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);

  /* Black shadow for text */
  text-shadow: 2px 2px 4px black;

  transition: box-shadow 0.3s ease;
}

.chapter-button-1:hover {
  /* Bigger and brighter glow on hover */
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.8),
              0 0 25px rgba(255, 255, 255, 0.6);

  /* Start pulsing */
  animation: pulseShadow 30s infinite ease-in-out;
}

@keyframes pulseShadow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6),
                0 0 25px rgba(255, 255, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.8),
                0 0 40px rgba(255, 255, 255, 0.7);
  }
}

.chapter-button-1::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("") center center / cover no-repeat;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.1s ease, filter 0.1s ease;
  pointer-events: none;
}

.chapter-button-1:hover::before {
  opacity: 1;
  filter: brightness(2.5);
}

.chapter-button-2 {
  font-family: "Determination", monospace;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  background-color: black;
  border: 2px solid #fff;
  padding: 16px 32px;
  font-size: 1.5rem;
  cursor: inherit;
  z-index: 1;
  color: white;

  /* Initial soft white glow */
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);

  /* Black shadow for text */
  text-shadow: 2px 2px 4px black;

  transition: box-shadow 0.3s ease;
}

.chapter-button-2:hover {
  /* Bigger and brighter glow on hover */
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.8),
              0 0 25px rgba(255, 255, 255, 0.6);

  /* Start pulsing */
  animation: pulseShadow 30s infinite ease-in-out;
}

@keyframes pulseShadow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6),
                0 0 25px rgba(255, 255, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.8),
                0 0 40px rgba(255, 255, 255, 0.7);
  }
}

.chapter-button-2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("") center center / cover no-repeat;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.1s ease, filter 0.1s ease;
  pointer-events: none;
}

.chapter-button-2:hover::before {
  opacity: 1;
  filter: brightness(1);
}

.chapter-button-3 {
  font-family: "Determination", monospace;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  background-color: black;
  border: 2px solid #fff;
  padding: 16px 32px;
  font-size: 1.5rem;
  cursor: inherit;
  z-index: 1;
  color: white;

  /* Initial soft white glow */
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);

  /* Black shadow for text */
  text-shadow: 2px 2px 4px black;

  transition: box-shadow 0.3s ease;
}

.chapter-button-3:hover {
  /* Bigger and brighter glow on hover */
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.8),
              0 0 25px rgba(255, 255, 255, 0.6);

  /* Start pulsing */
  animation: pulseShadow 30s infinite ease-in-out;
}

@keyframes pulseShadow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6),
                0 0 25px rgba(255, 255, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.8),
                0 0 40px rgba(255, 255, 255, 0.7);
  }
}

.chapter-button-3::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("") center center / cover no-repeat;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.1s ease, filter 0.1s ease;
  pointer-events: none;
}

.chapter-button-3:hover::before {
  opacity: 1;
  filter: brightness(1);
}

.chapter-button-4 {
  font-family: "Determination", monospace;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  background-color: black;
  border: 2px solid #fff;
  padding: 12px 24px;
  font-size: 1.2rem;
  cursor: inherit;
  z-index: 1;
  color: white;
}

.chapter-button-4::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("") center center / cover no-repeat;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.2s ease, filter 0.2s ease;
  pointer-events: none;
}

.chapter-button-4:hover::before {
  opacity: 1;
  filter: brightness(1); /* brighten on hover */
}

.hidden {
  display: none;
}

.game-frame {
  margin-top: 20px;
  border: 4px solid #fff;
  padding: 5px;
  background: #000;
  box-shadow: 0 0 10px #fff;
  animation: popIn 0.4s ease;
  cursor: url("dog.cur"), auto;
}

iframe {
  width: 100%;
  height: 400px;
  background: #000;
  border: none;
  cursor: url("dog.cur"), auto;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoPop {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.credits {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 220px;
  background: #000;
  color: #fff;
  border: 2px solid #fff;
  padding: 15px;
  font-size: 0.9rem;
  font-family: "Determination", monospace;
  box-shadow: 0 0 10px #fff;
  z-index: 999;
}

.disclaimer {
  color: #555;
  font-size: 14px;
  line-height: 1.6;
  padding: 20px;
  border-top: 1px solid #ddd;
  text-align: center;
  margin-top: 60px;
}

.disclaimer a {
  color: #007bff;
  text-decoration: none;
}

.disclaimer a:hover {
  text-decoration: underline;
}

.notes {
  font-size: 15px;
  line-height: 1.7;
  color: #b00020;
  background-color: #ffeaea;
  padding: 16px 24px;
  width: 100%;
  max-width: 1000px;
  margin: 32px auto 0 auto; /* Top: 32px, horizontal: auto */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  box-sizing: border-box;
}

.notes-title {
  font-size: 24px;
  color: transparent;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: -10px;
  -webkit-text-stroke: 0.03px black;
  background: linear-gradient(90deg, #ffffff, #7e57c2, #ffffff);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: scrollbarred 10s linear infinite;
}

.notes ul {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
}

.notes li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.notes .bug {
  color: #b00020;
}

.notes .update {
  color: #00796b;
}

.toggle-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  font-family: 'Determination', monospace;
  color: white;
}

/* UPDATED: Correctly targets the text label and adds more space */
.toggle-container > label:first-of-type {
  margin-right: 15px;
  font-size: 1.2em;
}

/* UPDATED: Shrinking the switch container */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;  /* Was 60px */
  height: 26px; /* Was 34px */
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #555;
  transition: .4s;
  border-radius: 26px;
}

/* UPDATED: Shrinking the slider knob */
.slider:before {
  position: absolute;
  content: "";
  height: 20px; /* Was 26px */
  width: 20px;  /* Was 26px */
  left: 3px;    /* Was 4px */
  bottom: 3px;  /* Was 4px */
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #0575b5;
}

/* UPDATED: Adjusting the knob's travel distance */
input:checked + .slider:before {
  transform: translateX(24px); /* Was 26px */
}

/* --- Status and Spinner --- */
#cacheStatus {
  display: none;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  color: #ccc;
  font-family: 'Determination', monospace;
  min-height: 24px;
  font-size: 1.1em;
}

#cacheSpinnerGif {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  display: none;
}

.toby {
  cursor: pointer;
  height: 80px;
  width: 120px;
  margin-top: 30px;
  object-fit: contain;
}

.button-disabled {
  filter: grayscale(100%);
  opacity: 0.6;
  pointer-events: none;
  cursor: not-allowed !important;
}
