@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400;
  src: local('Raleway'), local('Raleway-Regular'), url(../font/Raleway-Black.ttf) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== reset css ====== */
img{
  max-width: 100%;
}

*{
  margin: 0px;
  padding: 0px;
}

body {
  margin: 0;
  color: #4D4D4D;
  font-family: raleway, "Arial Black", Gadget, sans-serif;
}

a, a:hover, a:visited, a:active, a:focus {
  color: #fff;
  text-decoration: none;
}

.alignleft {
  float: left;
  width: fit-content;
}

.alignright {
  float: right;
  width: fit-content;
}

h1, h2, h3, h4, h5, h6 {
  width: 100%;
}

hr {
  margin: 19px 0;
  height: 1px;
  background-color: #BDCCD4;
  border: none;
}

.card {
  border: #999 1px solid;
  text-align: center;
  padding: 15px;
  color: #6d6fb3;
  margin: 10px 0;
}

@media (min-width: 1200px) {
  .container {
    max-width: 960px;
  }
}

header {
  background: #1e78c8;
  background: linear-gradient(to right, #1e78c8 , #1965a6);
  /* Standard syntax (must be last) */
  color: #fff;
  padding: 13.5px 0;
}

.diags {
  display: table;
  margin: 0 0 0 auto;
  /*width: 100%;*/
}

.diag {
  display: table-cell;
  padding: 10px 3px;
  margin: 0px 0px;
  font-size: 12px;
}

.diag-item {
  display: table-cell;
  padding: 8px 0;
  border: #fff 1px solid;
  text-align: center;
}

.language-diag {
  width: 167.5px;
}

.language-diag .diag-item {
  width: 56px;
  height: 33px;
}

.fontsize-diag .diag-item {
  width: 30px;
  height: 33px;
}

.diag-item-active {
  display: table-cell;
  padding: 8px 0;
  border: #fff 1px solid;
  background-color: #fff;
  color: #1d73bf;
  text-align: center;
}

.smFont {
  font-size: 100%;
}

.nFont {
  font-size: 110%;
}

.laFont {
  font-size: 120%;
}

.header-buttons {
  display: flex;
  justify-content: flex-end;
}

.header-button {
  border-radius: 20px;
  background-color: #ddf2fe;
  color: #39467d;
  padding: 5px 5px;
  margin: 0 3px;
  text-align: center;
  width: 100%;
  cursor: pointer;
  font-size: 85%;
  width: 130px;
  height: 37px;
}

.hbutton-img {
  width: 20px;
  height: 20px;
  position: relative;
  top: 2px;
}

.hbutton-txt {
  display: inline;
  position: relative;
  top: -2px;
  font-size: 12px;
  font-weight: bold;
}

@media (min-width: 769px) {
  .home-image {
    /*width: 100%;*/
  }
}

.w3clogo {
  width: 88px;
}

section {
  background-color: #c5e6ef;
  overflow: hidden;
}

#main {
  background-color: #fff;
  /*padding: 45px 80px;*/
  padding: 45px 0px;
  /*min-height: 660px;*/
}
@media (min-width:961px){
  #main{
    padding: 45px 37px;
  }
}

.side-image-left {
  overflow: hidden;
  float: left;
  margin-left: -310px;
  margin-top: 120px;
}

.side-image-right {
  overflow: hidden;
  float: right;
  margin-right: -320px;
  margin-top: 120px;
}

.registration-form-title {
  text-align: center;
  font-weight: 600;
}

.registration-process {
  width: 100%;
  padding: 40px 45px;
}

.process-image {
  width: 100%;
}

.form-detail {
  width: 100%;
}

.form-question-content {
  width: 100%;
  margin: 0;
}

.form-question-item {
  padding: 15px 0;
}

.form-action {
  text-align: right;
  width: 100%;
}

.faction-button {
  display: inline;
  border: #1965A6 1px solid;
  padding: 5px 28px;
  font-size: 16px;
  cursor: pointer;
  text-align: center;
  /*width: 140px;*/
  width: 60%;
  margin: 0 4px;
}

.remind-detail {
  color: #808080;
}

