.diagram-column {
    position: relative;
}

.wrapper {
    position: relative;
    width: 100%;
    height: 0;
}

.line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.29);
    z-index: 0;
}

.first-line {
    top: -1370px;
    height: 1400px;
    transform: rotate(-30deg);
    transform-origin: bottom center;
}

.second-line {
    top: -60px;
    height: 440px;
}

.third-line {
    top: -90px;
    height: 200vh;
    transform: rotate(50deg);
    transform-origin: top center;
}

.fourth-line {
    transform-origin: bottom center;
    top: -560px;
    height: 500px;
}

.first-button-group {
    z-index: 2;
    transform: rotate(-30deg);
    margin-top: 60px !important;
    margin-left: -20px !important;
}

.first-cubes-group {
    margin-top: 100px;
    display: flex;
    flex-direction: column;
}

.second-cubes-group {
    margin-top: 65px !important;
    display: flex;
    flex-direction: column;
}

.first-cubes-group,
.second-cubes-group {
    margin-left: 170px !important;
}

.second-buttons-wrapper {
    margin-top: -10px !important;
    margin-left: 200px !important;
}

.second-button-group-content {
    z-index: 2;
}

.third-button-group {
    margin-top: 180px;
    margin-left: 0px !important;
    transform: rotate(45deg);
}

@media (min-width: 1800px) {
    .first-button-group {
        margin-left: clamp(0px, 6vw, 300px);
    }

    .third-button-group {
        margin-left: clamp(0px, 7vw, 300px);
    }
}


@media (min-width: 1900px) {
    .first-button-group {
        margin-left: clamp(0px, 6vw, 300px);
    }
}

@media (min-width: 2000px) {
    .first-button-group {
        margin-left: clamp(0px, 5vw, 300px) !important;
    }

    .third-button-group {
        margin-top: 300px !important;
        margin-left: clamp(0px, 5vw, 300px) !important;
    }
}

@media (min-width: 2300px) {
    .first-button-group {
        margin-left: clamp(0px, 25vw, 300px) !important;
    }
}

@media (max-width: 1700px) {
    .first-button-group {
        max-width: 400px !important;
        margin-left: 150px !important;
    }

    .first-cubes-group,
    .second-cubes-group {
        margin-left: 300px !important;
    }

    .second-buttons-wrapper {
        margin-left: 300px !important;
    }

    .second-button-group-content {
        max-width: 400px !important;
    }

    .third-button-group {
        max-width: 400px !important;
        margin-top: -40px !important;
        margin-left: 100px !important;
        margin-bottom: 100px !important;
    }

    .second-line {
        height: 570px;
    }
}

@media (max-width: 1550px) {
    .first-button-group {
        max-width: 400px !important;
        margin-left: 50px !important;
    }
}

@media (max-width: 1700px) and (min-width: 1400px) {
    .first-button-group {
        margin-left: clamp(0px, 8vw, 300px);
    }
}

@media (min-width: 1360px) {
    #double-arrows-icon {
        display: none !important;
    }
}

