/* Applies responsive properties to the course container */
.course-container {
    width: 94%;
    height: auto;
    margin: 0 3%;
    display: flex;
}

/* Applies responsive properties to the left sidebar container */
.side-bar-container {
    width: 30%;
    display: flex;
    z-index: 98;
    transition: all 1s;
}

/* Applies responsive properties to the left sidebar */
.side-bar {
    width: 100%;
    height: 80vh;
    padding: 0 0.5em;
    overflow-y: auto;
    background-color: #EFE9E4;
    z-index: 100;
    transition: all 1s;
}

/* Applies responsive properties to each chapter container in the sidebar */
.chapter-container {
    width: 95%;
    margin: 0 auto;
    margin-top: 1em;
    border: solid 1px #8b8b8b;
    font-family: Oswald, Verdana, sans-serif;
    font-size: 0.8em;
    border-radius: 30px;
}

/* Applies responsive width each image container in the course */
.image-container {
    width: 100%;
    margin: 1em 0;
}

/* Applies width and height properties to each image in the course */
.image-container img,
.subimage-container img {
    width: 100%;
    height: auto;
}

/* Applies properties to each image description in the course */
.image-container p,
.subimage-container p {
    text-align: center;
    margin: 0;
    color: #5c5c5c;
}

/* Applies speicifc properties to the text and image container in the course */
.text-image-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

/* Applies responsive properties to youtube videos */
.text-container {
    width: 55%;
}

/* Applies responsive properties to the course images */
.subimage-container {
    width: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Applies responsive properties to youtube videos container */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

/* Applies responsive properties to youtube videos */
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Applies responsive properties to the course content properties */
.course-content {
    width: 70%;
    height: 80vh;
    font-family: Oswald, Verdana, sans-serif;
    padding: 1em;
    border-left: solid 1px #8b8b8b;
    border-right: solid 1px #8b8b8b;
    overflow: auto;
    z-index: 1;
}

/* Applies font styling to the chapter content paragraphs */
.course-content p {
    font-size: 0.8em;
    font-weight: 300;
}

/* Applies various properties to all chapters in the sidebar */
.chapter {
    width: 100%;
    font-size: 1em;
    height: 4em;
    border: solid 1px #8b8b8b;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

/* Applies specific properties to all subchapters in each chapter */
.subchapter {
    width: 100%;
    font-size: 0.7em;
    padding: 0.5em 20%;
}

/* Applies specific properties to all subchapters in each chapter */
.allsubs {
    height: 0;
    transition: height 1s;
    overflow: hidden;
}

/* Applies margin properties to the chapter number in the sidebar */
.subchapter>p {
    margin: 0;
}

/* Applies margin properties to the chapter title in the sidebar */
.subchapter>h3 {
    margin: 0;
    margin-left: 10%;
}

/* Applies width and height properties to the arrow in each chapter container */
.chapter img {
    width: 7%;
    height: auto;
}

/* Applies responsive properties to the progress circle */
.progress {
    width: 2em;
    height: 2em;
    border: solid 1px black;
    position: relative;
    border-radius: 50%;
}

/* Applies responsive properties to the progress circle */
.progress div {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50%;
    z-index: 100;
}

/* Underlines and scales the subchapter title when hovered over */
.allsubs a:hover .subchapter {
    text-decoration: underline;
    scale: 1.1;
    cursor: pointer;
}

/* Marks a chapter as completed when given this class */
.add-background {
    background-image: url("../images/complete.svg");
    background-position: center;
}

/* Applies responsive properties to the chapter content container */
.chapter-content {
    width: 45%;
    height: 80%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 99;

}

/* Applies responsive properties to the chapter content paragraphs */
.chapter-content>p {
    font-family: Oswald, Verdana, sans-serif;
    font-size: 50%;
    margin: 0;
}

/* Applies responsive properties to the chapter content titles */
.chapter-content>h3 {
    font-family: Oswald, Verdana, sans-serif;
    font-size: 80%;
    margin: 0;
}

/* Applies responsive properties to the sidebar anchors */
.side-bar a {
    text-decoration: none;
    color: black;
}

/* Applies specific properties to the sidebar menu */
.side-bar-menu {
    width: 100%;
    display: none;
    background-color: #EFE9E4;
    transition: width 1s;
}

/* Applies responsive properties to the sidebar menu anchors */
.side-bar-menu a {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Applies width and height properties to the sidebar menu image */
.side-bar-menu img {
    width: 1em;
    height: auto;
}

/* Applies width and height properties to the sidebar button on mobile devices */
#toggle-sidebar {
    width: 100%;
    height: 80%;
}

/* Applies width and height properties to the chapters */
.chapters {
    width: 100%;
    height: 100%;
    display: none;
}

/* Applies properties to the prechapter displayed when loading the course page */
#chapter-zero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
}

/* Applies properties to the next chapter anchor */
.next-chapter {
    width: 10%;
    margin: 0.5em 45%;
    transition: all 500ms;
}

/* Scales the next chapter anchor when hovered over */
.next-chapter:hover {
    scale: 1.1;
    cursor: pointer;

}

/* Applies a darker color to subchapters when hovered over */
a:hover .chapter {
    background-color: #d8d8d8;
    cursor: pointer;
}

/* Applies responsive properties to the final test form */
form {
    width: 100%;
    padding: 1em 10%;
    margin: 0;
}

/* Applies red styling to error messages */
h6 {
    color: red;
    margin: 0;
    display: none;
}

/* Applies green styling to success message */
#success {
    color: rgb(46, 190, 46);
}