.error-detail {
  color: #A80000;
}

.photo-remind-detail {
  padding: 5px;
}

.info-remind {
  float: right;
}

.cancel {
  background-color: #fff;
  color: #1965A6;
  width: 140px;
}

.next {
  background-color: #1965A6;
  color: #fff;
  width: 140px;
}

#home-slider {
  background-color: #fff;
  padding: 0;
}

.slider {
  width: 100%;
}

.sliders {
  position: relative;
}

.masking {
  position: absolute;
  bottom: 4px;
  width: 100%;
  padding: 20px 35px;
  background-color: #1c71bbad;
  color: #fff;
}

.slide-button {
  padding: 0 4px;
  width: 21px;
}

#main .row .col-md-4.event {
  padding: 0 10px 20px;
}

#main .row .col-md-4.control {
  padding: 0px;
  padding-left: 37px;
  padding-right: 15px;
}

.grid-title {
  padding-bottom: 15px;
  font-style: italic;
  font-size: 15px;
}

.homepage-event-card {
  border-radius: 15px;
  overflow: hidden;
  border: #e1e5e5 1px solid;
  margin: 0 auto;
  color: #4D4D4D;
}

@media (min-width: 769px) {
  .homepage-event-card {
    max-width: 307px;
  }
}

.event-card {
  border-radius: 15px;
  overflow: hidden;
  border: #e1e5e5 1px solid;
  color: #4D4D4D;
}

@media (min-width: 769px) {
  .event-card {
    /* max-width: 234.5px; */
  }
}

.enroll {
  background-color: #fff;
  color: #1965A6;
}

.homepage-event-card:hover .enroll, .event-card:hover .enroll {
  background-color: #1965A6;
  color: #fff;
}

.homepage-event-card:hover, .event-card:hover {
  box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.homepage-event-card .enroll {
  height: 34px;
}

@media (min-width: 992px) {
  .homepage-event-card .enroll {
    min-width: 188px;
  }
}

.event-card-capture {
  overflow: hidden;
  margin: 0 -1px;
}

.event-card-capture img {
  width: 100%;
  /*max-height: 160px;*/
  /*transform: scale(1.15);*/
}

#events .event-card-capture img {
  /*max-height: 140px;*/
}

.event-card-content {
  padding: 10px 15px;
}

.event-title {
  padding-bottom: 10px;
  color: #4d4d4d;
}

.event-content {
  /*color: #919191;*/
}

.item-title {
  width: 85px;
  display: inline-block;
}

.event-card-action {
  text-align: center;
  padding: 5px 0 15px;
}

.view-more-events {
  font-style: italic;
  text-align: right;
}

.view-more-events a {
  color: #1C71BB;
}

.event-search-card-col {
  padding: 0;
  padding-bottom: 24px;
}

.event-search-card {
  border-radius: 15px;
  overflow: hidden;
  border: #BDCCD4 1px solid;
  padding: 20px 10px;
  margin: 0 8.45px;
}

@media (min-width: 769px) {
  .event-search-card {
    max-width: 234.5px;
  }
}

.event-search-title {
  font-weight: bold;
}

.text.event-search-bar {
  display: flex;
  width: 100%;
}

.event-search-config {
  width: 26px;
  height: 18px;
  margin-top: 5px;
  margin-left: 5px;
}

.event-search-subtitle {
  padding-bottom: 10px;
  font-size: 14px;
}

.search-radio {
  margin: 9px 0 !important;
  font-size: initial !important;
}

.event-search-icon {
  width: 18px;
  margin-left: -18px;
  height: 18px;
  position: relative;
  top: 4px;
  right: 5px;
}

.fa-search {
  position: absolute;
  top: 24px;
  left: 7px;
  font-size: 15px;
}

footer {
  border-top: #0b4d81 5px solid;
  background-color: #012539;
  color: #fff;
  padding: 20px 0 20px;
}

.late-revised-date {
  padding-right: 17px;
  padding-top: 7px;
}

h1 {
  font-family: 'Alegreya Sans', sans-serif;
  font-weight: 300;
  margin-top: 0;
}

