

.tabs {
    width: 100%;
    margin: 0 auto;
}

#tab-button {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    width: 100%;
    margin: 0;
    padding: 0;

}

#tab-button li {
    display: table-cell;
    width: 20%;
    min-width: 15%;
}

#tab-button li a {
    display: block;
    padding: .5em;
    background: #eee;
    border: 1px solid #ddd;
    text-align: center;
    color: #000;
    font-size: calc(var(--text-s)*1.2);
    text-decoration: none;
    height: 100%;
}

#tab-button li:not(:first-child) a {
    border-left: none;
}

#tab-button li a:hover,
#tab-button .is-active a {
    border-bottom-color: transparent;
    background: #fff;
    color: var(--secondary);
    font-weight: 600;
}

.tab-container {
    background-color: var(--shade-ultra-light);
}

.tab-contents {
    padding: var(--space-s);
    border: 1px solid #ddd;
    display: flex;
    flex-direction: row;
    width: 100%;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-m);
    position: relative;
    top: -1px;
    margin-top: 0;
}

.tab-content-class {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 30%;
    justify-content: center;
    border: var(--shade-light) solid 1px;
    border-radius: var(--radius-m);
    padding: var(--space-s);
    gap: var(--space-s);
    font-size: var(--text-m);
    font-weight: 600;
    background-color: white;
    box-shadow:
    6.7px 6.9px 7.4px rgba(0, 0, 0, 0.028),
    22.3px 23.2px 25px rgba(0, 0, 0, 0.042),
    100px 104px 112px rgba(0, 0, 0, 0.07)
;
}

.class-name {
    color: var(--primary);
    font-weight: 800;
}

.book-class-button {
    padding-top: var(--space-xs);
    padding-right: var(--space-l);
    padding-bottom: var(--space-xs);
    padding-left: var(--space-l);
    color: var(--accent);
    background-color: var(--secondary);
    transition-duration: 0.3s;
    border-radius: var(--radius-xl);
}

.book-class-button:hover {
    transform: scale(1.03, 1.03);
    background-color: var(--base);
    color: var(--accent);
}

.tab-button-outer {
     position: relative;
        z-index: 2;
        display: block;
}

.tab-contents {
    margin-top: 20px;
}

@media only screen and (max-width: 768px) {
    .tab-contents {
        flex-direction: column;
    }
    #tab-button li {
        min-width: 20%;
    }
    .tab-content-class {
        min-width: 100%;
    }
}

@media only screen and (max-width: 480px) {

    #tab-button li {
        min-width: 35%;
    }
}

.tab-select-outer {
        display: none;
    }
/*
@media screen and (min-width: 768px) {
    .tab-button-outer {
        position: relative;
        z-index: 2;
        display: block;
    }

    .tab-select-outer {
        display: none;
    }

    .tab-contents {
        position: relative;
        top: -1px;
        margin-top: 0;
    }
}*/