@font-face {
    font-style: normal;
    font-weight: normal;
    font-family: 'Roboto_Mono';
    src: url(../fonts/RobotoMono-VariableFont_wght.ttf) format('truetype');
}

.negatif {
    mix-blend-mode: difference;
}

.invert {
    filter: invert(100%);
    -webkit-filter: invert(100%);
}

body {
    background-color: white;
    size: 22.5px;
    font-family: 'Roboto_Mono', Times, serif;
    margin: 0;
}

header {
    position: fixed;
    text-align: right;
    width: 100%;
    padding-right: 50px;
    padding-top: 20px;
    box-sizing: border-box;
    top: 0;
    z-index: 100000;
}

h1 {
    font-family: Times, serif;
    font-weight: bolder;
    font-size: 50px;
    padding: 0px;
    margin: 0px;
    text-align: left;
    line-height: 95%;
}

h2 {
    font-family: Times, serif;
    padding: 0px;
    margin-bottom: 10px;
    font-size: 12.5px;
    text-align: right;
}

h3 {
    font-family: Times, serif;
    font-size: 250px;
    font-weight: bolder;
    color: black;
    margin: 0;
    line-height: 180px;
}

h4 {
    size: 22.5px;
    font-family: 'Roboto_Mono';
    text-align: center;
    display: contents;
    font-weight: 100;
}

.text-width-max {
    margin: auto;
    max-width: 800px;
    text-align: center;
}

p {
    font-family: Times, serif;
    margin-left: 10%;
    text-align: justify;
    font-size: 22.5px;
    hyphens: auto;
    margin-bottom: 0;
}

p:not(.first-paragraph) {
    text-indent: 30px;
    margin-top: 0;
}

img {
    width: 100%;
    height: auto;
}

.image-container {
    position: relative;
    background-color: white;
}

.image-Edith {
    width: 20%;
    position: absolute;
    top: 0;
}

.on .image-Edith {
    visibility: hidden;
}

#portrait1 {
    top: 50px;
    right: 50px;
    transform: rotate(3deg);
    filter: invert(100%);
}

#portrait2 {
    top: 600px;
    left: 250px;
    transform: rotate(5deg);
}

.image-title {
    z-index: -1000;
    text-align: center;
}

.shema-container {
    position: relative;
}

.white-background {
    background-color: white;
}

.black-background {
    background-color: black;
}

.hide-text {
    visibility: hidden;
}

.calculatrice {
    width: 100%;
    padding-top: 100px;
    position: absolute;
}

.parent {
    padding-top: 160px;
    padding-bottom: 100px;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
}

.article1 {
    width: 40%;
    padding: 10px;
    border: 2px solid black;
    margin: 0px;
    background-color: white;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    transform: rotate(3deg);
}

.article2 {
    width: 47%;
    padding: 10px;
    border: 2px solid black;
    margin: 0px;
    background-color: white;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    transform: rotate(-2deg);
}

.fixed {
    position: fixed;
    top: 10px;
    left: 30px;
    z-index: 1;
}

.on .fixed {
    z-index: -1;
}

.top {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
}

.off {
    background-color: black;
    color: white;
    animation-play-state: paused;
}

.on {
    background-color: white;
    color: black;
    animation-play-state: running;
}

.button-container {
    text-align: center;
    padding: 20px;
}

.button {
    font-family: 'Roboto_Mono', Times, serif;
    height: 300px;
    width: 300px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 10vh;
    border-radius: 50%;
    border-style: solid;
}

.button:hover {
    border-color: black;
}

.button:active {
    transform: translateY(4px);
    border: none;
    outline: none;
}

.paused {
    animation-play-state: paused;
}

.rotate1 {
    animation: rotation1 4s infinite linear;
    transform-origin: 56.1% 76.75%;
}

@keyframes rotation1 {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(90deg);
    }
    50% {
        transform: rotate(40deg);
    }
    75% {
        transform: rotate(50deg);
    }
    90% {
        transform: rotate(30deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

.rotate2 {
    animation: rotation2 4s infinite linear;
    transform-origin: 56.1% 76.75%;
}

@keyframes rotation2 {
    0% {
        transform: rotate(-10deg);
    }
    40% {
        transform: rotate(80deg);
    }
    75% {
        transform: rotate(-70deg);
    }
    80% {
        transform: rotate(70deg);
    }
}

.rotate3 {
    animation: rotation3 4s infinite linear;
    transform-origin: 56.1% 76.75%;
}

@keyframes rotation3 {
    0% {
        transform: rotate(200deg);
    }
    25% {
        transform: rotate(20deg);
    }
    40% {
        transform: rotate(60deg);
    }
    75% {
        transform: rotate(140deg);
    }
    80% {
        transform: rotate(20deg);
    }
    100% {
        transform: rotate(200deg);
    }
}


/* SVG ANIMATION */

#shema .st0 {
    fill: none;
    stroke: #1D1D1B;
    stroke-width: 2;
    stroke-miterlimit: 10;
}

#shema .st1 {
    fill: none;
    stroke: #1D1D1B;
    stroke-width: 2;
    stroke-linejoin: round;
}