.control-group {
  display: inline-block;
  vertical-align: top;
  background: #fff;
  text-align: left;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  padding: 30px;
  width: 200px;
  height: 210px;
  margin: 10px;
}

.control {
  display: block;
  position: relative;
  /*padding-left: 30px;*/
  padding-left: 37px;
  margin: 15px 0;
  cursor: pointer;
  font-size: 18px;
}

.control input {
  position: absolute;
  z-index: -1;
  opacity: 0;
}

.control__indicator {
  position: absolute;
  top: 2px;
  left: 0;
  height: 20px;
  width: 20px;
  background: #ffffff;
  border: #999 1px solid;
}

.control--radio .control__indicator {
  border-radius: 50%;
  background: #ffffff;
  border: #999 1px solid;
}

.control:hover input ~ .control__indicator, .control input:focus ~ .control__indicator {
  background: #ccc;
}

.control input:checked ~ .control__indicator {
  background: #ffffff;
  border: #999 1px solid;
}

.control:hover input:not([disabled]):checked ~ .control__indicator, .control input:checked:focus ~ .control__indicator {
  background: #0e647d;
}

.control input:disabled ~ .control__indicator {
  background: #e6e6e6;
  opacity: 0.6;
  pointer-events: none;
}

.control__indicator:after {
  content: '';
  position: absolute;
  display: none;
}

.control input:checked ~ .control__indicator:after {
  display: block;
}

.control--checkbox .control__indicator:after {
  left: 3px;
  top: 3px;
  width: 12px;
  height: 12px;
  background-color: #0071bc;
}

.control--checkbox input:disabled ~ .control__indicator:after {
  border-color: #7b7b7b;
}

.control--radio .control__indicator:after {
  left: 3px;
  top: 3px;
  height: 12px;
  width: 12px;
  border-radius: 50%;
  background: #0071BC;
}

.control--radio input:disabled ~ .control__indicator:after {
  background: #7b7b7b;
}

.text {
}

.text input {
  display: inline-block;
  width: 100%;
  padding: 10px 15px;
  outline: 0;
  border: 0;
  border-radius: 0;
  color: #0071bc;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  margin: 15px 0;
  border-bottom: #999 1px solid;
}

.text input::placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #0071bc;
  opacity: 1;
  /* Firefox */
}

.text input:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: #0071bc;
}

.text input::-ms-input-placeholder {
  /* Microsoft Edge */
  color: #0071bc;
}

.select {
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
  width: 100%;
}

.select select {
  display: inline-block;
  width: 100%;
  cursor: pointer;
  padding: 10px 15px;
  outline: 0;
  border: 0;
  border-radius: 0;
  color: #0071bc;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  margin: 15px 0;
  border-bottom: #999 1px solid;
}

.select select::-ms-expand {
  display: none;
}

.select select:hover, .select select:focus {
  color: #000;
  background: #ccc;
}

.select select:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.select__arrow {
  position: absolute;
  top: 28px;
  right: 15px;
  width: 0;
  height: 0;
  pointer-events: none;
  border-style: solid;
  border-width: 8px 5px 0 5px;
  border-color: #7b7b7b transparent transparent transparent;
}

.select select:hover ~ .select__arrow, .select select:focus ~ .select__arrow {
  border-top-color: #000;
}

.select select:disabled ~ .select__arrow {
  border-top-color: #ccc;
}

.control--date input[type="date"] {
  position: relative;
  padding: 10px;
}

.control--date input[type="date"]::-webkit-calendar-picker-indicator {
  color: transparent;
  background: none;
  z-index: 1;
}

.control--date input[type="date"]:before {
  color: transparent;
  background: none;
  display: block;
  font-family: 'FontAwesome';
  content: '\f073';
  width: 15px;
  height: 20px;
  position: absolute;
  top: 15px;
  right: 6px;
  color: #0071BC;
  cursor: pointer;
}

.inputfile {
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  z-index: -1;
}

.inputfile + .inputfileLablel {
  display: inline-block;
  cursor: pointer;
  border: #0071bc 1px solid;
  padding: 9px;
  width: 100%;
  text-align: center;
  color: #0071bc;
  background-color: #fff;
}

