/* ==================================================
   1. Reset & Base
   ================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 300px;
  overflow-x: hidden;
  overflow-y: scroll;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  text-rendering: optimizeLegibility;
  text-size-adjust: 100%;
  background: #404040;
}

body {
  margin: 0;
  padding: 0;
  background-color: #404040;
  font-family: 'Raleway', sans-serif;
  line-height: 1.5;
  font-size: 16px;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

a {
  color: white;
  text-decoration: underline;
}


/* ==================================================
   2. Typography
   ================================================== */

h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
}

strong,
.highlight {
  font-weight: 500;
  color: #EF3E49;
}

quote {
  display: block;
  margin: 3em 13% 0 7%;
  font-size: 14px;
}

figcaption {
  font-size: 12px;
}


/* ==================================================
   3. Global Media & Images
   ================================================== */

img.marketing {
  filter: grayscale(1);
}
img.marketing:hover {
  filter: grayscale(0);
}

img.poster {
  border-radius: 0.3rem 2rem;
}

img.fito {
  border-radius: 5px;
  filter: blur(1px);
  transition: 0.3s ease-in-out;
  margin-left: 2px;
  padding: 10px;
  background-color: white;
}
img.fito:hover {
  filter: blur(0);
}

li > img {
  width: 200px;
  margin-right: 10px;
}


/* ==================================================
   4. Layout Containers
   ================================================== */

#home {
  width: 63vw;
  margin: 0 auto;
  padding: 0;
  color: #e3e3e3;
}

#home.homepage {
  opacity: 0;
  transition: opacity 0.4s ease;
}
body.loaded #home.homepage {
  opacity: 1;
}

#home a:hover {
  text-decoration: none;
  background: #EF3E49;
  color:#ffffff;
}

#home a.btn, #home input.btn {
    border-radius: 36px;
    font-family: Arial;
    color: #000000;
    font-size: 13px;
    background: #FFF;
    padding: 5px 10px 5px 10px;
    text-decoration: none;
    cursor: pointer;
}

#home a.btn:hover {
  background: #EF3E49;
    color:#ffffff;
  text-decoration: none;
}

/* ==================================================
   5. Header / Top
   ================================================== */

#top {
  margin: 4rem auto 0;
  width: 63vw;
  height: 9rem;
  background-color: #404040;
  cursor: pointer;
}

#top h1 {
  font-family: 'Averia Serif Libre', cursive;
  display: inline-block;
  font-weight: 700;
  color: white;
  font-size: 5.1vw;
  margin: 5vh 0;
  line-height: 1;
  text-transform: uppercase;
}

#top h1::after {
  content: "*";
  color: #ee2935;
}

#top h3 {
  color: #ee2935;
  font-size: 2vw;
  margin: 0;
}


/* ==================================================
   6. Navigation Menu
   ================================================== */

.menu {
  position: fixed;
  top: 0;
  width: 100%;
  height: 4rem;
  background-color: #EF3E49;
  z-index: 200;
}

.menu ol{  
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.menu > ol {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
}

.menu > ol > .menu-item:after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  bottom: 5px;
  left: calc(50% - 2px);
  background: #FECEAB;
  will-change: transform;
  transform: scale(0);
  transition: transform 0.2s ease;
}

.menu > ol > .menu-item:hover:after {
  transform: scale(1);
}


.menu-item {
  flex: 1;
  padding: 0.75rem 0;
  text-align: center;
  position: relative;
  line-height: 2.5rem;
}

.menu-item a {
  font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: -0.3px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: inline;
    color: #FFF;
  text-decoration: none;
}

.menu-item a.active {
  color: #000;
  font-weight: 500;
}


/* ==================================================
   7. Sub-menu
   ================================================== */

.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  display: none;
  z-index: 1;
}

.menu-item:hover > .sub-menu {
  display: block;
}

.sub-menu .menu-item {
  background: #EF3E49;
  opacity: 0;
  animation: enter 0.3s ease forwards;
}

.sub-menu .menu-item:hover {
  background: #FDE9EA;
}
.sub-menu .menu-item:hover a {
  color: #ee2935;
}


/* ==================================================
   8. Home Content
   ================================================== */