#shema .st2 {
    display: none;
}

#shema .st3 {
    display: inline;
}

#shema .st4 {
    fill: #1D1D1B;
}

#shema .st0 {
    stroke-dasharray: 800;
    stroke-dashoffset: 0;
    -webkit-animation: dash 6s linear forwards;
    -o-animation: dash 6s linear forwards;
    -moz-animation: dash 6s linear forwards;
}

#shema .st1 {
    stroke-dasharray: 800;
    stroke-dashoffset: 0;
    -webkit-animation: dash 6s linear forwards;
    -o-animation: dash 6s linear forwards;
    -moz-animation: dash 6s linear forwards;
}

#shema .st2 {
    stroke-dasharray: 800;
    stroke-dashoffset: 0;
    -webkit-animation: dash 6s linear forwards;
    -o-animation: dash 6s linear forwards;
    -moz-animation: dash 6s linear forwards;
}

#shema .st3 {
    stroke-dasharray: 800;
    stroke-dashoffset: 0;
    -webkit-animation: dash 6s linear forwards;
    -o-animation: dash 6s linear forwards;
    -moz-animation: dash 6s linear forwards;
}

#shema .st4 {
    stroke-dasharray: 800;
    stroke-dashoffset: 0;
    -webkit-animation: dash 6s linear forwards;
    -o-animation: dash 6s linear forwards;
    -moz-animation: dash 6s linear forwards;
}

@-webkit-keyframes dash {
    from {
        stroke-dashoffset: 800;
    }
    to {
        strole-dashoffset: 0;
    }
}

#shema-txt .st0 {
    display: none;
}

#shema-txt .st1 {
    display: inline;
    fill: none;
    stroke: #1D1D1B;
    stroke-width: 2;
    stroke-miterlimit: 10;
}

#shema-txt .st2 {
    display: inline;
    fill: none;
    stroke: #1D1D1B;
    stroke-width: 2;
    stroke-linejoin: round;
}

#shema-txt .st3 {
    fill: #1D1D1B;
}


/* The switch - the box around the slider */

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}


/* Hide default HTML checkbox */

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}


/* The slider */

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: black;
    -webkit-transition: .4s;
    transition: .4s;
}

.on .slider:before {
    background-color: white;
}

input:checked+.slider {
    background-color: black;
}

input:focus+.slider {
    box-shadow: 0 0 1px black;
}

input:checked+.slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}


/* Rounded sliders */

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

@media screen and (max-width:1435px) {
    h1 {
        font-size: 40px;
    }
    h2 {
        font-size: 12.5px;
    }
    h3 {
        font-size: 180px;
    }
    h4 {
        size: 15px;
    }
    p {
        font-size: 20px;
    }
}

@media screen and (max-width:1045px) {
    .article1 {
        width: 80%;
        margin-bottom: 50px;
        transform: rotate(-3deg);
    }
    .article2 {
        width: 80%;
        transform: rotate(3deg);
    }
    #portrait1 {
        top: 20px;
        transform: rotate(-3deg);
    }
    #portrait2 {
        top: 20px;
        transform: rotate(-3deg);
        top: 200px;
        left: 50px;
    }
    h1 {
        font-size: 40px;
    }
    h2 {
        font-size: 12.5px;
    }
    h3 {
        font-size: 120px;
    }
    h4 {
        size: 15px;
    }
    p {
        font-size: 20px;
    }
}

@media screen and (max-width:715px) {
    .article1 {
        width: 80%;
    }
    .article2 {
        width: 80%;
    }
    #portrait1 {
        top: 20px;
        transform: rotate(-3deg);
    }
    #portrait2 {
        top: 20px;
        transform: rotate(-3deg);
        top: 200px;
        left: 50px;
    }
    h1 {
        font-size: 40px;
    }
    h2 {
        font-size: 12.5px;
    }
    h3 {
        font-size: 100px;
    }
    h4 {
        size: 15px;
    }
    p {
        font-size: 20px;
    }
    .text-width-max {
        max-width: 600px;
    }
}