/*
* General Templates
*/

.wpc-container {
    padding: 60px 0;
    background-color: #f5f5f5;
}

.wpc-light-box {
    background-color: #ffffff;
    border-radius: 4px;
    border: 1px solid lightgray;
    padding: 20px;
    box-shadow: 0px 5px 9px rgba(0,0,0,0.2);
    overflow:hidden;
}

.wpc-button {
    display: inline-block;
    text-decoration: none;
    background-color: #23d19f;
    color: white;
    padding: 5px 10px;
    border: 1px solid #12ad80;
    border-radius: 4px;
    margin-right: 5px;
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}

.wpc-button:hover {
    color: white;
    background-color: #12ad80;
    cursor: pointer;
}

.wpc-button.active {
    background-color: #009ee5;
    border-color: #027fb7;
}

.wpc-button-alt {
    font-size: 18px;
    padding: 10px 20px;
    background-color: #009ee5;
    border: 1px solid #036d9c;
}

.wpc-button-alt:hover {
    background-color: #036d9c;
}

.wpc-button-alt-2 {
    font-size: 18px;
    padding: 10px 20px;
    background-color: #e25b4f;
    border: 1px solid #af473e;
}

.wpc-button-alt-2:hover {
    background-color: #af473e;
}

.wpc-row {
    position: relative;
    width: 80%;
    max-width: 1080px;
    margin: auto;
    overflow: hidden;
}

.wpc-sidebar, .wpc-sidebar-content {
    float: left;
}

.wpc-right-sidebar {
    margin-left: 20px;
}

.wpc-left-sidebar {
    margin-right: 20px;
}

.wpc-sidebar {
    width: calc(35% - 20px);
}

.wpc-sidebar-content {
    width: 65%;
}

@media screen and (max-width: 767px) {
    .wpc-sidebar, .wpc-sidebar-content {
        width: 100%;
        float: none;
    }
    .wpc-sidebar-content {
        margin-bottom: 20px;
    }
    .wpc-right-sidebar {
        margin-left: 0;
    }
    .wpc-left-sidebar {
        margin-right: 0;
        margin-bottom: 20px;
    }
}

/*
* Course Pages
*/

.course-container {
    width: calc(50% - 10px);
    margin: 0 20px 20px 0;
    display: inline-block;
    vertical-align: top;
}
@media screen and (max-width: 1200px){
    .course-container {
        width: 100%;
    }
}

.course-container:nth-of-type(even) {
    margin-right: 0;
    margin-left: -4px;
}

.course-container h2 {
    font-size: 22px;
    margin-top: 10px;
}

.wpc-progress-bar {
    background-color: #d0d0d0;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
    margin-bottom: 5px;
}

.wpc-progress-bar-level {
    background-color: #009ee5;
    color: white;
    padding: 5px 0;
}

.wpc-progress-bar-text {
    margin-left: 10px;
    white-space: nowrap;
}

.course-title {
    margin-top: 15px;
}

.course-category-list .wpc-button {
    display: block;
}
.course-category-list ul {
    padding: 0;
    margin: 0;
    list-style: none;
}
.course-category-list ul a {
    color: white;
    text-decoration: none;
}

.course-meta-wrapper {
    background: #ececec;
    padding: 10px 20px;
    margin: 20px -20px -20px -20px;
    border-top: 1px solid lightgray;
}

.start-button {
    margin-top: 15px;
    display: inline-block;
}

.course-category-list .cm-item {
    background-color: #23d19f;
    color: white;
    padding: 5px 10px;
    border: 1px solid #12ad80;
    border-radius: 4px;
    margin-right: 5px;
    margin-bottom: 10px;
}

.course-category-list .cm-item:hover {
    background-color: #12ad80;
}

/*
* Lesson Pages
*/

.wpc-module-title {
    font-size: 18px;
    font-weight: normal;
    margin-bottom: 7px;
}

.wpc-module {
    margin-bottom: 10px;
    background: #fff;
    padding: 10px;
}

.toolbar-button {
    padding: 5px;
    border: 1px solid lightgray;
    display: block;
    border-radius: 4px;
    margin: 5px 0;
}

.lesson-nav {
    margin: 0;
    padding: 0 !important;
    position: relative;
    list-style-type: none;
    overflow-y: auto;
    max-height: 600px;
}

.lesson-button {
    border: 1px solid lightgray;
    margin: 5px 0;
    padding: 5px;
    border-radius: 4px;
    list-style-type: none;
    background-color: #ffffff;
    display: block;
    box-shadow: 0px 1px 5px rgba(0,0,0,0.2);
}

.lesson-button:hover {
    background-color: #ececec;
}

.lesson-button:first-of-type {
    margin-top: 0;
}

.lesson-button i {
    margin-right: 5px;
    position: relative;
    top: -1px;
}

.lesson-button a:hover {
    text-decoration: none;
}

.active-lesson-button a {
    color: black;
}

.tool-toggle {
    display: inline-block;
}

.tool-toggle i {
    padding: 5px;
    margin: 0 10px 10px 0;
    background: #23d19f;
    border: 1px solid #12ad80;
    border-radius: 4px;
    color: white;
}

.tool-toggle i:hover {
    cursor: pointer;
}

.tools-container {
    margin-top: 10px;
}

.toolbar-content {
    margin: 10px 0;
    padding: 10px 0;
    border-top: 1px solid lightgray;
    border-bottom: 1px solid lightgray;
    border-radius: 4px;
    display: none;
    max-height: 184px;
    overflow-y: scroll;
}

/*
* Teacher Templates
*/

