﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

html {
    height: 100%;
    font-size: 16px;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
    background-color: #fefaeb;
    font-family: 'Roboto', "Helvetica Neue", sans-serif;
    line-height: 1.2;
}

.container-big {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 4rem;
}

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

.btn {
    line-height: 1.2;
    transition: all .1s ease-in-out;
}

.btn:hover {
    opacity: .8;
}

.btn-primary {
    color: #fff;
    background-color: #00B04F !important;
    border-color: transparent !important;
}

.btn-remove {
    color: #00B04F !important;
    font-size: 70%;
    cursor: pointer;
    text-decoration: underline;
}

a {
    color: #00b050;
}

.text-center {
    text-align: center;
}

.title h4 {
    font-size: 1.4rem;
    font-weight: 400;
}

.title span {
    font-size: .7rem;
}

.title p {
    padding-left: 10px;
    padding-right: 10px;
}

.dev-hidden {
    display: none !important;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.wrap-media img,
.wrap-media iframe {
    width: 100%;
    height: 100%;
}

.wrap-video_full {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
}

.wrap-video_full iframe {
    position: absolute;
    top: 0;
    left: 0;
}

iframe {
    width: 100%;
    height: 100%;
}

/* Header */

header {
    display: flex;
    align-items: center;
    min-height: 52px;
    width: 100%;
    background-color: #00b04f;
}

.navbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.625rem;
}

.navbar a,
.navbar .nav-link {
    color: #fff;
    border: none;
}

.navbar .navbar-brand {
    padding-top: 9px;
    padding-bottom: 9px;
}

.navbar-toggler {
    display: flex;
    flex-direction: column;
    width: 28px;
    margin-right: 4px;
    padding: 0;
}

.navbar-toggler:focus {
    outline: none;
}

.navbar-toggler-bar {
    height: 3px;
    width: 100%;
    margin: 2px 0;
    background-color: #fff;
}

.navbar-collapse {
    position: absolute;
    top: 52px;
    right: 0;
    min-width: 150px;
    background-color: #05af4f;
    transition: none;
    z-index: 2;
}

.navbar-collapse .nav-item {
    padding: 0 20px;
}

.navbar-collapse .nav-item:first-of-type {
    padding-top: 10px;
}

.navbar-collapse .nav-item:last-of-type {
    padding-bottom: 10px;
}

.link-account {
    position: absolute;
    right: 64px;
    top: 3px;
}

.link-account img {
    height: 30px;
}

/* Footer */

.footer {
    background-color: #00b04f;
    color: #f7f7f7;
    white-space: nowrap;
    line-height: 60px; /* Vertically center the text there */
}

.footer a {
    color: #fff;
    text-decoration: underline;
}

/* Home */

main {
    flex: 1 1;
    padding-bottom: 60px;
    color: #7f8080;
    line-height: 1.4;
}

.step-nav {
    margin: 35px 0;
    min-height: 25px;
}

.step-nav a,
.step-nav b {
    color: #00b050 !important;
}

.step-nav b {
    margin-right: 20px;
    font-size: 1.1rem;
}

.step-nav a {
    font-size: .95rem;
    text-decoration: underline;
}

.home {
    color: #00b050;
    font-size: 1.1rem;
}

.home .space {
    margin: 60px 0;
}

.home .title h3 {
    margin-bottom: 0;
    font-weight: 700;
}

.feature {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 25px;
}

.feature img {
    width: 48px;
    margin-right: 38px;
}

.feature p {
    margin-bottom: 0;
}

.wrap-ai {
    padding: 10px 0;
    background-color: #fff;
    text-align: center;
}

.wrap-ai img {
    height: 23px;
}

.cards-image img {
    width: 100%;
}

.video-block {
    margin: 18px 0;
    background-color: #f5f0e3;
}

.video-block .container {
    display: flex;
    flex-direction: row;
}

.video-block .wrap-media {
    width: 16.666%;
    margin-right: 16.666%;
    height: 140px;
}

.video-block.space-left .wrap-media {
    margin-right: 0;
    margin-left: 16.666%;
}

.example-cards {
    margin: 44px 0;
}

