* {
    font-family: "Roboto", sans-serif;
    color: white;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    width: 100%;
    height: 100vh;

    display: grid;
    grid-template-columns: min-content 1fr;
}

button {
    border: none;

    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;

    background-color: #757575;
}

/* file upload button */
input[type="file"]::file-selector-button {
    border-radius: 4px;
    padding: 0 16px;
    height: 35px;
    cursor: pointer;
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.16);
    box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.05);
    margin-right: 16px;
    transition: background-color 200ms;
}

/* file upload button hover state */
input[type="file"]::file-selector-button:hover {
    background-color: #f3f4f6;
}

/* file upload button active state */
input[type="file"]::file-selector-button:active {
    background-color: #e5e7eb;
}





.navbar {
    display: flex;
    flex-direction: column;

    font-size: 2.1em;
    background-color: #232323;
    color: white;

    border-right: 2px solid #535353;
}

.title {
    border-bottom: 2px solid #535353;
    white-space: nowrap;
    text-align: center;
    padding-top: 8px;
    padding-bottom: 8px;
}

.navbar>button {
    background-color: #444444;
    font-size: 16px;

    white-space: nowrap;
}

.navbar>button:hover {
    background-color: #757575;
}

.navbar>button.active {
    text-decoration: underline;
}

#toggleBigNavbarBtn {
    position: relative;
    left: 100%;
    width: min-content;
    height: 29px;
    padding: 0px 15px 1px 15px;
}

#bigNavTopEl {
    margin-top: -29px;
}

.container {
    padding: 8px;
    background-color: #161616;
    overflow-x: hidden;
}

.panel-title {
    text-align: center;
    font-size: 2.1em;
    margin: 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #535353;
}

.msg {
    text-align: center;
    margin: 0;
    margin-top: 8px;
}




.file-upload-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0;

    border-bottom: 2px solid #535353;
}

.file-upload-form>* {
    margin-bottom: 5px;
}

.file-upload-form>div {
    display: flex;
}

.file-upload-form button {
    width: fit-content;
    font-size: 1em;

    background-color: #6ebf6e;
    border-radius: 6px;
    padding: 11px 28px;
}





.race-data-header {
    display: flex;
    justify-content: space-evenly;
}

#driver-race-data-name {
    font-weight: 700;
}

.user-data {
    display: flex;
    justify-content: space-evenly;
}

.user-data table {
    width: 40%;
    height: min-content;

    text-align: center;
}

.canvas-dim {
    width: 60%;
    height: 500px;
}






/* Telemetry Race Data */
#telemetry-race-data-panel {
    padding: 8px;
    padding-left: 0;
}

#telemetry-panel-screen {
    display: grid;
    grid-template-columns: min-content min-content 1fr;
}

.data-navigation {
    overflow: hidden;
    display: grid;
    grid-template-columns: min-content min-content min-content min-content;
    margin-right: 2px;
}

.data-navigation p {
    font-size: 1em;
    margin: 8px 10px;
    margin-top: 0;
}

.data-nav-list>* {
    font-size: 0.9em;
    padding: 5px 7px;
    background-color: rgb(114, 114, 114);
    border: 1px solid black;
}

.data-nav-list>button {
    width: 100%;
    white-space: nowrap;
}

.data-nav-list>.active {
    background-color: rgb(127, 223, 127);
}

#toggleNavBar {
    height: 29px;
    padding: 0px 15px 1px 15px;
    margin: 5px 0;
    margin-right: 8px;
    margin-top: 0;
}

.data-visualisation {
    overflow-x: hidden;
    grid-column: 3;
}

.canvas-wrapper {
    position: relative;
    height: 1000px;
}

#lap-map-wrapper {
    height: 500px;
}

.lap-selection-focus-btns.active {
    background-color: rgb(255, 99, 132);
}


.lap-selection-best-btns.active {
    background-color: rgb(161, 240, 137);
}

.data-display {
    display: grid;
    width: 100%;
    grid-template-columns: auto 500px;
}