/*!
 * Copyright 2022 youngmonkeys.org
 *
 * Licensed under the ezyplatform, Version 1.0.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://youngmonkeys.org/licenses/ezyplatform-1.0.0.txt
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
*/

iframe {
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
}

.border-none {border: none !important;}

.btn-block {display: block;width: 100%;}
.btn-link {text-decoration: none;}
button.close {padding: 0;background-color: transparent;border: 0;}
.color-gray { color: gray; }
.color-price { color: #49B265; }
.close {float: right;font-size: 1.5rem;font-weight: 700;line-height: 1;color: #000;text-shadow: 0 1px 0 #fff;opacity: .5;}

.cursor-pointer {cursor: pointer;}
.dropdown-menu-md {
    max-width: 250px;
    min-width: 200px;
    padding: 0px;
}

.dropdown-menu-lg {
    max-width: 500px;
    min-width: 320px;
    padding: 0px;
}

.form-control {
    font-size: inherit;
}

.form-inline .form-control {
  display: inline-block;
  width: auto;
  vertical-align: middle;
}

.modal-header .close {
    padding: 1rem 1rem;
    margin: -1rem -1rem -1rem auto;
}

button.close {
    padding: 0;
    background-color: transparent;
    border: 0;
}

.custom-file-label {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1;
    height: calc(2.25rem + 2px);
    padding: 0.375rem 0.75rem;
    overflow: hidden;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    box-shadow: none;
}

.error-page-wrapper .text-warning {
    color: #ffc107 !important;
}

.height-320 { height: 320px; }

.input-group-append,
.input-group-prepend {
    display: -ms-flexbox;
    display: flex;
}

.margin-top-negative-modal {margin-top: -3rem;}
.max-height-75vn-scroll {max-height: 75vh;overflow: auto;}
.max-height-85vn-scroll {max-height: 75vh;overflow: auto;}
.line-height-1p5 { line-height: 1.5; }

.overflow-scroll { overflow: scroll; }

.pagination .page-link { font-size: 1rem; }
.pagination-arrows {display:flex;align-items: center;justify-content: center;}
.pagination-arrows a,
.pagination-arrows span {display:flex;align-items: center;justify-content: center;padding: 15px;cursor: pointer;}
.pagination-arrows a,
.pagination-arrows span {color: gray;}
.pagination-arrows a:hover,
.pagination-arrows span:hover {text-decoration: none;}
.pagination-arrows a:nth-child(1),
.pagination-arrows a:nth-child(5),
.pagination-arrows span:nth-child(1),
.pagination-arrows span:nth-child(5) {
  background: lightgray;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border-width: 1px;
  border-color: gray;
}
.pagination-sm .page-link { font-size: 1rem; }
.p-1px { padding: 1px; }
.pt-4rem { padding-top: 4rem; }
.pt-5rem { padding-top: 5rem; }

.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
  will-change: transform, opacity;
}
.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.separator {display: flex;align-items: center;text-align: center;margin: 1.5rem 0 1.5rem 0;}
.separator::before,
.separator::after {content: "";flex: 1;border-bottom: 2px solid #e1e3e3;;}
.separator:not(:empty)::before {margin-right: .5em;}
.separator:not(:empty)::after {margin-left: .5em;}
.star-checked { color: #ffc24b; }
.text-decoration-none {text-decoration: none;}
.text-original-price {color: #f30b0b !important;text-decoration: line-through;}
.table td {vertical-align: middle;}
.text-red { color: #dc3545!important; }
.wh-150px { width: 150px !important; height: 150px !important; }
.wh-24px { width: 24px ; height: 24px; }
.wh-72px { width: 72px ; height: 72px; }
.w-250px { width: 250px; }

/**************************/
.dropdown-menu-lg {max-width: 500px;min-width: 320px;padding: 0px;}
.dropdown-menu-md {max-width: 250px;min-width: 200px;padding: 0px;}
.nav-sidebar>.nav-item .nav-icon {
    margin-left: 0.05rem;
    font-size: 1.2rem;
    margin-right: 0.2rem;
    text-align: center;
    width: 1.6rem;
}
.nav-link:focus, .nav-link:hover {
    text-decoration: none;
    color: #fff;
}
.nav-sidebar>.nav-item .nav-icon {
    margin-left: 0.05rem;
    font-size: 1.2rem;
    margin-right: 0.2rem;
    text-align: center;
    width: 1.6rem;
}
.navbar-badge {
    font-size: 0.6rem;
    font-weight: 300;
    position: absolute;
    right: 5px;
    top: 9px;
    padding: 2px 4px;
}
.wrapper {display: flex;min-height: 100vh;flex-direction: column;}

/************ class lesson ******************/
.class-lessons .stars i {
    font-size: inherit;
    margin-right: auto;
    margin-bottom: auto;
}

/************ class lesson comment **********/
.class-lesson-comment .collapse, .module .collapsing {
  height: 3rem;
}
.class-lesson-comment .collapse {
  position: relative;
  display: block;
  overflow: hidden;
}
.class-lesson-comment .collapse:before {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
}
.class-lesson-comment .collapse.show {
  height: auto;
}
.class-lesson-comment .collapse.show:before {
  display: none;
}
.class-lesson-comment a.collapsed:after {
  content: ' >';
}
.class-lesson-comment a:not(.collapsed):after {
  content: ' <';
}

/************ skill assessment **********/
.skill-assessment-do .skill-assessment-content-wrapper,
.skill-assessment-do .skill-assessment-content-wrapper .submit-buttons button,
.skill-assessment-do .skill-assessment-content-wrapper .submit-buttons a {
    font-size: 18px;
}
