/* Variable for brand colors */
:root {
    --brand-purple: #7733FF;
    --ripple-pink: #bc2566;
    --brand-blue: #33BBFF;
}

html,
body,
#map-canvas {
    height: 100%;
    margin: 0;
    padding: 0;
}

html,
body {
    background: var(--brand-purple);
}

#map-canvas {
    height: calc(100% - 50px);
    background-color: #fff;
}

#wordmark {
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

h1 {
    font-family: 'Montserrat-Alt1', Arial, sans-serif;
    font-size: 27px;
    font-weight: 300;
    color: #eff0fa;
    margin: 0;
    text-transform: uppercase;
    margin-top: 4px;
}

h1 a {
    color: #eff0fa;
    text-decoration: none;
}

h1 svg {
    vertical-align: middle;
    height: 30px;
    margin-bottom: 8px;
    margin-right: -2px;
}

h1 svg polygon,
h1 svg polyline {
    stroke: var(--brand-blue);
}

h1 svg circle {
    fill: var(--brand-blue);
}

/* Side panel for athlete filtering */
#side-panel {
    position: absolute;
    top: 50px;
    left: 0;
    width: 250px;
    height: calc(100% - 50px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    padding: 10px;
}
#side-panel.collapsed {
    left: -255px;
}

#side-panel.collapsed > #side-panel-content {
    display: none;
}

#side-panel h2 {
    font-family: 'Montserrat-Alt1', Arial, sans-serif;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--brand-purple);
}

#side-panel label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    margin-top: 10px;
    color: var(--brand-purple);
}
#side-panel select {
    width: 100%;
    padding: 5px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 3px;
}
#side-panel select[multiple] {
    height: calc(90vh - 250px);
    overflow-y: auto;
}

/* Side panel collapse button */
#side-panel-collapse-button {
    position: absolute;
    top: calc((100% - 50px) / 2);
    right: -30px;
    width: 30px;
    height: 50px;
    padding: 10px 0;
    background: var(--brand-purple);
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    z-index: 1001;
}

/* Side panel icons */
#side-panel-icons {
    position: absolute;
    top: 10px;
    right: 0;
    font-size: 24px;
    width: 50px;
    text-align: center;
    display: none;
}
#side-panel.collapsed > #side-panel-icons {
    display: block;
}

/* Name label for markers */
.name-label {
    width: 60px;
    height: 20px;
    font-size: 12px;
    color: white;
    background: rgba(0, 0, 0, .7);
    border: 2px solid black;
    border-radius: 3px;
    top: -28px;
    left: -20px;
    position: absolute;
    overflow: hidden;
    text-align: center;
}

.name-label.small {
    width: 38px;
    left: -15px;
}

/* Event time when in demo mode */
.demo #event-time {
    position: absolute;
    right: 5px;
    bottom: 37px;
    font: 12px / 20px Helvetica Neue, Arial, Helvetica, sans-serif;
    background: rgba(255, 255, 255, 0.8);
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 1;
}