* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: "Faustina";
    src: url("./fonts/Faustina-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

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

@font-face {
    font-family: "Faustina";
    src: url("./fonts/Faustina-Italic.ttf") format("truetype");
    font-weight: normal;
    font-style: italic;
}

body {
    font-family: "Faustina", serif;
    background: #000;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
}

.game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: #000;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.background-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -49%);
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}
/*
@media (min-aspect-ratio: 16/9) {
    .background-image {
        width: auto;
        height: 100%;
        min-height: 100%;
    }
}

@media (max-aspect-ratio: 16/9) {
    .background-image {
        width: auto;
        height: 100%;
        min-width: 100%;
        max-width: 135%;
    }
}*/

.background-image.active {
    opacity: 1;
}

/* Canvas elements used for GIF playback */
canvas.background-image {
    image-rendering: auto;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

/*
@media (max-width: 1200px) {
    .dialog-container {
        width: 62.5vw;
    }
}

@media (max-width: 900px) {
    .dialog-container {
        width: 65vw;
    }
}

@media (max-width: 600px) {
    .dialog-container {
        width: 70vw;
    }
}

@media (max-width: 400px) {
    .dialog-container {
        width: 80vw;
        border-radius: 0;
    }
}*/

.dialog-container {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60vmax;
    max-width: 1600px;
    max-height: 358px;
    aspect-ratio: calc(1600 / 360);
    background-image: var(--dialog-box);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    padding: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    font-size: 25vmin;
}

#dialogArrow {
    position: absolute;
    left: 50%;
    top: 87%;
    transform: translateX(-50%);
    width: 2vmax;
    height: 2vmax;
    background-image: var(--dialog-arrow);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    z-index: 15;
    display: none;
}

.dialogArrow-fake-class {
    position: absolute;
    top: 85%;
    left: 50%;
    width: 2vmax;
    height: 2vmax;
}

#dialogArrow.notification-mode {
    top: 80%;
}

.dialog-container.active {
    opacity: 1;
    pointer-events: auto;
}

.dialog-container.notification-mode {
    bottom: auto;
    top: 50%;
    transform: translate(-50%, -50%);
}

.dialog-container.center-dialog {
    bottom: auto;
    top: 50%;
    transform: translate(-50%, -50%);
}

.dialog-container.hide-dialog-box {
    background-image: none;
}

.dialog-content {
    position: relative;
    height: 100%;
    width: 100%;
    padding: 0% 0%;
    box-sizing: border-box;
}

.dialog-content.not-shown-now {
    display: none;
    visibility: hidden;
}

.dialog-arrow {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: 8%;
    object-fit: contain;
    pointer-events: none;
    z-index: 15;
}

.dialog-line {
    position: absolute;
    left: 5%;
    right: 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: visible;
    line-height: 1.2;
    font-size: 2vmax;
}

.speaker-line {
    top: 12%;
    color: var(--default);
    font-weight: normal;
    font-size: 2vmax;
    /*font-size: 15%;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);*/
    text-shadow:
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        0 0 2px rgba(0, 0, 0, 0.9),
        0 0 3px rgba(0, 0, 0, 0.6);
}

.text-line {
    color: var(--default);
    font-weight: normal;
    font-size: 2vmax;
    /*font-size: 15%;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);*/
    text-shadow:
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        0 0 2px rgba(0, 0, 0, 0.9),
        0 0 3px rgba(0, 0, 0, 0.6);
}

#textLine1 {
    top: 34%;
}

#textLine2 {
    top: 55%;
}

.bust-image {
    position: absolute;
    bottom: 0;
    z-index: 5;
    transition: opacity ease-in-out;
}

.bust-image.right {
    position: fixed;
    bottom: 0;
    right: 0;
    height: 35vmax;
    z-index: 5;
    transition: opacity ease-in-out;
    object-fit: contain;
}

.bust-image.left {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 35vmax;
    z-index: 5;
    transition: opacity ease-in-out;
    object-fit: contain;
}

.controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    transition: all 0.3s ease;
    font-family: "Faustina", serif;
    flex-wrap: nowrap;
    border-radius: 0;
}

.controller-viewer-line0 {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
}

.controller-viewer-line1 {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
}

.controller-viewer-line2 {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
}

.controller-buttons-viewer-select {
    width: 6vmax;
    height: 2vmax;
    align-content: center;
}

.controller-buttons-viewer {
    background: var(--accent-color);
    color: var(--txt-color);
    border: 1px black solid;
    border-radius: 0;
    padding: 0.25vmax 0.5vmax;
    cursor: pointer;
    font-size: 1vmax;
    font-weight: bold;
    height: 2vmax;
}

