.ui-section {
    margin: 4px;
    padding: 4px;
    border: 1px solid #75757554;
    background: linear-gradient(#48405300,#0026396b);
}

.ui-item {
    border-bottom: 1px solid #00000059;
    padding: 10px;
    width: fit-content;
    display: inline-block;
}

.ui-item label {
    display: block;
}

.debugui {
    font-size: 11px;
    font-family: Courier;
    background-color: #00ff341c;
}

#bettingPanel, #raceHistory {
    margin: 0;
}

#raceWeekContainer {
}

#raceWeekInfoSection1 > li {
    display: inline-block;
}

#settings {
    position: static;
    border: 1px solid #ff6000;
}

/* OLD LAYOUT STYLES - REMOVED */
/* #game-container { ... } */
/* #left-panel, #right-panel { ... } */
/* #left-panel { ... } */
/* #left-panel::-webkit-scrollbar { ... } */
/* #left-panel::-webkit-scrollbar-track { ... } */
/* #left-panel::-webkit-scrollbar-thumb { ... } */


/* NEW RACE SCREEN STYLES */
.race-screen-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    overflow: hidden;
}

.race-screen-container canvas {
    display: block;
    width: 100%;
    height: 100%;
}

#race-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#race-overlay > * {
    pointer-events: all;
}

#race-overlay #endRaceNow {
    position: absolute;
    bottom: 20px;
    right: 20px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

#race-overlay #endRaceNow:hover {
    opacity: 1;
}

.race-screen-container .action-lines-memphis {
    z-index: 0;
}

.race-screen-container #raceCanvas {
    z-index: 1;
    position: relative;
}

.race-screen-container #race-overlay {
    z-index: 2;
}