.accordion-element {
    display: flex;
    flex-direction: column;
    padding: 0.1rem 1rem;
    margin: 0.25rem 0;
    border: 1px solid;
}

.accordion-element > section  > label > input[type="checkbox"] {
    display: none;
}

.accordion-element > section {
    display: flex;
    position: relative;
}

.accordion-element > section > label {
    display: block;
    width: 100%;
    margin-top: 0.2rem;
    cursor: pointer;
    user-select: none;
    font-weight: bold;
}

.accordion-element > section > span {
    position: absolute;
    right: 0;
    top: 20%;
}

.accordion-element > div {
    max-height: 0;
    width: 100%;
    overflow: hidden;
    margin: 0;
    transition: max-height 500ms ease-in-out;
}

.accordion-element > section > span > i {
    transition: opacity 550ms ease-in-out;
    overflow: hidden;
}

.accordion-element > section > span > i.fa-angle-down {
    max-width: 100%;
    opacity: 100%;
}

.accordion-element > section > span > i.fa-angle-up {
    max-width: 0;
    opacity: 0;
}

.accordion-element label {
    font-weight: bolder;
    font-size: 1.25rem;
    font-family: "Raleway";
}

.accordion-element > section:has(input[type="checkbox"]:checked) + div {
    max-height: 200vh;
}

.accordion-element > section:has(input[type="checkbox"]:checked) > span > i.fa-angle-down {
    max-width: 0;
    opacity: 0;
}

.accordion-element > section:has(input[type="checkbox"]:checked) > span > i.fa-angle-up {
    max-width: 100%;
    opacity: 100%;
}
