body {
  overflow-y: scroll;
  -ms-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box; 
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: #f4effa;
  font-family: Arial, sans-serif;
  font-size: 62.5%;
  color: #222;
}

div.ui-widget {
  font-size: 14px;
}

#container {
  min-height: 100%;
  position: relative;
  max-width: 1090px;
  min-width: 300px;
  padding: 0 10px;
  min-width: 300px;
  margin: 0 auto;
  background-color: #FFF;
  font-size: 14px;
  font-size: 1.4rem;
}

#grid {
  padding-bottom: 13rem; /* match #footer height */
}

#footer>div {
  height: 11rem;
  padding: 3rem 0 1.2rem;
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  text-align: center;
  font-size: 12px;
  font-size: 1.2rem;
  font-family: Tahoma, sans-serif;
  background-color: rgb(145, 129, 112);
  color: #EEE;
}

a, a:link, a:visited {
  text-decoration: none;
  color: #00ACEF;
  transition: 0.15s;
}

a:hover, .islink_hover, .islink_hover a, #navigation a:hover {
  color: #DB0000;
  cursor: pointer;
}

a.dark, a.dark:link, a.dark:visited {
  text-decoration: none;
  color: inherit;
}

a.dark:hover, .islink_hover, .islink_hover a {
  color: #DB0000;
  cursor: pointer;
}

em {
  font-style: normal;
  color: #F26621;
}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

label {
  display: inline-block;
  min-width: 8rem;
}

button, .button {
  border: none;
  min-width: auto;
  margin: 0 5px 0 0;
  background: #00ACEC;
  background-image: linear-gradient(#00ACEC, #005e82);
  -webkit-border-radius: 7;
  -moz-border-radius: 7;
  border-radius: 7px;
  color: #FFF !important;
  font-size: 17px;
  font-size: 1.7rem;
  padding: 6px 15px;
  text-decoration: none;
  animation: background-image 0.5s;
}

button:hover, .button:hover {
  background: #e87400;
  background-image: linear-gradient(#ffb164, #e87400);
  text-decoration: none;
}


.highlight {
  color: #E00;
}


#logo {
  height: 135px;
  margin-top: 5px;
  text-align: center;
}

nav {
  background-color: #00ACEF;
  padding: 10px 40px;
  font-size: 19px;
  font-size: 1.9rem;
  font-weight: normal;
  text-transform: uppercase;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

nav a {
  display: block;
  flex: 0 1 auto;
  padding: 0 10px;
  transition: 0.15s;
}


#navigation a {
  color: #FFF;
}

@media (max-width: 64em) {
  nav {
    flex-direction: column;
  }
  nav a {
    margin: 8px 0;
  }
  .bubble_list {
    margin: 0 auto;
  }
}

.bubble {
  float: right;
  border: 3px solid #00ACEF;
  border-radius: 20px;
  padding: 13px 15px 12px;
  margin: 45px 15px 0;
  font-weight: bold;
  font-size: 1.8rem;
}
@media (max-width: 35.5em) {
  .bubble {
    clear: both;
    margin: 0 0 10px;
  }
}

.bubble_list {
  flex: 0 0 auto;
  font-weight: bold;
  font-size: 1.6rem;
}
.bubble_list.right {
  text-align: right;
}

.bubble_list.right li {
  text-align: right;
}

.bubble_list a {
  display: inline-block;
  color: #000;
  width: 410px;
  text-align: left;
  background-color: #DDEDD5;
  border: 3px solid #2C9D3F;
  border-radius: 20px;
  padding: 13px 15px 12px;
  margin: 10px 15px;
}

@media (max-width: 35.5em) {
  .bubble_list a {
    width: 240px;
  }
}

.bubble_list a:hover {
  color: #DB0000;
}

#navigation {
  text-align: center;
  font-weight: bold;
}

#navigation ul {
  padding: 0;
  margin: 1em 0 0;
} 

#navigation li {
  font-family: Veranda, sans-serif;
  display: inline-block;
  padding: 0 1.25rem;
}

div#main {
  line-height: 1.4em;
  font-size: 17px;
  font-size: 1.7rem;
  overflow: hidden;
}

.notice {
  display: block;
  text-align: center;
  padding: 4em 3em;
}

form {
  -ms-box-sizing:content-box;
  -moz-box-sizing:content-box;
  -webkit-box-sizing:content-box; 
  box-sizing:content-box;
}

form label {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

input, optgroup, select, textarea {
  font-size: 1.5rem;
}

#sidebar h1 {
  margin-top: 1em;
}

#sidebar label {
  display: block;
}

#sidebar form li {
  margin-bottom: 0.5em;
}

blockquote {
  color: #69ABCA;
  font-style: italic;
  text-align: center;
}

