.transition, .accordion i:before,
.accordion i:after,
.accordion .accordion-content {
    transition: all 0.25s ease-in-out;
}

.flipIn, .accordion {
    animation: flipdown 0.5s ease both;
}

.no-select {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.accordion:nth-of-type(1) {
    animation-delay: 0.5s;
}
.accordion:nth-of-type(2) {
    animation-delay: 0.75s;
}
.accordion:nth-of-type(3) {
    animation-delay: 1s;
}
.accordion:last-of-type {
    padding-bottom: 0;
}
.accordion i {
    position: absolute;
    transform: translate(-6px, 0);
    margin-top: 16px;
    right: 0;
}
.accordion i:before, .accordion i:after {
    content: "";
    position: absolute;
    background-color: var(--brand-primary);
    width: 3px;
    height: 9px;
}
.accordion i:before {
    transform: translate(-2px, 0) rotate(45deg);
}
.accordion i:after {
    transform: translate(2px, 0) rotate(-45deg);
}
.accordion input[type=checkbox] {
    position: absolute;
    cursor: pointer;
    width: 100%;
    height: 2.75rem;
    z-index: 1;
    opacity: 0;
}
.accordion input[type=checkbox]:checked ~ .accordion-content {
    margin-top: 0;
    max-height: 0;
    opacity: 0;
    transform: translate(0, 50%);
}
.accordion input[type=checkbox]:checked ~ i:before {
    transform: translate(2px, 0) rotate(45deg);
}
.accordion input[type=checkbox]:checked ~ i:after {
    transform: translate(-2px, 0) rotate(-45deg);
}

@keyframes flipdown {
    0% {
        opacity: 0;
        transform-origin: top center;
        transform: rotateX(-90deg);
    }
    5% {
        opacity: 1;
    }
    80% {
        transform: rotateX(8deg);
    }
    83% {
        transform: rotateX(6deg);
    }
    92% {
        transform: rotateX(-3deg);
    }
    100% {
        transform-origin: top center;
        transform: rotateX(0deg);
    }
}