main {
    margin: auto;
}

#videos-section-header {
    background-color: var(--bg-dark-1);
    padding: 3rem;
}

.no-margin {
    margin: 0;
}

.videos-section-container {
    width: 100vw;
    height: 100%;
    border-bottom: .3rem solid var(--accent-1);
    border-top: .3rem solid var(--accent-1);

    display: flex;
    align-items: center;
    justify-content: center;
}

#videos-section {
    width: 100%;
    height: 100%;
    max-width: 80rem;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}

/* accordion */ 
.accorion-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.accordion {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.accordion-content-container {
    position: relative;
    /* padding: 1rem; */
    width: 100%;
}

.accordion .label {
    position: relative;
    padding: .5rem 1rem;
    font-size: 1.2rem;
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
}

.accordion .label::before {
    content: '+';
    position: absolute;
    top: 50%;
    right: .5rem;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
}

.accordion .content {
    position: relative;
    background: var(--text-primary);
    height: 0;
    width: 100%;
    text-align: justify;
    overflow: hidden;
    transition: height 0.5s ease-out;
    -webkit-transition: height 0.5s ease-out;
    -moz-transition: height 0.5s ease-out;
    -ms-transition: height 0.5s ease-out;
    -o-transition: height 0.5s ease-out;
}

.accordion .video {
    display: flex;
    padding: 1rem 0;
}

.accordion .video-title,
.accordion .video-desc-main p {
    color: var(--bg-dark-1);
}

.accordion .video-desc-main p {
    text-align: left;
}

.accordion .single-video {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-content-container.open .content {
    height: 100%;
}

/* TODO: Smooth open-close transition  */

/* sidebar */

aside {
    display: none;
    max-height: 100vh;
    min-width: 18vw;
    max-width: 20rem;
    overflow: auto;
    background-color: var(--bg-dark-1);
    padding: 1rem;
}

.sidebar-title {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.sidebar-links {
    display: flex;
    align-items: start;
    justify-content: flex-start;
    flex-direction: column;

    padding: .5rem;
}

.sidebar-links li {
    width: 100%;
    height: 100%;
}

.sidebar-links a {
    display: inline-block;
    width: 100%;
    height: 100%;
    padding: .2rem 0;
    transition: all .1s ease-in-out;
    -webkit-transition: all .1s ease-in-out;
    -moz-transition: all .1s ease-in-out;
    -ms-transition: all .1s ease-in-out;
    -o-transition: all .1s ease-in-out;
}

.sidebar-links a:hover {
    padding-left: .7rem;
    background-color: var(--text-primary-disabled);
    color: var(--bg-dark-1);
}

.sidebar-links a.active {
    background-color: var(--text-primary);
    color: var(--bg-dark-1);
    padding-left: .3rem;
}

/* VIDEOS */
.video {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    flex-grow: 1;

    padding: 2rem 4rem;
    height: 100%;
    width: 100%;
}

.inline-link {
    text-decoration: underline;
    color: var(--text-accent); 
}

.video-title {
    color: var(--text-primary);
    text-transform: capitalize;
}

.videos-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.single-video-container {
    display: flex;
    align-items: start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    border-radius: .3rem;
    -webkit-border-radius: .3rem;
    -moz-border-radius: .3rem;
    -ms-border-radius: .3rem;
    -o-border-radius: .3rem;
    padding: 1rem 0;
}

.iframe-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    width: 100%;
    -webkit-border-radius: .3rem;
    -moz-border-radius: .3rem;
    -ms-border-radius: .3rem;
    -o-border-radius: .3rem;
    border-radius: .3rem;
}

.iframe-wrapper iframe {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 18rem;
    object-fit: cover;
    border-radius: .3rem;
    -webkit-border-radius: .3rem;
    -moz-border-radius: .3rem;
    -ms-border-radius: .3rem;
    -o-border-radius: .3rem;
}

.video-desc-container {
    color: var(--text-primary)
}
.video-desc-main {
    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
}
.video-title {

}
.video-desc-main p {
    color: var(--text-primary);
}

.footer-block h5 {
    font-size: 1.3rem;
}

@media screen and (min-width: 1080px) {
    .accordion-body {
        display: none;
    }

    aside {
        display: block;
    }

    .video {
        display: flex;
    }

    .videos-container {
        max-width: 60rem;
    }
    
    .iframe-wrapper iframe {
        height: 30rem;
        min-width: 50rem;
    }

    .video-desc-main p {
        font-size: 1.2rem;
        text-align: left;   
    }

}