@font-face {
    font-family: 'senregular';
    src: url('sen-regular-webfont.woff2') format('woff2'),
         url('sen-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

body {
    background-color: rgb(42, 42, 46);
    font-family: senregular, Helvetica , Calibri, "Arial Black", Arial, sans-serif;
}

#conteneur
{
    margin: -8px;
}

h1, h2, h3, h4, h5 {
    color: #1d1d4f;
}

article h1 {
    font-size: 30px;
    text-align: left;
    margin-left: 20px;
    color: #399adc;
}

article p
{
    text-align: justify;
    color: #1d1d4f;
    font-size: 20px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    line-height : 1.8;
}

article img{
    margin-left: auto;
    margin-right: auto;
}

button {
    min-height: 40px;
    width: 170px;
    border-style: solid;
    border-width: 1px;
    border-color: #1d1d4f;
    border-radius: 5px;
    text-transform: uppercase;
    font-size: 18px;
    font-weight: bold;
    color: #1d1d4f;
    background-color: rgba(0,0,0,0);
    transition-duration: 0.4s;
    margin: 12.5px;
}

button:hover {
    background-color: #1d1d4f;
    color: white;
}

.warning {
    background-color: white;
    text-align: center;
}

.radio_button {
    color: white;
    font-size: 20px;
    text-align: center;
}

.radio_button > label:first-of-type{
    padding-right: 20px;
}

.radio_button_map {
    position: absolute;
    top: 0px;
    left: 9%;
    right: 0%;
    background-color: rgb(42, 42, 46, 0.8);
    padding: 8px;
    z-index: 1;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;

}

@media only screen and (min-width : 1250px) {
    article {
        position: absolute;
        top: 65px;
        bottom: 45px;
        left:15%;
        right: 15%;
        width: 70%;
        overflow: scroll;
        background-color: white;
        padding: 15px;
        margin-top: 3px;
        margin-left: auto;
        margin-right: auto;
    }

    header {
        height: 65px;
        background-color: white;
        border-bottom: 3px solid transparent;
        border-image: linear-gradient(90deg, rgba(168,87,208,1) 0%, rgba(57,154,220,1) 76%, rgba(136,207,255,1) 100%);
        border-image-slice: 1;
    }

    .nav_div {
        position: absolute;
        height: 65px;
        left: 0%;
        right:50%;
        display: flex;
        align-items: center;
    }

    .nav_div img {
        height: 100%;
        padding: 0px;
    }

    .nav_div a {
        height: 100%;
    }

    nav {
        width: 60%;
        display: flex;
        text-align: center;
        justify-content: space-evenly;
    }

    .info_div {
        position: absolute;
        height: 65px;
        left: 50%;
        right:0%;
        text-align: center;
    }

    .app_footer {
        height: 45px;
        display: flex;
        align-items: center;
        background-color: white;
        position: fixed;
        left: 0;
        bottom: 0;
        width: 100%;
        border-top: 3px solid transparent;
        border-image: linear-gradient(90deg, rgba(168,87,208,1) 0%, rgba(57,154,220,1) 76%, rgba(136,207,255,1) 100%);
        border-image-slice: 1;
    }

    .app_footer a {
        height: 100%;
        padding: 0px;
        padding-right: 15px;
    }

    .app_footer img {
        height: 70%;
        padding: 7px;
    }

    #map {
        position: absolute;
        margin-top: 3px;
        top: 64px;
        bottom: 45px;
        left:0%;
        right: 50%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: -1;
    }

    .map_div {
        width: 100%;
        height: 100%;
    }

    .search_box {
    position: absolute;
    top: 15%;
    left: 37%;
    width: 35%;
    z-index:1;
    }

    #graph {
        position: absolute;
        top: 65px;
        bottom: 45px;
        left:50%;
        right: 0%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .plot {
        width: 100%;
        height: 100%;
    }

    .station_name {
        top: 0px;
    }

    .stats_data {
        bottom: 0px;
        text-align:center;
    }
}

@media only screen and (max-width : 1249px) {
    .home{
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        justify-content: center;
    }

    #map {
        order: 3;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .map_div {
        width: 100vw;
        height: 620px;
    }

    .radio_button_map {
        position: relative;
        top: 29px;
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-between;
        width: 90%;
        left: 4.5%;
    }


    .search_box {
    position: absolute;
    top: 88%;
    left: 37.2%;
    width: 35%;
    z-index:1;
    }

    .plot {
        width: 100vw;
        height: 500px;
    }

    article {
        overflow: scroll;
        background-color: white;
        padding-right: 15px;
    }

    header {
        background-color: white;
        border-bottom: 3px solid transparent;
        border-image: linear-gradient(90deg, rgba(168,87,208,1) 0%, rgba(57,154,220,1) 76%, rgba(136,207,255,1) 100%);
        border-image-slice: 1;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav_div {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
    }

    .nav_div img {
        height: 60px;
        padding: 10px;
    }

    nav {
        display: flex;
        text-align: center;
        flex-wrap: wrap;
        justify-content: space-evenly;
    }

    .info_div {
        display:flex;
        align-items: center;
        text-align: center;
    }

    .app_footer {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-around;
        background-color: white;
        border-top: 3px solid transparent;
        border-image: linear-gradient(90deg, rgba(168,87,208,1) 0%, rgba(57,154,220,1) 76%, rgba(136,207,255,1) 100%);
        border-image-slice: 1;
    }

    .app_footer a {
        height: 30px;
        margin: 10px;
    }

    .app_footer img {
        height: 100%;
    }
}

@media (pointer: fine) and (hover: hover) {
    .warning {
        display: none;
    }
}

@media only screen and (pointer: coarse) and (hover: none) and (min-width : 1250px){
    .home{
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        justify-content: center;
    }

    .warning {
        height: 70px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .warning h3 {
        margin: 0px;
    }

    #map {
        position:absolute;
        top: 138px;
        bottom : 48px;
        margin:0px;
    }

    #graph {
        position:absolute;
        top: 138px;
        bottom : 48px;
    }
}

@media only screen and (pointer: coarse) and (hover: none) and (max-width : 690px){
    .search_box {
        position: absolute;
        top: 135%;
        left: 37.2%;
        width: 35%;
        z-index:1;
    }
}