blockquote:before {
  content: open-quote;
}

blockquote:after {
  content: close-quote;
}

h1 {
  font-size: 23px;
  font-size: 2.3rem;
  margin: 1em 1em 1.5em 0;
}

h2 {
  font-weight: bold;
  font-size: 16px;
  font-size: 1.6rem;
  margin-top: 1.5em;
  margin-bottom: 0;
  color: #2C9D3F;
}

h3 {
  margin-bottom: 0.5em;
}

h3 span {
  font-weight: normal;
  font-size: 1.7rem;
}

p {
  margin-top: 0;
}

.pad {
  padding: 0 50px;
}

.article ul {
  list-style-type: disc;
  margin-top: -0.5em;
  margin-left: 1.5em;
}

.article li {
  margin-bottom: 0.5em;
}

@media (max-width: 35.5em) {
  .pad{ padding: 0 0px; }
}

#cat_list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

#cat_list li {
  flex: 0 1 auto;
  width: 240px;
  min-width: 240px;
  padding: 2rem 1rem;
  margin: 0 0 50px;
}

#cat_list a {
  display: block;
  text-align: center;
  font-size: 15px;
  font-size: 1.5rem;
  font-weight: bold;
}

#cat_list img {
  width: 100px;
  height: 100px;
  float: left;
  margin-right: 1rem;
}

#cat_list span {
  font-size: 21px;
  font-size: 2.1rem;
  font-weight: bold;
  display: block;
  margin-bottom: 1rem;
}

#cat_list a:link, #cat_list a:visited {
  color: #FFF;
}

#cat_list a:hover {
  color: #e87400;
}

#order_courses li {
  text-align: justify;
  margin-bottom: 2em;
  padding: 0 15px;
  line-height: 1.2;
}

#order_courses img {
  float: left;
  padding-right: 2rem;
  padding-bottom: 1em;
}

#order_courses span {
  display: block;
  margin: 0 auto 0.5em;
  text-align: center;
  font-size: 18px;
  font-size: 1.8rem;
  font-weight: bold;
}


#program_list {
  max-width: 950px;
  margin: 0 auto;
}

#program_list a:link, #program_list a:visited {
  color: #333;
}

#program_list a:hover {
  color: #e87400;
}

#program_list a, #program_list div {
  font-size: 14px;
  font-size: 1.4rem;
  line-height: 20px;
  display: inline-block;
  margin: 0 10px 0 0;
  overflow: hidden;
  width: 100%;
}

#program_list div {
  display: block;
  width: auto;
}

#program_list>li {
  overflow: hidden;
  min-height: 215px;
  margin-bottom: 4em;
  max-width: 475px;
  min-width: 475px;
}

#program_list span {
  font-size: 18px;
  font-size: 1.8rem;
  line-height: 20px;
  font-weight: bold;
  display: block;
  margin-bottom: 10px;
}

#program_list img {
  width: 150px;
  height: 200px;
  float: left;
  padding: 0;
  border: 5px solid #CAE3BF;
  border-radius: 19px;
  margin: 0 2em 0 3em;
}

#program_list>li ul {
  list-style-type: disc;
  padding-left: 1em;
  overflow: hidden;
}

@media (max-width: 500px) {
  /* #program_list {
    width: max-content;
  } */
  
  #program_list>li {
    max-width: 270px;
    min-width: 270px;
    text-align: center;
    margin: 0 auto;
  }
  
  #program_list>li img {
    float: none;
  }
}

#course_list table {
  width: 100%;
  box-shadow: 2px 2px 10px 3px #EEE;
  margin-bottom: 2em;
  margin-top: 2em;
}

#course_list th {
  text-align: left;
  font-size: 18px;
  font-size: 1.8rem;
  font-weight: bold;
  padding: 4px 8px;
}

#course_list .full {
  color: #AAA;
}

#course_list td {
  padding: 4px 8px;
}

#course_list .islink a:link, #course_list .islink a:visited {
  color: #000;
}

#course_list .islink_hover a:link, #course_list .islink_hover a:visited {
  color: #F00;
}

@media (max-width: 530px) {
  #course_list td {
    font-size: 12px;
  }
}

#reg li {
  margin-bottom: 5px;
  overflow: hidden;
  font-size: 1.4rem;
}

#reg li.section {
  background-color: #f4effa;
  color: #000;
  font-weight: bold;
  padding: 2px 0.5em;
  margin-top: 1em;
  margin-bottom: 0.5em;
}

#reg label, #booking label {
  display: block;
  float: left;
  clear: left;
  text-align: right;
  vertical-align: top;
  margin-top: 1px;
  margin-right: 0.5em;
  width: 220px;
  white-space: normal
}

