/* Content */
body {
    padding-top: 44px;
}

header {
    position: relative;
}

header .header-content {
    position: relative;
    overflow: hidden;
    padding-bottom: 24px;

    background: #F8F8F8;

    background: url(../assets/learning2.jpg);
    background-size: cover;
    background-position: center;
    height: 332px;

    transition: height 0.2s linear 0s;
}

.main-logo {
    height: 320px;
    width: 320px;
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
}

.main-logo .logo {
    z-index: 2;
    position: relative;
    height: auto;
    flex: 0 1 auto;
    width: 90%;
}

.main-logo-background {
    height: 400px;
    width: 400px;
    transform: rotate(45deg);
    position: absolute;
    top: -45px;
    left: -164px;
    box-sizing: border-box;
    background-color: #FFF;
    border: 1px solid rgba(0,0,0,0.08);
    z-index: 1;
}

/* Squares */
.te-square-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-content: center;
    align-items: center;
    margin: 32px auto;
    box-sizing: border-box;
    max-width: 1280px;
}

.te-square {
    flex: 0 1 auto;
    align-self: auto;

    height: 180px;
    width: 180px;
    color: #2e9bdd;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    align-items: center;
    flex-direction: column;

    position: relative;

    text-decoration: none;
    box-sizing: border-box;
    margin: 32px;

    transition: color 0.2s linear 0s, margin 0.2s linear 0s;
}

.te-square:hover {
    text-decoration: none;
    color: #FFF;
}

.te-square-background {
    height: 140px;
    width: 140px;
    transform: rotate(45deg);
    position: absolute;
    top: 20px;
    left: 20px;
    box-sizing: border-box;
    background-color: #FFF;
    border: 1px solid rgba(0,0,0,0.08);
    z-index: 1;

    transition: background 0.2s linear 0s;
}

.te-square:hover .te-square-background {
    background-color: #2e9bdd;
}

.te-square-icon,
.te-square-text,
.te-square-number {
    flex: 0 1 auto;
    align-self: auto;

    position: relative;
    z-index: 2;
}

.te-square-icon {
    position: absolute;
    text-align: center;

    font-size: 92px;
    height: 180px;
    width: 180px;
    line-height: 180px;

    color: rgba(0,0,0,0.035);
}

.te-square-text {
    font-size: 18px;
}

.te-square-number {
    font-size: 40px;
    height: 54px;
    width: 54px;
    margin: 0;
    text-align: center;
}

@media screen and (max-width : 1024px) {
    .te-square {
        margin: 32px 16px;
    }
}

@media screen and (max-width : 960px) {
    .te-square-container {
        height: 244px;
        flex-direction: column;
        align-items: flex-end;
        align-content: flex-end;
        justify-content: center;

        transition: height 0.2s linear 0s;
    }

    .te-square {
        margin: 4px 0;
        height: 54px;
        width: 240px;
        display: block;
        background-color: #FFF;
        border: 1px solid rgba(0,0,0,0.08);
        border-right: 0;
        padding: 4px 12px 4px 44px;
        line-height: 42px;

        transition: background 0.2s linear 0s, color 0.2s linear 0s;
    }

    .te-square:hover {
        background-color: #2e9bdd;
    }

    .te-square-background {
        display: none;
    }

    .te-square-icon {
        text-align: left;
        left: 8px;
    
        font-size: 24px;
        height: 44px;
        width: 44px;
        line-height: 44px;
    
        color: rgba(0,0,0,0.2);
    }


    .te-square-number {
        font-size: 18px;
        display: inline-block;
        width: auto;
        height: 44px;
        line-height: 44px;
    }
}

@media screen and (max-width : 560px) {
    header .header-content {
        height: 272px;
    }

    .te-square-container {
        height: 190px;
    }

    .main-logo {
        width: 84px;
        height: 134px;
    }

    .main-logo .logo {
        top: -32px;
        width: 92%;

        transition: top 0.2s linear 0s, width 0.2s linear 0s;
    }

    .main-logo-background {
        height: 200px;
        width: 200px;
        left: -158px;
        top: -66px;
    }
}

@media screen and (max-width: 839px) {

    .menu-wrapper .small-logo.logo-active {
        opacity: 1;
    }
}

/* LOGIN */
#loginform {
    width: 100%;
    max-width: 420px;
    display: block;
}

#loginform .login-remember label {
    padding: 12px 0;
    display: block;
}

#loginform .login-remember input {
    width: auto;
    height: auto;
    min-height: 0;
}

#loginform input.error {
    border-color: #d00;
}


.field-error {
    color: #d00;
    display: block;
    font-weight: normal;
}

.notice {
    display: block;
    font-weight: normal;
}

.notice-error {
    color: #d00;
}

