/* IMPORTS */
@font-face { font-family: 'BebasNeue'; src: url('./assets/fonts/BebasNeue.ttf') format('truetype'); font-display: block} /* unclear purpose */
@font-face { font-family: 'Codystar'; src: url('./assets/fonts/Codystar.ttf') format('truetype'); font-display: block} /* header title */
@font-face { font-family: 'Federant'; src: url('./assets/fonts/Federant.ttf') format('truetype'); font-display: block} /* unclear purpose */
@font-face { font-family: 'HennyPenny'; src: url('./assets/fonts/HennyPenny.ttf') format('truetype'); font-display: block} /* joke font to make it clear what needs changing */
@font-face { font-family: 'ShareTech'; src: url('./assets/fonts/ShareTech.ttf') format('truetype'); font-display: block} /* troop tracker text */
@font-face { font-family: 'Tourney'; src: url('./assets/fonts/Tourney.ttf') format('truetype'); font-display: block} /* buttons */
@font-face { font-family: 'Wallpoet'; src: url('./assets/fonts/Wallpoet.ttf') format('truetype'); font-display: block} /* in-game UI */
/* Courier New isn't imported because it's a websafe system font */

/* BASE RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background: #010; /* TODO: solid colour to be converted to moving space image */
    color: #fff;
    font-family: 'HennyPenny', monospace; /* placeholder to be corrected */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}
#outer-container {
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    max-width: 450px;
    max-height: 900px;
    aspect-ratio: 1 / 2;
    border: 2px solid #fff;
    overflow: hidden;
    margin: 0 auto;
    position: relative;
}