.controller-buttons-viewer.disabled,
.controller-buttons-viewer:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    opacity: 0.5;
}

.controller-buttons-viewer.active {
    display: block;
}

.controller-buttons-viewer:hover {
    background: var(--accent-color-light);
}

/*
.editor-btn {
    grid-column: span 2;
}
*/
#debugInfo {
    align-content: center;
    display: flex;
    flex-direction: row;
    justify-content: center;
    cursor: pointer;
}

#debugInfo.disabled {
    align-content: center;
    display: flex;
    flex-direction: row;
    background: #666;
    cursor: not-allowed;
    transform: none;
    opacity: 0.5;
    justify-content: center;
}

#homeButton {
    display: flex;
    flex-direction: row;
    align-items: center;
}

#homeButton > img {
    width: 1vmax;
    height: 1vmax;
}

.controls.hidden {
    opacity: 0 !important;
    pointer-events: none;
    transform: translateY(-10px);
}

.controls.hidden #gifFrameIndicator {
    display: none !important;
}

.scene-jump-select {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #4a90e2;
    color: var(--default);
    font-size: 0.7vmax;
    width: 2vmax;
    height: 1vmax;
}

.scene-jump-select::before {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #4a90e2;
    color: var(--default);
    font-size: 1vmax;
    width: 2vmax;
    height: 1vmax;
}

/*
.controls button {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 8px 12px;
    margin: 2px;
    border-radius: 6px;
    cursor: pointer;
    font-family: "Faustina", serif;
    font-size: 1.1em;
    transition: all 0.3s;
    min-width: 40px;
}

.controls button:hover {
    background: #357abd;
    transform: translateY(-1px);
}

.controls button:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    opacity: 0.5;
}

.controls button:disabled:hover {
    background: #666;
    transform: none;
}*/

.controls-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.controls-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 4px;
    padding-top: 0px;
}

.controls-title {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.7em;
    letter-spacing: 0.3px;
    text-transform: lowercase;
    font-family: "Faustina", serif;
    opacity: 0.9;
}
/*
.controls-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-items: center;
}*/
.controls-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-controls {
    display: flex;
    justify-content: space-between;
}

.debug-area {
    transition: all 0.3s ease;
    pointer-events: auto;
}

.debug-area.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
}

.debug-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

/*.pretty-button {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5vmax 1vmax;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85vmax;
    font-family: "Faustina", serif;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.pretty-button:hover {
    color: var(--white);
    background: rgba(74, 144, 226, 0.15);
    border-color: rgba(74, 144, 226, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.2);
}*/

.tcoaal-button {
    background: var(--choice-button);
    background-size: 100% 100%;
    font-family: "Faustina", serif;
    text-align: center;
    font-size: 1.5vmax;
    color: var(--white);
    text-shadow:
        0 0 1px #000000,
        0 0 1px #000000,
        0 0 1px #000000,
        0 0 1px #000000,
        0 0 1px #000000,
        0 0 1px #000000,
        0 0 2px #000000,
        0 0 3px #000000,
        0 0 4px #000000;
}

.tcoaal-button-tarsouls {
    background: var(--choice-button);
    background-size: 100% 100%;
    font-family: "Faustina", serif;
    text-align: center;
    font-size: 1vmax;
    color: var(--white);
    text-shadow:
        0 0 1px #000000,
        0 0 1px #000000,
        0 0 1px #000000,
        0 0 1px #000000,
        0 0 1px #000000,
        0 0 1px #000000,
        0 0 2px #000000,
        0 0 3px #000000,
        0 0 4px #000000;
}

.tcoaal-button-tarsouls.disabled,
.tcoaal-button-tarsouls:hover {
    background: var(--choice-button-hover);
    background-size: 100% 100%;
}

.tcoaal-button-tarsouls-small {
    background: var(--choice-button);
    background-size: 100% 100%;
    font-family: "Faustina", serif;
    text-align: center;
    font-size: 0.75vmax;
    color: var(--white);
    text-shadow:
        0 0 1px #000000,
        0 0 1px #000000,
        0 0 1px #000000,
        0 0 1px #000000,
        0 0 1px #000000,
        0 0 1px #000000,
        0 0 2px #000000,
        0 0 3px #000000,
        0 0 4px #000000;
}

.tcoaal-button-tarsouls-small:disabled {
    background: var(--choice-button-hover);
    background-size: 100% 100%;
}

.tcoaal-button-tarsouls-small:disabled:hover {
    background: var(--choice-button-hover);
    background-size: 100% 100%;
}

