@import 'variables';
@import 'fonts';
@import 'loader';
@import 'navbar';
@import 'courses';
@import 'modules';
@import 'quizzes';
@import 'profile';
@import 'alerts';

/* VENDOR */

@import "slim.css";
@import "~@fortawesome/fontawesome-free/scss/fontawesome.scss";
@import "~@fortawesome/fontawesome-free/scss/solid.scss";
@import "~@fortawesome/fontawesome-free/scss/brands.scss";
@import "datepicker";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    height: 100%;
    width: 100%;
    font-family: 'Karla', sans-serif;
    background: #f9f9f9;
    opacity: 1;
    transition: 0.7s opacity;
    scroll-behavior: smooth;
    .fade {
        opacity: 0;
        transition: none;
    }
    
}
header {
    position: fixed;
    width: 100%;
    z-index: 5;
}
footer {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    background: white;
    border-top: 1px solid #f1f1f1;
    text-align: center;
}
main {
    display: flex;
    flex-flow: column;
    align-items: center;
    padding: 60px 0;
    min-height: calc(100vh - 50px);
}
section {
    margin: 30px 0;
    padding: 0 2rem;
    width: 100%;

    @media(max-width: 992px) {
        margin: 20px 0;
        padding: 0;
    }
}

a {
    color: black;
    text-decoration: none;
}

ul {
    list-style: none;
}

input:not([type='checkbox']) {
    display: block;
    height: 35px;
    border: none;
    padding: 10px;
}

input:focus,
textarea:focus,
select:focus {
    outline: #c7c7c7 auto 1px;
}

textarea {
    resize: none;
}

select {
    width: 100%;
    min-width: 80px;
    height: 35px;
    color: #383838;
    border: 1px solid #e6e9ee;
    background-color: #fff;
    border-radius: 2px;
    padding: 0 0.7em;
    margin-bottom: 0.5em;
    line-height: normal;
}

button {
    outline: none;
    border: none;
    background: none;
}

button:hover {
    cursor: pointer;
    filter: brightness(0.9);
}

p {
    margin: 5px 0;
}

h1, h2, h3, h4, h5 {
    color: #2b2b2b;
    margin: 5px 0;
}

h1 {
    font-size: 25pt;
}

@media(max-width: 992px) {
    p {
        line-height: 23px;
    }
}


/* TABLES */

table,
td,
th {
    table-layout: fixed;
    border: 1px solid #ddd;
    text-align: left;
    font-size: 90%;
}

table {
    border-collapse: collapse;
    width: 100%;
    @media(max-width: 992px) {
        width: auto;
    }
}

th {
    font-size: 12pt;
}

th,
td {
    padding: 12px;
}

tr:first-child {
    background-color: #f2f2f2;
}


/* CONTENT */

.container {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

@media(max-width: 991px) {
    .container {
        flex-flow: row wrap;
    }
}

/* CAROUSEL */

.carousel {
    position: relative;
    width: 100%;
    height: 500px;
    background: $primary;
}

.slides {
    height: 100%;
    width: 100%;
    position: relative;
    opacity: .7;
}

.slide {
    position: absolute;
    height: 100%;
    width: 100%;
    opacity: 0;
    -webkit-transition: opacity 1000ms;
    -o-transition: opacity 1000ms;
    transition: opacity 1000ms;
    background-size: cover;
    background-position: 50% 50%;
}

.slide:first-child {
    opacity: 1;
}

.slide[data-state=active] {
    display: block;
}

.indicators {
    display: none;
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
}

.indicator {
    cursor: pointer;
}


/* INFO BAR */

#info-bar {
    width: 100%;
    background: rgb(38, 115, 80);
    background: linear-gradient(90deg, rgba(38, 115, 80, 1) 4%, rgba(110, 157, 135, 1) 100%);
}

#info-bar-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    height: 85px;
}

.info-bar-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
}

.info-bar-item {
    display: flex;
    align-items: center;
    color: white;
}

.info-bar-item i {
    font-size: 30pt;
    margin-right: 20px
}

.info-bar-item h3 {
    color: white
}

@media(max-width: 1199px) {
    .info-bar-item {
        font-size: 80%;
    }
}

@media(max-width: 992px) {
    .info-bar-items {
        flex-flow: column;
        width: unset;
        align-items: flex-start;
    }
    #info-bar-inner {
        height: auto;
        margin: 0 20px;
    }
    .info-bar-item {
        margin: 25px 0;
        font-size: 70%;
    }
    .info-bar-item .fa-history {
        margin-right: 29px;
    }
}


/* NOSOTROS */

