html, body, #app {
    overscroll-behavior-y: none;
    overflow: hidden;
}

body {
    background-color: #3b3b3f;
    font-family: 'Courier New', 'Roboto', Arial, sans-serif;
    color: white;
    margin: 0;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid black;
    /* no select */
    user-select: none;
}

#app {
    margin: 0 auto;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}  

/* Mobile emulation on Desktop */
@media (pointer: fine) {
    #app {
        border: 1px solid #666;
        border-radius: 37px;
        margin: 20px auto;
        max-width: 390px;
        max-height: 844px;
    }
}

#title {
    line-height: 2;
    font-size: 1.5em;
    word-spacing: 100vw;
    
    width: 150px;
}

.page {
    display: none;
    width: 80%;
    /* height: 50%; */
    min-height: 50%;
    max-height: 95%;
    overflow-y: auto;
    background-color: black;
    color: white;
    padding: 20px;
    border-radius: 37px;
    line-height: 1.2;
}

.page a {
    color: white;
    font-weight: bold;
}

.btn-primary {
    padding: 10px;
    border: 1px solid #EEE;
    border-radius: 2px;
    background-color: black;
    color: white;
    cursor: pointer;
    font-family: 'Courier New', 'Roboto', Arial, sans-serif;
    font-size: 1.2em;
    margin-top: 20px;
}

.btn-page {
    width: 100%;
}

.btn-dev-parcours, 
.btn-dev-parcours2 {
    position: absolute;
    top: 0;
    padding: 10px;
    border: 1px solid #EEE;
    border-radius: 2px;
    background-color: black;
    color: white;
    cursor: pointer;
    font-family: 'Courier New', 'Roboto', Arial, sans-serif;
    font-size: 1.2em;
}

.btn-dev-parcours2 {
    right: 0;
}

.input-page {
    width: 50%;
    margin: auto;
    padding: 10px;
    border: 1px solid #EEE;
    border-radius: 2px;
    background-color: black;
    color: white;
    font-family: 'Courier New', 'Roboto', Arial, sans-serif;
    font-size: 1.2em;
    margin-top: 20px;
}

#rdvdistance {
    opacity: 0.7;
}

/* #sas-code {
    width : 140px;
} */

input[type=number].input-page::-webkit-inner-spin-button, 
input[type=number].input-page::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}

.input-page:disabled,
.btn-page:disabled {
    opacity: 0.5;
    cursor: wait;
}

/* GEOLOCATION */
#checkgeo-select {
    display: none;
    margin-top: 60px;
    opacity: 0.5;
}

/* SIDEPANEL: fixed on the right, show on swipe left */
#sidepanel {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80vh;
    background-color: grey;
    color: white;
    box-shadow: -2px 0 5px rgba(0,0,0,0.5);
    transform: translateY(95%);
    transition: transform 0.3s ease-in-out;
    border-top: 3px solid pink;
    z-index: 1000;
}

#sidepanel h4 {
    text-align: center;
    color: black;
    padding: 10px 20px;
    margin: 0;
}

#logs {
    background-color: white;
    color: black;
    padding: 10px;
    margin: 10px;
    width: calc(100% - 20px);
    border-radius: 5px;
    height: calc(100% - 60px);
    overflow-y: auto;
    box-sizing: border-box;
}




/* PARCOURS SELECT ul li*/

#select {
    text-align: center;
}

#select-parcours {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 50%;
    overflow-y: auto;
    margin-bottom: 20px;
}

#select-parcours li {
    margin: 10px;
    padding: 10px;
    border: 1px solid #EEE;
    border-radius: 2px;
    background-color: black;
    color: white;
    width: 80%;
    text-align: center;
    cursor: pointer;
}

#select-parcours li.testparcours {
    opacity: 0.5;
}

#select-parcours li.active {
    background-color: #222;
}

/* start button : arrow image */
#select-parcours-start
 {
    width: 80px;
    height: 80px;
    background-image: url('/images/arrow-right.png?1');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-color: black;
    border: 0px;
    cursor: pointer;
}

#select-parcours-start-simulate {
    opacity: 0.3;
}

/* PARCOURS */
#parcours {
    width: 100%;
    height: 90%;
}

#parcours-map {
    height: 70%;
    transition: opacity 1.5s;
}

#parcours-lost {
    opacity: 0.5;
}

.position-icon {
    border-radius: 50%;
    background-color: green;
}

/* MISC */
.leaflet-control-attribution {
    display: none;
}

/* TOP CENTER ABSOLUTE */
#gps-status {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 1000;
    opacity: 0.8;
}

#resume-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

#resume-button {
    padding: 20px 40px;
    font-size: 1.5em;
    background-color: #2c2c2c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}