/* Applies width properties to the radio inputs */
.radio-input {
    width: 20%;
}

/* Changes the font size for input options */
.input-option {
    font-size: 0.7em;
}

/* Applies margin and text align properties to the questions */
h5 {
    margin: 0;
    margin-top: 1em;
    text-align: left;
}

/* Changes the name input elements to defined properties to match the page layout */
#name {
    width: 80%;
    margin-left: 10%;
    margin-right: 10%;
    height: 3em;
    background-color: #EFE9E4;
    border: solid 1px rgb(154, 153, 153);
    margin-bottom: 1em;
}

/* Changes the submit button properties to match the page layout and colors */
#submit {
    width: 100%;
    font-family: Oswald, Verdana, sans-serif;
    font-size: 0.6em;
    height: 2.7em;
    background-color: rgb(154, 153, 153);
    color: white;
    margin: 2em 0;
    transition: all 500ms;
}

/* Adds a hover animation over the submit button */
#submit:hover {
    background-color: #EFE9E4;
    cursor: pointer;
    border: solid 1px rgb(154, 153, 153);
    color: rgb(83, 83, 83);
}

/* Applies styling to the download certificate button */
#download-certificate,
#download-certificate:hover,
#generating {
    color: black;
    text-align: center;
    font-size: 0.9em;
    margin: 0;
    margin-top: 1em;
}

/* Decreases sidebar chapter font size on smaller devices */
@media only screen and (max-width: 1300px) {
    .chapter-container {
        font-size: 0.8em;
    }
}

/* Decreases sidebar chapter font size on smaller devices */
@media only screen and (max-width: 1100px) {
    .chapter-container {
        font-size: 0.7em;
    }
}

/* Decreases sidebar chapter font size on smaller devices */
@media only screen and (max-width: 940px) {
    .chapter-container {
        font-size: 0.65em;
    }
}

/* Decreases sidebar chapter font size on smaller devices */
@media only screen and (max-width: 870px) {
    .chapter-container {
        font-size: 0.5em;
    }
}

/* Changes the styling to various elements on smaller devices */
@media only screen and (max-width: 690px) {
    .side-bar-container {
        width: 10%;
        position: absolute;
        overflow: hidden;
        border-right: solid 1px #8b8b8b;
    }

    .side-bar {
        width: 0%;
        overflow: hidden;
        overflow-y: auto;
        padding: 0;
        font-size: 1.3em;
    }

    .side-bar-menu {
        display: flex;
        align-items: center;
        justify-content: center;
        border-left: solid 1px #8b8b8b;
    }

    .course-content {
        width: 90%;
        font-size: 0.8em;
        margin-left: 10%;
        border-left: none;
    }

    .next-chapter {
        width: 20%;
        margin: 0.5em 40%;
    }

    .text-image-container {
        flex-direction: column;
    }

    .text-container {
        width: 100%;
    }

    .subimage-container {
        width: 100%;
    }
}

/* Applies a rotate animation */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(180deg);
    }
}

/* Resets the rotate animation */
@keyframes rotate_reset {
    from {
        transform: rotate(180deg);
    }

    to {
        transform: rotate(0deg);
    }
}