
/* Colors */

:root {
  --ms-text-def: #555555; /* Default text */
  --ms-colour-highlight: #888888; /* Highlighted text */
  --ms-colour-accent: #aaaaaa; /* Accented text */
  --ms-bg-wash-red: rgba(194, 26, 26, 0.15);
  --ms-bg-wash-green: rgba(26,194,65,0.15);
  --ms-tile-width-reduce: 0px;
}

.layout.variant-background-colour-highlight { background: var( --ms-colour-highlight ); }
.layout.variant-background-colour-accent { background: var( --ms-colour-accent ); }
.layout.variant-background-colour-text { background: var( --ms-editor-text-def ); }
.layout.variant-background-colour-background { background: var( --ms-colour-background ); }
.layout.variant-background-colour-swatch1 { background: var( --ms-colour-swatch1 ); }
.layout.variant-background-colour-swatch2 { background: var( --ms-colour-swatch2 ); }

/* Overall */

html { 
  background: white;
}

body {
  background: white;
  background-image: initial;
}

.master-main > .route.active {
  padding-bottom: 150px;
}

button { 
  font-family: inherit;
  font-size: 1.2em;
  line-height: 2em;
  padding: 0 10px;
  background-color: var( --ms-colour-highlight );
  border: 0;
  color: white;
  border-radius: 5px;
}

/* Routes  */

.master-main > .route > h3 {
  font-size: 26px;
  text-align: center;
  padding-left: 1em;
}
  body.ms_club_editor_active .master-main > .route > h3:hover {
    background: #eee;
  }

.master-main > .layout, .route.route-event {
  max-width: 1000px;
  width: 95%;
  margin: 0 auto;
}

/* Club header */

.master-main > .route.route-header {
  /* min-height: 30px; */
  margin: 0 auto;
}

/* Club ident */

.master-main > .club-ident {
  display: flex;
  position: absolute;
  top: 36px;
  z-index: 221;
  flex-direction: row;
  max-width: 40%;
}
.master-main > .club-ident > .club-logo {
  display: inline-block;
  height: 50px;
  width: 50px;
  flex: 0 0 50px;
  border-radius: 50%;
  margin: 7px;
  background-size:cover;
  background-position:center center;
  border: 1px solid #eee;
}
.master-main > .club-ident > .club-name {
  display: inline-block;
  font-size: 30px;
  line-height: 64px;
  padding: 0 0 0 1ch;
  color: var( --ms-text-def );
  /* max-width: 250px; */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Ident with tile */

.master-main > .club-ident[class*="tile-"] > * { display: none; }

.master-main > .club-ident[class*="tile-"]  {
  display: flex;
}
.master-main > .club-ident[class*="tile-"] > .title {
  order: 1;
  display: block;
  line-height: 64px;
  font-size: 30px;
  padding-left: 1ch;
}
.master-main > .club-ident[class*="tile-"] > .image { display: block; position: relative; }
.master-main > .club-ident[class*="tile-"] > .image > img {
  position: relative;
  order: 2;
  max-height: 60px;
  margin: 2px;
  max-width: 30vw;
  display: block;
  max-width: 30vw;
  object-fit: contain;
}



/* Tiles */

.tile {
  /* transition: 0.15s; */
  overflow: none;
}

.tile.brightness-darkest img { filter: brightness( 0.33 ); }
.tile.brightness-darker img { filter: brightness( 0.66 ); }
.tile.brightness-lighter img { filter: brightness( 1.33 ); }
.tile.brightness-lightest img { filter: brightness( 1.66 ); }

.tile > .image {
  position: absolute;
  top:  0;
  left: 0;
  margin: 0;
  bottom: 0;
  right: 0;
}
.tile > .image > img {
  position: absolute;
  top:  0;
  left: 0;
  margin: 0;
  bottom: 0;
  right: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
}
/* Show grey when not loaded */
  .tile > .image > img:before {
    content: "Image not loaded :(";
    color: #888;
    padding: 20px;
    font-style: italic;
    display: block;
    margin-bottom: 10px;
    height: 100%;
    background: #eee;
  }


/* Tilegrid - Standard */

.tilegrid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  align-items: center;
}
.tilegrid .tile {
  flex: 0 0 250px;
  height: 200px;
  position: relative;
  margin: 10px;
  overflow: hidden;
}
.tilegrid .tile img {
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
}
  .tilegrid .tile.new img {
    margin-top: 15px;
  }
.tilegrid .tile .title { display: none; }
.tilegrid .tile .body { display: none; }