#nosotros {
    .nosotros-image {
        text-align: center;
        margin-bottom: 30px;
    
        img {
            height: 140px;
            @media(max-width: 992px) {
                height: 100px;
            }
        }    
    }

    .box-instructors {
        margin-top: 30px;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 25px;

        .item {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            img {
                width: 100%;
                border-radius: 50%;
                padding: 10px;
            }
            p {
                margin: 0px;
            }
        }
    }
}

/* CONTACT */

#contact {
    #contact-inner {
        display: flex;
        width: 100%;
    
        @media(max-width: 992px) {
            flex-flow: column;
        }
    
        .contact-info,
        .contact-form {
            width: 50%;
    
            @media(max-width: 992px) {
                width: 100%;
                margin: 20px 0;
            }
            h2 {
            }
            button {
                float: right;
                padding: 5px 50px;
            }
        }
    
        .item {
            margin: 40px 0;
        }
        .social i {
            font-size: 20pt;
            margin-right: 25px;
        }
    }

    form {
        display: flex;
        flex-flow: column;
        margin: auto;
        text-align: right;
        margin-top: 40px;

        label {
            color: var(--primary);
            margin-bottom: 10px;
            font-size: 11pt;
        }
        input {
            margin-bottom: 25px;
            background-color: rgba(130, 130, 130, 0.1);
            font-size: 15px;
            font-weight: 500;
            height: 35px;
            padding-left: 10px;
        }
        textarea {
            height: auto;
            min-height: 175px;
            margin-bottom: 20px;
            border-style: solid;
            border-radius: 3px;
            background-color: rgba(130, 130, 130, 0.1);
            font-weight: 500;
        }
        input:focus,
        textarea:focus {
            outline: 1px solid var(--primary);
        }
    }  
    .form-group {
        display: flex;
        flex-flow: column;
        text-align: left;
        margin: 0;
    }      
}


/* BOXES */

.box {
    position: relative;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 3px;
    box-shadow: 0px 0px 25px -15px rgba(0, 0, 0, 0.25);
    padding: 40px;

    @media(max-width: 992px) {
        padding: 20px;
    }

    .box-content {
        display: flex;
        flex-flow: column;
        width: 100%;
    }
}
.box-header {
    padding: 5px;
    margin: -40px;
    margin-bottom: 30px;
    border-bottom: 1px solid #ececec;
    color: #2b2b2b;
    font-size: 11pt;
    text-align: center;
    @media(max-width: 992px) {
        margin: -15px;
        margin-bottom: 30px;
    }
    p {
        margin: 6px
    }
    
}
.box-body {
    margin-top: 35px;
}
.box-content {
    display: flex;
    flex-flow: column;
    width: 100%;
}
.box-actions {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    @media(max-width: 992px) {
        flex-direction: column;
    }
    button {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 10px;
        min-width: 200px
    }
    .box-action {
        margin: 10px
    }   
}
.box-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eaeaea;
    color: #505050;
    padding-right: 2px;
    transition: .5s;
    z-index: 1;
    border-top-left-radius: 10px;

    &:hover {
        background: #c3c3c3;
    }    
}
.box-info {
    text-align: center;
    margin-top: 20px
}
.small-box {
    margin: 0 20px;
    max-width: 400px;
    width: 100%;
    margin-top: 30px;
    padding: 0;
    .form-label {
        text-align: left;
        margin-bottom: 5px;
    }    
}
.small-box2 {
    padding: 0 2.4rem;
    margin-right: 20px;
    min-width: 500px;

    @media(max-width: 992px) {
        margin-right: 0;
        margin-bottom: 20px;
        min-width: auto;
        padding: 0;
    }
}
.small-box-header {
    padding: 0.8rem;
    background-color: #ececec;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #e6e9ee;
    align-items: center;
    text-align: center;

    @media(max-width: 992px) {
        margin: 0 !important;
    }
}
.small-box-content {
    padding: 1rem 2rem;
    margin: auto;
}
.small-box-footer {
    border-top: 1px solid #e6e9ee;
    padding: 1rem;
    text-align: center;
    p {
        margin-bottom: 5px;
    }
}

/* FORMS */

.form-group {
    display: flex;
    flex-flow: column;
    justify-content: center;
    margin: 15px 0;
    p {
        display: inline;
    }
    input:not([type='checkbox']),
    button,
    textarea {
        width: 100%;
        color: #22252a;
        border: 1px solid #e6e9ee;
        background-color: #fff;
        border-radius: 3px;
        padding: .5em 1em;
        line-height: normal;
        font-family: inherit;
    }
    button {
        width: 100%
    }
}
.form-group2 {
    margin: 15px 0;
}

