/* #region GLOBAL */
/* #### Mise en forme adapté à tous support #### */
@import url('https://fonts.googleapis.com/css2?family=Saira+Stencil+One&family=Saira:wght@100;300;600&display=swap');

body {
    --color_grey: #e1e1e1;
    --color_coyote: #dac5ba;
    --color_green: #6e7969;
    --color_purple: #CF2B2B;
    --color_night: #272727;
    --color_kaki: #6E7969;
    --color_warning: orange;
    display: flex;
    margin: 0;
    background-color: var(--color_coyote);
    font-family: Saira, Arial, Helvetica, sans-serif;
    font-size: 2vh;
}
/* #endregion */

/* #region FORMULAIRE & INFOS */
#MessScreen {
    position: fixed;
    display: flex;
    flex-direction: column;
    height: 87%;
    width: calc(100vw - 50px);
    overflow: auto;
    margin: 15px;
    padding: 10px;
    border-radius: 15px;
    z-index: 10;
    background-color: #6e7969f7;
    color: var(--color_grey);
}
#MessScreen h2 {
    margin: 0;
    text-align: center;
}
#MessScreen > img {
    position: fixed;
    right: 30px;
    height: 2em;
    cursor: pointer;
}
form > p {
    max-width: 500px;
    margin: 5px;
    text-align: center;
}
form fieldset {
    margin: 5px;
    max-width: 500px;
    box-sizing: border-box;
}
form legend {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--color_night);
}
fieldset p {
    margin: 0px;
    text-decoration: underline;
}
input {
    max-width: 500px;
    margin: 5px;
    border: 2px solid var(--color_grey);
    background-color: initial;
    color: var(--color_grey);
    font-size: 1em;
    font-weight: bold;
}
input[type="datetime-local"] {
    min-width: 180px;
    height: 1em;
}
input[type="text"] {
    width: 200px;
}
select {
    font-size: 1em;
}
input[type="time"] {
    min-width: 52px;
    height: 1em;
}
.errorFF {
    color: var(--color_warning);
    font-size: 0.9em;
    font-style: italic;
    display: none;
}
#infos {
    display: none;
    text-align: center;
}
#infos hr {
    border-color: var(--color_night);
}
#infos p:nth-child(2) {
    margin-top: 0;
    font-style: italic;
}
#infos ul {
    list-style-type: none;
}
#infos li img {
    height: 1em;
}
#infos img {
    height: 10em;
}
/* #endregion */

/* #region MENU */
header {
    display: flex;
    min-height: 3.2em;
    width: 100vw;
    justify-content: space-around;
    background-color: var(--color_night);
}
button {
    height: calc(100% - 10px);
    width: auto;
    margin: 5px 10px;
    padding: 0;
    background-color: transparent;
    border: none;
    cursor: pointer;
}
button img {
    height: 100%;
}
h1 {
    color: var(--color_grey);
    font-family: Saira Stencil One, Arial;
    height: 1.5em;
}
.cap {
    text-transform: capitalize;
}
.red {
    color: var(--color_purple);
}
/* #endregion */

/* #region TIMELINE */
#timeline, #counter {
    box-sizing: border-box;
}
#timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 4vh 0;
}
#front-bar, #back-bar {
    position: absolute;
    width: 16px;
}
#back-bar {
    height: calc(100% - 2.2em);
    z-index: 0;
    margin: 1.1em calc(50% - 8px);
    border-radius: 8px;
    background-color: var(--color_green);
}
#front-bar {
    border-radius: 8px 8px 0px 0px;
    background-color: var(--color_purple);
}
.stud {
    display: flex;
    flex-direction: row;
    position: relative;
    z-index: 5;
    align-items: center;
}
.left-stud, .right-stud {
    flex: 1;
    /*margin: auto;*/
}
.left-stud {
    text-align: right;
}
.middle-stud{
    width: 45px;
}
.right-stud {
    text-align: left;
}
.circle-plot {
    height: 15px;
    width: 15px;
    margin: auto;
    border: 4px solid var(--color_night);
    border-radius: 10px;
    background-color: var(--color_grey);
}
.title-stud {
    font-size: 1.5em;
    font-weight: bold;
}
.comment-stud {
    font-style: italic;
    color: var(--color_green);

}
.eventRod {
    display: flex;
    flex-direction: row;
    position: absolute;
    top: 169px;
    z-index: 5;
    align-items: center;
}
.rod-plot {
    width: 20px;
    margin: auto;
    border: 3px solid var(--color_night);
    border-radius: 10px;
}
.title-event {
    font-size: 1.2em;
}
/* #endregion */

/* #region BARRE SEPARATION */
#rode {
    display: flex;
}
#rode > div {
    background-color: var(--color_night);
    border: 3px solid var(--color_night);
    border-radius: 10px;
    margin: auto;
}
/* #endregion */

/* #region COMPTEUR */
#counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
#counter p {
    margin: 0;
    line-height: 1.1em;
}
#count {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
#count p:nth-child(1) {
    grid-row: 1/3;
    font-size: 5em;
    text-align: right;
    font-weight: bold;
}
#count p:nth-child(2) {
    display: flex;
    align-items: end;
    margin-left: 0.3em;
    font-size: 2.5em;
    font-weight: bold;
}
#count p:nth-child(3) {
    display: flex;
    position: relative;
    margin-left: 1.5em;

}
#count p:nth-child(4) {
    grid-column: 1/3;
    font-size: 1.2em;
    text-align: center;
    font-weight: bold;
}
#time {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 90%;
}
#time p:nth-child(2) {
    text-align: right;
}
#timeArea2 {
    display: inline-block;
    text-align: left;
    margin-left: auto;
}
/* #endregion */

/* #### Mise en forme adapté aux desktops #### */
@media screen and (min-width: 950px) {
    body {
        flex-wrap: wrap;
    }
    h1 {
        margin: auto;
    }
    #MessScreen {
        top: 3em;
    }
    #timeline, #counter {
        height: 85vh;
        width: 49%;
    }
    #timeline {
        order: 4;
    }
    #rode {
        order: 3;
        width: 2%;
    }
    #rode > div {
        height: 80%;
        width: 2px;
    }
    #counter {
        order: 2;
        font-size: 1.5em;
    }
    #time {
        margin-top: 1em;
    }
}

/* #### Mise en forme adapté aux mobiles #### */
@media screen and (max-width: 949px) {
    body {
        flex-direction: column;
        margin-bottom: 3.3em;
    }
    header {
        position: fixed;
        bottom: 0px;
    }
    button {
        display: flex;
    }
    h1 {
        position: relative;
        top: -12px;
        margin: 0;
        padding: 0 10px;
        border-radius: 10px;
        background-color: var(--color_coyote);
        font-size: 1.7em;
        color: var(--color_night);
    }
    #timeline {
        height: 60vh;
    }
    #rode {
        height: 3vh;
    }
    #rode > div {
        height: 0px;
        width: 80%;
    }
    #counter {
        height: 18vh;
    }
    #time p {
        font-size: 1.2em;
    }
}