.courses {
    padding-top: 4.5rem;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.courses > .course {
    width: 16rem;
    margin: 1vw;
    text-align: center;
}

.courses > .course > .card-header {
    height: 100%;
}

.courses > .course > img {
    height: 16rem;
    object-fit: cover;
}

.wrapper {
    /*display: flex;*/
    width: 100%;
    /*align-items: stretch;*/
}

.lyceum {
    width: 38px;
    background-image: url("/static/imgs/logo.ico");
    background-size: 100% 100%;
}

.course-nav-wrapper {
    min-width: 250px;
    max-width: 250px;
    min-height: calc(100vh - 56px);
    max-height: calc(100vh - 56px);
    border-top: 1px solid var(--light-blue);
    position: fixed;
    top: 3.5em;
    overflow: hidden;
}

.course-nav {
    background: var(--dark-blue);
    list-style: none;
    overflow-y: scroll;
    min-width: calc(250px + 17px);
    max-width: calc(250px + 17px);
    min-height: calc(100vh - 56px);
    max-height: calc(100vh - 56px);
}

.course-nav a {
    display: block;
    position: relative;
    color: var(--white);
    font-size: 1.2rem;
    padding-left: 1rem;
}

.course-nav ul {
    list-style: none;
    padding-left: 0;
}

.course-nav > .section > a {
    font-weight: bold;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

.course-nav > .section > ul > li > a {
    padding-left: 2rem;
    padding-right: 0.5em;
}

.course-nav > .course {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.course-nav li.topic.active, .course-nav a:hover {
    text-decoration: none;
    background: var(--light-blue-with-opacity);
}

.course-nav li.topic.active a::after {
    content: '';
    display: inline-block;
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    right: 0;
    width: 0;
    height: 0;
    border-top: 0.5em solid transparent;
    border-bottom: 0.5em solid transparent;
    border-right: 0.5em solid var(--white);
}

.nav-item > .step {
    height: 2em;
    background: var(--white);
    color: var(--dark-blue);
    margin-right: 0.5rem;
    padding: .25rem .75rem;
    text-align: center;
    position: relative;
    border-radius: 0.25rem;
}

.nav-item > .step.not_published {
    background: var(--dark-red);
    color: var(--white);
}

.nav-item.active > .step::after {
    content: '';
    display: inline-block;
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    bottom: -0.75em;
    width: 0;
    height: 0;
    border-left: 0.5em solid transparent;
    border-right: 0.5em solid transparent;
    border-bottom: 0.5em solid var(--white);
}

.nav-item > .step.checked {
    background: var(--green);
    color: var(--white);
}

.nav-item > .step.ellipsis {
    background: var(--primary);
    color: var(--white);
}

.nav-item > .step.bolt {
    background: var(--warning);
    color: var(--white);
}

.content {
    padding: 1rem;
    padding-top: 5rem;
    width: calc(100% - 250px - 2rem);
    margin-left: calc(250px + 1rem);
    position: relative;
    z-index: 0;
}

.content .btns {
    margin-top: 1rem;
}

.youtube {
    margin-left: 10%;
    width: 80%;
    text-align: center;
    padding-top: calc(720 / 1280 * 80%);
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.youtube iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.pydocx-caps {
    text-transform: uppercase
}

.pydocx-center {
    text-align: center
}

.pydocx-comment {
    color: blue
}

.pydocx-delete {
    color: red;
    text-decoration: line-through
}

.pydocx-hidden {
    visibility: hidden
}

.pydocx-insert {
    color: green
}

.pydocx-left {
    text-align: left
}

.pydocx-list-style-type-cardinalText {
    list-style-type: decimal
}

.pydocx-list-style-type-decimal {
    list-style-type: decimal
}

.pydocx-list-style-type-decimalEnclosedCircle {
    list-style-type: decimal
}

.pydocx-list-style-type-decimalEnclosedFullstop {
    list-style-type: decimal
}

.pydocx-list-style-type-decimalEnclosedParen {
    list-style-type: decimal
}

.pydocx-list-style-type-decimalZero {
    list-style-type: decimal-leading-zero
}

.pydocx-list-style-type-lowerLetter {
    list-style-type: lower-alpha
}

.pydocx-list-style-type-lowerRoman {
    list-style-type: lower-roman
}

.pydocx-list-style-type-none {
    list-style-type: none
}

.pydocx-list-style-type-ordinalText {
    list-style-type: decimal
}

.pydocx-list-style-type-upperLetter {
    list-style-type: upper-alpha
}

.pydocx-list-style-type-upperRoman {
    list-style-type: upper-roman
}

.pydocx-right {
    text-align: right
}

.pydocx-small-caps {
    font-variant: small-caps
}

.pydocx-strike {
    text-decoration: line-through
}

.pydocx-tab {
    display: inline-block;
    width: 4em
}

.pydocx-underline {
    text-decoration: underline
}

table {
    width: 100%;
}

table td {
    padding: 0.25rem;
}

#make-question textarea {
    width: 100%;
    height: 300px;
}

.content .question {
    margin-top: 1rem;
}

.content .question .card-body:last-child {
    border-top: 1px solid rgba(0, 0, 0, 0.125);
}

.pdf.album {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.pdf.album .item {
    width: 400px;
    margin: 1rem;
    position: relative;
}

.pdf.album .item .number {
    position: absolute;
    box-sizing: border-box;
    bottom: 0.25rem;
    right: 0.25rem;
    border-radius: 50%;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.25rem;

    background: #fff;
    border: 2px solid #666;
    color: #666;
    text-align: center;

    font: 2rem Arial, sans-serif;
}

.text-problem .users-answer {
    height: 4.5em;
    border-radius: 0;
}

.text-problem div.users-answer {
    height: auto;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.text-problem .alert {
    margin-bottom: 0;
    border-radius: 0;
}

.choice-problem .card-footer, .text-problem .card-footer {
    font-size: 0.75rem;
    font-style: italic;
    text-align: right;
}

.text-danger > a {
    color: var(--danger);
}

.text-warning > a {
    color: var(--warning);
}

.course-nav > .section > ul > .topic:not(.active) > a > div > .progress,
.course-nav > .section > a > div > .progress {
    display: none;
    width: 80%;
}

.courses > .course > .card-header > .progress,
.course-nav > .course > div > .progress,
.course-nav > .section > ul > .topic.active > a > div > .progress {
    margin-top: 0.5rem;
    display: block;
    color: var(--black);
    position: relative;
    background: var(--secondary);
    height: 1.5em;
    width: 100%;
}

.course-nav > .section > ul > .topic:not(.active):hover > a > div > .progress,
.course-nav > .section > a:hover > div > .progress {
    margin-top: 0.5rem;
    display: block;
    color: var(--black);
    position: absolute;
    background: var(--secondary);
    height: calc(1.5em + 6px);
    top: -3em;
    z-index: 100;
    border: 3px solid var(--white);
    overflow: visible;
}

.course-nav > .section > ul > .topic:not(.active):hover > a > div > .progress::after,
.course-nav > .section > a:hover > div > .progress::after {
    content: '';
    display: inline-block;
    position: absolute;
    top: 0;
    bottom: -2.5em;
    left: 0;
    margin: auto;
    width: 0;
    height: 0;
    border-left: 0.5em solid transparent;
    border-right: 0.5em solid transparent;
    border-top: 0.5em solid var(--white);
}

.course-nav > .course > div > .progress,
.course-nav > .section > ul > .topic.active > a > div > .progress {
    display: inline-block;
    width: 80%;
}

.courses > .course > .card-header > .progress > .text,
.course-nav > .course > div > .progress > .text,
.course-nav > .section > ul > .topic > a > div > .progress > .text,
.course-nav > .section > a > div > .progress > .text {
    text-align: center;
    display: inline-block;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    color: var(--white);
}

.courses > .course > .card-header > .progress > .value,
.course-nav > .course > div > .progress > .value,
.course-nav > .section > ul > .topic > a > div > .progress > .value,
.course-nav > .section > a > div > .progress > .value {
    display: inline-block;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: var(--success);
}

.add-course-button {
    font-size: 2em;
}

.add-course-button span {
    font-size: 2em;
}

.card.course.empty .card-header {
    color: var(--danger);
}

.select2 {
    width: 100% !important;
}