.wpc-single-teacher-thumbnail img {
    border-radius: 500px;
    border: 1px solid lightgray;
    padding: 20px;
    background: white;
}

/*
** Admin CSS
*/

.wpc-admin-select {
    max-width: 100%;
}

#wpc-ajax-save {
    display: inline-block;
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px;
    background: #12ad80;
    color: white;
    border-radius: 4px;
    box-shadow: 0px 5px 9px rgba(0,0,0,0.2);
    z-index: 999;
}

.wpc-pointer {
    cursor: pointer;
}

.wpc-option {
    margin-bottom: 10px;
}

.wpc-options-header {
    margin: -20px -20px 20px -20px;
    padding: 20px;
    background: #ececec;
    border-bottom: 1px solid lightgray;
}

.wp-admin .lesson-button:hover, .wpc-grab {
    cursor: grab;
}

.wpc-alt-admin-buttons {
    margin-bottom: 5px;
    margin-top: 15px;
}

.wpc-admin-menu-item {
    font-size: 16px;
    padding: 10px;
    border-right: 1px solid #e1e1e1;
    text-decoration: none;
    display: inline-block;
    color: #009ee5;
}

.wpc-admin-menu-item:not(:first-child) {
    margin-left: -4px;
}

.wpc-admin-menu-item:hover {
    background-color: #ececec;
}

.wpc-admin-h1 {
    margin-bottom: 10px !important;
}

.wpc-admin-extension h3 {
    margin-top: 0;
}

.wpc-main-admin-wrapper {
    margin-right: 20px;
}

.wpc-admin-extension {
    margin-bottom: 20px;
}

.wpc-admin-3-col {
    margin: 0 10px 20px 0;
    display: inline-block;
    width: calc(29.465% - 10px);
    vertical-align: top;
}

@media screen and (max-width:1279px){
    .wpc-admin-3-col {
        width: calc(43.8% - 10px);
    }   
}

.wpc-admin-extension:nth-of-type(3n) {
    margin-right: 0;
}

.wpc-admin-row {
    clear: both;
}

.wpc-alt-admin-menu {
    margin-top: 10px;
    margin-bottom: 20px;
    padding: 0;
}

.add-new{
    position: relative;
    top: 2px !important;
}

.button.small{
    padding:0 4px 1px;
}

.course-list {
    margin-top: 10px;
}

.wpc-order-lesson-list-module {
    background-color: #009ee5 !important;
}

.wpc-order-lesson-list-module label {
    color: white !important;
}

.card .lesson-list li, .card .course-list li{
    border: 1px solid lightgray;
    padding: 5px;
    margin-bottom: 5px;
    background:white;
    cursor: pointer;
}

.category-list li, .course-list-buttons li{
    display: inline-block;
    margin: 5px 5px 5px 0 !important;
}

#wpc-sort-lessons-table td {
    vertical-align: middle;
}

#wpc-module-name {
    width: calc(100% - 22px);
}

.sortable-table img{
    width:70px;
}

.sortable-table img:hover{
    cursor:pointer;
}

.sortable-table .ui-sortable-handle{
    height:51px;
}

.sortable-table select{
    max-width:100%;
}

.sortable-table tr:nth-of-type(odd){
    background:#f9f9f9;
}

.sortable-table th{
    background:#fff;
}

.lightbox-wrapper{
    background:rgba(0,0,0,0.3);
    width:100%;
    height:100%;
    position:fixed;
    z-index:9999;
}

.lightbox{
    background:#fff;
    width:500px;
    top:80px;
    margin:0 auto;
    display:block;
    height:auto;
    padding:10px;
    border-radius:4px;
    position:relative;
}

.lightbox-close{
    position:absolute;
    color:gray;
    top:-20px;
    right:-20px;
    line-height:0;
    text-align:center;
    width:40px;
    height:40px;
    background:#fff;
    border-radius:20px;
    font-size:20px;
    border:3px solid gray;
}

.lightbox-close:hover{
    cursor:pointer;
    color:black;
}

.wpc-nav-wrap{
    margin-bottom:0;
}

.info-button{
    float:left;
    margin-right:3px !important;
    margin-bottom:10px !important;
    clear:right;
}

#admin-lesson-count{
    float:right;
    margin:0;
}

.lesson-list td .wp-menu-image:before{
    color:rgba(0,0,0,0.5) !important;
    float:left;
}

.wpc-question-btn {
    padding: 0 6px 1px !important;
    line-height: 18px !important;
    height: 20px !important;
    font-size: 10px;
    margin: 0 5px 5px 0 !important;
}

.wpc-question {
    cursor: pointer;
}

/*
* Meta Box
*/

#wpc-lesson-restriction-overlay {
    height: 100%;
    width: calc(100% - 20px);
    color: white;
    background: rgba(255, 0, 42, 0.9);;
    color: white;
    text-align: middle;
    display:none;
    position:absolute;
    top:0;
    left:0;
    padding: 10px;
    border: 1px solid darkred;
    text-shadow: 1px 1px 2px darkred;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}

/*
* Light Box
*/

#wpc-lightbox-container {
    position: fixed;
    background: rgba(0,0,0,0.3);
    width: 80%;
    padding: 10%;
    height: 80%;
    top: 0;
    left: 0;
    z-index: 9999;
}   

#wpc-lightbox {
    position: relative;
    font-size: 16px;
}

#wpc-lightbox-close {
    cursor: pointer;
    position: relative;
    z-index: 2;
    top: -9px;
    right: 11px;
    float: right;
    width: 20px;
    height: 20px;
    background-color: #e25b4f;
    color: white;
    border-radius: 100px;
    text-align: center;
}