html,
body,
button,
input,
select,
textarea {
    font-family: "Lato Regular";
}

body {
    font-size: 13px;
    color: #666;
    line-height: 1.7;
    background-color: #fafafa;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0px;
}

header {
    top: 0;
    left: 0;
    right: 0;
    -webkit-transition: all 0.4s ease;
    -moz-transition: all 0.4s ease;
    transition: all 0.4s ease;
    background-color: #424242;
    color: #fff;
    font-size: 13px;
}

header a {
    color: #fff;
}

header .content-wrapper .logged-in {
    /* display: none; */
}

header .content-wrapper .not-logged-in {
    display: block;
}

header .content-wrapper .desktop {
    display: block;
}

header .content-wrapper .mobile {
    display: none;
}

header ul.links {
    padding: 0;
    margin: 0;
}

header .content-wrapper .desktop {
    height: 64px;
}

header .content-wrapper .mobile {
    height: 64px;
}

header .mobile>a {
    float: right;
}

header .content-wrapper ul {
    float: right;
}

header .content-wrapper ul.links>li {
    position: relative;
    line-height: 40px;
    vertical-align: middle;
    display: inline-block;
}

header .content-wrapper .desktop ul.links>li:not(:first-child):before {
    display: inline-block;
    content: "";
    border-left: 1px solid #fff;
    height: 12px;
    vertical-align: inherit;
}

header .content-wrapper ul.links>li>a {
    position: relative;
    display: inline-block;
    padding: 12px 16px;
    font-size: 13px;
    box-sizing: border-box;
    text-decoration: none;
    line-height: inherit;
    vertical-align: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "PT Serif";
    font-weight: normal !important;
}

h2 {
    display: block;
    margin-block-start: 0.83em;
    margin-block-end: 0.83em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    font-size: 26px;
    line-height: 32px;
    margin: 24px auto 24px auto;
}

a:hover {
    color: #b5b5b5;
}

button {
    border-style: none;
    cursor: pointer;
    outline: none;
    appearance: auto;
}

button,
a[role="button"] {
    color: #fff;
    background-color: #ff0013;
    font-size: 13px;
    text-decoration: none;
    line-height: 32px;
    min-height: 32px;
    padding: 0 16px;
    min-width: 150px;
    text-align: center;
    display: inline-block;
}

.highlight-yellow {
  background-color: #fff3b0; /* 淺黃色背景 */
  color: #000;              /* 黑字，對比清晰 */
  padding: 2px 4px;         /* 微距內邊距 */
  border-radius: 4px;       /* 圓角 */
  font-weight: 500;         /* 少少粗體效果 */
}

img {
    display: block;
    max-width: 100%;
}

.logo-header {
    background-color: white;
    padding-top: 10px;
    padding-left: 10px;
}

.top-line {
    background: #EB2329;
    height: 15px;
    width: 100%;
    margin: 0 auto;
}

.footer-line {
    background: #EB2329;
    height: 40px;
    width: 100%;
    margin: 0 auto;
    display: block;
    padding-top: 8px;
}

.bottom-line {
    background: #EB2329;
    height: 10px;
    width: 100%;
    margin: 0 auto;
}

footer {
    padding: 10px 0;
    text-align: center;
    background-color: #fafafa;
}

.copyright {
    color: black;
}

.footer-mathconcept-img {
    padding: 15px;
}

.switch_lang_left {
    display: inline-block !important;
    padding-right: 6px!important;
}

.switch_lang_right {
    display: inline-block!important;
    padding-left: 6px!important;
}

input:-moz-read-only {
    /* For Firefox */
    background-color: #e0e0e0;
}

input:read-only {
    background-color: #e0e0e0;
}

textarea:-moz-read-only {
    /* For Firefox */
    background-color: #e0e0e0;
}

textarea:read-only {
    background-color: #e0e0e0;
}

.card {
    border-radius: 0px;
    border: 0;
}

.card-body {
    padding: 32px;
}

.card-title {
    margin-bottom: 24px;
}

.row .col {
    margin-bottom: 10px;
}

.reg-confirm .row .column {
    margin-bottom: 20px;
}


/* This is the checked state */

.field.checkbox label>input[type="checkbox"],
.field.radio label>input[type="radio"] {
    position: absolute;
    visibility: hidden;
    overflow: hidden;
    width: 0;
    height: 0;
}

.field.checkbox label>input[type="checkbox"]+span,
.field.radio label>input[type="radio"]+span {
    display: inline-block;
    line-height: 24px;
    vertical-align: top;
    position: relative;
    padding-left: 32px;
}

.field.checkbox label>input[type="checkbox"]+span:before,
.field.radio label>input[type="radio"]+span:before {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 300;
    width: 24px;
    height: inherit;
    line-height: inherit;
    margin-right: 0px;
    font-weight: bold;
}

.field.radio label>input[type="radio"]+span:after {
    font-family: "Font Awesome 5 Free";
    font-weight: 300;
    content: "\f111";
    position: absolute;
    top: 0px;
    height: inherit;
    line-height: inherit;
    color: #e0e0e0;
    left: 3px;
    font-size: 18px;
}

