.fc-tabs {
    display: flex;
    flex-direction: column;
}

.fc-tabs input + label {
    border: 1px solid #aaa;
    padding: 0.5rem;
    border-radius: 0.25rem 0.25rem 0 0;
    background-color:#f9f9f9;
    cursor: pointer;
}
@media (min-width: 640px) {
    .fc-tabs input + label {
        display: none;
    }
}

.fc-tabs nav {
    order: -1;
    display: flex;
    gap: 2.75rem 1px;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid #aaa;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}
@media (max-width: 639px) {
    .fc-tabs nav {
        display: none;
    }
}

.fc-tabs nav > label {
    min-width: 10rem;
    margin-bottom: -1px;
    border: 1px solid #aaa;
    padding: 0.5rem 1.25rem;
    border-radius: 0.25rem 0.25rem 0 0;
    text-align: center;
    background-color:#fbfbfb;
    cursor: pointer;
}


.fc-tabs > input + label + div,
.fc-tabs > input + div {
    opacity: 0;
    position: absolute;
    z-index: -10;
    pointer-events: none;
}

.fc-tabs > input:checked + label + div,
.fc-tabs > input:checked + div {
    opacity: 1;
    position: relative;
    z-index: 10;
    pointer-events: auto;
    transition: opacity 1s ease-out;
}

@media (max-width: 639px) {
    .fc-tabs > input + label + div,
    .fc-tabs > input + div {
        margin: -0.25rem 0 0.5rem 0;
        border: 1px solid #aaa;
        border-top-width: 0;
        border-radius: 0 0 0.25rem 0.25rem;
        padding: 0.5rem;
    }
}

.fc-tabs label {
    cursor: pointer;
}

/* Checked tab styles */
.fc-tabs input:checked + label,
.fc-tabs input:checked:nth-of-type(1) ~ nav label:nth-of-type(1),
.fc-tabs input:checked:nth-of-type(2) ~ nav label:nth-of-type(2),
.fc-tabs input:checked:nth-of-type(3) ~ nav label:nth-of-type(3),
.fc-tabs input:checked:nth-of-type(4) ~ nav label:nth-of-type(4),
.fc-tabs input:checked:nth-of-type(5) ~ nav label:nth-of-type(5),
.fc-tabs input:checked:nth-of-type(6) ~ nav label:nth-of-type(6),
.fc-tabs input:checked:nth-of-type(7) ~ nav label:nth-of-type(7),
.fc-tabs input:checked:nth-of-type(8) ~ nav label:nth-of-type(8) {
    border-bottom: 1px solid white;
    background-color: white;
}
