html, body {
  min-height: 100vh;
  margin: 0px;
  padding: 0px;
  font-family: "Open Sans",sans-serif;
}

#container {
  display: flex;
  flex-flow: column;
  max-width: 1024px;
  margin: auto;
  position: relative;
  text-align: center;
  min-height: 100vh;
}

#header {
  top: 0px;
  left: 0;
  height: 60px;
  display: flex;
  overflow: hidden;
  align-items: center;
  margin: 0px;
  padding: 0px;
}

#header_left {
  margin-right: auto;
  margin-left: 0px;
  padding: 0px;
}

#header_right {
  margin-right: 5px;
}

#header_left table, #header_left tr, #header_left td {
  margin: 0px;
  padding: 0px;
}

#logo_image {
  width: auto;
  height: 60px;
  margin: 0px;
  padding: 0px;
  margin-top: 4px;  // *****
}

#logo_text {
  margin-left: 20px;
  font-family: copperplate;
  font-weight: bold;
  font-size: 24px;
  text-align: center;
}

#topnav {
  background-color: #85200C;
  overflow: hidden;
  top: 60px;
  left: 0;
}

#topnav a {
  float: left;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

#topnav a:hover {
  background-color: #B58484;
  color: white;
}

#topnav .active_menu {
  background-color: #B58484;
  color: white;
}

#topnav .menu_item_right {
  float: right;
}

.dropdown_button {
  font-size: 17px;
  border: none;
  outline: none;
  color: #f2f2f2;
  padding: 14px 16px;
  background-color: inherit;
  margin: 0;
}

@media only screen and (max-width: 768px) {
    #topnav a {
      float: left;
      color: #f2f2f2;
      text-align: center;
      padding: 14px 10px;
      text-decoration: none;
      font-size: 1.7vh;
    }

    .dropdown_button {
      font-size: 1.7vh;
      border: none;
      outline: none;
      color: #f2f2f2;
      padding: 14px 10px;
      background-color: inherit;
      margin: 0;
    }
}

#user_dropdown a:hover, #user_dropdown:hover .dropdown_button {
  background-color: #B58484;
  color: white;
}

#user_dropdown_content {
  display: none;
  position: absolute;
  width: 140px;
  right: 0;
  background-color: #f9f9f9;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}

#user_dropdown_content a {
  float: none;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
  font-size: 15px;
}

#user_dropdown_content p {
  font-size: 15px;
  height: 18px;
  margin: 8px 3px 5px 3px;
}

#user_dropdown:hover #user_dropdown_content {
  display: block;
}

#logout_button {
  background: none;
  border: none;
  cursor: pointer;
  color: black;
  text-decoration: none;
  text-align: left;
  font-size: 15px;
}

#footer {
  position: relative;
  margin: 8px;
  text-align: center;
}

#home_div {
  margin: 20px auto 0px auto;
}

#home_div #table_contact {
  margin: 0 auto;
}

#home_div #table_contact td {
  padding: 0px 20px 0px 20px;
}

#img_photo {
  width: 250px;
  height: auto;
  border-radius: 5%;
}

.center_by_margin {
  margin-left: auto;
  margin-right: auto;
  padding: 0px 10px;
}

.div_home_header, .div_course_header {
  margin: 20px auto 0px auto;
  display: flex;
  flex-wrap: wrap;
}

.div_photo_contact, .div_pensioner_header {
  margin: 0px auto;
  display: flex;
  flex-wrap: wrap;
}

.div_course_header #pensioner_img {
  padding: 0px 30px 0px 10px;
  width: 225px;
  height: auto;
}

.div_course_header #general_img {
  padding: 0px 20px 0px 20px;
  width: 225px;
  height: auto;
}

#content_wrapper {
  display: flex;
  overflow: auto;
  flex: auto;
  margin: 5px 0px;
}

.content {
  display: flex;
  flex-wrap: wrap;
  margin: 20px;
}

.course_box {
  width: 220px;
  min-height: 250px;
  max-height: 405px;
  padding: 0px;
  margin: 10px;
  border: 1px solid #85200C;
  border-radius: 0.4rem;
  overflow: hidden;
}

.course_box:hover {
  box-shadow: 0 0 10px 0 #85200C;
}

.course_box a {
  color: inherit;
  text-decoration: inherit;
}

.course_box_name {
  margin: 0px;
  padding: 10px 5px 5px 5px;
  height: 24px;
  font-weight: bold;
  font-size: 16px;
  text-align: center;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  color: white;
  background-color: #85200C;
}

