
/*information style 1*/
@keyframes fadeInAnimation {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

main {
    animation: fadeInAnimation ease 3s;
    animation-iteration-count: 1;
    animation-fill-mode: backwards;
}

main {
    display: table;
    position: absolute;
    height: 100%;
    left: 20%;
    width: 80%;
    text-align: left;
}

main > div {
    display: table-cell;
}
  
.boxleft {
    vertical-align: top;
    width: 50%;
    padding: 3vw;
    padding-top: .5vw;
    opacity: 100%;
    border:none;
    border-left:1px solid rgb(154, 154, 154);
}

.boxright {
    vertical-align: top;
    width: 50%;
    padding: 3vw;
    padding-top: .5vw;
    opacity: 100%;
    transition-duration: 1000ms;
    border:none;
    border-left:1px solid rgb(154, 154, 154);
}

.titre {
    font-size: 3vw;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: normal;
    font-stretch: semi-expanded;
}

.m1 {
    font-size: 1.8vw;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: normal;
    font-stretch: normal;
    margin-bottom: 0;
    margin-top: 2vw;
}

.m2 {
    font-size: .9vw;
    font-weight: normal;
    font-stretch: semi-condensed;
    text-align: justify;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    margin-top: 1vw;
    margin-bottom: 1vw;
}

.refblock {
    font-size: 1.2vw;
    text-align: center;
    color: gray;
    border: 0;
    border-top:1px solid rgb(154, 154, 154);
}

.ref {
    font-size: .9vw;
    font-weight: normal;
    color: black;
    font-stretch: semi-condensed;
    text-align: center;
    overflow: hidden;
    line-height: 1.3;
    border-bottom:1px solid rgb(154, 154, 154);

}
.ref:hover{
    font-size: .9vw;
    font-weight: bold;
    transition-duration: 500ms;
}

li {
    font-size: .9vw;
    line-height: 1.5vw;
    font-weight: normal;
    font-stretch: semi-condensed;
    text-align: justify;
    margin-left: 1vw;
    margin-right: 1vw;
}

ul{
    padding-inline-start: 2vw;
    padding-inline-end: 0vw;
}

.carte{
    filter: invert(0);
}

form, label {
    display: block;
    font-size: 1vw;
    font-weight: bold;
    font-stretch: semi-condensed;
    margin-bottom: .1vw;
    margin-top: 1vw;

}

@media screen and (max-width: 800px) {

    main {
        position: relative;
        display: block;
        width: 100%; /* The width is 100%, when the viewport is 800px or smaller */
        left: 0;
        align-items: center;
    }

    main > div {
        display: block;
    }

    .boxleft {
        width: 90%;
        padding: 5%;
        margin-top: 10vw;
        border: 0;
        border-top:1px solid rgb(154, 154, 154);
    }

    .boxright {
        width: 90%;
        padding: 5%;
        border:0;
    }
    
    .titre {
        font-size: 7vw;
        text-align: center;
        margin-bottom: 1vw;
        margin-top: 10vw;

    }
    .m1 {
        font-size: 6vw;
        text-align: center;
        text-align-last: center;
        margin-top: 6vw;
        margin-bottom: 2vw;
        margin-left: 10%;
        margin-right: 10%;
    }
    
        /*main style 2*/
    .m2 {
        font-size: 3vw;
        text-align-last: center;
        padding-left: 0;
        line-height: 5vw;
        margin-top: 2.5vw;
        margin-bottom: 1vw;
        margin-left: 10%;
        margin-right: 10%;
    }

    .ref, .ref:hover {
        display: contents;
        font-size: 3vw;
        padding-top: 2vw;
        margin-top: 3vw;
        margin-bottom: 3vw;
    }

    .refblock{
        display: block;
        font-size: 4vw;
        margin-top: 5vw;
    }


    p, a, u {
        display: block;
    }

    li {
        font-size: 3vw;
        text-align: justify;
        text-align-last: center;
        padding-left: 0;
        line-height: 5vw;
        margin-top: 2.5vw;
        margin-bottom: 1vw;
        margin-left: 10%;
        margin-right: 10%;
    }

}

@media (prefers-color-scheme: dark) {

    .boxleft, .boxright {
        background-color : #1c1c1e ;
    }
    
    .ref{
        color : white;
    }

    .carte{
        filter: invert(.8);
    }

}