#home h1 {
  font-size: 1.35em;
  font-weight: 800;
  background-color: #f88989;
  color: #404040;
  display: table;
  padding: 4px 8px;
  margin: 1em 0 .5em;
  border-radius: 3px;
}

#home h2 {
  padding: 0 10px 0 5px;
    display: table;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #D3D3D3;
    background-color: #EF3E49;
  font-size: 1.3rem;
  margin: 2em 0 .5em 0;
  text-transform: uppercase;
  font-style: italic;
  clear: both;
  line-height: .4;
}


#home h3 {
  font-size: 1.1em;
  font-weight: 800;
  border-bottom: 4px double #BDAA70;
  margin: 2em 0 1em;
  display: inline-block;
}

#home p {
  font-size: 1em;
  margin: 1em 0;
  line-height: 1.7;
  font-weight: 300;
}


/* ==================================================
   9. Components
   ================================================== */

/* Bubble */
#home .bubble {
  padding: 10px;
  border-radius: 0.3rem 2rem;
  background-color: #5f5f5f;
}

#home .bubble:hover,
#home .bubble:hover * {
  background-color: #BDAA70;
  color: black;
}

#home .bubble button {
  background-color: #f5f5f5;
  font-size: .8em;
  border: 1px dotted #404040;
  border-radius: 3px;
  margin-top: 1em;
}

#home .bubble:hover button {
  background-color: #fff;
}

/* ===== SOCIAL ICON FIX + POPUP PRIVACY ===== */
#social {
  position: fixed;
  z-index: 9;
  bottom: 1rem;
  left: 2rem;
  width: 2vh;
}

#social img {
  height: 30px;
}

#social img.ctnd {
  height: 65px;
  width: 65px;
  margin-left: -1.1rem;
  margin-top: 0.5rem;
}

.popup-privacy {
    position: fixed;
    bottom: 0;
    z-index: 10;
    display: block;
    width: 100%;
    height: 30px;
    background-color: white;
    color: black;
}

.popup-privacy p {
    margin: 0 auto;
    text-align: center;
    padding-top: 3px;
    font-size: 1em;
}

/* ===== SUMMARY BLOCK ===== */
#home .summary {
  margin-bottom: 4rem;
  padding: 1rem;
  background-color: #5f5f5f;
  border-left: 6px solid #f88989;
  border-radius: 0.5rem;
}

#home .summary #index_submenu {
    line-height: 1.9;
    list-style: none;
    padding-left: 0;
    font-size: 1em;
}


/* ===== WEEKLY SCHEDULE ===== */
:root {
  --minute: 0.7px;
}

.schedule {
  display: grid;
  grid-template-columns: 70px repeat(5, 1fr);
  grid-template-rows: 3em;
  grid-auto-rows: var(--minute);
  column-gap: .2em;
  background-color: silver;
  color: #404040;
  border-radius: 6px;
  font-size: 15px;
  padding: 1em;
  text-align: center;
}

.schedule div {
    padding: .1em;
}

.header {
    font-weight: bold;
    text-align: center;
}

.time {
    font-weight: bold;
    align-self: start;
    padding: 2px;      
    line-height: 1;    
    font-size: 1em;    
    z-index: 1;
}

.class {
    background: #FFd8d8;
    border-radius: 4px;
    vertical-align: middle;
}

:root {
    --minute: 0.7px; /* 2 minutes = 1px */
}

/* ===== MEMBERSHIP BOXES ===== */
#home .box {
  display: flex;
  flex-wrap: wrap;
}

#home .box .col-membership {
    display: flex;
    flex-direction: column;
    border: 1px solid #fff;
    border-radius: 5px;
    margin: 0 10px 10px 0;
    padding: 10px;
    /* flex: 0 1 0; */
    background: #f88989;
}

#home .box p {
    font-size: 0.9em;
    margin: 0 0 10px 0;
    line-height: 1.9;
    font-weight: 450;
    color: #444;
}

#home .box p span.title {
  font-size: 1em;
}
#home .box .col-membership {
  display:flex;
  flex-direction: column;
  border: 1px solid #fff;
  border-radius: 5px;
  margin: 0 10px 10px 0;
    padding: 10px;
    /*flex: 0 1 0;*/
  background: #f88989;
}
#home .box .col-membership:hover {
  /*background:#EF3E49;*/
  background-color: #BDAA70;
  color:white;
}