.course_box_duration {
  text-align: center;
}

.course_box_desc {
  text-align: left;
}

.course_box_desc li {
  padding: 3px 0px;
}

.content_course, .content_apply, .content_user_form {
  margin: 20px auto;
  text-align: center;
}

.course {
  max-width: 500px;
  padding: 0px 10px 10px 10px;
}

.course_name, .page_title {
  font-weight: bold;
  font-size: 20px;
  text-align: left;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.course_price, .course_desc {
  text-align: left;
}

.course_buttons {
  padding-top: 20px;
}

.a_button {
  background-color: white;
  color: black;
  border: 2px solid black;
  border-radius: 0.3rem;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  margin-right: 5px;
  font-size: 16px;
}

.a_button:hover, .a_button:active {
  background-color: green;
  color: white;
}

.content_form {
  width: 280px;
  padding: 10px;
  text-align: left;
}

.content_apply_form {
  width: 100%;
  padding: 0px 10px 10px 10px;
  text-align: left;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.form_buttons {
  text-align: center;
  min-width: 280px;
  display: flex;
  justify-content: center;
}

.form_buttons a {
  margin-left: 5px;
}

.form_buttons input {
  margin-left: 10px;
}

.user_form {
  min-width: 280px;
}

.user_form_text_input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.375rem 0.75rem;
  margin-top: 5px;
  font-size: 1rem;
  line-height: 1.5;
  color: #495057;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
}

.text_input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.35rem 0.5rem;
  margin-top: 5px;
  margin-bottom: 10px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #495057;
  background-clip: padding-box;
  border: 1.5px solid #ced4da;
  border-radius: 0.25rem;
}

.user_form_text_input:focus, .text_input:focus {
  outline: none;
  box-shadow: 0 0 5px 0 #007bff;
}

.login_signup_errors, .form_errors {
  color: red;
  text-align: center;
  padding-top: 20px;
}

.error_list {
  color: red;
}

.italic {
  font-style: italic;
}

.form_success_message {
  color: green;
  text-align: center;
  padding-top: 20px;
}

.form_success_message_top {
  color: green;
  text-align: center;
}

.green_button {
  background-color: #33b249;
  color: white;
  border: 2px solid #33b249;
}

.red_button {
  background-color: #f44336;
  color: white;
  border: 2px solid #f44336;
}

.grey_button {
  background-color: grey;
  color: white;
  border: 2px solid grey;
}

.green_button:hover, .green_button:active {
  background-color: white;
  color: #33b249;
}

.red_button:hover, .red_button:active {
  background-color: white;
  color: #f44336;
}

.grey_button:hover, .grey_button:active {
  background-color: white;
  color: grey;
}

.disabled_button {
  pointer-events: none;
  opacity: 0.45;
}

#hi_username {
  color: #495057;
}

.pagination {
  position: relative;
  margin: 10px auto 40px auto;
  text-align: center;
}

.page_links {
  position: relative;
  margin: 20px auto 80px auto;
  text-align: center;
}

.page_link {
  text-decoration: none;
  color: #1C6EA4;
  font-size: 16px;
  margin: auto;
}

.current_page {
  color: #1C6EA4;
  font-weight: bold;
  font-size: 18px;
}

.course_coloured_text {
  color: #85200C;
  margin-left: auto;
  margin-right: auto;
}

.course_info {
  border: 2px solid #85200C;
  border-radius: 0.4rem;
  padding: 0px 6px;
}

.table_introduction {
  width: 700px;
  margin: 0 auto;
  padding-top: 10px;
  padding-bottom: 10px;
}

.td_introduction_title {
  background-color: #85200C;
  color: white;
  font-weight: bold;
  font-variant-caps: small-caps;
  font-size: 18px;
  padding: 8px;
}

#table_introduction_jobs table {
  margin: 0px auto;
}

#table_introduction_jobs table td {
  padding: 3px;
}

#table_introduction_jobs table th {
  padding: 5px;
}

.table_introduction_jobs_col_left {
  display: flex;
}

.table_introduction_jobs_col_right {
  border-left: 1px dashed;
}

#table_introduction_studies td {
  padding: 8px;
  border-bottom: 1px dashed;
}

#table_introduction_publications td {
  padding: 8px;
}

#div_delete_profile {
  margin: 50px auto 0px auto;
}

#privacy_policy {
  margin-top: 25px;
}