.inputfile:focus + .inputfileLablel, .inputfile + .inputfileLablel:hover {
  color: #fff;
  background-color: #0071bc;
}

.event-search-bar input, .event-search-bar input:focus {
  display: inline-block;
  width: 80%;
  padding: 0;
  outline: 0;
  border-radius: 10px;
  color: #999;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  margin: 0;
  border: #0071bc 1px solid !important;
  padding: 5px 10px;
  /*margin-left: -15px;*/
}

@media (min-width: 769px) {
  .event-search-bar input, .event-search-bar input:focus {
    max-width: 179.5px;
  }
}

.event-search-bar input::placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #999;
  opacity: 1;
  /* Firefox */
}

.event-search-bar input:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: #999;
}

.event-search-bar input::-ms-input-placeholder {
  /* Microsoft Edge */
  color: #999;
}

/* ---- floating input ---- */
/*
  .field {
  display: flex;
  flex-flow: column-reverse;
  margin-bottom: 1em;
  }
  label, input {
  transition: all 0.2s;
  touch-action: manipulation;
  }

  input {
  font-size: 1.5em;
  border: 0;
  border-bottom: 1px solid #ccc;
  font-family: inherit;
  -webkit-appearance: none;
  border-radius: 0;
  padding: 0;
  cursor: text;
  }

  input:focus {
  outline: 0;
  border-bottom: 1px solid #666;
  }
  input:placeholder-shown + label {
  cursor: text;
  max-width: 66.66%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform-origin: left bottom;
  transform: translate(0, 2.125rem) scale(1.5);
  position: relative;
  top: -5px;
  }
  ::-webkit-input-placeholder {
  opacity: 0;
  transition: inherit;
  }
  input:focus::-webkit-input-placeholder {
  opacity: 1;
  }
  input:not(:placeholder-shown) + label,
  input:focus + label {
  transform: translate(0, 0) scale(1);
  cursor: pointer;
  position: relative;
  top: -5px;
  }
*/
.btn-group-vertical>.btn-group:after, .btn-group-vertical>.btn-group:before, .btn-toolbar:after, .btn-toolbar:before, .clearfix:after, .clearfix:before, .container-fluid:after, .container-fluid:before, .container:after, .container:before, .dl-horizontal dd:after, .dl-horizontal dd:before, .form-horizontal .form-group:after, .form-horizontal .form-group:before, .modal-footer:after, .modal-footer:before, .modal-header:after, .modal-header:before, .nav:after, .nav:before, .navbar-collapse:after, .navbar-collapse:before, .navbar-header:after, .navbar-header:before, .navbar:after, .navbar:before, .pager:after, .pager:before, .panel-body:after, .panel-body:before, .row:after, .row:before {
  display: none !important;
  content: "";
}

@media (min-width: 320px) {
  .events .event{
    max-width: 100%;
  }
  .container {
    max-width: 100%;
  }
}
@media (min-width: 576px) {
  .events .event{
    max-width: 50%;
  }
  .container {
    max-width: 100%;
  }
}
@media (min-width: 769px) {
  .events .event{
    max-width: 33.3333%;
  }
  .container {
    max-width: 1200px;
  }
  #login .container,#homepage .container {
    max-width: 960px;
  }
}

/* @media (min-width:769px) and (max-width:960px){
  .events{
    width: 100%;
    max-width: calc(100% - 221px);
  }
}
.event-search-card-col{
  min-width: 221px;
} */
/* reset */
/*
@media (min-width: 768px){
  .col-md-3 {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }
  .event-search-card {
    max-width: 100% !important;
  }
  .event-search-bar input, .event-search-bar input:focus {
    max-width: 100% !important;
  }
}
@media (min-width: 769px){
  .col-md-3 {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 25%;
    flex: 0 0 25%;
    max-width: 25%;
  }
  .event-search-card {
    max-width: 234.5px;
  }
  .event-search-bar input, .event-search-bar input:focus {
    max-width: 179.5px;
  }
}
*/