.tcoaal-button-tarsouls-small:hover:not(:disabled) {
    background: var(--choice-button-hover);
    background-size: 100% 100%;
}

.tcoaal-button-small {
    background: var(--choice-button);
    background-size: 100% 100%;
    font-family: "Faustina", serif;
    text-align: center;
    font-size: 1vmax;
    color: var(--white);
    text-shadow:
        0 0 1px #000000,
        0 0 1px #000000,
        0 0 1px #000000,
        0 0 1px #000000,
        0 0 1px #000000,
        0 0 1px #000000,
        0 0 2px #000000,
        0 0 3px #000000,
        0 0 4px #000000;
}

.tcoaal-button-menu {
    padding: 0.5vmax 1vmax;
    cursor: pointer;
    background: rgb(68, 68, 68);
    border: none;
    border-radius: 4px;
    color: rgb(221, 221, 221);
    font-size: 0.75vmax;

    font-family: "Faustina", serif;
    text-align: center;
    text-shadow:
        0 0 1px #000000,
        0 0 1px #000000,
        0 0 1px #000000,
        0 0 1px #000000,
        0 0 1px #000000,
        0 0 1px #000000,
        0 0 2px #000000,
        0 0 3px #000000,
        0 0 4px #000000;
}

.tcoaal-button-menu.disabled,
.tcoaal-button-menu:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    opacity: 0.5;
}

.tcoaal-button-menu:hover {
    background: #666;
    transform: none;
}

.tcoaal-button.disabled,
.tcoaal-button:hover {
    background: var(--choice-button-hover);
    background-size: 100% 100%;
}

.tcoaal-button-small.disabled,
.tcoaal-button-small:hover {
    background: var(--choice-button-hover);
    background-size: 100% 100%;
}

.controls pretty-button {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 8px 12px;
    margin: 2px;
    border-radius: 6px;
    cursor: pointer;
    font-family: "Faustina", serif;
    font-size: 1.1em;
    transition: all 0.3s;
    min-width: 40px;
}

.controls pretty-button:hover {
    background: #357abd;
    transform: translateY(-1px);
}

.controls pretty-button:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    opacity: 0.5;
}

.controls pretty-button:disabled:hover {
    background: #666;
    transform: none;
}

.github-link-debug {
}

.github-link-debug:hover {
}

.github-link-debug .github-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.debug-info {
    /*background: var(--choice-button-hover);*/
    background-size: 100% 100%;
    color: var(--white);
    text-align: center;
    font-family: "Faustina", serif;
    pointer-events: auto;
}

.mobile-controls-container {
    display: none;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    width: 90%;
    max-width: 400px;
    pointer-events: auto;
}

.mobile-controls-wrapper {
    position: relative;
    padding-bottom: 40px;
}

.mobile-controls-ribbon {
    position: relative;
    background: rgba(15, 15, 15, 0.95);
    border-radius: 0 0 12px 12px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    overflow: visible;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-100%);
    pointer-events: auto;
}

