.diagram-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: end;
    padding: 40px 0;
    margin-left: 7%;
    user-select: none;
}

.section {
    display: flex;
    flex-direction: row;
    align-items: center; /* Added to center content vertically */
    justify-content: space-between;
    /*width: 100%; !* Added to ensure full width *!*/
}

.section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.arrow-section {
    opacity: 0;
    transition: opacity 0.4s ease-out;
    transition-delay: 0.3s;
}

.arrow-section.visible {
    opacity: 1;
}


.diag-image-col {
    padding: 10px;
    width: 100px;
    height: 100px;
}

.diag-entity-col {
    width: 30%;
    display: flex;
    flex-direction: column;
}

.diag-regulation-col {
    width: 30%;
    display: flex;
    flex-direction: column;
}

.diag-entity-header {
    font-size: 1em;
    margin-bottom: 10px;
}

.diag-entity-description {
    font-style: italic;
    font-size: 0.7em;
}

.regulation-header {
    font-size: 1em;
    margin-bottom: 15px;
}

.regulation-list {
    list-style: none;
    padding: 0;
    font-size: 0.7em;
}

.regulation-list li {
    margin-bottom: 8px;
}

.regulation-list li:last-child {
    margin-bottom: 0;
}

.arrow-section {
    margin: 15px 0;
    height: 40px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.arrow {
    width: 2px;
    display: inline;
    height: 100%;
    background: #666666;
    position: relative;
}

.arrow::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: -4px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 10px solid #666666;
}

.arrow-label {
    writing-mode: vertical-lr;
    color: #666666;
    transform: rotate(180deg);
    padding: 10px 0;
    font-style: italic;
}

@media screen and (max-width: 600px) {
    .diag-image-col {
        width: 50px;
        height: 50px;
    }

    .diag-entity-col {
        width: 40%;
        display: flex;
        flex-direction: column;
    }

    .diag-regulation-col {
        width: 40%;
        display: flex;
        flex-direction: column;
    }
}