.tilegrid .tile .cta {
  text-decoration: none;
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-size: 1.2em;
  min-width: 125px;
  height: 2em;
  line-height: 2em;
  background: var(--ms-colour-highlight);
  color: white;
  text-align: left;
  padding-left: 10px;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: calc( 100% - 40px);
  box-sizing: border-box;
}

/* Column - Two */


@media (min-width: 800px) {
  .master-main .layout.column-2 {
    display: grid;
    grid-template-columns: 50% 50%;
  }
  .master-main .layout.column-2 > .layout:nth-child( 1 ) {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
  }
  .master-main .layout.column-2 > .layout:nth-child( 2 ) {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
  }
}



/* Tilegrid - Square white text */

.master-main .layout.tilegrid.variant-squarewhitetext .tile .title {
  display: block;
  color: white;
  position: absolute;
  left: 10px;
  top:  10px;
  right: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.2em;
}

.master-main .layout.tilegrid.variant-squarewhitetext .tile .body {
  display: block;
  color: white;
  position: absolute;
  left: 10px;
  top:  40px;
  right: 10px;
  bottom: 40px;
  overflow: hidden;
}

.master-main .layout.tilegrid.variant-squarewhitetext .tile .cta {
  font-size: 0.8em;
  padding: 5px;
  bottom: 10px;
  left: 40px;
  right: 10px;
  line-height: 1.4em;
  text-align: right;
}

/* Tilegrid - Circle */

.master-main .layout.tilegrid.variant-circle .tile, .master-main .layout.tilegrid.variant-layout-circle .tile {
  display: grid;
  height: auto;
  border: 0;
  grid-template-rows: min-content min-content auto min-content;
}
.layout.tilegrid.variant-circle .image, .layout.tilegrid.variant-layout-circle .image {
  grid-row: 1 / 2;
  display: block;
  height: auto;
  position: static;
  height: 200px;
  margin: 20px 0;
  text-align: center;
  justify-self: center;
}
.layout.tilegrid.variant-circle img, .layout.tilegrid.variant-layout-circle img {
  width: 200px;
  height: 200px;
  display: block;
  border-radius: 50%;
  position: static;
}
.layout.tilegrid.variant-circle .title, .layout.tilegrid.variant-layout-circle .title {
  grid-row: 2 / 3;
  display: block;
  justify-self: center;
  text-align: center;
  font-size:  1.4em;
  line-height: 1.4em;
  min-height: 2.8em;
  padding: 0 10px;
  /* font-weight: bold; */
}
.layout.tilegrid.variant-circle .body, .layout.tilegrid.variant-layout-circle .body {
  grid-row: 3 / 4;
  display: block;
  justify-self: center;
  padding: 10px;
}
.layout.tilegrid.variant-circle .cta, .layout.tilegrid.variant-layout-circle .cta {
  grid-row: 4 / 5;
  display: block;
  position: static;
  bottom: initial;
  justify-self: center;
  text-align: center;
  padding: 0 10px;
  margin: 20px 10px;
}

/* Default layouts */

.master-main .ms-page-content > * {
  margin: 0 auto;
  width: 100%;
}

/* Schedule */

.master-main .layout.variant-events-featured-hide .day.featured  { display: none; }

.master-main .layout.variant-events-featured-only .day {
  padding: 0;
  box-shadow: none;
  margin: 0;
}
.master-main .layout.variant-events-featured-only .daybody {
  padding: 0;
}
.master-main .layout.variant-events-featured-only .ms-filter-selects {display: none;}
.master-main .layout.variant-events-featured-only .ms_event:not(.featured) {display: none;}
.master-main .layout.variant-events-featured-only .ms_event.featured {
  margin: 10px;
  border: 0;
  background:var( --ms-colour-background );
}
.master-main .layout.variant-events-featured-only .ms_event.featured::before {
  content: none;
}
.master-main .layout.variant-events-featured-only .ms_event.featured .ms_event_startdate {
  display:block;
  grid-row: 1 / 2;
  grid-column: 1 / 3;
  font-size: 1.6em;
  padding: 10px 0;
}
.master-main .layout.variant-events-featured-only .ms-filterbar { display: none; }
.master-main .layout.variant-events-featured-only .ms_eventheaderday { display: none; }
.master-main .layout.variant-events-featured-only .day.featured { margin: 0; }
.master-main .layout.variant-events-featured-only .day.featured .ms_event { background: initial; }
.master-main .layout.variant-events-featured-only .day.featured .ms_event:before { display: none; }


/* Carousel */

.master-main .layout.carousel {
  display: block;
  position: relative;
  overflow: hidden;
  height: 50vh;
  width: min( 1000px , 100% );
}

.layout.carousel.variant-short {}