.example-cards-block {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.cards-text {
    min-width: 16.666%;
    width: 16.666%;
    padding: 0 15px;
    font-weight: bold;
    text-align: center;
}

.article {
    margin-bottom: 30px;
}

.article a {
    color: #7f8080;
    text-decoration: underline;
}

.article-block {
    display: flex;
    flex-direction: column;
}

.article-block .part-left {
    flex: 1 1;
    padding-right: 140px;
}

.article-block .title {
    margin: 25px 0;
}

.article-block .title h4 {
    margin-bottom: 0;
}

.article-block .title span {
    position: relative;
    top: -1px;
}

.article-block .top-part {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    width: 100%;
}

.article-block .video {
    width: 100%;
    padding-right: 140px;
}

.article-block .sidebar {
    width: 270px;
    min-width: 270px;
    padding: 8px 16px;
    background-color: #fff;
    text-align: center;
}

.article-block .sidebar h5 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: bold;
}

.article-block .sidebar .block {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin: 30px 0;
    font-size: .8rem;
    text-decoration: none;
    text-align: left;
}

.article-block .sidebar .block:last-of-type {
    margin-bottom: 20px;
}

.article-block .sidebar img {
    height: 70px;
}

.article-block .sidebar span {
    padding: 6px 10px 0 18px;
}

.article-block .content {
    margin-right: 270px;
    padding-right: 140px;
}

.article-block.without-video .content {
    margin-right: 0;
}

/* Cases more */

.articles-more {
    margin: 50px 0;
    padding-right: 400px;
}

.articles-more .title {
    margin-bottom: 32px;
}

.article-more {
    display: flex;
    flex-direction: row;
    margin-bottom: 16px;
}

.article-more .wrap-media {
    width: 280px;
    min-width: 280px;
    height: 150px;
    margin-right: 16px;
}

.article-more .wrap-content {
    padding: 10px 0;
    font-size: .9rem;
}

.article-more .wrap-content p {
    margin-bottom: 0;
}

/* Edit */

.wrap-btn {
    display: flex;
    flex-direction: row;
}

.wrap-btn .btn {
    margin-right: 8px;
}

.custom-file-upload {
    cursor: pointer;
    text-decoration: underline;
}

.formEdit input[type="file"] {
    display: none;
}

.formEdit .btn-remove {
    position: relative;
    top: -4px;
}

.formEdit .ck-editor {
    width: 100%;
    margin-left: 15px;
    padding-right: 15px;
}

.formEdit .ck-editor__editable.ck-rounded-corners, .ck-rounded-corners .ck-editor__editable {
    background-color: #fff;
}

/* Articles */

