@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
:root {
    --primary: #1d1d1d;
    --secondary: #2e2e2e;
    --text: #efefef;
}
* {
    margin: 0;
}
@font-face {
    font-family: 'Grenadine MVB';
    font-weight: bold;
    src: url('/fonts/grenadine_bold.ttf');
}
@font-face {
    font-family: 'Operator Mono';
    src: url('/fonts/opmono.otf');
}
h1, h2, h3, h4, h5 {
    font-family: 'Grenadine MVB', sans-serif;
}
body {
    background-color: var(--primary);
    color: var(--text);
    font-family: 'Inter', sans-serif;
}
main {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 100vh;
}
a {
    color: var(--text);
    text-decoration: none;
}
footer {
    background-color: #0e0e0e;
    padding: 20px;
    display: flex;
    box-sizing: border-box;
}
code {
    padding: 2px;
    background-color: #2e2e2e;
    border: 1px solid #555;
    border-radius: 4px;
    font-size: 11pt;
    font-family: 'Operator Mono', monospace;
}
pre {
    padding: 10px;
    background-color: #2e2e2e;
    border: 1px solid #555;
    border-radius: 4px;
    font-size: 11pt;
    font-family: 'Operator Mono', monospace;
}
.ui-header {
    align-items: center;
    display: flex;
    flex: 1 1;
    gap: 20px;
    padding: 20px;
    z-index: 99;
}
.ui-main-container {
    padding: 20px;
    padding-top: 0;
}
.ui-timeattack-leaderboard {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}
.ui-timeattack-record {
    position: relative; /* Needed to anchor the pseudo-element */
    overflow: hidden;   /* Keeps the blur from bleeding outside the corners */
    border-radius: 8px;
    padding: 15px;
    display: flex;
    gap: 20px;
    color: white;       /* Ensure text stays visible */
}

.ui-timeattack-record::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    
    /* Move your background styles here */
    background-image: url('/img/course.webp');
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
    background-color: rgba(0, 0, 0, 0.6);
    
    /* Use filter: blur instead of backdrop-filter */
    filter: blur(2px);
    
    /* Scale it up slightly to hide the unblurred white edges */
    transform: scale(1.1);
    z-index: -1; /* Puts the image behind your content */
}
.ui-timeattack-record-placement {
    font-family: 'Grenadine MVB', sans-serif;
    font-size: 24pt;
}
.ui-timeattack-record-leftflex {
    display: flex;
    gap: 20px;
    align-items: center;
}
.ui-timeattack-record-rightflex {
    display: flex;
    flex-direction: column;
}
.ui-timeattack-record-colflex {
    display: flex;
    flex-direction: column;
}
.ui-timeattack-record-playername {
    font-weight: bold;
    font-size: 16pt;
}
.ui-timeattack-record-time {
    font-family: 'Operator Mono', monospace;
    font-size: 24pt;
    font-weight: bold;

    /* 1. The Gradient Fill */
    background-image: linear-gradient(90deg, #7a7a7a 0%, #e0e0e0 50%, #969696 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    /* 2. The Outside Stroke (using drop-shadows to simulate an outer border) */
    /* This creates a 2px black outline that does NOT overlap the inside */
    filter: 
        drop-shadow(2px 0 0 #000) 
        drop-shadow(-2px 0 0 #000) 
        drop-shadow(0 2px 0 #000) 
        drop-shadow(0 -2px 0 #000)
}
.ui-timeattack-record-time.loss {
    background-image: linear-gradient(90deg, #d20000 0%, #ff5353 50%, #ba0000 100%);
}
.ui-timeattack-record-time.win {
    background-image: linear-gradient(90deg, #00477a 0%, #538cff 50%, #004dba 100%);
}
.ui-player-record {
    display: flex;
    gap: 20px;
    align-items: center;
    background-color: #2e2e2e;
    padding: 15px;
    border-radius: 8px;
}
.ui-player-record-leftflex, .ui-player-record-rightflex {
    display: flex;
    gap: 5px;
    flex-direction: column;
}
.ui-player-record-name {
    font-weight: bold;
    font-size: 24pt;
}
.ui-player-record-title {
    font-weight: bold;
    padding: 5px 10px;
    font-size: 12pt;
    border-radius: 20px;
    background-color: #ac9200;
}
.footer-leftflex, .footer-rightflex {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-legalnotice, .footer-legalnotice a {
    font-size: 12px;
    color: #555;
}
.hosters-logo {
    display: flex;
    gap: 10px;
}
.hosters-logo a img {
    height: 48px;
    width: auto;
}