.master-main .layout.carousel .tile {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: absolute;
  left: -100vw;
  transition: 0s;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;  
}
  .master-main .layout.carousel.moving .tile {transition: left 2s ease-in-out;}

  body.ms_club_editor_active .master-main .route .layout.carousel .tile  {
    height: calc( 100% - 45px );
    margin-left: 5px;
    width: calc( 100% - 10px );
  }

  .master-main .layout.carousel { height: 50vh; }
  .master-main .layout.carousel.variant-short { height: 25vh; }
  .master-main .layout.carousel.variant-tall { height: 75vh; }
  .master-main .layout.carousel.variant-short-wide { height: 25vh; width: 100%; }
  .master-main .layout.carousel.variant-medium-wide { height: 50vh; width: 100% }
  .master-main .layout.carousel.variant-tall-wide { height: 75vh; width: 100%; }

  .master-main .layout.carousel .tile.offright { left: 100vw; }
  .master-main .layout.carousel .tile.active {z-index: 101;left: 0;}

.master-main .layout.carousel .tile .cta {
  z-index: 102;
  background: var(--ms-colour-highlight);
  color: white;
  padding-left: 10px;
  cursor: pointer;
  font-size: 30px;
  line-height: 50px;
  width: 200px;
  text-decoration: none;
}
.master-main .layout.carousel .tile .title {
  z-index: 102;
  width: 300px;
  margin-bottom: 20px;
  color: white;
  font-size: 40px;
  line-height: 30px;
  text-decoration: none;
}
.master-main .layout.carousel .tile .body {
  z-index: 102;
  margin-bottom: 20px;
  color: white;
}

.master-main .layout.carousel .controls > div[class*='go'] {
  cursor: pointer;
  position: absolute;
  top: calc( 50% - 30px );
  line-height: 80px;
  font-size: 40px;
  background: transparent;
  color: rgba( 128 , 128 , 128 , 0.5 );
  transition: 0.5s;
  border-radius: 10px;
  z-index: 102;
}
  .master-main .carousel:hover .controls > div[class*='go'] {
    background: var(--ms-colour-highlight);
    color: rgba( 192 , 192 , 192 , 0.5 );
    opacity: 0.75;
  }

.master-main .layout.carousel .controls .goprev { left: -20px; text-align: right; }
.master-main .layout.carousel .controls .gonext { right: -20px; text-align: left; }

.master-main .layout.carousel > .controls > .bubbles {
  position: absolute;
  left: 50%;
  bottom: 60px;
  display: flex;
  height: auto;
  z-index: 102;
  transform: translateX( -50% );
}

.master-main .layout.carousel > .controls > .bubbles > div {
  margin: 0px 5px;
  width: 10px;
  height: 10px;
  border: 1px solid grey;
  background: black;
  border-radius: 50%;
  cursor: pointer;
}
  .master-main .layout.carousel > .controls > .bubbles > div.active {
    background: white;
  }

/* Single tile */
/* Single tiles images should be shown in full with no cropping and at the correct aspect ratio
They might be in place as logos */


.master-main .layout.singletile > .tile {
  margin: 0 auto;
  max-width: min( 80vw , 600px );
  text-align: center;
  font-size: 1.1em;
}

.master-main .layout.singletile > .tile > .title {
  padding: 10px;
  font-size: 32px;
  padding: 10px;
}
.master-main .layout.singletile > .tile > .body {
  padding: 20px;
}
.master-main .layout.singletile > .tile > .cta {
  text-decoration: none;
  /* justify-self: center; */
  min-width: 100px;
  max-width: 400px;
  height: 24px;
  line-height: 30px;
  background: var(--ms-colour-highlight);
  color: white;
  margin: 10px auto;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;

  padding: 10px;
  display: block;
}

.layout.singletile .tile .image > img {
  position: relative;
  object-fit: cover;
  /* height: 100%; */
  max-width: min( 600px , 80vw );
}
.layout.singletile .tile .image {
  position: relative;
  display: flex;
}


/* Rich text */

.master-main .layout.richtext {
  display: flex;
  justify-content: center;
  /* margin: 20px; */
  max-width: 100vw;
  overflow: hidden;
}

.master-main .layout.richtext > .tile {
  flex: 0 1 90vw;
  padding-left: 10px;
  padding-right: 10px;
  max-width: min( 1000px , 95vw);
  font-size: 1.2em;
}


/* Filters */

