    @import url('https://fonts.googleapis.com/css2?family=Linux+Libertine:wght@400;600&display=swap');

    html,
    body {
        margin: 0;
        padding: 0;
        height: 100%;
        font-family: 'Segoe UI', sans-serif;
        color: black;
        overflow-x: hidden;
    }

    #map {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        cursor: pointer !important;
    }

    #map:active {
        cursor: grabbing !important;
    }

    .overlay {
        position: absolute;
        z-index: 2;
        padding: 10px;
    }

    #startScreen {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('dunya.png');
        background-size: cover;
        background-position: center;
        z-index: 10;
        overflow-y: auto;
        padding: 20px;
        box-sizing: border-box;
    }

    #startScreen.turkish-bg {
        background-image: url('bgturk.png');
    }

    #gameTitle {
        text-align: center;
        color: white;
        font-size: 3.5rem;
        font-weight: bold;
        margin-bottom: 20px;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }

    #languageSelector {
        text-align: center;
        margin-bottom: 30px;
    }

    #languageSelector button {
        background: transparent;
        color: #e6e6e6;
        border: 2px solid #808080;
        padding: 10px 20px;
        margin: 0 10px;
        cursor: pointer;
        font-size: 1rem;
        transition: all 0.3s ease;
    }

    #languageSelector button:hover {
        background: rgba(255, 255, 255, 0.1);
        color: white;
        border-color: #808080;
    }

    #languageSelector button.active {
        background: rgb(255, 255, 255);
        color: #1a1a1a;
        border-color: #808080;
    }

    .player-counter-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 250px;
        position: absolute;
        top: 25px;
        right: 140px;
        margin: 0;
        padding: 20px;
    }

    .player-counter-text {
        font-size: 16px;
        color: #ffffff;
        text-align: center;
        margin-bottom: 10px;
        font-weight: 500;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .player-counter-number {
        font-size: 100px;
        font-weight: bold;
        color: #ff9d00;
        text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
        font-family: 'Arial', sans-serif;
        letter-spacing: 2px;
        transition: all 0.3s ease;
    }

    .player-counter-number:hover {
        text-shadow: 0 0 30px rgba(0, 255, 136, 0.8);
    }

    @media (max-width: 768px) {
        .player-counter-text {
            font-size: 14px;
        }

        .player-counter-number {
            font-size: 36px;
        }
    }

    #playerNameInput {
        text-align: center;
        margin-bottom: 30px;
    }

    #playerNameInput input {
        padding: 15px 20px;
        font-size: 1.2rem;
        border: 2px solid #808080;
        border: none;
        width: 300px;
        text-align: center;
        background: rgba(45, 45, 45, 0.424);
        color: #ffffff;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

    #nameWarning {
        position: fixed;
        top: -60px;
        left: 50%;
        transform: translateX(-50%);
        background: #dc3545;
        color: white;
        padding: 15px 30px;
        font-size: 1rem;
        font-weight: bold;
        z-index: 20;
        transition: top 0.3s ease-in-out;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

    #nameWarning.show {
        top: 20px;
    }

    #nameWarning.success {
        background: #28a745;
    }

    .game-description {
        max-width: 1500px;
        margin: 0 auto 30px;
        text-align: center;
        color: #ffffff;
        font-size: 1rem;
        line-height: 1.6;
    }

    .game-description .wikipedia-text {
        font-family: 'Linux Libertine', 'Times New Roman', serif;
        font-size: 1.4em;
        font-weight: 600;
        color: #ffffff;
        text-decoration: none;
        transition: color 0.3s ease;
    }


    .modes-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
        max-width: 1200px;
        margin: 0 auto;
    }

    .mode-card {
        background: rgb(44, 44, 44);
        overflow: hidden;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        cursor: pointer;
    }

    .mode-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    }

    .mode-image {
        width: 100%;
        height: 200px;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        position: relative;
        filter: brightness(0.8);
        transition: filter 0.3s ease;
    }

    .mode-card:hover .mode-image {
        filter: brightness(1.1);
    }

    .mode-content {
        padding: 20px;
        text-align: center;
        background: rgb(44, 44, 44);
    }

    .mode-title {
        font-size: 1.5rem;
        font-weight: bold;
        margin-bottom: 10px;
        color: #ffffff;
    }

    .mode-specs {
        font-size: 1rem;
        color: #a2a2a2;
        margin-bottom: 15px;
    }

    .mode-buttons {
        display: flex;
        gap: 10px;
        width: 100%;
    }

    .mode-button {
        flex: 1;
        color: white;
        background: rgb(44, 44, 44);
        border: none;
        padding: 12px 20px;
        font-size: 1.1rem;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.3s ease;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        position: relative;
        overflow: hidden;
    }

    .mode-button.turk {
        background-image: url('turk_button_bg.png');
    }

    .mode-button.dunya {
        background-image: url('dunya_button_bg.png');
    }

    .mode-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.3);
        transition: background 0.3s ease;
    }

    .mode-button span {
        position: relative;
        z-index: 1;
    }

    .mode-button:hover::before {
        background: rgba(0, 0, 0, 0.5);
    }

    .mode-button:hover {
        transform: scale(1.05);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

    #personName {
        position: absolute;
        top: 10%;
        left: 15%;
        transform: translateX(-50%);
        z-index: 3;
        color: black;
        font-size: 1.8rem;
        font-weight: bold;
        text-align: center;
        display: none;
    }

    #personContainer {
        position: absolute;
        top: 55%;
        left: 15%;
        transform: translate(-50%, -50%);
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 0;
        color: black;
        max-width: 525px;
        max-height: 70vh;
    }

    #personImage {
        max-width: 100%;
        max-height: 600px;
        width: auto;
        height: auto;
        border: none;
        box-shadow: none;
        object-fit: contain;
    }

    #confirmButton,
    #nextButton,
    #restartButton {
        position: absolute;
        left: 50%;
        transform: translateX(-50%) scale(1);
        z-index: 2;
        border: none;
        padding: 12px 25px;
        border-radius: 8px;
        font-size: 1rem;
        font-weight: bold;
        opacity: 1;
        transition: transform 0.28s ease, filter 0.28s ease, opacity 0.28s ease;
        will-change: transform, filter;
    }


    #confirmButton {
        bottom: 60px;
        background-color: #007BFF;
        color: white;
    }

    #confirmButton:hover {
        transform: translateX(-50%) scale(1.06);
        box-shadow: inset 0 0 0 9999px rgba(0, 0, 0, 0.08);
        transition: transform 0.28s ease, box-shadow 0.28s ease;
    }

    #nextButton {
        bottom: 20px;
        background-color: #e74c3c;
        color: white;
        display: none;
    }

    #nextButton:hover {
        transform: translateX(-50%) scale(1.06);
        box-shadow: inset 0 0 0 9999px rgba(0, 0, 0, 0.08);
        transition: transform 0.28s ease, box-shadow 0.28s ease;
    }

    #restartButton {
        bottom: 20px;
        background-color: #28a745;
        color: white;
        display: none;
        opacity: 0;
        transition: opacity 0.5s ease-in;
    }

    #restartButton:hover {
        transform: translateX(-50%) scale(1.06);
        box-shadow: inset 0 0 0 9999px rgba(0, 0, 0, 0.08);
        transition: transform 0.28s ease, box-shadow 0.28s ease;
    }

    #statusBar {
        top: 10px;
        right: 10px;
        background: rgba(44, 44, 44, 0.95);
        color: rgb(192, 192, 192);
        font-size: 1rem;
        font-weight: bold;
        padding: 10px 15px;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }

    #timerBar {
        top: 70px;
        right: 10px;
        background: linear-gradient(45deg, #ff6b6b, #ee5a52);
        color: white;
        font-size: 1.2rem;
        font-weight: bold;
        padding: 10px 15px;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        display: none;
    }

    #centerResult {
        position: absolute;
        top: 40%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 2rem;
        color: black;
        font-weight: bold;
        z-index: 3;
        pointer-events: none;
        user-select: none;
        opacity: 0;
        transition: opacity 0.4s ease-in;
        text-align: center;
    }

    #centerFinal {
        position: absolute;
        top: 30%;
        left: 80%;
        transform: translateX(-50%);
        font-size: 1.8rem;
        color: black;
        font-weight: bold;
        z-index: 4;
        display: none;
        text-align: center;
    }

    #homeButton {
        position: absolute;
        bottom: 60px;
        right: 20px;
        z-index: 2;
        background-color: #6c757d;
        color: white;
        border: none;
        padding: 12px 25px;
        border-radius: 8px;
        font-size: 1rem;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.3s ease;
        display: none;
    }

    #homeButton:hover {
        background-color: #5a6268;
        transform: translateY(-2px);
    }

    #roundModal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 30;
    }

    #roundModalContent {
        background: white;
        padding: 30px;
        border-radius: 15px;
        text-align: center;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }

    #roundModalContent h3 {
        margin-bottom: 20px;
        color: #1a1a1a;
    }

    #roundInput {
        padding: 10px 15px;
        font-size: 1.2rem;
        border: 2px solid #ccc;
        border-radius: 5px;
        width: 100px;
        text-align: center;
        margin: 0 10px;
    }

    #profileButton {
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 20;
        border: 2px solid #808080;
        background: rgba(44, 44, 44, 0.676);
        color: #ffffff;
        border: none;
        padding: 10px 20px;
        border-radius: 25px;
        font-size: 1rem;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.3s ease;
        display: none;
    }

    #profileButton:hover {
        background: rgb(0, 0, 0);
        transform: scale(1.05);
    }

    #profileModal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 40;
    }

    #profileContent {
        color: #ffffff;
        background: rgb(0, 0, 0);
        padding: 30px;
        border-radius: 15px;
        max-width: 500px;
        width: 90%;
        max-height: 80vh;
        overflow-y: auto;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }

    .leaderboard-section {
        background: rgba(255, 255, 255, 0);
        padding: 20px;
        margin: 20px auto;
        max-width: 1200px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0);
    }

    .leaderboard-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        margin-top: 20px;
    }

    .leaderboard-card {
        background: rgb(44, 44, 44);
        padding: 15px;
        color: #ffffff;
    }

    .leaderboard-card h4 {
        margin-bottom: 10px;
        color: #ffffff;
    }

    .leaderboard-item {
        display: flex;
        justify-content: space-between;
        padding: 5px 0;
        border-bottom: 1px solid #eee;
    }

    .footer-section {
        background: #1a1a1a;
        color: rgb(147, 147, 147);
        padding: 30px 20px;
        text-align: center;
        margin-top: 40px;
    }

    .footer-description {
        max-width: 800px;
        margin: 0 auto 20px;
        line-height: 1.6;
    }

    .sample-button {
        background-image: url("1280px-Turkish_tea.jpg");
        background-size: cover;
        background-position: center;
        color: white;
        border: none;
        padding: 15px 30px;
        font-size: 1.1rem;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.3s ease;
        text-decoration: none;
        display: inline-block;
    }

    .sample-button:hover {
        filter: brightness(0.9);
        transform: scale(1.05);
    }

    .auth-section {
        color: white;
        background: rgba(255, 255, 255, 0);
        padding: 2px;
        margin: -20px auto;
        max-width: 400px;
        border-radius: 15px;
        text-align: center;
        transform: scale(0.9);
        transform-origin: top center;
    }

    .auth-section h3 {
        color: #fafafa;
        font-weight: 500;
        font-family: 'Segoe UI'
    }

    .auth-input {
        color: white;
        background: rgba(45, 45, 45, 0.777);
        width: 95%;
        padding: 10px;
        margin: 10px 0;
        border: none;
        font-size: 1rem;
    }

    .auth-input::placeholder {
        color: rgba(255, 255, 255, 0.579);
    }

    .auth-button {
        width: 100%;
        padding: 12px;
        margin: 10px 0;
        border: none;
        font-size: 1rem;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .auth-button:hover {
        transform: scale(1.05);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

    .login-button {
        background: #28a745;
        color: white;
    }

    .register-button {
        background: #007bff;
        color: white;
    }

    .distance-label {
        color: black;
        font-size: 0.75rem;
        font-weight: bold;
    }

    #referencesButton {
        position: absolute;
        bottom: -1000;
        right: 100px;
        background: transparent;
        border: none;
        color: #2fff00;
        font-size: 2rem;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 15;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }

    #referencesButton:hover {
        transform: scale(1.1);
        color: #ff5252;
    }

    #playersButton {
        position: absolute;
        top: 30px;
        left: 150px;
        display: inline-block;
        width: 320px;
        height: 36px;
        border-radius: 18px;
        overflow: hidden;
        text-decoration: none;
        color: white;
        background-color: #000000;
        border: 2px solid #ffffff;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        font-weight: 600;
        line-height: 36px;
        text-align: center;
    }

    #playersButton .button-text {
        display: block;
        transition: opacity 0.2s ease;
    }

    #playersButton .patreon-content {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.2s ease;
        background-color: white;
        border-radius: 18px;
    }

    #playersButton .patreon-content img {
        height: 20px;
        width: auto;
        display: block;
    }

    #playersButton:hover .button-text {
        opacity: 0;
    }

    #playersButton:hover .patreon-content {
        opacity: 1;
    }


    #referencesPage {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('dunya.png');
        background-size: cover;
        background-position: center;
        z-index: 50;
        overflow-y: auto;
        padding: 20px;
        box-sizing: border-box;
        display: none;
    }

    #referencesPage.turkish-bg {
        background-image: url('bgturk.png');
    }

    .references-container {
        max-width: 800px;
        margin: 80px auto;
        background: #2c2c2c;
        padding: 40px;
        border-radius: 15px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    }

    .references-title {
        color: white;
        font-size: 2rem;
        font-weight: bold;
        margin-bottom: 30px;
        text-align: center;
    }

    .references-content {
        color: #d0d0d0;
        line-height: 1.8;
        font-size: 1rem;
    }

    .references-content h3 {
        color: white;
        margin-top: 25px;
        margin-bottom: 15px;
    }

    .references-content ul {
        margin-left: 20px;
    }

    .references-content li {
        margin-bottom: 10px;
    }

    #backToMainButton {
        position: fixed;
        top: 20px;
        right: 20px;
        background: #6c757d;
        color: white;
        border: none;
        padding: 12px 25px;
        border-radius: 8px;
        font-size: 1rem;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 60;
    }

    #backToMainButton:hover {
        background: #5a6268;
        transform: translateY(-2px);
    }