.field.radio label>input[type="radio"]:checked+span:before {
    color: #ff0013;
    content: "\f111";
    font-size: 14px;
    left: 5px;
    position: absolute;
}

.field.checkbox label>input[type=checkbox]+span:after {
    font-family: "Font Awesome 5 Free";
    font-weight: 300;
    content: "\f0c8";
    position: absolute;
    top: 0px;
    height: inherit;
    line-height: inherit;
    color: #e0e0e0;
    font-size: 20px;
    left: 3px;
}

.field.checkbox label>input[type=checkbox]:checked+span:before {
    color: #ff0013;
    content: "\f00c";
    font-size: 14px;
    left: 5px;
    position: absolute;
}

label.card-center {
    text-align: left !important;
}


.price-discount {
    color:red;text-decoration:line-through;
    font-size:24px;
}

.discount-code-remark {
    color:gray;
    position: relative;
    display: block;
    top: -20px;
    font-size: 16px;

}

.remove-coupon-code {
    display: none;
}


@media (max-width: 980px) {
    header .content-wrapper .desktop {
        display: none;
    }
    header .content-wrapper .mobile {
        display: block;
    }
}

.slideout-menu {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 256px;
    min-height: 100vh;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    z-index: 0;
    display: none;
    background: #424242;
    border-color: #666;
    color: #fff;
}

.slideout-menu-left {
    left: 0;
}

.slideout-menu-right {
    right: 0;
}

.slideout-panel {
    position: relative;
    z-index: 1;
    will-change: transform;
    background-color: #fafafa;
    /* A background-color is required */
    min-height: 100vh;
}

.slideout-open,
.slideout-open body,
.slideout-open .slideout-panel {
    overflow: hidden;
}

.slideout-open .slideout-menu {
    display: block;
}

.slideout-menu ul {
    font: inherit;
    font-size: 14px;
    line-height: 20px;
}

.slideout-menu ul li {
    border-bottom-width: 1px;
    border-bottom-style: solid;
    display: block;
    border-color: #666;
    right: 0;
    left: 20px;
}

.slideout-menu-list {
    list-style: none;
    display: block;
    padding: 0;
    margin: 0;
    border-color: #666;
}

.slideout-menu-list a {
    color: inherit;
    display: block;
    padding: 10px 10px 10px 20px;
    margin: 0;
}

.slideout-menu-list a:hover {
    color: #b5b5b5;
    text-decoration: none;
}

.slideout-menu header {
    border-bottom: 1px solid;
    border-color: inherit;
    text-align: center;
    line-height: 20px;
    height: 40px;
    padding: 0 40px;
    margin: 0;
    top: 0;
    left: 0;
    right: 0;
    padding: 10px 0;
    font-size: 14px;
}

.field {
    position: relative;
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.field.elements-vertical>* {
    display: block !important;
}

.field input,
.field textarea,
.field select,
.field .error-message {
    margin-bottom: 8px;
}

.field label {
    margin-bottom: 8px;
}

.field input,
.field textarea,
.field select,
.field .error-message {
    width: inherit;
}

.field input:disabled {
    color: #ccc;
}

.field .error-message {
    display: none;
    font-size: 12px;
}

.field.error {
    color: #f04124;
}

.field.error input,
.field.error textarea,
.field.error select,
.field.error .ui-selectmenu-button {
    border: 1px solid #f04124;
}

.field.error .error-message {
    display: block;
}

.field.verified {
    color: #ff0013;
}

.field.verified input,
.field.verified textarea,
.field.verified select,
.field.verified .ui-selectmenu-button {
    border: 1px solid #ff0013;
}

.field.verified .error-message {
    display: block;
}

.field .grid-item {
    margin-bottom: 0;
}

.field legend {
    font-size: 13px;
    font-size: 1.3rem;
    color: #9e9e9e;
    margin-bottom: 8px;
}

.container {
    margin: 40px auto;
}

button:focus,
button:active {
    outline: none !important;
    box-shadow: none;
}

input.form-control,
select.form-control,
textarea.form-control {
    box-sizing: border-box;
    outline: 0;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    color: #666;
    border-radius: 0px;
    line-height: 1.3;
    font-size: 14px;
}

table thead {
    background-color: #666;
    color: #fff;
}

.download-pdf-table-td {
    text-align: center;
    min-width: 250px;
}

.download-pdf-table ul {
    padding-left: 13px;
}

.table td {
    /* border-top:0px; */
}

input:read-only {
    background-color: #e0e0e0;
}

input[type=password],
input[type=text] {
    height: 32px;
    padding: 0 8px;
    line-height: 30px;
}

input,
select,
textarea {
    box-sizing: border-box;
    outline: 0;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    color: #666;
}

.field label {
    display: block;
}

.text.field label {
    color: #9e9e9e;
}

.error-msg {
    display: none;
}

.top-head {
    border-top: 10px solid;
    border-left: 0px solid;
    border-right: 0px solid;
}

.iti.iti--allow-dropdown {
    width: 100%;
    ;
}

table.hover-gray tbody tr:hover {
    background-color: #efefef;
}

.grade-form .table td,
.grade-form .table th {
    border-top: 1px solid #dee2e6;
}

.school_list_close {
    position: absolute;
    top: 34px;
    z-index: 1;
    right: -1px;
    font-size: 16px;
    display: none;
}

.autocomplete-wrapper {
    position: relative;
    /* padding: 5px 10px; */
    /* font-family: 'Verdana', sans-serif; */
    
    #school {
      &:focus {
        outline: 0;
      }
    }

    #user_current_school_search {
        width:100%;
    }

    #query-results {
        margin: 0px;
        padding: 0;
        padding-top: 15px;
    }
    
    #query-results-block {
        display: none;
        position: absolute;
        top: 36px;
        left: -5px;
        right: -1px;
        border: solid 1px #CCC;
        min-height: 50px;
        max-height: 200px;
        overflow: scroll;
        list-style: none;
        padding: 10px;
        background: beige;
        border-radius: 5px;
        padding-top: 15px;
        z-index: 1;
         li {
          padding: 5px;
          /* margin: 0; */
          margin-left: 10px;
          font-size: 13px;
          display: list-item;
          list-style-type: disc !important;
          text-align: -webkit-match-parent;
          &:hover {
            background: #EEE;
            cursor: pointer;
          }
        }
    }
}
#query-results li {
    list-style-type: none !important;
} 