.form-check {
    display: flex;
    height: 30px;
    line-height: 34px;
    label {
        padding-left: 10px
    }
}
.form-inline {
    margin: 10px 0;
    * {
        display: inline;
    }
    
}
.form-error {
    font-size: 11pt;
    color: red;
    text-align: left;
}
.input-error {
    border: 1px solid red !important;
}



/* BUTTONS */

.btn {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    padding: 10px 20px;
    color: black;
    border-radius: 2px;
    transition: .5s;
    background: #e8e8e8;
    font-weight: 600;
    border-radius: 3px;
    @media(max-width: 992px) {
        width: 100%;
    }
    i {
        font-size: 14pt;
        margin-right: 10px;
    }    
}
.btn-primary {
    color: white !important;
    background: $primary !important;
    &:hover {
        background: black !important;
    }
}
.btn-big {
    height: 45px;
    min-width: 200px;
}
.btn-special {
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
}
.disabled {
    cursor: not-allowed;
    pointer-events: none;
    color: #c0c0c0 !important;
    background-color: white !important;
    border: 1px solid #d8d8d8 !important;
}


/* RADIO BUTTONS */

.rb-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 30px;
    margin-bottom: 25px;
    cursor: pointer;
    font-size: 16px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }
}
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #eee;
    border-radius: 50%;
}
.rb-container:hover input~.checkmark {
    background-color: #ccc;
}
.rb-container input:checked~.checkmark {
    background-color: $primary;
}
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}
.rb-container input:checked~.checkmark:after {
    display: block;
}
.rb-container .checkmark:after {
    top: 6px;
    left: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white
}

/* CHECKBOXS */

.checkbox,
.radio {
    opacity: 0;
    position: absolute;
}

.checkbox {
    display: none !important;
}

.checkbox,
.checkbox-label,
.radio,
.radio-label {
    display: inline-block;
    vertical-align: middle;
    margin: 5px;
    cursor: pointer;
}

.checkbox-label,
.radio-label {
    position: relative;
}

.checkbox+.checkbox-label:before,
.radio+.radio-label:before {
    content: '';
    background: #fff;
    border: 2px solid #ddd;
    display: inline-block;
    vertical-align: middle;
    width: 25px;
    height: 25px;
    padding: 2px;
    text-align: center;
}

.checkbox:checked+.checkbox-label:before {
    background: $primary;
    box-shadow: inset 0px 0px 0px 4px #fff;
}

.radio+.radio-label:before {
    border-radius: 50%;
}

.radio:checked+.radio-label:before {
    background: #ccc;
    box-shadow: inset 0px 0px 0px 4px #fff;
}

.checkbox-custom:focus+.checkbox-custom-label,
.radio-custom:focus+.radio-custom-label {
    outline: 1px solid #ddd;
    /* focus style */
}


/* VARIOUS */

.hidden {
    display: none !important
}

.no-margin {
    margin: initial;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.text-underline {
    text-decoration: underline;
}

.font-light {
    font-weight: 300;
}

.font-regular {
    font-weight: 400;
}

.font-bold {
    font-weight: 700;
}

.image-disabled {
    filter: brightness(50%)
}

.mini {
    font-size: 10pt;
}

hr {
    border: none;
    border-bottom: 1px solid #e6e6e6;
}

.hr-full {
    margin: 30px -40px;
}

@media(max-width: 992px) {
    .hr-full {
        margin: 30px -16px;
    }
}

.fixed-icon {
    position: fixed;
    bottom: 20px;
    height: 60px;
    width: 60px;
    background: $primary;
    border-radius: 50%;
    -webkit-box-shadow: 0px 0px 25px -5px rgba(0, 0, 0, 0.50);
    box-shadow: 0px 0px 25px -5px rgba(0, 0, 0, 0.50);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    color: white;
    -webkit-transition: .5s;
    -o-transition: .5s;
    transition: .5s;
}

.fixed-icon:hover {
    cursor: pointer;
    opacity: 0.9;
}

#whatsapp {
    left: 20px;
    font-size: 25pt;
}

#scroll-up {
    right: 20px;
    font-size: 20pt;
}


/* PAGINATION */

.pagination {
    display: inline-block;
    margin-top: 20px
}

.pagination .page-item {
    color: black;
    float: left;
    text-decoration: none;
    border: 1px solid #ddd;
    padding: 8px 0px;
}

.pagination .page-link {
    padding: 16px;
}

.pagination .page-item.active {
    background-color: $primary;
    color: white;
    border: 1px solid $primary;
}

.pagination .page-item:hover:not(.active) {
    background-color: #ddd;
}

.pagination .page-item:first-child {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.pagination .page-item:last-child {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}