html,
body {
  padding: 0;
  margin: 0;
  font-size: 25px;
  height: 100%;
  -webkit-font-smoothing: subpixel-antialiased;
  -webkit-text-size-adjust: 100%;
  font-family: "LeituraNewsW01-Roman1", Times, "Times New Roman", Georgia, serif;
  background-color: #dfe2d5;
}

img {
  display: block;
}

a img {
  border: none;
}

a:link {
  text-decoration: none;
  border: none;
  color: inherit;
}

a:visited {
  text-decoration: none;
  border: none;
  color: inherit;
}

a:hover {
  text-decoration: none;
  border: none;
  color: inherit;
}

a:active {
  text-decoration: none;
  border: none;
  color: inherit;
}

.underline_black a {
  border-bottom: 1px solid black;
}

.underline_white a {
  border-bottom: 1px solid white;
}

.underline_on_hover_white a:hover {
  border-bottom: 1px solid white;
}

.underline_on_hover_black a:hover {
  border-bottom: 1px solid black;
}

p {
  margin: 0 0 1.48em 0;
}

h1 {
  font-family: "Roboto", sans-serif;
  font-weight: 900;
  margin: 0;
  font-size: 3.33333rem;
}

h2 {
  font-size: 23px;
  font-weight: normal;
  margin: 0;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

i,
em {
  font-style: normal;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

b,
strong {
  font-style: normal;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

ul {
  padding: 1px 0 0 0;
  margin: 0;
  line-height: 1.3em;
  list-style-type: square;

  @media screen and (min-width: 1200px) {
    margin-right: 150px;
  }
}

li {
  margin: .8em 1em;
  padding-left: .5em;
}

::-moz-selection {
  /* Highlighted text style */
  color: white;
  background-color: #18191e;
}

::selection {
  color: white;
  background-color: #18191e;
}

:focus {
  outline: none;
}

.fill_box {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.clear {
  clear: both;
}

.site_width {
  margin-left: 50px;
  margin-right: 50px;
}

.max_width {
  max-width: 1300px;
  margin: auto;
}

.background_image {
  opacity: 0;
}

/* Header */
#yhea_logo {
  display: block;
  width: 42%;
  max-width: 420px;
  min-width: 350px;
  float: left;
}

#yhea_logo img {
  width: 100%;
}

#header {
  width: 100%;
  overflow: hidden;
}

#header_inner {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

#menu {
  flex: 1;
  margin-left: 3rem;
}

#menu_inner {
  flex: 1;
  align-items: center;
  display: flex;
  justify-content: space-between;
  flex-direction: row;
}

#home_icon,
#home_icon2 {
  width: 14px;
  height: 20px;
  background-image: url("../images/home_icon.svg");
  display: inline-block;
  float: left;
  margin-right: 14px;
  margin-top: 4px;
}

#home_icon2 {
  background-image: url("../images/home_icon2.svg");
  margin-bottom: 15px;
  background-position: center;
  display: none;
}

a.menu_button {
  padding: 3px 8px 3px 8px;
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  text-decoration: none;
  font-size: 16px;
  position: relative;
  white-space: nowrap;

  &:last-of-type {
    margin-right: 8px;
  }
}

.button_underline {
  position: absolute;
  bottom: 1px;
  left: 8px;
  right: 8px;
  background-color: black;
  height: 1px;
  display: none;
}

a.menu_button:hover .button_underline {
  display: block;
}

a.menu_button:last-of-type {
  margin-right: 0;
}

#header_line {
  height: 15px;
  background-color: black;
}

#header_top_spacer {
  height: 7vh;
  max-height: 70px;
}

#header_bottom_spacer {
  height: 5vh;
  max-height: 50px;
}

#small_screen_menu_footer {
  display: none;
  color: white;
  width: 100%;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 20px;
}