#user_current_school {
    width:100%;
}

/* legend {
font-size: 20px;
font-size: 2rem;
line-height: 1.5;
} */

@media (max-width: 540px) {
    table.responsive tbody tr td:before {
        content: attr(data-th);
        color: #9e9e9e;
        display: block;
    }
    table.responsive thead {
        display: none;
    }
    table.responsive tbody tr {
        display: block;
        padding: 16px;
    }
    .table.responsive tbody tr td {
        display: block;
        width: auto;
    }
    table.responsive.student-sign-up tbody tr td:before {
        content: attr(data-th);
        color: #9e9e9e;
        display: block;
    }
    table.responsive.student-sign-up thead {
        display: none;
    }
    table.responsive.student-sign-up tbody tr {
        display: block;
        padding: 16px;
        border-top: 1px solid gray;
        border-bottom: 1px solid gray;
    }
    .table.responsive.student-sign-up tbody tr td {
        display: block;
        width: auto;
    }
}

@media (max-width: 768px) {
    .card-body {
        padding: 30px 15px;
    }
    .table td,
    .table th {
        border-top: 0px solid #dee2e6;
    }
    table.responsive.student-sign-up tbody tr td:before {
        content: attr(data-th);
        color: #9e9e9e;
        display: block;
    }
    table.responsive.student-sign-up thead {
        display: none;
    }
    table.responsive.student-sign-up tbody tr {
        display: block;
        padding: 16px;
        border-top: 1px solid gray;
        border-bottom: 1px solid gray;
    }
    .table.responsive.student-sign-up tbody tr td {
        display: block;
        width: auto;
    }
}

@media (max-width: 980px) {
    .card-body {
        padding: 30px 15px;
    }
    .table td,
    .table th {
        border-top: 0px solid #dee2e6;
    }
    table.responsive.student-sign-up tbody tr td:before {
        content: attr(data-th);
        color: #9e9e9e;
        display: block;
    }
    table.responsive.student-sign-up thead {
        display: none;
    }
    table.responsive.student-sign-up tbody tr {
        display: block;
        padding: 16px;
        border-top: 1px solid gray;
        border-bottom: 1px solid gray;
    }
    .table.responsive.student-sign-up tbody tr td {
        display: block;
        width: auto;
    }
    .registration-form .competition-date {
        min-width: 100px;
    }
    .registration-form .birthyear {
        min-width: 150px;
    }
}

legend {
    font-size: 20px;
    padding-bottom: 5px;
    padding-top: 10px;
}

.table.student-sign-up thead th {
    white-space: nowrap;
    text-align: center;
}

select.default-selectmenu {
    background-color: #fff!important;
    border-radius: 0!important;
    height: 32px!important;
    width: inherit!important;
    border-color: #e0e0e0;
}

.edit-phone {
    height: 32px;
}

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

.birthdate .error-message {
    top: -9px;
    position: relative;
}

table th {
    font-weight: 400;
}

.error-message {
    margin-top: -5px;
}

.iti.iti--allow-dropdown {
    margin-bottom: 10px;
}

.user_birthdate.error .error-message {
    margin-top: -15px;
}

::placeholder {
    /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: #c7c5c5;
    opacity: 1;
    /* Firefox */
}

 :-ms-input-placeholder {
    /* Internet Explorer 10-11 */
    color: #c7c5c5;
}

 ::-ms-input-placeholder {
    /* Microsoft Edge */
    color: #c7c5c5;
}

.timeslot-td {
    border-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 25px !important;
    white-space: nowrap;
}

.timeslot-td.timename {
    width: 172px;
}

.container.grade-form {
    padding: 0;
}


/* 575 */

@media print {
    .table thead tr th {
        color: black;
    }
}