#reg input[type=text], #reg textarea, #reg select {
  float: left;
  width: 280px;
  vertical-align: middle;
  -ms-box-sizing:content-box;
  -moz-box-sizing:content-box;
  -webkit-box-sizing:content-box; 
  box-sizing:content-box;
}
#reg select {
  border-width: 2px; 
}

#reg span {
  display: inline-block;
  width: 280px;
}

@media (max-width: 530px) {
#reg label {
  text-align: left;
}
#reg input[type=text], #reg textarea, #reg select, #reg input[type=checkbox], #reg .button {
  float: left;
  clear: both;
}
}

table {
  border-spacing: 0;
  border-collapse: collapse;
  line-height: 1.2em;
}

td, th {
  padding: 1px 5px;
}

tr.odd {
  background-color: #EEE;
}

#payment_form {
  height: 400px;
  background-image: url('/images/wait.gif');
  background-repeat: no-repeat;
  background-position: center 35%;
  background-size: 15%;
  position: relative;
}
#payment_form p {
  position: absolute;
  top: 50%;
  width: 100%;
  text-align: center;
}

#login_form {
  width: 200px;
  margin: 0 auto;
  overflow: hidden;
}

#login_form input {
  width: 100%;
}

#login_form button {
  margin: 0;
  display: block;
}

ul.tk_error {
  margin: 1.5em;
  color: #C00;
  list-style: disc;
}

#banner {
  background-color: #BBB;
  background-image: url("/images/home_banner.jpg");
  background-position: center top;
  height: 364px;
  margin-bottom:-16px;
}

#contact_us form li {
  display: block;
  vertical-align: top;
  padding: 1px 0;
  margin-top: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;}

#contact_us select, #contact_us textarea, #contact_us input {
  width: 70%;
  -ms-box-sizing: content-box;
  -moz-box-sizing: content-box;
  -webkit-box-sizing: content-box; 
  box-sizing: content-box;
  padding: 1px;
}

ul.tk_error {
  list-style: none;
  color: #E00000;
  font-weight: bold;
  padding-top: 1em;
  margin-top: -1em;
}

.tk_error li:before {
  margin: 0 10px;
  content: '\2022';
}

#program_links {
  width: 950px;
  margin: auto;
  display: flex;
  align-items: stretch;
}

#program_links a {
  display: block;
  flex: 1 0 0px;
  text-align: center;
  padding: 0 10px 40px;
}

@media (max-width: 48em) {
  #program_links {
    flex-direction: column;
  }
}

#program_links a:link, #program_links a:visited {
  color: #FFF;
}
#program_links a:hover {
  color: #DB0000;
}

#program_links h3 {
  font-size: 2.1rem;
}

#program_links span {
  font-weight: bold;
  font-size: 1.5rem;
}

.sub_header {
  background-color: #CAE3BF;
  font-size: 18px;
  font-size: 1.8rem;
  line-height: 1.3;
  padding: 25px 50px 25px 80px;
  margin: 20px 0 1.5em;
  overflow: hidden;
}

.sub_header img {
  width: 400px;
  height: 245px;
  background-size: cover;
  float: right;
  border-radius: 19px;
  margin: 0 50px;
}
@media (max-width: 850px) {
  .sub_header img {
    display: none;
  }
  .sub_header {
    font-size: 19px;
    font-size: 1.9rem;
    padding-left: 10px;
    padding-right: 10px;
  }
}

.sub_header h1 {
  margin: 0 0 1em;
  text-transform: uppercase;
}

#mapid {
  height: 450px;
  margin: 1em 0;
}

#reg_form .g-recaptcha {
  margin-left: 220px;
  padding-left: 0.5em;
}

#home_page_notice {
  width: 100%;
  text-align: center;
  padding: 0 50px 1em;
  margin-top: -34px;
  font-size: 1.8rem;
  text-shadow: 0px 0px 10px rgba(0,0,0,0.15);
}

#booking li {
  margin-bottom: 8px;
}

#booking table {
  width: 99%;
  margin: 0 0 1em;
  table-layout: fixed;
}

#booking table input {
  width: 100%;
}

#booking table select {
  border: none;
}

#booking table .border {
  border: 1px solid black;
}

#booking input.error {
  border-color: red;
}

#booking-form img {
  cursor: pointer;
}

#booking textarea {
  width: 718px;
  height: 2.3em;
  min-height: 2.3em;
  resize: vertical;
}

#booking-policies ul {
  padding-left: 2em;
}

#booking-policies li {
  list-style-type: disc;
}

table .td-sm {
  width: 4rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

table .td-md {
  width: 12rem;
  max-width: 12rem;
}

table .td-lg {
  width: 27rem;
}

table .td-single {
  width: 2rem;
  padding-right: 0;
}