.notice-success {
    color: #0d0;
}

/* TRAININGS */
.training-table {
    background: #FFF;
    border-bottom: 4px solid #333;
    margin: 16px 0 48px;
}

.training-table tbody .group-topic {
    background: #333;
}

.training-table tbody .table-topic {
    background: #DDD;
}

.training-table tbody .group-topic th,
.training-table tbody .table-topic th {
    border-color: transparent;
    font-weight: normal;
    text-align: left;
    white-space: nowrap;
}

.training-table tbody .group-topic th {
    color: #FFF;
}

.training-table tbody .table-topic th {
    color: #333;
}

.training-table th,
.training-table td {
    border-color: transparent;
    background: transparent;
    padding: 16px;

    transition: background .2s linear;
}

.training-table .training-row.row-0 {
    background: #FFF;
}

.training-table .training-row.row-1 {
    background: #F1f1f1;
}


.training-table th:nth-child(1),
.training-table td:nth-child(1) {
    width: 55px;
}

.training-table td:nth-child(2) {
    font-weight: bold;
}

tr.training-row:hover td {
    background: rgba(172, 180, 53, 0.15);
}

.training-table th:last-child,
.training-table td:last-child {
    width: 180px;
}

.classification-icon {
    width: 38px;
    height: 38px;
    line-height: 38px;
    text-align: center;
    background: #333;
    color: #fff;
    font-size: 14px;
    border-radius: 50%;
    opacity: 1;
    margin: -8px -16px -8px 0;
}

.training-status {
    font-size: 14px;
}

.timer {
    font-weight: bold;
}

.hint {
    font-size: 14px;
}

.inner-hint {
    font-weight: bold;
}

.option-button,
.content-wrapper button.option-button {
    background: #2e9bdd;
    color: #FFF;
    display: block;
    padding: 8px;
    white-space: nowrap;
    border-radius: 3px;
    font-size: 14px;
    text-decoration: none;
    text-align: center;

    transition: background .2s linear;
}

.option-button:hover,
.content-wrapper button.option-button:hover  {
    color: #FFF;
    background: #1B5D84;
    text-decoration: none;
}

.option-button.button-success,
.content-wrapper button.option-button.button-success {
    background: rgb(0, 114, 0);
}

.option-button.button-success:hover,
.content-wrapper button.option-button.button-success:hover {
    background: rgb(0, 170, 0);
}

.option-button.button-warning,
.option-button.button-warning,
.content-wrapper button.option-button.button-warning {
    background: rgb(201, 114, 0);
}

.option-button.button-warning:hover,
.content-wrapper button.option-button.button-warning:hover {
    background: rgb(228, 150, 6);
}

.option-button.button-info {
    background: #138496;
}

.option-button.button-info:hover {
    background: #17a2b8;
}

.option-button.button-seconday {
    background: #acacac;
}

.option-button.button-seconday:hover {
    background: #c5c5c5;
}

.option-button.button-running {
    background: #3e8154;
}

.option-button.button-running:hover {
    background: #356d48;
}

.option-button.inactive {
    opacity: 0.4;
    cursor: not-allowed;
}

.topic-left {
    float: left;
    margin-bottom: 16px;
}

.option-button.button-right {
    width: auto;
    float: right;
    margin-top: 24px;
    margin-bottom: 12px;
}

.training-body #footer .controll-link,
.training-body #footer .back-link {
    background: #2e9bdd;
    color: #FFF;
    display: block;
    padding: 8px;
    white-space: nowrap;
    border-radius: 3px;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
    position: absolute;
    bottom: 5px;
    right: 5px;
    cursor: pointer;

    transition: background .2s linear;
}

.training-body {
    padding-top: 0;
}

.training-body #footer .back-link {
    background: rgb(201, 114, 0);
    bottom: 5px;
    left: 5px;
    right: auto;
}

.training-body #footer.hidden .controll-link {
    display: none;
}

.training-body .training-hint {
    display: block; 
    height: calc(100vh - 70px); 
    width: 100%;
    padding: 24px;
}

.training-body section {
    height: calc(100vh - 70px);
    overflow: auto;
}

.clear {
    clear: both;
}

.question {
    padding: 0 4px 4px 4px;
    border-bottom: 2px solid rgba(0,0,0,0.2);
    background-color: rgba(0,0,0,0);
    transition: border-color .2s linear, background-color .2s linear;
}

.question h4 {
    margin: 24px 0 8px;
}

.question label {
    display: inline-block;
    padding: 8px;
    min-width: 200px;
    background: #FFF;
    margin: 0 12px 8px 0;
    border: 1px solid #eee;
    cursor: pointer;

    transition: border-color .2s linear;
}

