﻿/* RESET STYLES & HELPER CLASSES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
:root {
    --level-1: #8dccad;
    --level-2: #f5cc7f;
    --level-3: #7b9fe0;
    --level-4: #f27c8d;
    --black: black;
}

:root {
    --fira-sans: "Fira Sans", sans-serif;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

ol {
    list-style: none;
}


.container {
    max-width: 1000px;
    padding: 0 10px;
    margin: 0 auto;
}

.rectangle {
    position: relative;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}


/* LEVEL-1 STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.level-1 {
    width: 50%;
    text-align: center;
    font-size: 26px;
    margin: 0 auto 40px;
    background: #F84411;
    border-radius: 10px;
    color: white;
}

    .level-1::before {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: 40px;
        background: var(--black);
    }


/* LEVEL-2 STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.level-2-wrapper {
    position: relative;
    display: grid;
    margin-right: -100px;
    margin-left: -100px;
    text-align: center;
    grid-template-columns: repeat(6, 1fr);
}

    .level-2-wrapper::before {
        content: "";
        position: absolute;
        top: -1px;
        left: 7%;
        width: 86%;
        height: 1px;
        background: var(--black);
    }

    .level-2-wrapper::after {
        display: none;
        content: "";
        position: absolute;
        left: -20px;
        bottom: -20px;
        width: calc(100% + 20px);
        height: 2px;
        background: var(--black);
    }

    .level-2-wrapper li {
        position: relative;
    }

    .level-2-wrapper > li::before {
        content: "";
        position: absolute;
        bottom: 95%;
        left: 50%;
        transform: translateX(-50%);
        width: 1px;
        height: 35px;
        background: var(--black);
    }

.level-2 {
    font-weight: 500;
    width: 96%;
    height: 155px;
    font-size: 23px;
    padding-top: 28px;
    margin: 31px auto 42px;
    background: #dad4c1;
    color: #212529;
    border-radius: 10px;
    background-image: url(../images/pattern-11.png);
}



    .level-2::before {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: 23px;
        background: var(--black);
    }

    .level-2::after {
        display: none;
        content: "";
        position: absolute;
        top: 50%;
        left: 0%;
        transform: translate(-100%, -50%);
        width: 20px;
        height: 2px;
        background: var(--black);
    }



/* LEVEL-2 STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.level-21-wrapper {
    position: relative;
    display: grid;
    margin-right: -100px;
    margin-left: -100px;
    text-align: center;
    grid-template-columns: repeat(6, 1fr);
}

    .level-21-wrapper::before {
        content: "";
        position: absolute;
        top: -1px;
        left: 8%;
        width: 84%;
        height: 1px;
        background: var(--black);
    }

    .level-21-wrapper::after {
        display: none;
        content: "";
        position: absolute;
        left: -20px;
        bottom: -20px;
        width: calc(100% + 20px);
        height: 2px;
        background: var(--black);
    }

    .level-21-wrapper li {
        position: relative;
    }

    .level-21-wrapper > li::before {
        content: "";
        position: absolute;
        bottom: 94%;
        left: 50%;
        transform: translateX(-50%);
        width: 1px;
        height: 32px;
        background: var(--black);
    }

.level-21 {
    font-weight: 500;
    width: 96%;
    height: 155px;
    font-size: 23px;
    padding-top: 28px;
    margin: 31px auto 42px;
    background: #dad4c1;
    color: #212529;
    border-radius: 10px;
    background-image: url(../images/pattern-11.png);
}



    .level-21::before {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: 20px;
    }

    .level-21::after {
        display: none;
        content: "";
        position: absolute;
        top: 50%;
        left: 0%;
        transform: translate(-100%, -50%);
        width: 20px;
        height: 2px;
        background: var(--black);
    }


/* LEVEL-3 STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.level-3-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 20px;
    width: 100%;
    margin: -52px auto;
}

    .level-3-wrapper::before {
        content: "";
        position: absolute;
        top: 31px;
        left: calc(24% - 5px);
        width: calc(52% + 10px);
        height: 2px;
        background: var(--black);
    }

    .level-3-wrapper > li::before {
        content: "";
        position: absolute;
        top: 3px;
        left: 50%;
        transform: translate(-50%, -100%);
        width: 2px;
        height: 20px;
        background: var(--black);
    }

.level-3 {
    margin-bottom: 20px;
    font-size: 20px !important;
    font-weight: 300 !important;
    color: white !important;
    border-radius: 10px;
    background: #FF5C2E;
}

/* LEVEL-5 STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.level-5-wrapper {
    position: relative;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 20px;
    width: 90%;
    margin: 0 auto;
}

    .level-5-wrapper::before {
        content: "";
        position: absolute;
        top: -22px;
        left: calc(26% - 5px);
        width: calc(59% + 10px);
        height: 2px;
    }

    .level-5-wrapper > li::before {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        transform: translate(-50%, -100%);
        width: 2px;
        height: 20px;
        background: var(--black);
    }

.level-5 {
    margin-bottom: 20px;
    font-size: 20px !important;
    font-weight: 300 !important;
    color: white !important;
    background: #FF5C2E;
    border-radius: 10px;
}
/* LEVEL-4 STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.level-4-wrapper {
    position: relative;
    width: 80%;
    margin-left: auto;
}

    .level-4-wrapper::before {
        content: "";
        position: absolute;
        top: -20px;
        left: -20px;
        width: 2px;
        height: calc(100% + 20px);
        background: var(--black);
    }

    .level-4-wrapper li + li {
        margin-top: 20px;
    }

.level-4 {
    font-weight: normal;
    background: var(--level-4);
}

    .level-4::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 0%;
        transform: translate(-100%, -50%);
        width: 20px;
        height: 2px;
        background: var(--black);
    }


/* MQ STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
@media screen and (max-width: 700px) {
    .rectangle {
        padding: 20px 10px;
    }

    .level-1,
    .level-2 {
        width: 100%;
    }

    .level-1 {
        margin-bottom: 20px;
    }

        .level-1::before,
        .level-2-wrapper > li::before {
            display: none;
        }

    .level-2-wrapper,
    .level-2-wrapper::after,
    .level-2::after {
        display: block;
    }

    .level-2-wrapper {
        width: 90%;
        margin-left: 10%;
    }

        .level-2-wrapper::before {
            left: -20px;
            width: 2px;
            height: calc(100% + 40px);
        }

        .level-2-wrapper > li:not(:first-child) {
            margin-top: 50px;
        }
}


/* FOOTER
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.page-footer {
    position: fixed;
    right: 0;
    bottom: 20px;
    display: flex;
    align-items: center;
    padding: 5px;
}

    .page-footer a {
        margin-left: 4px;
    }