/* HEADER */
header {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: center;
    border-bottom: 2px solid #fff;
    height: 2.5rem;
    justify-content: center;
}
header h1 {
    font-family: 'Codystar', monospace;
    font-size: 1.2rem;
    white-space: nowrap;
    overflow: hidden;
    padding: 0.2rem 0.5rem;
    margin: 0;
}
#troop-bar-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
}
#troop-bar {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #333;
    display: flex;
    justify-content: space-between;
    overflow: hidden;
    border: 2px solid #000;
}
#troop-bar-segments {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: 1;
}
.troop-bar-segment {
    height: 100%;
    transition: width 0.3s ease;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.troop-bar-name {
    color: black;
    font-family: 'ShareTech', monospace;
    white-space: nowrap;
    transition: font-size 0.3s ease;
    user-select: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* BASE MENU STYLING */
#inner-container {
    position: relative;
    width: 100%;
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
#menu-screen {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.menu-container {
    height: 100%;
    width: 100%;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background-color: rgba(0, 0, 0, 0.7);
    overflow-y: auto;
}
.menu-header {
    font-size: 1.25rem;
    color: #fff;
    text-align: center;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}
.menu-button {
    display: block;
    background: none;
    border: 2px solid #fff;
    color: #fff;
    padding: 1rem;
    margin: 1rem auto;
    font-family: 'Tourney', monospace;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    border-radius: 0;
    text-decoration: none;
    letter-spacing: 2px;
}
.menu-button:hover:not(:disabled) { background: #fff; color: #000; transform: scale(1.05); }
.menu-button:disabled { border-color: #555; color: #555; cursor: not-allowed; }
.menu-button.-small { padding: 0.3rem 0.6rem; font-size: 0.8rem; margin: 0; letter-spacing: 1px; }
.menu-button.-solid { border: none; color: black; font-family: 'Courier New', Courier, monospace; font-weight: bold; padding: 10px 20px; margin: 0; }
.menu-button.-solid:hover:not(:disabled) { transform: scale(1.05); color: black; }
.menu-button.-subtle { margin-top: 1rem; padding: 0.5rem 1rem; font-size: 0.8rem; border-color: #888; color: #888; }
.menu-button.-subtle:hover { background: #aaa; color: #000; border-color: #aaa; }
.menu-button.-yellow { background-color: rgba(255, 255, 0, 0.8); }
.menu-button.-yellow:hover:not(:disabled) { background-color: rgba(255, 255, 0, 1); box-shadow: 0 0 10px rgba(255, 255, 0, 0.5); }
.menu-button.-cyan { background-color: rgba(0, 255, 255, 0.8); }
.menu-button.-cyan:hover:not(:disabled) { background-color: rgba(0, 255, 255, 1); box-shadow: 0 0 10px rgba(0, 255, 255, 0.5); }
.menu-button.-red:hover:not(:disabled) { background-color: #ff0000; border-color: #ff0000; }
.menu-button.-grey { background-color: rgba(180, 180, 180, 0.8); }
.menu-button.-grey:hover:not(:disabled) { background-color: rgba(220, 220, 220, 1); box-shadow: 0 0 10px rgba(255, 255, 255, 0.5); }

/* MAIN MODES */
.mode-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: auto;
    width: 100%;
    max-width: 600px;
}
.mode-button {
    background-color: rgba(0, 0, 0, 0.7);
    border: 2px solid #ffffff;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-align: left;
    border-radius: 0;
}
.mode-button h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.4rem;
}
.mode-button p {
    margin: 0;
    opacity: 0.8;
    font-size: 1rem;
}
.mode-button:hover { background-color: rgba(50, 50, 50, 0.7); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); }
.mode-button.primary-action { margin-top: 2rem; border-color: #ffaa00; }
.mode-button.primary-action:hover { box-shadow: 0 0 15px rgba(255, 170, 0, 0.5); }

/* INSTRUCTIONS */
.instructions-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    font-size: 1rem;
    width: 100%;
}
.instructions-content h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #ffff00;
}
.instructions-section h3 {
    color: #00ffff;
    margin: 0.75rem 0rem;
}
.instructions-section ul {
    padding-left: 1.5rem;
}
.instructions-section ol {
    padding-left: 1.5rem;
}
.instructions-section li {
    margin-bottom: 0.5rem;
}

/* STANDINGS */
.standings-card {
    background-color: rgba(30, 30, 30, 0.8);
    padding: 0.4rem;
    border-top: 1px solid #555;
}
.standings-card p {
    margin-top: 0.3rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    line-height: 1;
    color: #ccc;
    white-space: normal; /* override table nowrap */
}
.leaderboard {
    width: 98%;
    max-width: 390px;
    margin-bottom: 1rem;
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
}
.leaderboard table {
    width: 100%;
    border-collapse: collapse;
    background-color: rgba(30, 30, 30, 0.8);
    table-layout: fixed;
}
.leaderboard th {
    background-color: rgba(60, 60, 60, 0.8);
    padding: 4px 2px;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1rem;
    color: #ccc;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.leaderboard td {
    padding: 4px 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.leaderboard .winner td {
    background-color: rgba(255, 204, 0, 0.2);
    color: #ffcc00;
    font-weight: bold;
}
.standings-main-row {
    cursor: pointer;
    transition: 0.2s ease;
}
.standings-main-row:hover {
    background-color: rgba(255, 255, 255, 0.08);
}
.standings-main-row.active {
    background-color: rgba(255, 170, 0, 0.15);
}
.standings-detail-row td {
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.standings-detail-row .standings-card {
    background-color: rgba(50, 50, 50, 0.9);
}
.leaderboard.standings .col-rank { width: 10%; }
.leaderboard.standings .col-fighter { width: 30%; }
.leaderboard.standings .col-score { width: 12%; }
.leaderboard.standings .col-games { width: 12%; }
.leaderboard.standings .col-winrate { width: 10%; }
.leaderboard.standings .col-survival { width: 10%; }
.leaderboard.standings .col-avgrank { width: 10%; }

/* GAME SETUP MENU */
.setup-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    margin: auto;
    position: relative;
    overflow: hidden;
}
.scrollable-content {
    flex-grow: 1;
    overflow-y: auto;
}
.player-count-select {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.count-button {
    width: 4rem;
    height: 4rem;
    font-size: 1.25rem;
    background-color: black;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Tourney', monospace;
}
.count-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}
.count-button.active {
    background-color: white;
    color: #000;
    border-color: #ffaa00;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
.planet-density-container {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 0;
}
.slider-container {
    display: flex;
    align-items: center;
    margin: 1rem 0;
}
.slider-label {
    flex: 0 0 60px;
    color: #ccc;
    text-align: center;
    width: 100%;
}
.density-slider {
    flex: 1;
    height: 10px;
    -webkit-appearance: none;
    appearance: none;
    background: #444;
    outline: none;
    border-radius: 0;
}
.density-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 24px;
    border-radius: 0;
    background: #fff;
    cursor: pointer;
}
.density-slider::-moz-range-thumb {
    width: 12px;
    height: 24px;
    border-radius: 0;
    background: #fff;
    cursor: pointer;
}
.ai-selectors-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 1rem; /* so last item doesn't touch */
}
.player-circle {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}
.player-circle span {
    color: #000;
    font-weight: bold;
    font-size: 1rem;
}
.ai-selector {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.ai-selector select {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #333;
    color: #fff;
    border: 2px solid #fff;
    cursor: pointer;
    font-family: 'Tourney', monospace;
    font-size: 1rem;
    text-align: center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-position: right 10px center;
    background-size: 16px;
    transition: all 0.3s;
    flex-grow: 1;
    border-radius: 0;
}
.ai-selector select:hover {
    background-color: #444;
    border-color: #ffaa00;
}
.ai-selector select:focus {
    outline: none;
    border-color: #ffaa00;
    box-shadow: 0 0 5px rgba(255, 170, 0, 0.5);
}
.setup-buttons {
    width: 100%;
    flex-shrink: 0; /* prevents button container shrinking */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    gap: 1rem;
    z-index: 11;
    height: 4rem;
}
.start-game {
    padding: 0.5rem 1rem;
    margin: 0;
    max-width: 45%;
    font-size: 1rem;
    background-color: black;
}
.start-game:hover:not(:disabled) {
    background: #fff;
    color: #000;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* ADVANCED SETTINGS */
.advanced-settings-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.98);
    border-top: 2px solid #ffaa00;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    z-index: 10;
    transform: translateY(100%);
    transition: transform 0.4s ease-out;
    overflow-y: auto;
    max-height: calc(100% - 4rem);
}
.advanced-settings-panel.active {
    transform: translateY(-4rem);
}
.advanced-settings-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.advanced-setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.advanced-setting-item label {
    font-size: 1rem;
    color: #ccc;
    flex-shrink: 0;
    margin-right: 1rem;
}
.advanced-setting-item input[type="number"] {
    width: 6rem;
    padding: 0.5rem;
    background-color: #111;
    border: 1px solid #fff;
    color: #fff;
    font-family: 'Tourney', monospace;
    font-size: 1.1rem;
    text-align: center;
}
.advanced-setting-item input[type="checkbox"] {
    width: 1.5rem;
    height: 1.5rem;
    cursor: pointer;
}
.setup-buttons {
    z-index: 11;
    justify-content: space-between;
    align-items: center;
    height: 4rem; 
    bottom: 0;
    padding: 0 1rem;
}
.advanced-toggle {
    padding: 0.5rem 1rem;
    margin: 0;
    max-width: 45%;
    font-size: 1rem;
    border-color: #888;
    color: #888;
}
.advanced-toggle:hover, .advanced-toggle.active {
    background: #444;
    color: #fff;
    border-color: #fff;
}
.advanced-toggle span {
    display: inline-block;
    transition: transform 0.3s ease;
}
.advanced-toggle.active span {
    transform: rotate(180deg);
}

/* TOURNAMENT SETUP */
.tournament-bot-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
    max-height: 40vh;
    overflow-y: auto;
}
.tournament-bot-entry {
    display: flex;
    align-items: center;
    background-color: rgba(255,255,255,0.1);
    padding: 0.5rem;
}
.tournament-bot-entry input[type="checkbox"] {
    margin-right: 0.5rem;
    width: 1.2rem;
    height: 1.2rem;
}
.tournament-bot-entry label {
    font-size: 1rem;
}

/* REPLAY LIST */
.replay-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    max-height: 50vh;
    overflow-y: auto;
}
.replay-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border: 1px solid #444;
}
.replay-info {
    display: flex;
    flex-direction: column;
}
.replay-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: #ffaa00;
}
.replay-players {
    font-size: 0.9rem;
    color: #ccc;
    white-space: normal;
}
.replay-date {
    font-size: 0.7rem;
    color: #888;
    font-family: 'Courier New', Courier, monospace;
}
.replay-actions {
    display: flex;
    gap: 0.5rem;
}

