@font-face {
	font-family: 'Futura-PT-Bold';
	src: url('../fonts/Futura-PT_Cond-Bold.woff') format('woff');
}

@font-face {
	font-family: 'Futura-PT-Medium';
	src: url('../fonts/Futura-PT_Cond-Medium.woff') format('woff');
}

:root {
    /* Game UI Colors */
    --primary-button: #FF6F00; /* Orange */
    --secondary-button: #FFBB00; /* Yellow */
    --tertiary-button: #005B98; /* Dark Blue */
    --negative-button: #EB0202; /* Red */
    --overlay: rgba(0, 0, 0, 0.5); /* Semi-transparent Black for overlay */
    --header: #0D99DF; /* Light Blue */
    --header-overlay: #6BCEFF; /* Lighter Blue */
    --button-info-addition: #F5F5F5; /* Light Grey */
    --neutral: #FFFFFF; /* White */
    --header-overlay-text: #005B98; /* Dark blue */
    --background: #255286; /* Blue background */
    --progress-bar-fill: #FFBB00; /* Yellow */
    --progress-bar-background: rgba(0, 0, 0, 0.6); /* Black 60% */
    --frontend-tab-bar: #575757; /* Grey */
    --selected-vehicle-outline: #FFBB00; /* Yellow */
    --upgrade-available-badge: #E30613;
    --progress-bar-background-on-overlay: rgba(255, 255, 255, 0.4);
    --inactive-toggle: #CDCDCD;
    --window-background: #FFFFFF;
    --text-field: #CDCDCD;
    --sidebar-bg: rgba(0, 15, 30, 0.8); /* Dark blue with opacity for sidebar */
    --card-bg: rgba(13, 153, 223, 0.85); /* Semi-transparent light blue */
    
    /* Foreground colors */
    --text-primary: #FFFFFF; /* White */
    --text-secondary: #000000; /* Black */
    --track-list-item-title: #005B98; /* Dark blue */
    --track-list-item-info: #FF6F00; /* Orange */
    --text-field-placeholder: rgba(128, 128, 128, 0.5);
}

* {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
 
html {
    height: 100%;
}

body {
    font-family: 'Futura-PT-Medium', 'Arial', sans-serif;
    width: 100%;
    min-height: 100vh;
    color: var(--text-primary);
    position: relative;
    background: url('/static/images/game_screenshot.jpg') no-repeat center center fixed;
    background-size: cover;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    font-size: 1.3em; /* Increase base font size by 30% */
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 30, 60, 0.5); /* Slightly darken the background */
    z-index: -1;
}

.page-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar styles to match the game UI */
.sidebar {
    width: 240px;
    background-color: var(--sidebar-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
}

.sidebar-item {
    width: 100%;
    text-align: center;
    padding: 15px 0;
    color: var(--text-primary);
    font-size: 1.2em;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.sidebar-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 5px;
}

/* Content area */
.main-content {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header cards like in the game UI */
.header-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--header);
    color: var(--text-primary);
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.header-title {
    padding: 15px 20px;
    font-size: 1.5em;
    text-transform: uppercase;
}

.header-value {
    padding: 15px 20px;
    background-color: var(--header-overlay);
    color: var(--header-overlay-text);
    font-size: 1.5em;
    font-weight: bold;
}

/* Game cards like in the screenshot */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.game-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-image {
    width: 100%;
    height: auto;
    display: block;
}

.card-title {
    font-size: 1.3em;
    margin-top: auto;
}

.card-footer {
    background-color: var(--primary-button);
    color: var(--text-primary);
    padding: 12px;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
}

.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--negative-button);
    color: var(--text-primary);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.window {
    width: 90%;
    max-width: 650px;
    margin: 20px auto;
    background: rgba(0, 15, 30, 0.75); /* Dark transparent background */
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(13, 153, 223, 0.3); /* Light blue border */
}

h2 {
    text-transform: uppercase;
    font-size: 2em;
    color: white;
    margin: 0;
    padding-bottom: 20px;
    text-align: center;
    font-family: 'Futura-PT-Bold', 'Arial', sans-serif;
}

.logo {
    display: block;
    margin: 30px auto 25px;
    max-width: 280px;
    height: auto;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
}

.track_image {
    width: 100%;
    border-radius: 10px;
    display: block;
}

.track_code {
    position: relative;
    margin: 20px auto;
    width: 160px;
    background: white;
    padding: 10px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-secondary);
}

.qr_code {
    min-width: 140px;
    max-width: 140px;
}

.track_id {
    text-align: center;
    text-transform: uppercase;
    width: 100%;
    font-size: 0.9em;
    padding: 10px 0 5px;
    font-weight: bold;
}

.scan_info {
    font-size: 0.8em;
    padding-bottom: 5px;
    color: var(--tertiary-button);
}