a.box_button,
.box_button,
.box_button_text {
  font-family: "Roboto", sans-serif;
  display: inline-block;
  background-color: #18191e;
  color: #18191e;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.44em;
  padding: 14px 22px 15px 22px;
  margin-top: 15px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.box_button_text {
  display: block;
  margin-top: 0;
  color: white;
}

.animate_box_button {
  position: absolute;
  height: 200%;
  bottom: 0;
  left: 0;
  transition: 300ms;
}

a.box_button:hover .animate_box_button,
.box_button:hover .animate_box_button {
  transform: translate(0px, 50%);
}

.download_icon {
  background: url("../images/download_arrow.svg") no-repeat center #18191e;
}

.show_more_icon {
  background: url("../images/show_more_icon.svg") no-repeat center #18191e;
}

.button_icon {
  display: block;
  width: 100%;
  height: 50%;
  background-size: auto 45%;
}

/* Sections */
.flexi_spacer1 {
  height: 10vh;
  max-height: 100px;
}

.flexi_spacer2 {
  height: 12vh;
  max-height: 100px;
}

.flexi_spacer3 {
  height: 6vh;
  max-height: 100px;
}

.banner_background {
  width: 100%;
  padding-bottom: 45%;
  position: relative;
  background-color: #18191e;
}

.banner_image {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
}

.inline_banner {
  margin-top: 60px;
}

.banner_caption {
  position: absolute;
  bottom: 3%;
  right: 2%;
  color: white;
  font-size: 14px;
  font-family: "LeituraNewsW01-Italic1", Times, "Times New Roman", Georgia, serif;
}

.section_text {
  line-height: 1.48em;
}

a.page_link {
  padding-bottom: 5px;
  display: inline;
  line-height: 40px;
}

/* The Team */
#team_container {
  width: 100%;
  overflow: hidden;
  padding-top: 40px;
}

#team_container_inner {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  margin-bottom: 30px;
  margin-left: -25px;
  margin-right: -25px;
}

.team_member_container {
  position: relative;
  box-sizing: border-box;
  padding-left: 25px;
  padding-right: 25px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  width: 33.3333%;
}

.team_member_photo {
  width: 100%;
  padding-bottom: 118%;
  background-color: dimgrey;
  margin-bottom: 30px;
  background-size: cover;
  background-position: center;
}

.team_divide_line {
  position: absolute;
  width: 1px;
  top: 0;
  bottom: 0;
  right: 0;
  background-color: black;
}

.team_member_container:last-of-type .team_divide_line {
  display: none;
}

.team_member_name {
  font-family: "Roboto", sans-serif;
  font-size: 28px;
  line-height: 1.33em;
  font-weight: 900;
}

.team_member_role {
  font-family: "Roboto", sans-serif;
  font-size: 28px;
  line-height: 1.33em;
  font-weight: 300;
  padding-bottom: 40px;
}

.team_member_bio {
  font-size: 16px;
  line-height: 1.4em;
}

.team_member_email {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 1.4em;
  font-weight: 700;
  word-wrap: break-word;
  text-transform: lowercase;
}

/* Services */
.services {
  position: relative;
}

.service_stage {
  float: right;
  width: 50%;
  font-size: 0.9rem;
  line-height: 1.5em;
  position: relative;
  white-space: nowrap;
  vertical-align: top;
  overflow: hidden;
}

.services_stage_content {
  display: inline-block;
  width: 100%;
  white-space: normal;
  vertical-align: top;
}

.services_stage_spacer {
  display: inline-block;
  width: 100%;
  white-space: normal;
  vertical-align: top;
}

.service_stage_cover {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1px;
  right: 0;
  background-color: #dfe2d5;
  display: none;
}

.services_divide_line {
  position: absolute;
  background-color: black;
  top: 0;
  bottom: 0;
  left: calc(50% - 40px);
  width: 1px;
}

.service_line_cover {
  position: absolute;
  width: 20px;
  left: 0;
  top: 20px;
  bottom: -5px;
  background-color: #dfe2d5;
  display: none;
}

.service_line_cover2 {
  position: absolute;
  width: 20px;
  left: 0;
  height: 50%;
  bottom: -5px;
  max-height: 30px;
  background-color: #dfe2d5;
  display: none;
}

.services_container {
  float: left;
  width: calc(50% - 40px);
  font-size: 22px;
  box-sizing: border-box;
}

