﻿#layout-container {
    border-radius: 2px;
    width: 80%;
    height: 100%;
    background: var(--light-gravel);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0px 5px 30px 0px rgba(0,0,0,0.1);
    position: relative;
}

#layout-content {
    width: 1440px;
    position: relative;
    padding: 80px;
    box-sizing: border-box;
    transform-origin: 0 0;
}

.layout-section {
    border-radius: 16px;
    position: relative;
}

    .layout-section img {
        max-width: 50%;
    }

.layout-subsections > div {
    padding: 24px;
    box-sizing: border-box;
}

    .layout-subsections > div:nth-child(3n) {
        padding-right: 0;
    }

    .layout-subsections > div:nth-child(3n+1) {
        padding-left: 0;
    }

#upper-sections .layout-section:first-child h3 {
    font-size: 40px;
}

/*#layout-courses {
    display: flex;
    flex-wrap: wrap;
}*/

    #layout-courses .course-box {
        background: var(--white);
        padding: 16px;
        box-sizing: border-box;
        border: 1px solid var(--gravel);
        border-radius: 8px;
        width: calc(33.333% - 32px);
        min-width: 300px;
    }

    #layout-courses .course-thumb {
        width: 40px;
        height: 40px;
        background-size: cover;
        background-position: center;
        border-radius: 8px;
        flex-shrink: 0;
    }

    #courses:not(.show-all) .course-box:nth-child(n+10) {
        display: none;
    }

    #courses.show-all #showAllButton:before {
        content: 'Show Less';
    }

    #courses:not(.show-all) #showAllButton:before {
        content: 'Show All';
    }


#layout-plans {
    border-radius: 8px;
    border: 1px solid var(--gravel);
    /*overflow: hidden;*/
}

    #layout-plans .plan-box {
        background: var(--white);
        box-sizing: border-box;
        outline: 1px solid var(--gravel);
    }

        #layout-plans .plan-box > div {
            padding: 32px 48px;
            box-sizing: border-box;
        }

            #layout-plans .plan-box > div:first-child {
                padding: 16px
            }

            #layout-plans .plan-box .featured-plan {
                box-shadow: inset -0.5px 0px 0px 2px var(--thunder);
            }

input.billing-toggle:checked ~ label small:first-child {
    font-weight: bold;
}

input.billing-toggle:not(:checked) ~ label small:last-child {
    font-weight: bold;
}

input.billing-toggle:checked ~ #layout-plans .annual-plan {
    display: none;
}

input.billing-toggle:not(:checked) ~ #layout-plans .monthly-plan {
    display: none;
}

label.billing-toggle {
    position: absolute;
    top: -54px;
    right: 0;
    display: flex;
    align-items: end;
    gap: 8px;
    align-items: center;
}


    label.billing-toggle span {
        background: var(--thunder);
        border: 2px solid var(--thunder);
        padding: 2px;
        width: 28px;
        border-radius: 30px;
        display: flex;
        flex-direction: row-reverse;
    }

input.billing-toggle:checked ~ label.billing-toggle span {
    flex-direction: row;
}

label.billing-toggle span:after {
    content: '';
    width: 14px;
    height: 14px;
    background: var(--white);
    border-radius: 20px;
    transition: 0.2s;
}

/* input.billing-toggle:checked ~ label.billing-toggle div:after {
            background: var(--white);
        } */

/* PROVIDERS MARKETPLACE DIRECTORY */
.marketplace-card {
    padding: 32px;
    box-sizing: border-box;
    max-width: calc(33.3333% - 16px);
    border-radius: 8px;
    background: var(--white);
    min-height: 200px;
    border: 1px solid var(--gravel);
    position: relative;
}

    .marketplace-card:hover {
        background: var(--cloud);
    }

    .marketplace-card .img-box {
        width: 100%;
        height: 80px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        overflow: hidden;
    }

        .marketplace-card .img-box img {
            max-height: 80%;
            max-width: 100%;
        }

.feature-label {
    background: var(--feature);
    color: var(--white);
    padding: 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    position: absolute;
    top: 16px;
    right: 16px;
}

.plan-label {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translate(-50%, 0);
    color: #000;
    background: var(--white);
    border: 1px solid var(--thunder);
    padding: 4px 6px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
}

@media screen and (max-width: 680px) {
    .layout-subsections > div {
        padding: 24px 0;
        width: 100%;
        flex: 100%;
    }
}
