@import url("bootstrap-icons.css");

html,
body {
    font-family: Helvetica, Arial, sans-serif;
    height: 100%;
}

#menu {
    position: absolute;
    right: 0;
    width: auto;
    z-index: 200;
}

.validation-error {
    border-color: coral;
}

#control-area {
    color: white;
    font-size: min(2vh, 12px);
    position: absolute;
    bottom:10vh;
    height: 35vh;
    width: 100vw;
    z-index: 102;
    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
    grid-template-columns: 1fr 1fr 1fr;
    align-content: center;
    justify-content: center;
}

#control-area>div {
    background-color: #8888;
    display: grid;
    border: 1px solid gray;
    justify-content: center;
    align-content: center;
}

#control-area2 {
    color: white;
    font-size: min(2vh, 12px);
    position: absolute;
    bottom: 0;
    height: 10vh;
    width: 100vw;
    z-index: 102;
    display: flex;
    align-items: center;
    justify-content: center;
}
#control-area2>div {
    display: grid;
    width: 100%;
    height: 100%;
    text-align: center;
    background-color: #8888;
    align-items: center;
}

#trail {
    width: 100%;
}
#info {
    position: relative;
    color: white;
    position: fixed;
    top: 0px;
    left: 0px;
    text-align: left;
    z-index: 100;
    display: block;
    font-size: 12px;
    font-family: monospace;
    background: #8888;
    padding: 5px;
}

#info div {
    width: min(30vw, 200px);
    font-size: calc(11px + 0.5vmin);
}

#fps {
    float: left;
}

#elapsed {
    float: right;
}

.progress {
    background: #888;
    margin-bottom: 1px;
    font-size: inherit;
    height: auto;
}

.progress-bar {
    padding: 0 2px;
    overflow: visible;
}

#compass {
    color: white;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 3vh;
    width: 5vh;
    height: 5vh;
    z-index: 110;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3vh;
    border: 1px solid white;
    border-radius: 50%;
    cursor: pointer;
}

#compass::before {
    content: "N";
    font-size: 2vh;
    font-weight: 900;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -2.5vh;
}

#compass div {
    font-weight: 900;
}

#igc-range {
    position: absolute;
    bottom: 1vh;
    width: 100%;
    z-index: 2;
}

#fps {
    position: absolute;
    bottom: 2px;
    left: 40%;
}

#veil {
    position: absolute;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    left: 0;
    top: 0;
}

#version {
    font-size: min(4vmin, 18px);
    position: fixed;
    cursor: pointer;
    color: dodgerblue;
    z-index: 103;
    bottom: 14px;
    right: 4px;
}

#version_detail {
    display: none;
    font-family: monospace;
    font-size: min(6vmin, 18px);
    padding: 1vmin 3vmin;
    background: #fffc;
    font-weight: 100;
    position: absolute;
    cursor: pointer;
    z-index: 103;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    text-wrap: nowrap;
    border-radius: 0.25rem;
    box-shadow: 1vmin 1vmin 1vmin #0008;
}
