
@font-face {
  font-family: 'rubik';
  src:  url("rubik-regular.ttf") format('truetype');
}
@font-face {
  font-family: 'rubik';
  src:  url("rubik-bold.ttf") format('truetype');
  font-weight: bold;
}
@font-face {
  font-family: 'rubik';
  src:  url("rubik-light.ttf") format('truetype');
  font-weight: lighter;
}
@font-face {
  font-family: 'prata';
  src:  url("") format('truetype');
}

/* Colours */

:root {
  --ms-colour-highlight: #bda691;
  --ms-colour-accent: #f8ede7;
  --ms-text-def: #3c454b;
  --ms-background-def: #ffffff;
}

.nav-links .route-events:before {
  content: 'Classes';
}

body {
  font-family:"rubik","Times New Roman", Times, serif !important;
}

/* Routes  */

.master-main .ms-page-content > .layout {
  width: min( 100% , 1000px );
}

.route.route-header .ms-page-content { max-height: 0;overflow: hidden;transition: 0.75s;transition-delay: 0.25s;}
body.ms-route-home .route.route-header .ms-page-content:not(:empty) { max-height: 100vh; }

body.ms_club_editor_active.ms-route-home .route.route-header .ms-page-content { max-height: initial; padding-top: 10px; }

/* Headings */

.master-main > .route > h3 {
  font-size: 22px;
  text-align: left;
  border-bottom: 1px solid rgb(226, 226, 226);
  padding: 10px 20px 20px 0;
  margin: 20px auto 30px auto;
  width: min( 1000px, 90vw );
  text-transform: uppercase;
  font-family: "Open-Sans", sans-serif;
}
  .master-main > .route.permanent > h3 { display: none; }

/* Main nav links */

.nav-links {
  position: relative;
  display: flex;
  font-family: 'rubik', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  font-weight: lighter;
  font-size: 17px;
  left: auto; top: auto;
  margin: 0 auto 0 auto;
  padding: 0;
  max-width: 100%;
  bottom: auto;
  justify-content: center;
}
.nav-links > a {
  border-bottom: 1px solid transparent;
}
.nav-links > a.active {
  border-bottom: 1px solid var( --ms-text-def );
}

/* Carousel */


.master-main .layout.carousel {
  font-weight: bold;
}

.master-main .layout.carousel .tile .title {
  position: relative;
  display: block;
  font-size: 50px;
  line-height: 60px;
  font-weight: normal;
  width: 80%;
  max-width: 700px;
  padding-bottom: 10px;
  border-bottom: 1px solid white;
}
.master-main .layout.carousel .tile .cta {
  position: relative;
  display: block;
  font-size: 19px;
  font-weight: normal;
  /* padding: 20px; */
  margin: 0 auto;
  left: auto;
  top: auto;
}

/* Club identifier */

.master-main > .club-ident.tile {
  position: relative;
  justify-content: center;
  z-index: 150;
  left: 0;
  right: 0;
  margin: 0 auto 0 auto;
  padding-top: 50px;
  top: unset;
  font-size: 22px;
  text-transform: uppercase;
  box-sizing: border-box;
}

.master-main > .club-ident > .club-name {
  left: max( min( 5vw ) , 50vw - 500px ) ;
  z-index: 150;
  font-size: 30px;
  text-transform: uppercase;
  padding: 0;
}

.master-main > .club-ident[class*="tile-"] > .image > img {
  max-width: initial;
  max-height: 100px;
  transition: max-height 0.5s;
}

/* Admin links */

.nav-admin-buttons {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

@media (max-width: 800px), (max-height: 520px) {
  .master-main .layout.carousel .tile .title { font-size: 30px; }
  .master-main .layout.carousel .tile .cta { font-size: 19px; }

  .nav-links {
      display: block;
      padding-right: 10px;
      text-align: center;
  }

}