:root {
    --color-0-10: red;
    --color-11-20: blue;
    --color-21-30: green;
    --color-31-40: yellow;
    --color-41-50: orange;
    --color-51-60: purple;
    --color-61-70: pink;
    --color-71-80: brown;
    --color-81-90: gray;
    --color-91-99999999: black;
    --basic-color: black;
}

html {
    font-size: 62.5%;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
    position: relative;
}

.wrapper {
    padding: 1rem;

    &.result {
        background-color: #EEEEEE;
    }
}

body {
    font-family: 'Segoe UI', sans-serif;
    font-size: 2rem;
    margin: 0;
    padding: 0;
}

h1,
h2 {
    margin: 2rem auto;
    text-align: center;
}

.btn {
    &:hover {
        opacity: .8;
        color: white !important;
    }
}

.btn-primary {
    margin: 20px auto;
}

.btn-reset {
    background-color: #c00000 !important;
}

/* ============== */
/* RESULTS */
/* ============== */
.result-wrapper {
    width: 95%;
    max-width: 1124px;
    margin: 0 auto;
}

.result-header {
    background-color: #fff;

    .result-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 3rem;
    }
}

.result-container {
    width: 100vw;
    max-width: 1920px;
    margin: 0 auto;

    .hero-section {
        background-color: #2083C8;
        background-size: cover;
        background-position: center;
        color: white;
        padding: 3rem 2rem;
        text-align: left;
        border-radius: 6px;
        position: relative;
        margin-bottom: 2.5rem;
        aspect-ratio: 1920/710;

        h1 {
            font-size: 5rem;
            margin: 0;
            color: #fff;
            text-align: left;

            span {
                display: block;
                font-size: 3rem;
                font-weight: normal;
            }
        }
    }

    .chassez-banner {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin: 8vw 0 0 0;

        p {
            background-color: #c00000;
            color: white;
            padding: 1.5rem 2rem;
            display: block;
            font-size: 4rem;
            font-weight: bold;
            margin: 0 0 -15px;
            position: relative;
            z-index: 1;
            transform: rotate(-4deg);
            transform-origin: 0 0;
            position: relative;
            z-index: 2;

            &.black {
                background-color: #000;
                font-size: 3rem;
                margin: 0 0 0 20px;
                z-index: 1;
                padding-bottom: 0;

                &:last-of-type {
                    padding-top: 0;
                    padding-bottom: 1.5rem;
                    margin-left: 25px;
                }
            }
        }
    }

    .print-button-container {
        position: relative;
        z-index: 2;
        text-align: right;
        margin: -5rem 0 2rem;

        .print-button {
            background-color: #fff;
            color: #333;
            border: 1px solid #ccc;
            padding: 1rem 1.5rem;
            border-radius: 10px;
            cursor: pointer;
            font-size: 3rem;
            font-weight: bold;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);

            img {
                width: 40px;
                height: 40px;
                vertical-align: middle;
                margin-right: 0.8rem;
            }
        }
    }

    h3 {
        font-size: 3rem;
        margin-top: 0;
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;

        &.borded {
            padding-right: 4rem;
            display: inline-block;
            border-bottom: 1px solid #707070;
        }

        strong {
            color: #FF2D32;
        }
    }

    .result-details {
        margin-top: -130px;
        position: relative;
        z-index: 2;

        @media screen and (max-width: 1570px) {
            margin-top: 20px;
        }
    }

    .analysis-details {
        display: flex;
        justify-content: space-between;
        gap: 2rem;

        @media screen and (max-width: 1024px) {
            flex-direction: column;
        }

        >div {
            flex: 1;
        }

        .results {
            border-left: 1px solid #707070;

            @media screen and (max-width: 1024px) {
                border: 0 none transparent;
                order: -1;
            }

        }

        .results-box {
            text-align: center;

            h3 {
                font-size: 4rem;
                font-weight: bold;
            }

            .result-status {
                display: inline-block;
                background-color: #fff;
                border: 3px solid #FF2D32;
                color: #FF2D32;
                padding: 1.2rem 11rem;
                font-size: 3rem;
                font-weight: bold;
                border-radius: 38px;
                margin-bottom: 1rem;

                &.negatif {
                    border-color: #6FCF00;
                    color: #6FCF00;
                }
            }

            .result-kit-info {
                font-size: 1.6rem;
                font-weight: normal;
                color: #777;
            }
        }
    }

    .identification {
        h3 {
            font-size: 3rem;
            font-weight: normal;
            border-bottom: 1px solid #707070;
            display: inline-block;
            padding-right: 4rem;

            strong {
                font-weight: bold;
                color: #FF2D32;
            }
        }

        p {
            font-size: 3rem !important;
            margin: 2rem 0 0;
        }
    }

    .result-section {
        background-color: #fff;
        padding: 4rem;
        border-radius: 6px;
        margin-bottom: 2.5rem;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);

        h3.card__title {
            font-size: 3rem;
            font-weight: bold;
            margin-top: 0;
            padding-bottom: 1.5rem;
            margin-bottom: 1.5rem;
            padding-right: 4rem;
            display: inline-block;
            border-bottom: 1px solid #707070;
        }

        p,
        ul li {
            font-size: 2rem;
            line-height: 1.6;
            color: #555;
            margin-top: 0;
        }

        ul {
            list-style: disc;
            padding-left: 2rem;
            margin-top: 0.5rem;
        }

        strong {
            color: #333;
        }
    }

    .results-columns-container {
        display: flex;
        gap: 2rem;

        @media screen and (max-width: 1024px) {
            flex-direction: column;
            gap: 0;
        }

        >div {
            flex: 1;
        }
    }
}

.result-footer {
    background-color: #EEEEEE;
    padding: 1rem 0;

    p {
        margin: 0 0 1rem;
        font-size: 1.2rem;
    }

    a {
        text-decoration: underline;
        color: inherit;
    }
}

.only-screen {
    display: block;
}

.only-print {
    display: none;
}

table.table {
    font-size: 1.2rem;
}

/* Media query for print */
@media print {
    html {
        font-size: 31.25%;
    }

    .only-screen {
        display: none;
    }

    .only-print {
        display: block;
    }

    * {
        box-shadow: none !important;
    }

    .hero-section {
        aspect-ratio: auto;
        height: auto;
        margin: 0;
    }

    .hero-section .result-wrapper,
    .result-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
    }

    .hero-section .result-wrapper img {
        max-width: 114px;
    }

    .result-footer img {
        max-width: 125px;
    }

    .result-details {
        margin-top: 0;
    }

    .analysis-details,
    .result-section {
        border: 1px solid #707070;
    }
}