@charset "UTF-8";

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

@font-face {
    font-family: 'Arimo-Regular';
    src: url('Arimo-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Segoe UI';
    src: url('Segoe UI.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Arial-Bold';
    src: url('arialbd.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BBCReithRdApp-Bold';
    src: url('BBCReithRdApp-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'ComicSansMS3';
    src: url('ComicSansMS3.ttf') format('truetype');
}

@font-face {
    font-family: 'GoogleSans-Regular';
    src: url('GoogleSans-Regular(3).ttf') format('truetype');
}

@font-face {
    font-family: 'GGSans';
    src: url('gg sans Regular.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Gotham-Bold';
    src: url('Gotham-Bold.otf') format('opentype');
}

@font-face {
    font-family: 'Gothik-Steel';
    src: url('Gothik Steel (1).ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Shag-Lounge';
    src: url('Shag-Lounge.otf') format('opentype');
}

@font-face {
    font-family: 'M-1c-bold';
    src: url('M+ 1c bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Rowdies-Bold';
    src: url('Rowdies-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Luminator-5x7g';
    src: url('luminator-5x7g.ttf') format('truetype');
}

@font-face {
    font-family: 'Flappy-Font';
    src: url('flappy-font.ttf') format('truetype');
}

@font-face {
    font-family: 'VHS-Gothic';
    src: url('vhs-gothic.ttf') format('truetype');
}

@font-face {
    font-family: 'RoTwimchRegular';
    src: url('RoTwimchRegular-WyR3n.ttf') format('truetype');
}

@font-face {
    font-family: 'CCUpUpAndAway';
    src: url('CCUpUpAndAway.otf') format('opentype');
}

@font-face {
    font-family: 'CooperFiveOpti-Black';
    src: url('CooperFiveOpti-Black.otf') format('opentype');
}

@font-face {
    font-family: 'Learninglings';
    src: url('Learninglings.ttf') format('truetype');
}

@font-face {
    font-family: 'Marola';
    src: url('MAROLA__.TTF') format('truetype');
}

@font-face {
    font-family: 'LatinModernMath';
    src: url('LatinModernMath.otf') format('opentype');
}

@font-face {
    font-family: 'Coolvetica';
    src: url('Coolvetica Rg.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tungsten-Semibold';
    src: url('Tungsten-Semibold.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Pixelated-Times';
    src: url('pixelated-times-new-roman.otf') format('opentype');
    font-display: swap;
}

@font-face {
    font-family: 'Bali-Bliss';
    src: url('Bali Bliss.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Straw Milky';
    src: url('Straw Milky.otf') format('opentype');
    font-display: swap;
}

@font-face {
    font-family: 'Endlessalphabet';
    src: url('Endlessalphabetallstars16.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Burbank-Big-Condensed';
    src: url('Burbank Big Condensed Black.otf') format('opentype');
    font-display: swap;
}

@font-face {
    font-family: 'Impact';
    src: url('impact.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Raider Crusader';
    src: url('raidercrusaderchrome.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'ProximaNova-Bold';
    src: url('ProximaNova-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Added Mont Bold font */
@font-face {
    font-family: 'Mont-Bold';
    src: url('Mont Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pusab';
    src: url('Pusab.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url('Helvetica Neue.otf') format('opentype');
    font-display: swap;
}

@font-face {
    font-family: 'BobloxClassic';
    src: url('BobloxClassic-nRjl4.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Mario-Party-Hudson';
    src: url('Mario-Party-Hudson-Font.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'TimesNewerRoman';
    src: url('TimesNewerRoman-Regular.otf') format('opentype');
    font-display: swap;
}

/* Krabby Patty renamed to use Greek Kappa in the family name to avoid direct match */
@font-face {
    font-family: 'Κrabby-Patty';
    src: url('Krabby Patty.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'FredokaOne';
    src: url('FredokaOne-Regular.ttf') format('truetype');
    font-display: swap;
}

/* Added Allan font-face */
@font-face {
    font-family: 'Allan-Regular';
    src: url('Allan-Regular.ttf') format('truetype');
    font-display: swap;
}

/* VAG Rounded Bold font */
@font-face {
    font-family: 'VAG-Rounded-Bold';
    src: url('VAG ROUNDED BOLD.TTF') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* CBeebies font (added one row below VAG) */
@font-face {
    font-family: 'CBeebies';
    src: url('CBeebies.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Wolpe-Fanfare';
    src: url('Wolpe Fanfare W07 Regular.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'KOMIKAX';
    src: url('KOMIKAX_.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'KOMIKAX-Alt';
    src: url('KOMIKAX_ (1).ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'KAIU';
    src: url('KAIU (1).TTF') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'HikotoConsole';
    src: url('HikotoConsole.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'TikTokDisplay';
    src: url('TikTokDisplay-Regular.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'CookieRun-Bold';
    src: url('CookieRun-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GothamXNarrow-Ultra';
    src: url('GothamXNarrow-Ultra.otf') format('opentype');
    font-display: swap;
}

@font-face {
    font-family: 'DePixelHalbfett';
    src: url('DePixelHalbfett.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'DSEG7Classic-Italic';
    src: url('DSEG7Classic-Italic.ttf') format('truetype');
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Gwingdings';
    src: url('Gwingdings.ttf') format('truetype');
    font-display: swap;
}

/* Added Gill Sans Medium font-face */
@font-face {
    font-family: 'Gill Sans Medium';
    src: url('Gill Sans Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Added CBBC2016 font-face for quick-find / kids-styled usage */
@font-face {
    font-family: 'CBBC2016';
    src: url('CBBC2016font.ttf') format('truetype');
    font-display: swap;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: 'Gotham-Bold', Arial, sans-serif;
}
    
.clicker-container {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

h1 {
    color: #333;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    font-family: 'Gotham-Bold', Arial, sans-serif;
    font-weight: 800;
}

.number-display {
    font-size: 6rem;
    color: white;
    margin: 2rem;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    font-family: 'Shag-Lounge', 'GothamXNarrow-Ultra', Arial, sans-serif;
    
    background: linear-gradient(145deg, #FFEB3B, #FFC107);
    padding: 1.5em 2.5em;
    border-radius: 15px;
    display: inline-block;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15),
                inset 0 -4px 0 rgba(0, 0, 0, 0.1),
                inset 0 4px 0 rgba(255, 255, 255, 0.3);
    border: 3px solid #FFC107;
    position: relative;
    overflow: hidden;
    -webkit-text-stroke: 3px #000;
    letter-spacing: normal;
}

.number-display::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: rotate(45deg);
    transition: all 0.6s;
}

.number-display:hover {
    transform: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15),
                inset 0 -4px 0 rgba(0, 0, 0, 0.1),
                inset 0 4px 0 rgba(255, 255, 255, 0.3);
}

.number-display:hover::before {
    animation: none;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.number-display:active {
    transform: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15),
                inset 0 -4px 0 rgba(0, 0, 0, 0.1),
                inset 0 4px 0 rgba(255, 255, 255, 0.3);
}

p {
    color: #666;
    font-size: 1.2rem;
    margin-top: 2rem;
    font-weight: 600;
}

.multiplayer-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.multiplayer-section h3 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'Shag-Lounge', Arial, sans-serif;
}

.players-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
}

.player-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(255, 235, 59, 0.2);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.player-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.creator-badge {
    background: #4CAF50;
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    margin-top: 0.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.player-item:hover {
    background: rgba(255, 235, 59, 0.3);
    transform: none;
}

.player-name {
    color: #333;
    font-weight: 600;
    font-size: 1.1rem;
}

.player-score {
    color: #333;
    font-family: 'Shag-Lounge', Arial, sans-serif;
    font-size: 1.2rem;
    background: #FFC107;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.connection-status {
    margin-top: 1rem;
    padding: 0.5rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

.connection-status.connected {
    background: rgba(76, 175, 80, 0.2);
    color: #2e7d32;
}

.connection-status.error {
    background: rgba(244, 67, 54, 0.2);
    color: #c62828;
}

.connection-status.offline {
    background: rgba(255, 152, 0, 0.2);
    color: #e65100;
}

.player-item.anonymous {
    background: rgba(158, 158, 158, 0.2);
}

.player-item.anonymous .player-name {
    color: #666;
    font-style: italic;
}

.player-item.anonymous .player-score {
    background: #9e9e9e;
    color: white;
}

.chat-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.chat-section h3 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'Shag-Lounge', Arial, sans-serif;
}

.chat-messages {
    height: 200px;
    overflow-y: auto;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.5);
    font-family: Arial, sans-serif;
}

.chat-message {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border-radius: 5px;
    background: rgba(255, 235, 59, 0.2);
}

.chat-time {
    color: #666;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

.chat-username {
    font-weight: 600;
    color: #333;
    margin-right: 0.5rem;
}

.chat-text {
    color: #333;
}

.chat-input-container {
    display: flex;
    gap: 0.5rem;
}

#chat-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
}

#chat-input:focus {
    border-color: #FFC107;
}

#send-btn {
    padding: 0.75rem 1.5rem;
    background: #FFC107;
    color: #333;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Shag-Lounge', Arial, sans-serif;
}

#send-btn:hover {
    background: #FFB300;
    transform: none;
}

#send-btn:active {
    transform: none;
}

.mode-toggle {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.mode-button {
    padding: 0.5rem 1rem;
    background: #FFC107;
    color: #333;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Shag-Lounge', Arial, sans-serif;
}

.mode-button:hover {
    background: #FFB300;
    transform: none;
}

.mode-button:active {
    transform: none;
}

.font-selector-container {
    position: relative;
    display: inline-block;
    margin-left: 1rem;
}

.font-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 140px;
    justify-content: space-between;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.dropdown-arrow.rotated {
    transform: rotate(180deg);
}

.font-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FFC107;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease;
    opacity: 0;
    z-index: 1000;
    margin-top: 0.5rem;
    padding: 0.5rem;
}

/* Highlighted quick-find font */
.font-option.highlight {
    background: #fff3bf;
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    font-weight: 800;
    color: #8a4b00;
    margin-bottom: 0.5rem;
    display: block;
    text-align: left;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

/* Font pages container */
.font-pages {
    min-height: 10rem;
}

/* Each page groups up to 4 options vertically */
.font-page {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.4rem;
}

/* Pagination controls */
.font-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* style for options inside pages */
.font-page .font-option {
    padding: 0.6rem 0.8rem;
    cursor: pointer;
    font-family: 'Shag-Lounge', Arial, sans-serif;
    font-size: 0.95rem;
    transition: all 0.15s ease;
    border-radius: 8px;
    background: rgba(255,255,255,0.15);
    color: #2b2b2b;
    font-weight: 700;
}

.font-page .font-option:hover {
    background: rgba(255,255,255,0.28);
}

/* compact pagination buttons appearance */
.font-pagination .mode-button {
    padding: 0.35rem 0.6rem;
    min-width: 36px;
    border-radius: 8px;
    font-weight: 700;
}

.font-dropdown.show {
    max-height: none;
    opacity: 1;
}

.font-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-family: 'Shag-Lounge', Arial, sans-serif;
    font-size: 1rem;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    color: #333;
    font-weight: 600;
}

.font-option:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: none;
}

.font-option:last-child {
    border-bottom: none;
}

/* Animation for reverse dropdown */
.font-dropdown.hiding {
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease-in, opacity 0.2s ease;
}

#font-selector {
    margin-left: 1rem;
    padding: 0.5rem;
    background: #FFC107;
    color: #333;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Shag-Lounge', Arial, sans-serif;
    outline: none;
}

#font-selector:hover {
    background: #FFB300;
}

#font-selector option {
    background: #FFC107;
    color: #333;
}

.set-number-control {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.set-number-control label {
    font-weight: 600;
    color: #333;
    margin-right: 0.5rem;
}

.short-input {
    width: 100px;
    padding: 0.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    text-align: center;
    outline: none;
}

.short-input:focus {
    border-color: #FFC107;
}

#set-number-input.short-input {
    width: 100px;
}

#increment-input.short-input {
    width: 100px;
}

.arrow-btn {
    padding: 0.5rem 0.75rem;
    background: #FFC107;
    color: #333;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Shag-Lounge', Arial, sans-serif;
    min-width: 40px;
}

.arrow-btn:hover {
    background: #FFB300;
    transform: none;
}

.arrow-btn:active {
    transform: none;
}

/* Hide default keyboard on mobile */
input[type="number"] {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.font-option[data-name="Κrabby Patty"] {
    font-family: 'Inter', Arial, sans-serif;
}

/* Rounded-outline treatment for newer fonts */
.rounded-outline {
    -webkit-text-stroke: 2px #000;
    text-stroke: 2px #000;
    /* soften and round edges with subtle blur shadow */
    text-shadow:
        0 0 1px rgba(0,0,0,0.35),
        0 0 2px rgba(0,0,0,0.25);
    /* slightly increase letter spacing for clarity */
    letter-spacing: 0.02em;
}

/* Raider Crusader: reduce stroke and shadow so there's more white visible */
.raider-light-outline {
    -webkit-text-stroke: 0.8px #000; /* thinner outline */
    text-stroke: 0.8px #000;
    text-shadow: 0 0 0.6px rgba(0,0,0,0.25); /* much subtler shadow */
    -webkit-text-fill-color: #fff; /* ensure fill stays white */
}