#home .box .col-membership:hover p {
  font-weight: 450;
  color:black;
}

#home .box .col-membership .highlight {
  color:white;
  font-weight: 600;
}

#home .paypal {
  align-items: flex-end;
    display: flex;
    flex-grow: 1;
}


/* ==================================================
   10. Horizontal Gallery
   ================================================== */

.flexgal_container {
  height: 300px;
  display: flex;
  gap: 10px;
  flex-flow: row nowrap;
  overflow-x: auto;
  mask-image: linear-gradient(to right, black 90%, transparent 100%);
}

.flexgal_container img {
  height: 100%;
  object-fit: cover;
}


/* ==================================================
   11. Animations
   ================================================== */

@keyframes enter {
  from {
    opacity: 0;
    transform: scaleY(0.98) translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}


/* ==================================================
   12. Mobile
   ================================================== */


@media (max-width: 1200px) {
  :root {
    --minute: 0.4px;
  }

  .schedule {
    font-size: 11px;
    grid-template-columns: 40px repeat(5, 1fr);
  }
}


@media (max-width: 600px) {

  /* =========================
     Top / Header - Mobile
     ========================= */

  #top {
    cursor: pointer;
    position: static;
    width: 85%;
    float: right;
    margin: 0 1% 1% 0;
    height: 20vh;
  }

  #top h1 {
    font-size: 8.5vw;
  }

  /* =========================
     Social - Mobile
     ========================= */

  #social {
    left: 1rem;
    bottom: 0;
  }

  #social img {
    height: 20px;
  }

  #social img.ctnd {
    height: 40px;
    width: 40px;
    margin-left: -0.6rem;
  }

  /* =========================
     Privacy popup - Mobile
     ========================= */

  .popup-privacy {
    height: 7vh;
  }

  .popup-privacy p {
    font-size: 0.8em;
  }

  /* =========================
     Mobile menu / navigation
     ========================= */

  .menu {
    position: relative;
  }

  .menu:after {
    content: "";
    position: absolute;
    top: calc(50% - 2px);
    right: 1rem;
    width: 30px;
    height: 4px;
    background: #FFF;
    box-shadow: 0 10px #FFF, 0 -10px #FFF;
  }

  .menu > ol {
    display: none;
    background: #F36971;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    animation: fade 0.2s ease-out;
  }

  .menu:hover > ol {
    display: flex;
  }

  .menu-item {
    text-align: left;
  }

  .menu-item a {
    letter-spacing: 0;
  }

  .menu > ol > .menu-item {
    flex: 0;
    opacity: 0;
    animation: enter 0.3s ease-out forwards;
  }

  .menu > ol > .menu-item:nth-child(1) { animation-delay: 0s; }
  .menu > ol > .menu-item:nth-child(2) { animation-delay: 0.1s; }
  .menu > ol > .menu-item:nth-child(3) { animation-delay: 0.2s; }
  .menu > ol > .menu-item:nth-child(4) { animation-delay: 0.3s; }
  .menu > ol > .menu-item:nth-child(5) { animation-delay: 0.4s; }

  .menu > ol > .menu-item + .menu-item {
    margin-top: 0.75rem;
  }

  .menu > ol > .menu-item:after {
    left: auto;
    right: 1rem;
    bottom: calc(50% - 2px);
  }

  .menu > ol > .menu-item:hover {
    z-index: 1;
  }

  .menu:hover:after {
    box-shadow: none;
  }

  .sub-menu {
    width: 100vw;
    left: -2rem;
    top: 50%;
    transform: translateY(-50%);
  }

  .sub-menu .menu-item {
    text-align: center;
    margin-left: 8rem;
  }

  /* =========================
     Home content - Mobile
     ========================= */

  #home {
    width: 85%;
    float: right;
    margin: 0 1% 1% 0;
  }

  #home h1 {
    font-size: 15px;
    font-weight: 800;
  }

  #home h2 {
    font-size: 14px;
  }

  #home h3 {
    font-size: 14px;
  }

  #home h4 {
    font-size: 14px;
  }

  #home p {
    font-size: 13px;
  }

  #home a {
    font-size: 14px;
  }

  #home .box p {
    font-size: 13px;
  }

}

