 /* to convert text into link without the underline
  and changes in colour when hovering */
a.undecoratedlink, a.undecoratedlink:hover {
    text-decoration: none !important;
    color: white !important;
    background-color: #D1272E !important;
}

/* styling the schedules */

table#schedule {
	font-size: 80%;
}

tbody#event_schedule tr:nth-child(even) {
  background-color: #F0C2C6;
  color: black;
}

th#event_schedule_leader {
	background-color: #D1272E;
	color: white;
	font-family: "Franklin Gothic Demi", Tahoma, Verdana, Arial;
	font-size: 24px;
	font-weight: bold;
}


/* this is to hide the social media floating section on small devices
as it otherwise conflicts with the search bar */

.social {
	display: none;
}

.top-left {
  position: static;
  width: 100%;
  top: 20px;
  left: 20px;
}

/* Bottom left text */
.bottom-left-text {
  position: static;
  max-width: 100%;
  bottom: 40px;
  left: 20px;
}

/* for the new custom position bottom-c 
   this portion is copied from template.css and basically adds bot-c to the grids
   and duplicate the styling for container-bottom-b */

@supports (display: grid) {
  .site-grid {
    display: grid;
    grid-template-areas: ". banner banner banner banner ." ". top-a top-a top-a top-a ." ". top-b top-b top-b top-b ." ". comp comp comp comp ." ". side-r side-r side-r side-r ." ". side-l side-l side-l side-l ." ". bot-a bot-a bot-a bot-a ." ". bot-b bot-b bot-b bot-b ." ". bot-c bot-c bot-c bot-c .";
    grid-template-columns: [full-start] minmax(0, 1fr) [main-start] repeat(4, minmax(0, 19.875rem)) [main-end] minmax(0, 1fr) [full-end];
    grid-gap: 0 1em;
  }
  .site-grid > [class^=container-],
  .site-grid > [class*=" container-"] {
    width: 100%;
    max-width: none;
    -webkit-column-gap: 1em;
       -moz-column-gap: 1em;
            column-gap: 1em;
  }
  .site-grid > .full-width {
    grid-column: full-start/full-end;
  }
  @media (min-width: 992px) {
    .site-grid {
      grid-template-areas: ". banner banner banner banner ." ". top-a top-a top-a top-a ." ". top-b top-b top-b top-b ." ". side-l comp comp side-r ." ". bot-a bot-a bot-a bot-a ." ". bot-b bot-b bot-b bot-b ." ". bot-c bot-c bot-c bot-c .";
    }
  }
}

.container-bottom-c {
  position: relative;
}

.container-bottom-c > * {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  margin: 0.5em 0;
}

@media (max-width: 991.98px) {
  .container-bottom-c {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }

  .container-bottom-c > * {
    -webkit-box-flex: 0;
        -ms-flex: 0 1 auto;
            flex: 0 1 auto;
  }
}

.container-bottom-c {
  grid-area: bot-c;
}

/* end of bottom-c */

/* hide the Content, Publication and Metadata menu options */
div[role="tablist"] > button[aria-controls="publishing"] {
  display: none !important;
} 

div[role="tablist"] > button[aria-controls="metadata"] {
  display: none !important;
} 

/* hide additional tabs when creating a simple WG event */
joomla-tab > joomla-tab-element[id="group-registration-rates-page"] {
  display: none !important;
}
joomla-tab > joomla-tab-element[id="misc-page"] {
  display: none !important;
}
joomla-tab > joomla-tab-element[id="discount-page"] {
  display: none !important;
}

button[aria-controls="group-registration-rates-page"] {
  display: none !important;
}

button[aria-controls="misc-page"] {
  display: none !important;
}

button[aria-controls="discount-page"] {
  display: none !important;
}

/* hide the My Subscriptions tab in Edit Profile as Corporate membership plans links
   were broken */
 button[aria-controls="my-subscriptions-page"] {display: none !important;}  

.prog-grid-container-full {
  display: grid;
  width: 100%;
  grid-template-columns: 20% auto 40% 5% 5% 5%;
}

#eb-event-details img {
max-width: 50%;
}

div [id^="mscard_"] img {
  display: block;
  margin: auto;
max-width: 50%;
}

