@import "charte.css";

* {
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg);
    width: 100vw;
    min-height: 100vh;
    color: black;
    font-family: "Source Sans 3";
    font-weight: 300;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--txt-h);
    font-family: Quando;
}

header {
    width: calc(100% - 2rem);
    margin: 1rem 0;
    padding: 0.5rem 0;
    background-color: var(--color-red-3);
    border-radius: 1.5rem;
    text-align: center;
    max-width: 64rem;
    & > img {
        width: 100%;
        max-width: 500px;
        height: auto;
    }
}

main {
    padding: 3rem;
    width: calc(100% - 6rem);
    max-width: 64rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

footer {
    width: 100%;
    background-color: var(--color-orange-3);
    padding: 0.5rem 0;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    gap: 1rem;
}

section {
    width: 100%;
    display: flex;
    &.right {
        flex-direction: row-reverse;
    }
    &.left {
        flex-direction: row;
    }
    justify-content: space-around;
    & > span {
        display: flex;
        flex-direction: column;
        &.text {
            gap: 1rem;
            width: 70%;
        }
        &.img {
            width: 30%;
        }
        &:not(.text, .img) {
            gap: 1rem;
            width: 100%;
            text-align: center;
        }
    }
}

.line-through {
    overflow: hidden;
    text-align: center;

    &:before,
    &:after {
        background-color: var(--txt-h);
        content: "";
        display: inline-block;
        height: 1px;
        position: relative;
        vertical-align: middle;
        width: 50%;
    }

    &:before {
        right: 0.5em;
        margin-left: -50%;
    }

    &:after {
        left: 0.5em;
        margin-right: -50%;
    }
}

ol {
    padding-left: 1.5rem;
}

div#download {
    display: flex;
    justify-content: center;
    a.button {
        font-weight: 600;
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        justify-content: center;
        align-items: center;
        padding: 1rem 1.5rem;
        border-radius: 0.8rem;
        background-color: var(--color-orange-2);
        color: var(--color-orange-6);
        text-decoration: none;
        outline: solid 3px var(--color-orange-3);
        transition: background-color 0.25s;
        &:is(:hover, :active, :focus, :focus-visible) {
            background-color: var(--color-orange-3);
        }
    }
}

details {
    user-select: none;
    & > span {
        padding-right: 0.1rem;
    }
}

@media (max-width: 714px) {
    main {
        width: calc(100% - 3rem);
    }

    section {
        &:is(.right, .left) {
            flex-direction: column;
            align-items: center;
        }
        & > span {
            &.text {
                width: 100%;
            }
            &.img {
                max-height: 20rem;
                text-align: center;
            }
        }
    }
}