@media (max-width: 1360px) {
    .diagram-column {
        order: 0;
        padding-top: 0 !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .first-button-group {
        margin-left: clamp(0px, 15vw, 300px);
    }

    .third-button-group {
        margin-left: clamp(0px, 12vw, 300px);
    }

    .first-line {
        transform: rotate(-6deg);
        height: 1300px;
    }

    .second-line {
        top: -60px;
        height: 400px;
    }

    .third-line {
        top: -50px;
        height: 600px;
        transform: rotate(15deg);
        transform-origin: top center;
    }

    .fourth-line {
        display: none;
    }

    .first-cubes {
        display: none;
    }

    .second-cubes {
        display: none;
    }

    #double-arrows-icon {
        transform: translateX(26px);
    }

    .first-button-group,
    .first-cubes-group,
    .second-cubes-group,
    .third-button-group,
    .second-buttons-wrapper {
        transform: rotate(0deg);
        max-width: 500px !important;
        margin: 0 !important;
    }

    .first-button-group-content,
    .second-button-group-content,
    .third-button-group-content {
        margin: 0 !important;
        padding: 0 !important;
    }

    .first-button-group {
        transform: rotate(-6deg);
        padding-right: 50px !important;
        padding-top: 30px !important;
    }

    .first-button-group-content>.wp-block-buttons:nth-child(1) .diagram-frontpage-button,
    .first-button-group-content>.wp-block-buttons:nth-child(2) .diagram-frontpage-button,
    .first-button-group-content>.wp-block-buttons:nth-child(3) .diagram-frontpage-button,
    .first-button-group-content>.wp-block-buttons:nth-child(5) .diagram-frontpage-button {
        transform: translateX(20%);
    }

    .first-cubes-group,
    .second-cubes-group {
        padding-left: 70px !important;
        padding-bottom: 30px !important;
    }

    .second-button-group-content>.wp-block-buttons:nth-child(3) .diagram-frontpage-button a.wp-block-button__link {
        width: 250px !important;
    }

    .second-button-group-content>.wp-block-buttons:nth-child(4) .diagram-frontpage-button {
        transform: rotate(-4deg) translateX(-20%);
    }

    .third-button-group {
        transform: rotate(6deg);
        padding-bottom: 70px !important;
    }

    .third-button-group-content>.wp-block-buttons:nth-child(3) .diagram-frontpage-button {
        transform: translateX(-6%);
    }

    .third-button-group-content>.wp-block-buttons:nth-child(3) .diagram-frontpage-button a.wp-block-button__link {
        width: 340px !important;
    }
}

@media (max-width: 768px) {
    .second-line {
        height: 350px !important;
    }

    .third-line {
        margin-top: -20px !important;
    }
}

@media (max-width: 1150px) and (min-width: 768px) {
    #double-arrows-icon {
        transform: translateX(29px);
    }
}

@media (max-width: 768px) and (min-width: 420px) {
    #double-arrows-icon {
        transform: translateX(35px);
    }
}

@media (max-width: 419px) {
    #double-arrows-icon {
        transform: translateX(33px);
    }
}

@media (max-width: 420px) {
    .third-button-group-content>.wp-block-buttons:nth-child(3) .diagram-frontpage-button a.wp-block-button__link {
        width: 220px !important;
    }

    .second-button-group-content>.wp-block-buttons:nth-child(4) .diagram-frontpage-button {
        transform: rotate(-4deg) translateX(-5%);
    }
}

.first-cubes {
    margin: 0;
    transform: translateX(15px);
}

.second-cubes {
    margin-top: 100px;
}


/* Eventos por que text */

.eventos-por-que-group {
    position: absolute;
    top: 80px;
    right: 70px;
}

.eventos-por-que-paragraph {
    max-width: 220px;
    text-align: justify;
}

.eventos-por-que-image {
    position: absolute;
    top: -20px;
    right: -95px;
    z-index: 2;
}

@media (max-width: 1360px) {
    .eventos-por-que-group {
        position: relative !important;
        padding-bottom: 0px !important;
        padding-top: 47px !important;
        padding-right: 75px !important;
        padding-left: 25px !important;
        top: 0;
        right: 0;
        display: flex;
        align-items: center;
        z-index: 1;
    }

    .eventos-por-que-paragraph {
        max-width: 264px !important;
    }
}


/* Citat */

.citat-columns {
    position: absolute;
    top: 715px;
    right: 135px;
}

@media (max-width: 1700px) {
    .citat-columns {
        top: 680px;
        right: 30px;
    }
}

@media (max-width: 1360px) {
    .citat-columns {
        display: none !important;
    }
}

/* Skub "Find jeres mærkesager" yderligere mod højre i den tredje gruppe */
.third-button-group-content .find-maerkesager-shift {
    margin-left: 130px !important;
}