.mobile-controls-tab {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(74, 144, 226, 0.9);
    color: white;
    border: none;
    padding: 8px 24px;
    border-radius: 0 0 8px 8px;
    cursor: pointer;
    font-family: "Faustina", serif;
    font-size: 0.9em;
    z-index: 201;
    min-width: 80px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    transition:
        background 0.3s ease,
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-controls-tab:hover {
    background: rgba(74, 144, 226, 1);
}

.mobile-controls-tab::after {
    content: "▼";
    margin-left: 8px;
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 0.8em;
}

.mobile-controls-content {
    padding: 20px 20px 20px 20px;
}

.mobile-controls-ribbon.expanded {
    transform: translateY(0);
}

.mobile-controls-ribbon.expanded .mobile-controls-tab::after {
    transform: rotate(180deg);
}

.mobile-controls-ribbon.expanded .mobile-controls-tab {
    background: rgba(74, 144, 226, 1);
}

.mobile-controls-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.mobile-nav-controls {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.mobile-controls-grid button,
.mobile-nav-controls button {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 12px 8px;
    border-radius: 8px;
    cursor: pointer;
    font-family: "Faustina", serif;
    font-size: 0.9em;
    transition: all 0.3s;
}

.mobile-controls-grid button:hover,
.mobile-nav-controls button:hover {
    background: #357abd;
    transform: translateY(-1px);
}

.mobile-controls-grid button:disabled,
.mobile-nav-controls button:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    opacity: 0.5;
}

.mobile-controls-grid button:disabled:hover,
.mobile-nav-controls button:disabled:hover {
    background: #666;
    transform: none;
}

.mobile-debug-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-scene-counter {
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85em;
    text-align: center;
    font-family: "Faustina", serif;
}

.mobile-github-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(15, 15, 15, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8em;
    font-family: "Faustina", serif;
}

.mobile-github-link:hover {
    color: var(--white);
    background: rgba(74, 144, 226, 0.15);
    border-color: rgba(74, 144, 226, 0.3);
    transform: translateY(-1px);
}

.mobile-github-link .github-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* MOBILE CONTROLS DEACTIVATED */
/*@media (max-width: 768px), (max-height: 600px) {
    .mobile-controls-container {
        display: block !important;
    }

    .controls {
        display: none !important;
    }

    .debug-area {
        display: none !important;
    }
}

@media (min-width: 769px) and (min-height: 601px) {
    .mobile-controls-container {
        display: none !important;
    }
}*/

.mobile-controls-container {
    display: none !important;
}

.text-line strong {
}

.text-line em {
    font-style: italic;
}

.text-line span[style*="text-decoration: underline"] {
    text-decoration: underline;
}

.glitch-char {
    color: var(--text-color, var(--txt-color));
    transition: color 0s;
    display: inline-block;
    width: 1ch;
    text-align: center;
    font-family: "Courier New", "Monaco", monospace;
    min-width: 1ch;
}

.glitch-container .glitch-char {
    transition: none;
}

.speaker-line .glitch-char {
    font-weight: normal;
    font-size: inherit;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-family: "Courier New", "Monaco", monospace;
}

.text-line .glitch-char {
    font-size: inherit;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    font-family: "Courier New", "Monaco", monospace;
}

.loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: rgba(0, 0, 0, 0.85);*/
    backdrop-filter: blur(4px);
    font-family: "Faustina", serif;
    font-size: 3vmax;
    z-index: -150;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2vmax;
    color: var(--txt-color);
    pointer-events: none;
}

.loading-indicator.active {
    opacity: 1;
    z-index: 10000;
    pointer-events: all;
}

.loading-indicator > div {
    display: flex;
    align-items: center;
    padding: 3vmax 4vmax;
    /*background: var(--dialog-box);*/
    background-size: 100% 100%;
    border-radius: 1vmax;
    flex-direction: column;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--accent-color);
    border-top-color: var(--success-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5vmax;
}

.loading-content {
    text-align: center;
    color: var(--txt-color);
}

.loading-text {
    font-size: 1.2vmax;
    font-weight: 600;
    margin-bottom: 0.5vmax;
}

.loading-progress {
    font-size: 0.9vmax;
    color: var(--txt-color-darker);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.start-message {
    position: fixed;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 80;
    background: rgba(15, 15, 15, 0.85);
    color: rgba(255, 255, 255, 0.8);
    padding: 6px 12px;
    border-radius: 8px;
    font-family: "Faustina", serif;
    font-size: 0.9em;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
}

.start-message.active {
    opacity: 1;
}
/*
@media (orientation: portrait) {
    .dialog-container {
        aspect-ratio: 3.25 / 1.2;
    }

    .bust-image {
        height: 45vh;
    }

    .dialog-container {
        height: 33vh !important;
    }
}

@media (min-aspect-ratio: 21/9) {
    .dialog-container {
        max-width: 50vw !important;
        width: 50vw !important;
        font-size: 10vmin !important;
        height: 33vh !important;
    }
    .tcoaal-button {
        top: 10% !important;
        transform: translateY(-10%) !important;
    }
    .dialog-line.text-line {
        font-size: 5vmin !important;
    }
}

@media (max-width: 768px), (max-height: 600px) {
    .start-message {
        top: auto;
        bottom: 20px;
        font-size: 0.8em;
        padding: 8px 16px;
    }
}
*/
#popup-buy-frame {
    transform-origin: top left;
    border: 0;
    position: absolute;
    z-index: 1000;
    transition:
        top 1s ease,
        opacity 1s ease;
    top: -200px;
    left: 20px;
    opacity: 0;
}

#popup-buy-frame.show {
    top: 20px;
    opacity: 1;
}

#steam-buy-frame {
    border: 0;
    z-index: 100;
    margin: 0;
}

#github-logo-icon {
    height: var(--header-height);
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
    align-content: center;
}

#github-logo-icon img {
    height: 60%;
    width: auto;
    margin: 1vh 1vw;
}

/* CHOICES VIEWER STYLING */
.choices-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1vh;
    z-index: 100;
}