.service {
  position: relative;
  margin-bottom: 1.5em;
  margin-left: 20px;
  padding-right: 100px;
}

.service:last-of-type {
  margin-bottom: 0;
}

.service_title {
  font-family: "Roboto", sans-serif;
  cursor: pointer;
  display: inline-block;
  font-size: 0.9rem;
  line-height: 1.5em;
  font-weight: 400;
  padding-left: 30px;
}

.selected .service_title {
  font-weight: 900;
  cursor: default;
}

.service_description {
  font-size: 0.9rem;
  line-height: 1.5em;
  position: relative;
  height: 0;
  overflow: hidden;
  padding-left: 30px;
  display: none;
}

.service_description_inner {
  padding-top: 30px;
}

.service_bullet {
  height: 10px;
  width: 10px;
  position: absolute;
  top: 11px;
  left: 0;
  background-color: black;
  transition: transform 400ms;
}

.selected .service_bullet {
  transform: rotate(135deg);
}

.services_next_container {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  margin-top: -2px;
}

.services_next_link {
  cursor: pointer;
  display: inline-block;
  border-bottom: 1px solid black;
}

.services_next_arrow {
  width: 40px;
  background: url("../images/next_arrow.svg") bottom right no-repeat;
  background-size: auto 85%;
  cursor: pointer;
}

.services_chevron {
  position: absolute;
  height: 29px;
  width: 20px;
  left: calc(50% - 55px);
  top: 10px;
  background: url("../images/chevron.svg") no-repeat right top;
}

.services_chevron2 {
  position: absolute;
  height: 20px;
  width: 15px;
  left: 4px;
  top: 32px;
  transform: rotate(180deg);
  background: url("../images/chevron.svg") no-repeat right top;
  background-size: auto 100%;
}

/* Lightbox */
#lightbox_background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  background-color: #18191e;
  opacity: 0;
  transition: 500ms;
  visibility: hidden;
}

#lightbox_background.open {
  opacity: 0.9;
  visibility: visible;
  z-index: 8888;
}

.lightbox {
  position: fixed;
  top: 100vh;
  left: 0;
  right: 0;
  height: 100%;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  font-family: "Roboto", sans-serif;
  visibility: hidden;
  transition: 500ms;
}

.lightbox.open {
  visibility: visible;
  top: 0;
  z-index: 9999;
}

.lightbox_interior {
  margin: 140px;
  padding: 70px 50px 70px 50px;
  background-color: white;
  position: relative;
  transition: 500ms;
}

.lightbox_close {
  position: absolute;
  top: 0;
  right: 0;
  height: 70px;
  width: 70px;
  cursor: pointer;
  background-image: url("../images/lightbox_close.svg");
  background-size: 100%;
}

.lightbox_close:hover {
  background-position: bottom;
}

.lightbox_header {
  padding-bottom: 80px;
}

.lightbox_left_column {
  float: left;
  width: calc(50% - 50px);
}

.lightbox_right_column {
  float: right;
  width: 50%;
}

.lightbox_line {
  height: 8px;
  margin-top: 35px;
}

.lightbox_image {
  width: 100%;
  margin-bottom: 30px;
}

.lightbox_title {
  font-size: 32px;
  line-height: 1.44em;
  font-weight: 900;
}

.lightbox_date {
  font-size: 32px;
  line-height: 1.44em;
  font-weight: 300;
}

.lightbox_body_content,
.lightbox_address {
  font-size: 16px;
  line-height: 1.55em;
  font-weight: 300;
}

.find_this_event {
  font-size: 22px;
  line-height: 1.55em;
  font-weight: 500;
  margin-top: -3px;
}

.lightbox_venue {
  font-size: 22px;
  font-weight: 300;
  line-height: 1.55em;
}

.lightbox_venue a.google_maps_link {
  border-bottom: 1px solid black;
}

.lightbox_address {
  margin-top: 25px;
}

.lightbox_address a.google_maps_link:hover {
  border-bottom: 1px solid black;
}

/* Event stream */
.events_stream {
  display: grid;
  grid-auto-rows: 1fr;
}