.question label:hover {
    border-color: #17a2b8;
}

.question.answer-right {
    background-color: #caeeb7;
    border-bottom: 2px solid rgb(75, 147, 36);
}

.question.answer-wrong {
    background-color: #eac2ab;
    border-bottom: 2px solid #d95200;
}

.question .question-hint {
    font-size: 14px;
    transition: color .2s linear;
}

.question.answer-right .question-hint {
    color: rgb(75, 147, 36);
}

.question.answer-wrong .question-hint {
    color: #d95200;
}

input[type="radio"],
input[type="checkbox"] {
    width: auto;
    height: auto;
    min-height: 0;
    margin: 4px 12px;
}

.form-config-submit {
    margin-top: 24px;
}

.content-wrapper .form-config-submit button,
.content-wrapper .form-config-submit a {
    display: inline-block;
    width: auto;
    border: 0;
    margin-right: 24px;
    opacity: 1;
}

.content-wrapper .form-config-submit a {
    padding: 4px 24px;
}

.jump-mark {
    position: relative;
    top: -92px;
    display: block;
    overflow: hidden;
    height: 1px;
    width: 1px;
    opacity: 0;
}

.service-field p.no-entries {
    padding: 24px 8px;
}

/* MODAL */
.modal {
    display: none;
}
  
.modal.is-open {
    display: block;
}
          
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
  
.modal-container {
    background-color: #fff;
    padding: 30px;
    width: 500px;
    max-width: 80%;
    max-height: 100vh;
    border-radius: 4px;
    overflow-y: auto;
    box-sizing: border-box;
    z-index: 1001;
}
  
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
  
.modal-title {
    margin-top: 0;
    margin-bottom: 0;
    color: #333;
    box-sizing: border-box;
    line-height: 36px;
    padding: 0;
}
  
.modal-content {
    margin-top: 2rem;
    margin-bottom: 2rem;
    line-height: 1.5;
    color: rgba(0,0,0,.8);
}

.modal-footer {
    display: flex;
    gap: 20px;
}

.modal-footer .option-button {
    min-width: 140px;
    flex: 0 0 auto;
}

@media screen and (max-width : 459px) {
    .modal-footer {
        flex-direction: column;
    }
}

.service-field p.has-subtext a {
    padding: 12px 8px;
}

.service-field p.has-subtext .subtext {
    font-size: 0.8rem;
}

/* password strengh meter */
#pass-strength-result {
    background-color: #eee;
    border: 1px solid #ddd;
    color: #23282d;
    margin: -1px 0 12px;
    padding: 3px 5px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    opacity: 0;
}

#pass-strength-result.short {
    background-color: #f1adad;
    border-color: #e35b5b;
    opacity: 1;
}

#pass-strength-result.bad {
    background-color: #fbc5a9;
    border-color: #f78b53;
    opacity: 1;
}

#pass-strength-result.good {
    background-color: #ffe399;
    border-color: #ffc733;
    opacity: 1;
}

#pass-strength-result.strong {
    background-color: #c1e1b9;
    border-color: #83c373;
    opacity: 1;
}

.weak-pass-check {
    display: block;
    width: 100%;
    margin: 12px 0 0 1px;
}

.weak-pass-check.hidden {
    display: none;
}

.weak-pass-check input {
    padding-left: 0;
    margin-left: 0;
}

.content-wrapper input[type=submit].password-submit:disabled {
    opacity: 0.6;
}

.content-wrapper input[type=submit].password-submit:disabled:hover {
    cursor: not-allowed;
}

.password-container {
    display: block;
    position: relative;
}

.password-container .type-switch {
    position: absolute;
    top: 10px;
    right: 0;
    height: 32px;
    line-height: 32px;
    width: 32px;
    font-size: 24px;
    color: #777;
}

@media screen and (max-width: 959px) {

    #contentWrapper .training-table th:first-child,
    #contentWrapper .training-table td:first-child {
        display: none;
    }
}

@media screen and (max-width: 639px) {
    
    #contentWrapper .training-table:not(.training-closed-table) .group-topic th:nth-child(4),
    #contentWrapper .training-table.training-closed-table .group-topic th:nth-child(3),
    #contentWrapper .training-table .table-topic th:nth-child(3),
    #contentWrapper .training-table td:nth-child(3) {
        display: none;
    }
}

.background-wrapper {
    overflow-y: hidden;
    overflow-x: auto;
}

.resolution-hint {
    display: none;
}

@media screen and (max-width: 424px) and (orientation: portrait) {

    .resolution-hint {
        display: block;
        color: rgb(228, 150, 6);
        padding: 8px;
        border: 1px solid rgb(228, 150, 6);
        background: #FFF;
        border-radius: 3px;
        clear: both;
    }
}