.choices-container .choice-item {
    width: 38%;
    height: 5.6vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--choice-button-hover);
    background-size: 100% 100%;
    border: none;
    color: var(--white);
    font-size: 2.5vh;
    text-align: center;
    font-family: "Faustina", serif;
    text-shadow:
        0 0 1px #000000,
        0 0 1px #000000,
        0 0 1px #000000,
        0 0 2px #000000,
        0 0 3px #000000,
        0 0 4px #000000;
    transition: all 0.2s ease;
}

.choices-container .choice-item.selected {
    background: var(--choice-button);
    background-size: 100% 100%;
}

/* FORCED IMPORT OVERLAY */
.forced-import-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 1);
    backdrop-filter: blur(10px);
    z-index: 100000;
    display: flex;
    /*align-items: center;*/
    justify-content: center;
    background-image: var(--site-home);
    background-repeat: no-repeat;
    background-position: top center;
    background-attachment: local;
    background-size: cover;
}

.forced-import-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2vmax;
    padding: 3vmax;
    text-align: center;
    margin-top: 30vh;
}

.forced-import-logo {
    width: 80%;
    max-width: 400px;
    height: auto;
    margin-bottom: 1vmax;
}

.forced-import-content h1 {
    color: var(--txt-color);
    font-size: 2vmax;
    margin: 0;
}

.forced-import-message {
    color: var(--text-color, #cccccc);
    font-size: 1.5vmax;
    /*line-height: 1.6;*/
    margin: 0;
}

.forced-import-button {
    font-size: 1.5vmax;
    padding: 1vmax 2vmax;
    min-width: 250px;
}

.forced-import-note {
    color: var(--text-color, #999999);
    font-size: 0.9vmax;
    font-style: italic;
    margin: 0;
}

/*#importProgressModal {
    background: rgba(0, 0, 0, 1.0);
}*/

@keyframes tarSoulsPulseHovered {
    /*0% {
        background: radial-gradient(ellipse at center,
        color-mix(in srgb, var(--play-glow-color) 95%, transparent) 0%,
        color-mix(in srgb, var(--play-glow-color) 60%, transparent) 80%,
        color-mix(in srgb, var(--play-glow-color) 30%, transparent) 90%,
        transparent 100%);
        filter: blur(13px);
        opacity: 0.2;
        height: 115%;
        width: 80%;
    }*/
    0%,
    100% {
        background: radial-gradient(
            ellipse at center,
            color-mix(in srgb, var(--play-glow-color) 95%, transparent) 0%,
            color-mix(in srgb, var(--play-glow-color) 60%, transparent) 80%,
            color-mix(in srgb, var(--play-glow-color) 30%, transparent) 90%,
            transparent 100%
        );
        filter: blur(13px);
        opacity: 0.9;
        height: 105%;
        width: 85%;
    }
}

@keyframes tarSoulsPulse {
    0% {
        background: radial-gradient(
            ellipse at center,
            color-mix(in srgb, var(--play-glow-color) 95%, transparent) 0%,
            color-mix(in srgb, var(--play-glow-color) 60%, transparent) 80%,
            color-mix(in srgb, var(--play-glow-color) 30%, transparent) 90%,
            transparent 100%
        );
        filter: blur(13px);
        opacity: 0.2;
        height: 125%;
        width: 80%;
    }
    75% {
        background: radial-gradient(
            ellipse at center,
            color-mix(in srgb, var(--play-glow-color) 95%, transparent) 0%,
            color-mix(in srgb, var(--play-glow-color) 60%, transparent) 80%,
            color-mix(in srgb, var(--play-glow-color) 30%, transparent) 90%,
            transparent 100%
        );
        filter: blur(13px);
        opacity: 0.9;
        height: 110%;
        width: 85%;
    }
    100% {
        background: radial-gradient(
            ellipse at center,
            color-mix(in srgb, var(--play-glow-color) 95%, transparent) 0%,
            color-mix(in srgb, var(--play-glow-color) 60%, transparent) 80%,
            color-mix(in srgb, var(--play-glow-color) 30%, transparent) 90%,
            transparent 100%
        );
        filter: blur(13px);
        opacity: 0.2;
        height: 80%;
        width: 95%;
    }
}

.forced-import-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle, rgba(128, 0, 255, 0.25) 0, rgba(128, 0, 255, 0.05) 40%, rgba(0, 0, 0, 0) 80%);
    background-repeat: no-repeat;
    background-size: 200% 200%; /* radius */
    background-position: 50% 85%; /* x 50percent y 25percent */
    animation: haloPulse 4s ease-in-out infinite;
}

@keyframes haloPulse {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
    100% {
        opacity: 0.3;
        transform: scale(1);
    }
}

#pitchSlider,
#speedSlider,
#volumeSlider {
    accent-color: var(--default); /* change this to the color you want */
}
