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

@font-face {
    font-family: "8bitOperator";
    src: url("/fonts/8bitOperatorPlus-Bold.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

section {
    font-family: "8bitOperator"
}

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 {
    max-width: 900px;
    width: 95%;
    margin: 0 auto;
    padding: 40px;
    animation: fadeIn 0.3s ease;
}

.logo {
    max-width: 595px;
    height: auto;
    margin-bottom: 30px;
    animation: logoPop 0.4s 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;
    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: 5px;
    justify-content: center;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition: all 0.4s ease;
    cursor: url("dog.cur"), auto;
}

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

.localspace {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 0;
    margin-bottom: 10px;
    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;
    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("chapter1.gif") 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;
    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("chapter2.gif") 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;
    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("chapter3.gif") 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;
    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-4: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-4::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    opacity: 0;
    z-index: 0;
    transition: opacity 0.1s ease, filter 0.1s ease;
    pointer-events: none;
}

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

.chapter-button-5 {
    font-family: "Determination", monospace;
    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-5: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-5::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("chapter4.gif") center center / cover no-repeat;
    opacity: 0;
    z-index: 0;
    transition: opacity 0.1s ease, filter 0.1s ease;
    pointer-events: none;
}

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

.chapter-button-6 {
    font-family: "Determination", monospace;
    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-6: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-6::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("asgore.gif") center center / cover no-repeat;
    opacity: 0;
    z-index: 0;
    transition: opacity 0.1s ease, filter 0.1s ease;
    pointer-events: none;
}

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

.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-family: "8bitOperator", monospace;
    color: #ffeaea;
    background: #0d0d0d;
    border: 1px solid #333;
    padding: 20px 24px;
    width: 100%;
    max-width: 1000px;
    margin: 32px auto 0 auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    box-sizing: border-box;
    animation: fadeIn 0.3s ease;
}

.notes-title {
    font-size: 24px;
    text-align: center;
    margin: 0 0 6px 0;
    -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 h4 {
    font-size: 16px;
    color: #ccc;
    text-align: center;
    margin: 0 0 16px 0;
}

.notes ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.notes li {
    position: relative;
    margin: 6px 0;
    padding-left: 22px;
    line-height: 1.8;
    font-size: 17px;
}

.notes li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #B3F2FF;
    line-height: 1.8;
}

.notes a {
    color: #007BFF;
    text-decoration: none;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.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: 15%;
    width: 15%;
    margin-top: 30px;
    margin-left: 0;
    margin-right: 3.5px;
    margin-bottom: 15px;
    object-fit: contain;
    display: inline-block;
}

.toby10th {
    height: 20%;
    width: 20%;
    margin-top: 30px;
    margin-left: 3.5px;
    margin-right: 0;
    object-fit: contain;
    display: inline-block;
}

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