.tile[class*="filter-"] figure::after {
  /* content: ''; */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  position: absolute;
  pointer-events: none;
}
.tile.filter-toaster figure::after {
  background: radial-gradient(circle,#804e0f,#3b003b);
  mix-blend-mode: screen;
  font-size: 0;
}


/* Comments */

.master-main .layout.comments {
  display: flex;
  justify-content: center;
}

.master-main .layout.comments > .tile {
  flex: 0 0 60vw;
  max-width: 800px;
  font-size: 19px;
}

/* Main nav links styling */

.nav-links a, .layout.menu-main .tile a {
  text-decoration: none;
  line-height: 40px;
  padding: 0 10px;
  /* border-bottom: 4px solid transparent; */
  white-space: nowrap;
  text-overflow: ellipsis;
}
  .nav-links a.ms-editor-changed:after {
    content: ' *';
  }

.nav-links a.submenu, .layout.menu-main .tile a.submenu {
  font-size: 0.9em;
  font-style: italic;
  display: block;
}


/* Nav admin */

.nav-admin-buttons {
  display: flex;
  /* position: absolute;
  right: 0;
  left: 0;
  top: 0; */
  height: 28px;
  z-index: 201;
  background: #888;
  color: #aaa;
  padding: 4px;
  justify-content: flex-end;
  font-size: 0.9em;  
}

.nav-admin-buttons > div {
  cursor: pointer;
  padding: 0 5px;
  margin: 0 5px;
  line-height: 28px;
  border-radius: 5px;
  transition: 0.15s;
  font-weight: bold;
}
  .nav-admin-buttons > div:hover { background: rgba(255,255,255,0.10); }
  /* body.ms-route-mydetails .nav-admin-buttons > div.ms-my-details { background: #ddd; } */
  .nav-admin-buttons > .icon-cog { background: #e46a3c; color: white; }

  .nav-admin-buttons > .ms-site-editor-toggle { background: #908db3; color: white; }
  .nav-admin-buttons > .icon-login, .nav-admin-buttons > .icon-adult { 
    background: var( --ms-colour-highlight );
    color: white;
  }
  .nav-admin-buttons > .icon-shopping-basket { 
    background: var( --ms-colour-highlight );
    color: white;
  }
  .nav-admin-buttons > .icon-shopping-basket > label { 
    padding: 0 3px;
    margin: 0 3px 0 0;
  }

/* Contact Us */

.master-main .layout.contactus {
  display: flex;
  justify-content: center;
}

.master-main .tile.contactus {
  flex: 0 1 90vw;
  max-width: 800px;
  display: block;
}

.master-main .tile.contactus > div {
  position: relative;
  font-size: 1.4em;
  margin: 20px 0;
  border: 1px solid var( --ms-text-def );
  /* border-radius: 5px; */
  padding: 22px 10px 3px 10px;
  width: auto;
}
  .master-main .tile.contactus > div:before {
    position: absolute;
    font-size: 20px;
    top: 15px;
    left: 10px;
    transition: 0.25s;
  }
  .master-main .tile.contactus > div:focus:before,
    .master-main .tile.contactus > div:not(:empty):before,
    .master-main .tile.contactus > div:hover:before {
    position: absolute;
    top: 4px;
    font-size: 14px;
  }


.master-main .tile.contactus > div:nth-child(1):before {
  content: "Email*";
  opacity: 0.5;
}
.master-main .tile.contactus > div:nth-child(2):before {
  content: "Phone";
  opacity: 0.5;
}
.master-main .tile.contactus > div:nth-child(3) {
  height: calc( 4em + 20px );
}
.master-main .tile.contactus > div:nth-child(3):before {
  content: "Message";
  opacity: 0.5;
}
.master-main .tile.contactus > button {
  width: 300px;
  border-radius: 0;
  text-align: center;
  margin-left: 50%;
  transform: translateX(-50%);
  background: var( --ms-colour-highlight );
  color: white;
}
.master-main .tile.contactus > button:before {
  content: "Send";
}



@media (min-width: 800px) {

  /* Main nav links */

  .nav-links, .layout.menu-main .tile {
    z-index: 201;
    padding-left: 39%;
    max-width: 60%;
    z-index: 220;
    text-align: right;
    display: flex;
    justify-content: flex-end;
  }
  .nav-links > a, .layout.menu-main .tile a {
    display: inline-block;
  }
  .nav-links > a.has-sub-items > div > a, .layout.menu-main .tile a.has-sub-items > div > a  {
    background: var( --ms-colour-background );
    border: 1px solid #ddd;
    margin-top: 10px;
    /* border-radius: 5px; */
  }
  .nav-links > a.has-sub-items:after, .layout.menu-main .tile a.has-sub-items:after {
    content: " \25BD";
  }

  .nav-links a, .layout.menu-main .tile a {
    overflow: hidden;
    z-index: 1;
  }
    .nav-links > a.icon-menu, .layout.menu-main .tile a.icon-menu { display: none; }
    .nav-links > a.submenu, .layout.menu-main .tile a.submenu { display: none; }

  .nav-links > a.active , .layout.menu-main .tile a.active {
     border-bottom: 3px solid var( --ms-text-def );
  }

  /* Sub menu container */
  .nav-links > a > div , .layout.menu-main .tile > a > div {
    position: absolute;
    display: none;
    margin-left: -10px;
    transition: 0.25s;
    min-width: 100px;
    text-align: left;
  }

  .nav-links > a:hover > div , .nav-links > a > div:hover ,
  .layout.menu-main .tile > a:hover > div ,
  .layout.menu-main .tile > a > div:hover {
  /* .nav-links > a:hover > div , .nav-links > a > div:hover { */
    display: block;
  }
}


@media (max-width: 800px), (max-height: 520px) {
  body { 
    font-size: 14px;
  }

  .nav-links, .layout.menu-main .tile {
      display: block;
      padding-right: 10px;
      text-align: right;
      overflow: hidden;
    }
  .nav-links > a , .layout.menu-main .tile > a  {
    display: block;
    transition: height 0.25s;
    height: 0;
  }
  .nav-links > a.icon-menu, .layout.menu-main .tile > a.icon-menu {
    line-height: 58px; height: 58px; display: block;
  }
  .nav-links > a.active, .nav-links > a:not(.active) {
    border-bottom: 0 !important;
  }
  .layout.menu-main .tile > a.active, .layout.menu-main .tile > a:not(.active) {
    border-bottom: 0 !important;
  }
  .nav-links.open > a:not(.icon-menu) { height: 45px; }

  /* Hide sub item containers */
  .nav-links > a > div { display: none; }


  .nav-admin-buttons div:not(.dontshrink) {
    overflow: hidden;
    width: 2em;
    padding: 0;
  }
  .club-header .main-title {
    font-size: 24px;
    line-height: 60px;
    height: 80px;
    padding-left: 10px;
  }

  .nav-links > a {
    padding: 0 5px;
    line-height: 40px;
  }
  .layout.menu-main .tile > a {
    padding: 0 5px;
    line-height: 40px;
  }
  .club-header .clubbadge {
    margin: 80px 0px 0px 0px
  }

  .master-main > .club-ident { max-width: 75%; }

  .master-main > .club-ident > .club-logo {
    height: 44px;
    width: 44px;
    flex: 0 0 44px;
  }
  .master-main > .club-ident > .club-name {
    font-size: 20px;
    line-height: 58px;
  }
  .master-main > .club-ident[class*="tile-"] > .title {
    font-size: 18px;
  }

  .master-main .layout.carousel .tile .title { font-size: 24px; }
  .master-main .layout.carousel .tile .cta { font-size: 19px; }

}


@media (min-width: 800px) {

  .layout.singletile[class*="variant-right-text"] > .tile {
    max-width: initial;
    display: grid;
    grid-template-rows: auto auto auto auto;
    grid-template-columns: 50% 50%;
  }
  .layout.singletile.variant-right-text-wide > .tile { grid-template-columns: 33% auto; }

  .layout.singletile[class*="variant-right-text"] > .tile .title { grid-row: 2 / 3; grid-column: 2 / 3; }
  .layout.singletile[class*="variant-right-text"] > .tile .body { grid-row: 3 / 4; grid-column: 2 / 3; }
  .layout.singletile[class*="variant-right-text"] > .tile .cta { grid-row: 4 / 5; grid-column: 2 / 3; }
  .layout.singletile[class*="variant-right-text"] > .tile .image {
    grid-row: 1 / 6;
    grid-column: 1 / 2;
    display: flex;
  }

  .layout.singletile[class*="variant-left-text"] > .tile {
    display: grid;
    max-width: initial;
    grid-template-rows: auto min-content min-content min-content auto;
    grid-template-columns: 50% 50%;
  }
  .layout.singletile.variant-left-text-wide .tile { grid-template-columns: auto 33%; }

  .layout.singletile[class*="variant-left-text"] > .tile .title { grid-row: 2 / 3; grid-column: 1 / 2; }
  .layout.singletile[class*="variant-left-text"] > .tile .body { grid-row: 3 / 4; grid-column: 1 / 2; }
  .layout.singletile[class*="variant-left-text"] > .tile .cta { grid-row: 4 / 5; grid-column: 1 / 2; }
  .layout.singletile[class*="variant-left-text"] > .tile .image {
    grid-row: 1 / 6;
    grid-column: 2 / 3;
    display: flex;
  }
}
