﻿body {
    font-family: "Kanit";
    font-size: 16px;
    /*background: rgba(51, 51, 51, 0.15);*/
    --tw-bg-opacity: 1;
    background-color: rgba(248, 248, 248, var(--tw-bg-opacity));
    /*-moz-filter: grayscale(50%);
    -webkit-filter: grayscale(50%);
    filter: gray; /* IE6-9 */
    /*filter: grayscale(50%);*/
}

/*---black-ribbon---*/
.black-ribbon {
  position: fixed;
  z-index: 9999;
  width: 70px;
}

@media only all and (min-width: 768px) {
  .black-ribbon {
    width: auto;
  }
}

.stick-left { left: 0; }
.stick-right { right: 0; }
.stick-top { top: 0; }
.stick-bottom { bottom: 0; }

h1 {
    margin-top: 75px;
    text-indent: 50px;
    line-height: 0;
    letter-spacing: 1px;
    color: white;
    font-size: 2vw;
    font-weight: 700;
}

h2{
    float: right;
    padding-top: 10px;
    margin-top: 75px;
    text-indent: 50px;
    line-height: 0;
    letter-spacing: 1px;
    color: white;
}

h3 {
    font-size: 4.4vw;
    float: right;
    padding-top: 20px;
    /*10px = 0.625rem*/
    padding-right: 0.625rem;
    /*letter-spacing: 0.2px;*/
    text-indent: 25px;
    line-height: 110%;
    color: white;
    font-weight: lighter;
    opacity: .9;
    margin: 1.46rem 0 0 0;
}

h4 {
    font-size: 3.8vw;
    float: right;
    /*10px = 0.625rem*/
    padding-right: 0.625rem;
    /*letter-spacing: 0.2px;*/
    line-height: 110%;
    color: white;
    font-weight: lighter;
    opacity: .6;
    margin: 1.14rem 0 0 0;
}

h6 {
    text-align: right;
    float: right;
    padding-right: 20px;
    font-size: 0.8rem;
    line-height: 110%;
    margin: 0.5rem 0 0.4rem 0;
}

@media only screen and (min-width: 481px) {
  h3 {
    font-size: 4.2vw;
    letter-spacing: 1px;
  }

  h4 {
    font-size: 3.5vw;
    letter-spacing: 1px;
  }
}

/*@media only screen and (min-width: 601px) {
  h3 {
    font-size: 3.5vw;
  }

  h4 {
    font-size: 3vw;
  }
}*/

@media only screen and (min-width: 993px) {
  h3 {
    font-size: 3vw;
    letter-spacing: 1.5px;
  }

  h4 {
    font-size: 2.2vw;
    letter-spacing: 1.5px;
  }

  h6 {
    font-size: 1rem;
  }
}

header {
    position: absolute;
    top: 0;
    width: 100%;
    height: 300px;
    background: #E5CA81;
    background: linear-gradient(to bottom right, #E5CA81 0%, #FFD54F 100%);
    border-bottom: 1px solid #E5CA81;
}

    header > div {
        position: absolute;
        width: 100%;
        height: 32px;
        background-color: #D19D51;
    }

section {
    position: relative;
    top: 50%;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 55%;
    height: auto;
    background-color: white;
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.26);
    z-index: 0;
}

.texttopicreq2 {
    color: red;
}

strong.consent {
    font-size: 1.2rem;
}