.clear {
    clear: both;
}

#download_prompt {
    text-align: center;
    font-size: 1.3em;
    padding: 15px;
    color: white;
    margin-bottom: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#download_prompt .thank_you_text {
    font-size: 1.44em; /* 20% larger than the parent's 1.2em */
}

.game-image {
    display: block;
    margin: 0 auto 20px;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Game UI Button Styles */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 30px;
    height: 52px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.15em;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
    font-family: 'Futura-PT-Bold', 'Arial', sans-serif;
    margin: 15px 0;
}

.button .icon {
    margin-right: 8px;
    height: 24px;
    width: 24px;
    fill: currentColor;
}

.primary-button {
    background-color: var(--primary-button);
    color: var(--text-primary);
}

.primary-button:hover {
    background-color: #ff8624;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
}

.secondary-button {
    background-color: var(--secondary-button);
    color: var(--text-secondary);
}

.secondary-button:hover {
    background-color: #ffc426;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
}

.tertiary-button {
    background-color: var(--tertiary-button);
    color: var(--text-primary);
}

.tertiary-button:hover {
    background-color: #0070bc;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
}

.negative-button {
    background-color: var(--negative-button);
    color: var(--text-primary);
}

.negative-button:hover {
    background-color: #ff1a1a;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
}

.app_store_links {
    text-align: center;
    padding: 20px 0;
    width: 100%;
    background-color: transparent;
    margin: 20px auto;
    max-width: 650px;
}

.app_store_badge {
    max-height: 50px;
    padding: 5px;
    margin: 0 10px;
    transition: transform 0.3s ease;
}

.app_store_badge:hover {
    transform: scale(1.05);
}

.thank_you_text {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: none;
    font-size: 1.2em; /* 20% larger */
}

#android_message {
    color: white;
    font-weight: normal;
    padding: 15px 25px;
    border-radius: 10px;
    background-color: rgba(0, 15, 30, 0.75);
    margin: 5px auto 20px;
    max-width: 650px;
    width: 90%;
    text-align: center;
    text-transform: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(13, 153, 223, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    line-height: 1.4;
}

#apk_download_message {
    color: var(--tertiary-button);
    padding: 10px;
    margin: 5px auto 15px;
    max-width: 80%;
    text-align: center;
}

.apk_download_section {
    margin: 20px auto;
    padding: 0 0 15px 0;
    border-radius: 10px;
    background-color: rgba(0, 15, 30, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-width: 650px;
    width: 90%;
    text-align: center;
    overflow: hidden;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.install-header {
    background-color: #0D99DF;
    color: white;
    font-family: 'Futura-PT-Bold', 'Arial', sans-serif;
    padding: 10px;
    margin: 0 0 15px 0;
    text-align: center;
    border-radius: 10px 10px 0 0;
    text-transform: none;
    font-size: 1.2em;
}

.apk_install_warning {
    max-width: 90%;
    margin: 10px auto;
    border-radius: 5px;
}

.apk_download_button {
    display: inline-block;
    background-color: var(--primary-button);
    color: var(--text-primary);
    font-weight: bold;
    padding: 0 24px;
    height: 40px;
    line-height: 40px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1.2em;
    margin: 10px auto;
    box-shadow: 0 3px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.apk_download_button:hover {
    background-color: #ff8624;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
}

.apk_instructions {
    color: var(--text-primary);
    font-size: 1em;
    margin: 15px 0 5px 0;
    padding: 0 20px;
    line-height: 1.4;
    text-align: left;
    opacity: 0.9;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: white;
    border-radius: 50%;
    color: #0D99DF;
    font-weight: bold;
    margin-right: 8px;
    margin-top: 2px;
    font-family: 'Futura-PT-Bold', 'Arial', sans-serif;
    font-size: 0.9em;
    flex-shrink: 0;
}

.installation-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}

.step-content {
    flex: 1;
}

@media (max-width: 768px) {
    .page-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        flex-direction: row;
        justify-content: space-around;
        padding: 10px 0;
        position: sticky;
        top: 0;
        z-index: 100;
    }
    
    .sidebar-item {
        padding: 5px 0;
        font-size: 0.8em;
    }
    
    .sidebar-icon {
        width: 30px;
        height: 30px;
    }
    
    .main-content {
        padding: 10px;
    }
    
    .header-card {
        margin-bottom: 15px;
    }
    
    .header-title, .header-value {
        padding: 10px 15px;
        font-size: 1.2em;
    }
    
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .qr_code {
        min-width: 120px;
        max-width: 120px;
    }

    .window {
        width: 95%;
        padding: 15px;
    }

    h2 {
        font-size: 1.5em;
        padding-bottom: 15px;
    }
    
    .logo {
        max-width: 200px;
    }
}