.event_container {
  margin-top: 20px;
  margin-bottom: 20px;
  background-color: white;
  position: relative;
  font-family: "Roboto", sans-serif;
}

.inline_event .event_container {
  margin-top: 60px;
  margin-bottom: 70px;
}

.event_image,
.event_image_background {
  position: absolute;
  left: 0;
  width: 50%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.event_image_background {
  background-color: #18191e;
}

.event_details {
  padding: 40px 40px 40px calc(50% + 40px);
  box-sizing: border-box;
}

.event_title {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.26em;
}

.event_date {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.55em;
}

.event_venue {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.55em;
}

.event_category {
  font-size: 16px;
  font-weight: 500;
  background-color: #616161;
  padding: 10px 15px 10px 15px;
  text-transform: uppercase;
  align-self: flex-start;
  color: white;
  margin-top: 15px;
  display: inline-block;
}

.event_short_description {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.27em;
  padding-top: 20px;
  padding-bottom: 10px;
  position: relative;
}

a.event_find_out_more {
  font-size: 18px;
  font-weight: 700;
}

a.event_click {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.event_container:hover .event_find_out_more {
  border-bottom: solid 1px black;
}

#past_events_title {
  margin-top: 60px;
}

#past_events .event_image {
  filter: grayscale(100%);
}

.total_content_count {
  display: none;
}

/* Event colours */
.conference {
  background-color: #00a99d;
}

.lecture {
  background-color: #ce460b;
}

.meeting {
  background-color: #5e00a8;
}

.seminar {
  background-color: #005ca8;
}

.social {
  background-color: #0bad4d;
}

.event {
  background-color: #b52d78;
}

#past_events .event_category_default_colour {
  background-color: #616161;
}

/* Menu Burger */
#menu_burger {
  height: 50px;
  width: 50px;
  background-color: #18191e;
  position: fixed;
  top: 0;
  right: 0;
  cursor: pointer;
  z-index: 7777;
  display: none;
}

#menu_burger_inner {
  height: 24px;
  width: 24px;
  margin-top: 13px;
  margin-left: 13px;
  position: relative;
}

#menu_burger_inner span {
  height: 4px;
  width: 24px;
  position: absolute;
  background-color: #dfe2d5;
  transition:
          transform 350ms,
          width 350ms,
          top 350ms;
}

#menu_burger.open {
  background-color: #dfe2d5;
}

#menu_burger.open #menu_burger_inner span {
  background-color: #18191e;
}

#menu_burger:hover {
  background-color: black;
}

#menu_burger.touch_device:hover {
  background-color: #18191e;
}

#menu_burger.open:hover {
  background-color: white;
}

#menu_burger.open.touch_device:hover {
  background-color: #dfe2d5;
}

#menu_burger:hover #menu_burger_inner span {
  background-color: #dfe2d5;
}

#menu_burger.open:hover #menu_burger_inner span {
  background-color: #18191e;
}

#menu_burger_inner span:nth-child(1) {
  top: 0;
}

#menu_burger_inner span:nth-child(2) {
  margin-top: 10px;
  width: 20px;
}

#menu_burger_inner span:nth-child(3) {
  top: 20px;
}

#menu_burger.open span:nth-child(1) {
  transform: rotate(45deg);
  top: 10px;
}

#menu_burger.open span:nth-child(2) {
  width: 0;
}

#menu_burger.open span:nth-child(3) {
  transform: rotate(-45deg);
  top: 10px;
}

/* Footer */
#footer {
  color: white;
  background-color: #18191e;
  padding-top: 50px;
  padding-bottom: 50px;
  overflow: hidden;
  width: 100%;
}

.footer_line {
  height: 2px;
  background-color: #dfe2d5;
}

#footer_contact {
  font-size: 1rem;
  margin-top: 15px;
  margin-bottom: 30px;
}

#footer_email {
  padding-bottom: 4px;
}

.privacy_policy {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 500;
  margin-top: 18px;
}

.site_by {
  margin-top: 15px;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 100;
  line-height: 20px;
}

a.site_by_link1:hover {
  border: none;
  cursor: default;
}