/*-------------------- card --------------------*/
@-webkit-keyframes cardEnter {
    0%, 20%, 40%, 60%, 80%, 100% {
    -webkit-transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
            transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  0% {
    opacity: 0;
    -webkit-transform: scale3d(0.3, 0.3, 0.3);
  }
  20% {
    -webkit-transform: scale3d(1.1, 1.1, 1.1);
  }
  40% {
    -webkit-transform: scale3d(0.9, 0.9, 0.9);
  }
  60% {
    opacity: 1;
    -webkit-transform: scale3d(1.03, 1.03, 1.03);
  }
  80% {
    -webkit-transform: scale3d(0.97, 0.97, 0.97);
  }
  100% {
    opacity: 1;
    -webkit-transform: scale3d(1, 1, 1);
  }
}
@keyframes cardEnter {
  0%, 20%, 40%, 60%, 80%, 100% {
    -webkit-transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
            transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  0% {
    opacity: 0;
    -webkit-transform: scale3d(0.3, 0.3, 0.3);
    transform: scale3d(0.3, 0.3, 0.3);
  }
  20% {
    -webkit-transform: scale3d(1.1, 1.1, 1.1);
    transform: scale3d(1.1, 1.1, 1.1);
  }
  40% {
    -webkit-transform: scale3d(0.9, 0.9, 0.9);
    transform: scale3d(0.9, 0.9, 0.9);
  }
  60% {
    opacity: 1;
    -webkit-transform: scale3d(1.03, 1.03, 1.03);
    transform: scale3d(1.03, 1.03, 1.03);
  }
  80% {
    -webkit-transform: scale3d(0.97, 0.97, 0.97);
    transform: scale3d(0.97, 0.97, 0.97);
  }
  100% {
    opacity: 1;
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
}

.pop-up {
    -webkit-animation: cardEnter 0.75s ease-in-out 0.5s;
            animation: cardEnter 0.75s ease-in-out 0.5s;
    -webkit-animation-fill-mode: both;
            animation-fill-mode: both;
}

.mdn-card {
    display: block;
    position: relative;
    right: 10px;
    min-width: 200px;
    max-width: 300px;
    opacity: 0;
}

.mdn-tblLogin {
    max-width: 600px;
    margin: 0 auto;
    border-radius: 2vh;
    background-color: #F8F8F9;
}

.mdn-tblQNForm {
    max-width: 850px;
    /*15px = 0.9375rem*/
    /*10px = 0.625rem*/
    padding: 0.9375rem 0.625rem 0.9375rem 0.625rem; /*padding: 25px;*/
    margin: 0 auto;
    background-color: #F8F8F9;
    border-radius: 2vh;
}

.mdn-txtHeader {
    display: block;
    position: relative;
    /*20px = 1.25rem*/
    /*15px = 0.9375rem*/
    padding: 1.25rem 0 0.9375rem 0;
    font-size: 1.5em;
    color: #fa6c16; /*#ff9800*/
}

.mdn-Logo {
  position: absolute;
  width: 250px;
  height: 250px;
  top: -28px;
  left: -28px;
  z-index: 1000;
}

.mdn-Lang {/*Not in Use*/
  display: inline-block;
  color: #fff;
  position: relative;
  overflow: hidden;
  width: 60px;
  height: 60px;
  top: -15px;
  left: -45%;
  z-index: 1000;
  padding: 0;
  border-radius: 50%;
  transition: .3s;
  cursor: pointer;
}

.mdn-Lang-F1 {
  color: #fff;
  width: 60px;
  height: 60px;
  padding: 0;
  border-radius: 50%;
  margin: 0 auto;
  transition: .3s;
  cursor: pointer;
}

    .mdn-Lang-F1.modlink {
        /*background-color: #FA4616;*/
        background-color: #fa7316;
    }
    
.mdn-relative2 {
    position: relative;
    width: 60px;
    margin-top: -15%;
    bottom: -30px;
    right: -85%;
    z-index: 1000;
}

.mdn-Button {
    background-color: #CA934D;
}

    .mdn-Button:hover{
        background-color: #F57C00;
    }

.btn-large.consent {
    width: 90%;
}

@media only screen and (min-width: 601px) {
    .mdn-relative2 {
      margin-top: -5%;
    }
}

@media only screen and (min-width: 993px) {
    .mdn-Lang {
        top: -15px;
        right: -45%;
    }
}

.mdn-Lang, .mdn-Lang-F1 i {
  width: inherit;
  display: inline-block;
  text-align: center;
  color: #fff;
  font-size: 1.6rem;
  line-height: 60px;
}

/*For Button w/ Img Icon*/
a.btn-large img {
    height: 2.5rem;
    width: 2.5rem;
    margin: 0.7rem 0.938rem;
    float: right;
    border-radius: 0.5rem;
}

.mdn-depth-1, .mdn-tblLogin, .mdn-Lang, .mdn-Lang-F1 {
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
}

.mdn-depth-15, .mdn-Lang:hover, .mdn-Lang-F1:hover {
  box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);
}

.mdn-depth-2, .mdn-tblLogin:hover, .mdn-tblQNForm {
  box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.mdn-depth-3, .mdn-card {
  box-shadow: 0 12px 15px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19);
}

.mdn-depth-4, .mdn-card:hover {
  box-shadow: 0 16px 28px 0 rgba(0, 0, 0, 0.22), 0 25px 55px 0 rgba(0, 0, 0, 0.21);
}

.hoverable {
  transition: box-shadow .25s;
  box-shadow: 0;
}

.hoverable:hover {
  transition: box-shadow .25s;
  box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

/* Radio With gap */
[type="radio"].mdn-with-gap:checked + label:before {
  border-radius: 50%;
  border: 2px solid #26a69a;
}

[type="radio"].mdn-with-gap:checked + label:after {
  border-radius: 50%;
  border: 2px solid #26a69a;
  background-color: #26a69a;
  z-index: 0;
  transform: scale(0.5);
  -webkit-transform: scale(0.5);   
}

/*********************
  Panels
**********************/
.panel-default .panel-heading {
  background-color: transparent;
  border-radius: 0px;
}

.panel-group {
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
}

.panel-group .panel {
  border-radius: 0px;
}

.panel-group .panel + .panel {
  margin-top: 0px;
  border-top: 0px;
  border-bottom: 1px solid #ddd;
}

.panel {
  margin-bottom: 20px;
  background-color: #fff;
  border: 1px solid transparent;
  border-radius: 4px;
  -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
          box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
}
.panel-body {
  padding: 15px;
}
.panel-heading {
  padding: 10px 15px;
  border-bottom: 1px solid transparent;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}
.panel-heading > .dropdown .dropdown-toggle {
  color: inherit;
}
.panel-title {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 16px;
  color: inherit;
}
.panel-title > a,
.panel-title > small,
.panel-title > .small,
.panel-title > small > a,
.panel-title > .small > a {
  color: inherit;
}
.panel-footer {
  padding: 10px 15px;
  background-color: #f5f5f5;
  border-top: 1px solid #ddd;
  border-bottom-right-radius: 3px;
  border-bottom-left-radius: 3px;
}
.panel > .list-group,
.panel > .panel-collapse > .list-group {
  margin-bottom: 0;
}
.panel > .list-group .list-group-item,
.panel > .panel-collapse > .list-group .list-group-item {
  border-width: 1px 0;
  border-radius: 0;
}
.panel > .list-group:first-child .list-group-item:first-child,
.panel > .panel-collapse > .list-group:first-child .list-group-item:first-child {
  border-top: 0;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}
.panel > .list-group:last-child .list-group-item:last-child,
.panel > .panel-collapse > .list-group:last-child .list-group-item:last-child {
  border-bottom: 0;
  border-bottom-right-radius: 3px;
  border-bottom-left-radius: 3px;
}
.panel > .panel-heading + .panel-collapse > .list-group .list-group-item:first-child {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.panel-heading + .list-group .list-group-item:first-child {
  border-top-width: 0;
}
.list-group + .panel-footer {
  border-top-width: 0;
}
.panel > .table,
.panel > .table-responsive > .table,
.panel > .panel-collapse > .table {
  margin-bottom: 0;
}
.panel > .table caption,
.panel > .table-responsive > .table caption,
.panel > .panel-collapse > .table caption {
  padding-right: 15px;
  padding-left: 15px;
}
.panel > .table:first-child,
.panel > .table-responsive:first-child > .table:first-child {
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}
.panel > .table:first-child > thead:first-child > tr:first-child,
.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child,
.panel > .table:first-child > tbody:first-child > tr:first-child,
.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child {
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}
.panel > .table:first-child > thead:first-child > tr:first-child td:first-child,
.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:first-child,
.panel > .table:first-child > tbody:first-child > tr:first-child td:first-child,
.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:first-child,
.panel > .table:first-child > thead:first-child > tr:first-child th:first-child,
.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:first-child,
.panel > .table:first-child > tbody:first-child > tr:first-child th:first-child,
.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:first-child {
  border-top-left-radius: 3px;
}
.panel > .table:first-child > thead:first-child > tr:first-child td:last-child,
.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:last-child,
.panel > .table:first-child > tbody:first-child > tr:first-child td:last-child,
.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:last-child,
.panel > .table:first-child > thead:first-child > tr:first-child th:last-child,
.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:last-child,
.panel > .table:first-child > tbody:first-child > tr:first-child th:last-child,
.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:last-child {
  border-top-right-radius: 3px;
}
.panel > .table:last-child,
.panel > .table-responsive:last-child > .table:last-child {
  border-bottom-right-radius: 3px;
  border-bottom-left-radius: 3px;
}
.panel > .table:last-child > tbody:last-child > tr:last-child,
.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child,
.panel > .table:last-child > tfoot:last-child > tr:last-child,
.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child {
  border-bottom-right-radius: 3px;
  border-bottom-left-radius: 3px;
}
.panel > .table:last-child > tbody:last-child > tr:last-child td:first-child,
.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:first-child,
.panel > .table:last-child > tfoot:last-child > tr:last-child td:first-child,
.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:first-child,
.panel > .table:last-child > tbody:last-child > tr:last-child th:first-child,
.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:first-child,
.panel > .table:last-child > tfoot:last-child > tr:last-child th:first-child,
.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:first-child {
  border-bottom-left-radius: 3px;
}
.panel > .table:last-child > tbody:last-child > tr:last-child td:last-child,
.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:last-child,
.panel > .table:last-child > tfoot:last-child > tr:last-child td:last-child,
.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:last-child,
.panel > .table:last-child > tbody:last-child > tr:last-child th:last-child,
.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:last-child,
.panel > .table:last-child > tfoot:last-child > tr:last-child th:last-child,
.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:last-child {
  border-bottom-right-radius: 3px;
}
.panel > .panel-body + .table,
.panel > .panel-body + .table-responsive,
.panel > .table + .panel-body,
.panel > .table-responsive + .panel-body {
  border-top: 1px solid #ddd;
}
.panel > .table > tbody:first-child > tr:first-child th,
.panel > .table > tbody:first-child > tr:first-child td {
  border-top: 0;
}
.panel > .table-bordered,
.panel > .table-responsive > .table-bordered {
  border: 0;
}
.panel > .table-bordered > thead > tr > th:first-child,
.panel > .table-responsive > .table-bordered > thead > tr > th:first-child,
.panel > .table-bordered > tbody > tr > th:first-child,
.panel > .table-responsive > .table-bordered > tbody > tr > th:first-child,
.panel > .table-bordered > tfoot > tr > th:first-child,
.panel > .table-responsive > .table-bordered > tfoot > tr > th:first-child,
.panel > .table-bordered > thead > tr > td:first-child,
.panel > .table-responsive > .table-bordered > thead > tr > td:first-child,
.panel > .table-bordered > tbody > tr > td:first-child,
.panel > .table-responsive > .table-bordered > tbody > tr > td:first-child,
.panel > .table-bordered > tfoot > tr > td:first-child,
.panel > .table-responsive > .table-bordered > tfoot > tr > td:first-child {
  border-left: 0;
}
.panel > .table-bordered > thead > tr > th:last-child,
.panel > .table-responsive > .table-bordered > thead > tr > th:last-child,
.panel > .table-bordered > tbody > tr > th:last-child,
.panel > .table-responsive > .table-bordered > tbody > tr > th:last-child,
.panel > .table-bordered > tfoot > tr > th:last-child,
.panel > .table-responsive > .table-bordered > tfoot > tr > th:last-child,
.panel > .table-bordered > thead > tr > td:last-child,
.panel > .table-responsive > .table-bordered > thead > tr > td:last-child,
.panel > .table-bordered > tbody > tr > td:last-child,
.panel > .table-responsive > .table-bordered > tbody > tr > td:last-child,
.panel > .table-bordered > tfoot > tr > td:last-child,
.panel > .table-responsive > .table-bordered > tfoot > tr > td:last-child {
  border-right: 0;
}
.panel > .table-bordered > thead > tr:first-child > td,
.panel > .table-responsive > .table-bordered > thead > tr:first-child > td,
.panel > .table-bordered > tbody > tr:first-child > td,
.panel > .table-responsive > .table-bordered > tbody > tr:first-child > td,
.panel > .table-bordered > thead > tr:first-child > th,
.panel > .table-responsive > .table-bordered > thead > tr:first-child > th,
.panel > .table-bordered > tbody > tr:first-child > th,
.panel > .table-responsive > .table-bordered > tbody > tr:first-child > th {
  border-bottom: 0;
}
.panel > .table-bordered > tbody > tr:last-child > td,
.panel > .table-responsive > .table-bordered > tbody > tr:last-child > td,
.panel > .table-bordered > tfoot > tr:last-child > td,
.panel > .table-responsive > .table-bordered > tfoot > tr:last-child > td,
.panel > .table-bordered > tbody > tr:last-child > th,
.panel > .table-responsive > .table-bordered > tbody > tr:last-child > th,
.panel > .table-bordered > tfoot > tr:last-child > th,
.panel > .table-responsive > .table-bordered > tfoot > tr:last-child > th {
  border-bottom: 0;
}
.panel > .table-responsive {
  margin-bottom: 0;
  border: 0;
}
.panel-group {
  margin-bottom: 20px;
}
.panel-group .panel {
  margin-bottom: 0;
  border-radius: 4px;
}
.panel-group .panel + .panel {
  margin-top: 5px;
}
.panel-group .panel-heading {
  border-bottom: 0;
}
.panel-group .panel-heading + .panel-collapse > .panel-body,
.panel-group .panel-heading + .panel-collapse > .list-group {
  border-top: 1px solid #ddd;
}
.panel-group .panel-footer {
  border-top: 0;
}
.panel-group .panel-footer + .panel-collapse .panel-body {
  border-bottom: 1px solid #ddd;
}
.panel-danger {
  border-color: #ebccd1;
}
.panel-danger > .panel-heading {
  color: #a94442;
  background-color: #f2dede;
  border-color: #ebccd1;
}
.panel-danger > .panel-heading + .panel-collapse > .panel-body {
  border-top-color: #ebccd1;
}
.panel-danger > .panel-heading .badge {
  color: #f2dede;
  background-color: #a94442;
}
.panel-danger > .panel-footer + .panel-collapse > .panel-body {
  border-bottom-color: #ebccd1;
}

.panel-body:before,
.panel-body:after{
  display: table;
  content: " ";
}

.panel-body:after{
  clear: both;
}

/*********************
  Alerts
**********************/
.alert {
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 2vh;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
}
.alert-heading {
    color: inherit;
}
.alert h4 {
  margin-top: 0;
  color: inherit;
}
.alert .alert-link {
  font-weight: bold;
}
.alert > p,
.alert > ul {
  margin-bottom: 0;
}
.alert > p + p {
  margin-top: 5px;
}
.alert-dismissable,
.alert-dismissible {
  padding-right: 35px;
}
.alert-dismissable .close,
.alert-dismissible .close {
  position: relative;
  top: -2px;
  right: -21px;
  color: inherit;
}
.alert-danger {
  color: #a94442;
  background-color: #f2dede;
  border-color: #ebccd1;
}
.alert-danger hr {
  border-top-color: #e4b9c0;
}
.alert-danger .alert-link {
  color: #843534;
}

.alert-success {
  color: #3c763d;
  background-color: #dff0d8;
  border-color: #d6e9c6;
}
.alert-success hr {
  border-top-color: #c9e2b3;
}
.alert-success .alert-link {
  color: #2b542c;
}

/*select2*/

.mdn-select2 {
    width: 100%;
    margin-left: auto;
    left: auto;
    right: auto;
}

.mdn-material-select {
    margin: 0;
}

.mdn-material-select2 {
    margin: 0;
}

/*Card*/

.card.kjob, .card.kjob.grad {
    border-radius: 2vh;
}

.card.kjob.consent {
    color: #3c763d;
    background-color: #dff0d8;
    border-color: #d6e9c6;
}

    .card.kjob.consent.modlink {
        color: #4B4F54;
        background-color: #F8F8F9;
        border-color: #7B8189;
    }

    .card.kjob.consent hr {
        border-top-color: #c9e2b3;
    }

    .card.kjob.consent.link {
        color: #2b542c;
    }
