@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&display=swap');

.ibm-plex-mono-regular {
    font-family: "IBM Plex Mono", monospace;
    font-weight: 400;
    font-style: normal;
}

.ibm-plex-mono-medium {
    font-family: "IBM Plex Mono", monospace;
    font-weight: 500;
    font-style: normal;
}

body {
    background: #5BCEFA;
    background: linear-gradient(135deg, rgba(91, 206, 250, 1) 0%, rgba(91, 206, 250, 1) 10%, rgba(245, 169, 184, 1) 50%, rgba(255, 255, 255, 1) 90%, rgba(255, 255, 255, 1) 100%);
    font-family: "IBM Plex Mono";
    text-align: justify;
}

footer {
    text-align: center;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

h1 {
    font-size: 24px;
    animation: textcolor 2s linear infinite;
}

h2 {
    font-size: 20px;
    text-decoration: underline;
    animation: textcolor 2s linear infinite;
    animation: textgradient 10s linear infinite;
}

@keyframes textcolor {
    0% {
        color: #002e5f;
    }

    50% {
        color: black;
    }

    100% {
        color: #002e5f;
    }
}

@keyframes textgradient {
    0% {
        text-decoration-color: #FF3B30;
    }

    20% {
        text-decoration-color: #FF6A00;
    }

    30% {
        text-decoration-color: #FF8C42;
    }

    40% {
        text-decoration-color: #00C853;
    }

    50% {
        text-decoration-color: #00E5A8;
    }

    60% {
        text-decoration-color: #00B8D9;
    }

    70% {
        text-decoration-color: #4D96FF;
    }

    80% {
        text-decoration-color: #7B61FF;
    }

    90% {
        text-decoration-color: #C77DFF;
    }

    100% {
        text-decoration-color: #FF3B30;
    }
}

.divexemple {
    display: flex;
    margin-bottom: 20px;
    align-items: center;
}

.textexemple {
    margin-left: 20px;
    font-style: italic;
    text-align: justify;
}

.italique {
    font-style: italic;
}


.bold {
    font-weight: bold;
}

.spacer {
    height: 20px;
}

.content {
    padding-left: 20px;
}

.section .content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s, opacity 0.2s, transform 0.2s;
    opacity: 0;
    transform: translateY(-20px);
}

.section.active .content {
    max-height: 400px;
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    background: aliceblue;
    margin: 0;
    padding: 1em;
    cursor: pointer;
    user-select: none;
}

#titreintro {
    padding-left: 20px;
}

#introcontent {
    padding-left: 40px;
}

#container {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    border: solid red 5px;
    border-radius: 15px;
    padding: 20px;
    background-color: aliceblue;
    max-width: 1000px;
    max-height: 1000px;
    animation: bordergradient 10s linear infinite;
}

@keyframes bordergradient {
    0% {
        border-color: #FF3B30;
    }

    20% {
        border-color: #FF6A00;
    }

    30% {
        border-color: #FF8C42;
    }

    40% {
        border-color: #00C853;
    }

    50% {
        border-color: #00E5A8;
    }

    60% {
        border-color: #00B8D9;
    }

    70% {
        border-color: #4D96FF;
    }

    80% {
        border-color: #7B61FF;
    }

    90% {
        border-color: #C77DFF;
    }

    100% {
        border-color: #FF3B30;
    }
}

#divheader {
    margin-top: -15px;
}

#divfooter {
    display: flex;
    width: fit-content;
    margin: auto;
}

#icon {
    width: 24px;
    height: 24px;
    padding-top: 14px;
    padding-left: 10px;
}

#returnlink {
    padding-top: 14px;
    padding-left: 10px;
}

#exemple1 {
    height: 80px;
}

#exemple2 {
    height: 240px;
}

@media only screen and (max-width: 760px),
(min-device-width: 768px) and (max-device-width: 1024px) {

    h1 {
        font-size: 20px;
    }

    h2 {
        font-size: 16px;
    }

    p {
        font-size: 14px;
    }

    #container{
        position: relative;
        max-height: 15000px;
        min-height: 90dvh;
        height: fit-content;
    }

    .divexemple {
        display: flex;
        margin-bottom: 20px;
        align-items: center;
        flex-direction: column;
    }

    .section.active .content {
    max-height: 15000px;
    opacity: 1;
    transform: translateY(0);
}

footer {
    margin-top: 50px;
}

#divfooter{
    margin-top: 50px;
}
}