.table-title {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.table-title h4 {
    margin-right: 30px;
}

.table-title a {
    font-size: 14px;
    text-decoration: underline;
}

.sub-title {
    display: inline-block;
    margin: 11px 6px;
    color: #212529;
}

.articles-position {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 10px;
}

.articles-position input[type=number] {
    width: 60px;
}

.articles-position .inline-btn {
    color: #00B04F !important;
    font-size: 70%;
    cursor: pointer;
    text-decoration: underline !important;
    margin-right: 10px;
    cursor: pointer !important;
}

.articles-position .wrap-input {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.articles-position .wrap-input .form-control {
    padding: 1px 2px 1px 10px;
}

.articles-position .wrap-input .form-control.is-invalid {
    padding-right: 5px;
    background-image: none;
}

.articles-position .wrap-input .invalid-feedback {
    margin-left: 8px;
}

@media (max-width: 1200px) {

    .article-block .video {
        padding-right: 90px;
    }

    .article-block .sidebar {
        width: 250px;
        min-width: 250px;
    }

    .article-block .content {
        margin-right: 250px;
        padding-right: 90px;
    }

    .articles-more {
        padding-right: 340px;
    }

    .article-more .wrap-media {
        width: 240px;
        min-width: 240px;
    }
}

@media (max-width: 1000px) {

    .video-block .wrap-media {
        width: 23%;
        margin-right: 10%;
    }

    .video-block.space-left .wrap-media {
        margin-left: 10%;
    }

    .article-block .video {
        padding-right: 50px;
    }

    .article-block .sidebar {
        width: 240px;
        min-width: 240px;
    }

    .article-block .sidebar img {
        height: 50px;
    }

    .article-block .content {
        margin-right: 240px;
        padding-right: 50px;
    }

    .articles-more {
        padding-right: 0;
    }
}

@media (min-width: 769px) {
    header .container {
        padding: 0 4rem;
    }

    .home .container {
        padding-left: 100px;
    }
    
    .article-block.without-video {
        flex-direction: row-reverse;
    }
    
    .article-block.without-video .title {
        margin-top: 0;
    }
    
    .article-block.without-sidebar .video {
        margin-right: 270px;
    }
}

@media (max-width: 768px) {

    html {
        font-size: 14px;
    }

    .container,
    .container-big {
        padding: 0 10px;
    }

    .navbar {
        padding: 0;
    }

    main {
        padding-bottom: 30px;
    }

    .link-account {
        right: 40px;
        top: 4px;
    }

    .step-nav {
        margin: 12px 0 25px;
    }

    .step-nav b {
        font-size: 1rem;
    }

    .step-nav a {
        font-size: .85rem;
    }

    .home .container {
        padding: 0 15px;
    }

    .home .space {
        margin: 30px 0;
    }

    .home .title {
        text-align: center;
    }

    .feature {
        align-items: flex-start;
    }

    .feature img {
        width: 40px;
        margin-top: 2px;
        margin-right: 20px;
    }

    .title p {
        margin-bottom: 0;
    }

    .example-cards {
        margin: 0;
    }

    .example-cards-block {
        flex-direction: column;
        align-items: flex-start;
    }

    .cards-text {
        min-width: auto;
        padding: 18px 0 28px;
        border-top: 10px solid #fff;
    }

    .cards-image {
        overflow: auto;
    }

    .cards-image img {
        min-width: 700px;
        padding-bottom: 30px;
    }

    .video-block {
        margin: 0;
        background-color: transparent;
    }

    .video-block .container {
        flex-direction: column;
    }

    .video-block .wrap-media,
    .video-block.space-left .wrap-media {
        width: 250px;
        margin: 0 auto 32px;
    }

    .article .step-nav {
        display: none;
    }

    .article-block .title {
        margin: 20px 0 16px;
    }

    .article-block .top-part {
        flex-direction: column;
    }

    .article-block .video {
        padding-right: 0;
    }

    .article-block .video .wrap-video_full,
    .article-block .sidebar {
        width: calc(100% + 20px);
        margin-left: -10px;
    }

    .article-block .sidebar {
        display: flex;
        flex-flow: row wrap;
    }

    .article-block .sidebar h5 {
        width: 100%;
    }

    .article-block .sidebar .block {
        flex-direction: column;
        align-items: center;
        width: 33.33%;
        margin: 15px 0;
        padding: 0 5px;
        text-align: center;
    }

    .article-block .sidebar span {
        padding: 10px 10px 0 10px;
    }

    .article-block .content {
        margin: 0;
        padding: 0 10px;
    }

    .articles-more {
        position: relative;
        margin: 70px 0 30px;
        padding-right: 0;
    }

    .articles-more:before {
        content: '';
        position: absolute;
        width: calc(100% + 20px);
        height: 10px;
        top: -30px;
        left: -10px;
        background-color: #fff;
    }

    .articles-more .title {
        margin-bottom: 16px;
    }

    .article-more {
        margin-bottom: 14px;
    }

    .article-more .wrap-media {
        width: 260px;
        min-width: 260px;
    }
}

@media (min-width: 576px) {
    header .container {
        max-width: none;
    }
}

@media (max-width: 550px) {

    html {
        font-size: 13px;
    }

    main {
        padding-bottom: 20px;
    }

    .title h4 {
        font-size: 1.2rem;
    }

    .home .space {
        margin: 20px 0;
    }

    .wrap-ai {
        padding: 5px 0;
    }

    .wrap-ai img {
        display: none;
    }

    .article-block .sidebar .block {
        margin: 10px 0;
    }

    .article-more .wrap-media {
        width: 50%;
        min-width: 50%;
        height: 130px;
    }
}

.link-as-btn {
    color: white;
    cursor: pointer;
}