/* TOURNAMENT SCREEN */
#tournament-screen {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 1500; color: #fff;
    display: flex; flex-direction: column;
    padding: 1rem;
    overflow: hidden;
}
.tournament-hub-container {
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
}
.tournament-bracket-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 0 0.5rem;
}
.tournament-bracket {
    display: flex;
    gap: 1rem;
    justify-content: center;
}
.bracket-round-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: space-around;
    flex: 1;
    align-items: center;
}
.bracket-round {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    align-items: center;
}
.bracket-match {
    background: #1a1a1a;
    border: 1px solid #444;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    width: 150px;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.bracket-match.next-match {
    border-color: #ffaa00;
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.5);
}
.bracket-player {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0.4rem;
    background-color: #333;
    border-radius: 3px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
}
.bracket-player.winner {
    font-weight: bold;
    color: #000;
    background-color: #ffcc00;
}
.bracket-player.loser {
    color: #666;
    background-color: #222;
    opacity: 0.6;
    text-decoration: line-through;
}
.bracket-player.tbd { color: #777; font-style: italic; }
.vs-separator { display: block; font-size: 0.7rem; color: #888; text-align: center; }
.tournament-controls {
    flex-shrink: 0;
    padding: 1rem 0;
    text-align: center;
    border-top: 1px solid #555;
    margin-top: 1rem;
}
.tournament-controls h3 { margin-bottom: 0.5rem; color: #ffaa00; }
.tournament-controls .match-players { font-size: 1.1rem; margin-bottom: 1rem; }
.tournament-controls .button-group { display: flex; justify-content: center; gap: 1rem; }
.tournament-podium {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 2rem;
}
.podium-spot { margin-bottom: 1.5rem; }
.podium-spot h2 { font-size: 1.2rem; margin-bottom: 0.2rem; letter-spacing: 2px; }
.podium-spot p { font-size: 1.5rem; font-weight: bold; }
.podium-spot.champion h2 { color: #d4af37; text-transform: uppercase; } /* Gold */
.podium-spot.champion p { font-size: 2rem; color: #ffd700; text-shadow: 0 0 10px #ffd700; }
.podium-spot.runner-up h2 { color: #aaa; } /* Silver */
.podium-spot.runner-up p { font-size: 1.5rem; color: #c0c0c0; }
.podium-actions { margin-top: 1rem; display: flex; flex-direction: column; gap: 1rem; }
@keyframes winner-propagate {
    0% { transform: scale(1); box-shadow: 0 0 0px #ffcc00; }
    50% { transform: scale(1.1); box-shadow: 0 0 15px #ffcc00; }
    100% { transform: scale(1); box-shadow: 0 0 0px #ffcc00; }
}
.winner-propagation-animation {
    animation: winner-propagate 0.8s ease-in-out;
}

/* GAME SCREEN */
#game-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#game-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* BATCH SCREEN */
#batch-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
}
#batch-screen h2 {
    font-family: 'Tourney', monospace;
    font-size: 1.5rem;
    color: #ffaa00;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}
#batch-screen p {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: #ccc;
}
.spinner {
    margin-top: 2rem;
    width: 50px;
    height: 50px;
    border: 5px solid #444;
    border-top-color: #ffaa00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* GAME OVER SCREEN */
#game-over-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow-y: auto;
}
#game-over-screen {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    box-sizing: border-box;
    font-family: 'Courier New', monospace;
    text-align: center;
}
 #game-over-screen h1 {
    font-size: 1.8rem;
    margin: 0.5rem 0;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
    font-family: 'Codystar', monospace;
}
#game-over-screen h2 {
    font-size: 1.2rem;
    margin: 0.4rem 0 1rem 0;
    text-align: center;
    color: #ffcc00;
    text-shadow: 0 0 6px #ffcc00;
}
#game-over-screen h3 {
    color: #aaa;
    text-align: center;
    margin: 0.5rem 0;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
#game-over-screen .col-rank { width: 15%; } /* Game Over has different widths */
#game-over-screen .col-fighter { width: 40%; }
#game-over-screen .col-planets { width: 15%; }
#game-over-screen .col-troops { width: 15%; }
#game-over-screen .col-score { width: 15%; }

/* STATS */
.overall-stats {
    width: 98%;
    max-width: 390px;
    margin: 1rem 0;
    background-color: rgba(30, 30, 30, 0.8);
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
}
.stats-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.3rem;
}
.stat-item {
    display: flex;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.3rem;
    text-align: center;
    border-radius: 0;
}
.stat-label {
    font-size: 0.8rem;
    color: #ccc;
    margin-bottom: 0.3rem;
    opacity: 0.8;
    text-transform: uppercase;
}
.stat-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffcc00;
}
.game-over-buttons { /* button container for game over screen */
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

/* FOOTER */
footer {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: center;
    border-top: 2px solid #fff;
    padding: 0.2rem;
    justify-content: center;
    align-items: center;
    height: 2.5rem;
}
#footer-text {
    font-family: 'Codystar', monospace;
    font-size: 1.2rem;
}
footer a {
    color: inherit;
    text-decoration: none;
}
footer a:hover {
    text-decoration: none;
}
#footer-back-button {
    background: none;
    border: none;
    color: #fff;
    font-family: 'Codystar', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
}
#footer-back-button:hover {
    color: #ffaa00;
    transform: scale(1.1);
}
#footer-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    gap: 0.3rem;
    padding: 0 0.5rem;
}
#slider-wrapper {
    position: relative;
    width: 100%;
    height: 12px;
    flex: 1;
}
.slider-text {
    color: white;
    font-size: 1rem;
    font-family: 'Wallpoet', monospace;
    font-weight: bold;
    flex-shrink: 0;
}
#slider-track {
    width: 100%;
    height: 100%;
    background-color: #333;
    border: 1px solid #fff;
    position: relative;
    cursor: grab;
    border-radius: 0;
    touch-action: none;
}
#slider-track:active {
    cursor: grabbing;
}
#slider-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: #ffff00;
    width: 50%;
    border-radius: 0;
}
#slider-thumb {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 18px;
    background-color: #fff;
    transform: translate(-50%, -50%);
    border: 2px solid #000;
    border-radius: 0;
    pointer-events: none;
}

/* MOBILE SIZING */
@supports (height: 100dvh) {
    body {
        min-height: 100dvh;
    }
    #outer-container {
        height: 98dvh;
    }
}