/**
 * style.css
 *
 * Theme Name: Why not Swimming
 * Theme URI:   http://www.machine-agency.com
 * Author:      Machine
 * Author URI:  http://www.machine-agency.com
 * Description: Custom Theme for Why not Swimming
 * Version:     1.0
 * License:     GNU General Public License v2 or later
 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
 * Tags:        light
 * Text Domain: machine
 */


@font-face {
    font-family: 'Ciutadella';
    src: url('fonts/Ciutadella/Regular.eot');
    src: url('fonts/Ciutadella/Regular.eot?#iefix') format('embedded-opentype'),
         url('fonts/Ciutadella/Regular.woff2') format('woff2'),
         url('fonts/Ciutadella/Regular.woff') format('woff'),
         url('fonts/Ciutadella/Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Ciutadella';
    src: url('fonts/Ciutadella/Bold.eot');
    src: url('fonts/Ciutadella/Bold.eot?#iefix') format('embedded-opentype'),
         url('fonts/Ciutadella/Bold.woff2') format('woff2'),
         url('fonts/Ciutadella/Bold.woff') format('woff'),
         url('fonts/Ciutadella/Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}



 /* ==========================================================================
    Global
    ========================================================================== */

 body {
   color: #000;
   background: transparent;
   -webkit-font-smoothing: antialiased;
   -moz-osx-font-smoothing: grayscale;
   font-family: 'Rubik', sans-serif;
 }

 section{
   padding: 4rem 0;
   width: 100%;
 }

.grid-container{
  max-width: 80rem;
}

.no-padding-bottom{
  padding-bottom: 0;
}

@media only screen and (max-width: 640px) {
  section{
    padding: 2rem 0;
  }
}

main > h1,
main > h2,
main > h3,
main > h4,
main > h5,
main > h6,
main > p,
main > ul,
main > ol,
main > blockquote{
	max-width: 60rem;
	margin: 1rem auto;
	padding: 0 1rem;
}

main > ul,
main > ol{
	padding-left: 2rem;
}

main > h1:last-child,
main > h2:last-child,
main > h3:last-child,
main > h4:last-child,
main > h5:last-child,
main > h6:last-child,
main > p:last-child,
main > ul:last-child,
main > ol:last-child,
main > .wp-block-image:last-child{
	margin-bottom: 4rem;
}

.wp-block-image.alignwide {
  max-width: 80rem;
	margin: 1rem auto;
}

.wp-block-image.alignright,
.wp-block-image.alignleft{
	max-width: 60rem;
}

.wp-block-image .aligncenter {
  max-width: 60rem;
  padding: 0 1rem;
}

 /* ==========================================================================
    Typography
    ========================================================================== */

h1{
  /*font-family: 'Rubik', sans-serif;*/
  font-family: 'Ciutadella';
  font-weight: bold;
  font-style: normal;
  font-size: 50px;
  line-height: 59px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

h2{
  /*font-family: 'Rubik', sans-serif;*/
  font-family: 'Ciutadella';
  font-weight: bold;
  font-style: normal;
  font-size: 44px;
  line-height: 52px; 
  margin-bottom: 2rem;
  color: #00ACDB;
  text-transform: uppercase;
}

h3{
  /*font-family: 'Rubik', sans-serif;*/
  font-family: 'Ciutadella';
  font-weight: bold;
  font-style: normal;
  font-size: 18px;
  line-height: 30px;
  text-transform: uppercase;
  color: #00ACDB;  
  margin-bottom: 1rem;
  text-transform: uppercase;
}

h4{
  
}

h5{
  
}

h6{
  
}

.large > p,
p.large{
  font-family: 'Rubik', sans-serif;
  font-style: normal;
  font-weight: normal;
  font-size: 28px;
  line-height: 40px;  
  font-family: 'Rubik', sans-serif;
}

p, li, a{
  font-family: 'Rubik', sans-serif;
  font-style: normal;
  font-weight: normal;
  font-size: 18px;
  line-height: 21px;
}

/* ==========================================================================
    Header
    ========================================================================== */

.site-header{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99;
  padding: 1rem 0;
}

.site-footer{
  padding: 2rem 0;
  background: #4F4F4F;
}

.site-footer p{
  color: #fff;
  margin: 0;
  font-style: normal;
  font-weight: normal;
  font-size: 18px;
  line-height: 21px;
}

.site-footer a{
  color: #fff;
}

.site-footer a:hover,
.site-footer a:focus{
  color: #fff;
  text-decoration: underline;
}

 /* ==========================================================================
    Button Styles
    ========================================================================== */

.button,
.button-group .button{
  /*font-family: 'Rubik', sans-serif;*/
  /*font-style: normal;*/
  /*font-weight: normal;*/
  font-family: 'Ciutadella';
  font-weight: bold;
  font-style: normal;
  font-size: 12px;
  line-height: 14px;
  text-transform: uppercase;
  background: #00ACDB;
  color: #fff;
}

.button:hover,
.button:focus{
  background: #4F4F4F;
  color: #fff;
  
}


 /* ==========================================================================
    Sections
    ========================================================================== */

main{
  background: #F1FCFF;
}

.section-bg{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.image-overlay{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 172, 219, 0);
  z-index: 10;
}

.section--why-not-try{
  overflow: hidden;
  position: relative;
  padding: 8rem 0;
}

.section--why-not-try .grid-container{
  position: relative;
  z-index: 25;
}

.option-wheel{
  /*font-family: 'Rubik', sans-serif;*/
  /*font-style: normal;*/
  /*font-weight: normal;*/
  font-family: 'Ciutadella';
  font-weight: bold;
  font-style: normal;
  text-transform: uppercase;
  font-size: 50px;
  line-height: 59px;
  color: #fff;
  text-align: center;
}

.option-wheel-center-option{
  font-weight: bold;
  font-style: normal;
  /*font-style: normal;*/
  /*font-weight: normal;*/
  font-size: 50px;
  line-height: 59px;
  opacity: 0.4;
  padding: 1rem 2rem;
}

.option-wheel-center-option.active{
  font-weight: bold;
  font-style: normal;
  /*font-style: normal;*/
  /*font-weight: normal;*/
  font-size: 70px;
  line-height: 59px;
  opacity: 1;
}

.option-wheel{
  display: flex;
  justify-content: center;
  align-items: center;
}

.option-wheel-left{
  width: 200px;
}

.option-wheel-right{
  width: 200px;
}

.option-wheel-center-option {  
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  font-weight: bold;
  user-select: none;  
  display: flex;
  align-items: center;
  justify-content: center;    
}

.option-wheel-center-options--inner {
  display: flex;
  position: relative;
  flex-direction: column;
  width: 450px;
  margin: 0;
  overflow: hidden;
  align-items: center;
  justify-content: center;
}

.option-wheel-center{
  overflow: hidden;
  display: flex;
  align-items: center;
}

.section--find-a-club .button-group{
  margin: 0 -0.5rem;
}

.section--find-a-club .button-group > .button,
.section--find-a-club .button-group > .button-dropdown{
  width: 50%;
  margin: 0 0.5rem;
}

.section--find-a-club .button-group > .button-dropdown > .button{
  width: 100%;
}

.dropdown-pane{
  width: 158px;
}

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

.dropdown-pane ul li{
  text-align: left;
}

.dropdown-pane ul li a{
  display: block;
  padding: 0.5rem 0;
}

.sidebar-clubs-list > ul{
  list-style: none;
  margin: 2rem 0 0 0;
  padding: 0;
  text-align: left;
  background: #ffffff;
}

.sidebar-clubs-list > ul > li p:last-child{
  margin-bottom: 0;
}

.sidebar-clubs-list > ul > li{
  padding: 1rem 0;
  border-top: 2px solid #E5E5E5;;
}

.sidebar-clubs-list > ul > li.view-location{
  cursor: pointer;
}

.sidebar-clubs-list > ul > li h3{
  font-style: normal;
  font-weight: normal;
  font-size: 18px;
  line-height: 30px;
  text-transform: uppercase;
  color: #00ACDB;
}

.sidebar-clubs-list{
  background: #ffffff;
  padding: 1rem;
  min-height: 40rem;
  max-height: 40rem;
}

.sidebar-clubs-list > ul{
  max-height: 30rem;
  overflow: auto;
}

#filter-map input[type="text"]{
  background-size: 20px;
  padding-left: 2rem;
  background-color: #FFFFFF;
  box-shadow: none;
  border: 2px solid #00ACDB
}


#filter-map input[type="submit"]{
  background-image: url(img/MagnifyingGlass.svg);
  background-position: center center;
  background-repeat: no-repeat;
  background-color: transparent;
  box-shadow: none;
  border: none;
}

.input-with-submit{
  position: relative;
}

.input-with-submit input[type="submit"]{
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  cursor: pointer;
  width: 2rem;
}

::-webkit-input-placeholder {
  color: #828282;
}

:-ms-input-placeholder {
  color: #828282;
}

::placeholder {
  color: #828282;
}

.map-placeholder{
  background: #C4C4C4;
  height: 100%;
  width: 100%;
}

.grid-find-clubs{
  margin-top: 2rem;
}

.embed-container{
  margin-top: 4rem;
  padding: 0;
  cursor: pointer;
  position: relative;
}

.relative-thumbnail{
  
}

.embed-play{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

.section--text-block p{
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.section--find-a-club{
  padding-top: 0;
}

.option-content-section{
  display: none;
}

.option-content-section--show{
  display: block;
}

.section--text-block{
  padding-bottom: 0;
  padding-top: 4rem;
}

.section--find-a-club{
  padding-top: 4rem;
}

.section-bg.video{
  opacity: 0;
  overflow: hidden;
  z-index: 10;
}

.section-bg.video .background-video{
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    z-index: 2;
}

.section-bg.loading{
  display: none;
  z-index: 5;
}

.youtube-container {
  position: relative; 
  padding-bottom: 56.25%; 
  height: 0; overflow: 
  hidden; max-width: 100%; 
  display: none;
  margin-top: 4rem;
} 

.youtube-container iframe, 
.youtube-container object, 
.youtube-container embed {
  position: absolute; 
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%; 
}

.sidebar-clubs-list > ul > li{
  transition: all 0.3s ease;
  padding-left: 1rem;
  padding-right: 1rem;
}

.view-location:hover,
.view-location.is-active{
  background-color: #00ACDB; 
}

.view-location *{
  transition: all 0.3s ease;
}

.view-location:hover *,
.view-location.is-active *{
  color: #fff;
}

.sidebar-clubs-list form{
  padding-left: 1rem;
  padding-right: 1rem;
}

.sidebar-clubs-list{
  padding: 1rem 0;
}

.header-lang-link{
  font-family: 'Rubik', sans-serif;
  font-style: normal;
  font-weight: bold;
  font-size: 24px;
  line-height: 28px;
  color: #fff;
  text-transform: uppercase;
}

.header-lang-link:hover,
.header-lang-link:focus{
  color: #fff;
  opacity: 0.5;
}

.site-logo img{
  max-width: 150px;
}

.filter-category.is-active{
  font-weight: bold;
}

.option-wheel-center-options{
  width: 100%;
  /*width: 450px;*/
    align-self: center;
    justify-self: center;
    display: block;
    margin: 0 auto;
  /*position: static;*/
}

.picker {
  position: relative;
  overflow: hidden;  
  /*width: 450px;*/
  height: 349px;
  border-radius: 2px;
  margin: 0 auto;
}

.option-wheel-spacing{
  width: 450px;
  height: 450px;
  
}

.option-wheel > div.option-wheel-center{
  position: absolute!important;
  left: 0;
  right: 0;
  margin: 0 calc(50% - 50vw);
  max-width: 100vw;
  width: 100vw;
}

.picker--wrapper{
  
}

.option-wheel,
.option-wheel > div{
  position: static!important;
}

.picker .option {
  position: absolute;
  top: 0;
  left: 0;
  height: 50px!important;
  width: 100%;
  font-weight: bold;
  font-style: normal;
  text-transform: uppercase;
  /*font-style: normal;*/
  /*font-weight: normal;*/
  font-size: 50px;
  user-select: none;  
  display: flex;
  align-items: center;
  justify-content: center;    
  color: #fff;
}

.scroll-grabber{
  position: absolute;
  left: 0;
  right: 0;
  top: -100%;
  bottom: -100%;
  height: 300%;
  /*border: 1px solid red;*/
}

.display-current{
  display: none;
}

.section--why-not-try .grid-container * {
  -webkit-touch-callout: none; 
    -webkit-user-select: none;
     -khtml-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none; 
            user-select: none; 
}

.why-not-nav{
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 2rem;
  left: 0;
  right: 0;
  bottom: 2rem;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  z-index: 99;
}

.why-not-nav img{
  pointer-events: all;
  cursor: pointer;
  width: 30px;
  max-width: 30px;
  transition: all 0.3s ease;
}

.why-not-nav img:hover{
  opacity: 0.5;
}

.province-logos{
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  /*flex-wrap: wrap;*/
  justify-content:  center;
  align-items: center;
}

.province-logos .partner-logo{
  max-height: 150px;
  transition: all 0.3s ease;
}

.province-logos .partner-logo:hover,
.province-logos .partner-logo:focus{
  opacity: 0.5;
}

.province-logos li{
  padding: 1rem;
  /*padding-bottom: 2rem;*/
  /*width: 20%;*/
}

.section--partners{
  padding-bottom: 2rem;
  background-color: #fff;
  
}

.button-dropdown .button{
  white-space: nowrap;
}

.section--partners .grid-container{
  max-width: 100rem;
}

.footer_link_right{
  display: block;
}

.footer_link_right:first-child{
  margin-bottom: 0.5rem;
}


 /* ==========================================================================
    Responsive
    ========================================================================== */

.option-slider{
  display: none;
}

@media only screen and (max-width: 1024px) {
  .province-logos{
    flex-wrap: wrap;
  }
  
  .province-logos li{
    width: 33.333%;
  }
  
  .option-wheel {
    font-size: 35px;
    line-height: 39px;
  }
  
  .picker .option{
    font-size: 35px;
  }
  
  .option-wheel-center-options--inner {
    width: 350px;
  }
  
  .option-wheel-center-options{
    /*width: 350px;*/
  }
  
  .option-wheel-spacing{
    width: 350px;
    height: 450px;
  }
  
  .section--find-a-club .button-group > .button, 
  .section--find-a-club .button-group > .button-dropdown .button{
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    font-size: 10px;
  }
  
}

@media only screen and (max-width: 640px) {
  .section--find-a-club .button-group > .button, 
  .section--find-a-club .button-group > .button-dropdown .button{
    font-size: 12px;
  }
  
  .option-wheel{
    display: none;
  }
  
  .why-not-nav{
    display: none;
  }
  
  .option-slider{
    display: block;
    text-align: center;
  }
  
  .option-slider * {
    color: #fff;
  }
  
  .option-slider-top-text,
  .slide-content,
  .option-slider-bottom-text{
    font-family: 'Ciutadella';
    font-weight: bold;
    font-style: normal;
    text-transform: uppercase;
    /*font-family: 'Rubik', sans-serif;*/
    /*font-style: normal;*/
    /*font-weight: normal;*/
    font-size: 32px;
    line-height: 38px;
    color: #fff;
    text-align: center;
  }
  
  .slide-content{
    font-family: 'Ciutadella';
    font-weight: bold;
    font-style: normal;
    text-transform: uppercase;
  }
  
  .slick-arrow.slick-prev{
    height: 21px;
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    margin: auto;
    z-index: 999;
  }
  
  .slick-arrow.slick-next{
    height: 21px;
    position: absolute;
    right: 1rem;
    top: 0;
    bottom: 0;
    margin: auto;
    z-index: 999;
  }
  
  .slider-options{
    padding: 1rem 0;
  }
  
  h2{
    font-size: 24px;
    line-height: 28px;
    margin-bottom: 1rem;
  }
  
  .large > p, p.large {
    font-size: 16px;
    line-height: 21px;
  }
  
  
  .section--text-block h2 + br{
    display: none;
  }
  
  .embed-container{
    margin-left: -1rem;
    margin-right: -1rem;
  }
  
  .acf-map{
    height: 15rem!important;
  }
  
  .sidebar-clubs-list{
    min-height: unset;
    max-height: unset;
  }
  
  .mobile-form-container{
    margin-bottom: 2rem;
  }
  
  .sidebar-clubs-list,
  .acf-map{
    margin-left: -1rem;
    margin-right: -1rem;
  }
  
  .sidebar-clubs-list{
    padding-top: 0;
  }
  
  .dynamic-clubs-list,
  .sidebar-clubs-list > ul{
    margin-top: 0;
  }
  
  .section-bg.video .background-video{
    width: auto;
    height: 100%;
  }
  
}

.section--text-block iframe{
    width: 100%;
    aspect-ratio: 16/9;
    height: auto;
    margin-top: 2rem;
}

.wp-video-shortcode video, 
video.wp-video-shortcode{
    aspect-ratio: 16/9;
    height: auto;
    margin: 2rem 0 1rem 0;
}

.section--text-block .wp-video {
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.embed-container {
    max-width: 998px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 4rem;
}

.youtube-container{
    max-width: 998px;
    margin-left: auto;
    margin-right: auto;
    aspect-ratio: 16/9;
    height: auto;
    padding-bottom: 0;
    margin-bottom: 4rem;
    overflow: visible;
}

@media only screen and (max-width: 640px) {
    .section--text-block .wp-video {
        max-width: 100%;
    }
    
    .section--text-block p{
        max-width: 100%;
    }
}

/*french option wheel*/

/*.option-wheel.fr .picker .option{*/
/*  justify-content: flex-end;*/
/*  transform-origin: right center;*/
/*  white-space: nowrap;*/
  /*transform: scale(1)!important;*/
/*}*/

/*.option-wheel.fr .option-wheel-right {*/
/*  width: 600px;*/
/*}*/

/*.option-wheel.fr > div.option-wheel-center{*/
/*  margin: auto;*/
/*  max-width: 50vw;*/
/*  width: 50vw;*/
/*  right: auto;*/
  
/*}*/

/*.section--why-not-try.fr .grid-container{*/
/*  max-width: none;*/
/*}*/


/* vertical slider */

.picker .option{
    position: relative;
}

@media only screen and (min-width: 641px) {
    .option-slider{
        display: block;
    }
    
    .option-wheel {
        display: none;
    }
    
    .why-not-nav{
        display: none;
    }
    
    .slick-arrow {
        pointer-events: all;
        cursor: pointer;
        width: 30px;
        max-width: 30px;
        transition: all 0.3s ease;
    }
    
    .option-slider .slide-content{
        font-family: 'Ciutadella';
        font-weight: bold;
        font-style: normal;
        text-transform: uppercase;
        font-size: 50px;
        line-height: 59px;
        color: #fff;
        text-align: center;
        opacity: 0.4;
        padding: 20px 0;
        transition: all 0.3s ease;
    }
    
    .option-slider .slick-current .slide-content{
        opacity: 1;
        
    }
    
    .option-slider .slick-track{
        flex-direction: column;
        display: flex;
        align-items: center;
    }
    
    .option-slider .slick-list{
        overflow: visible;
    }
    
    img.slick-next.slick-arrow {
        position: absolute;
        left: 0;
        right: 0;
        margin: auto;
        bottom: -14rem;
        z-index: 12;
    }
    
    img.slick-prev.slick-arrow {
        position: absolute;
        left: 0;
        right: 0;
        margin: auto;
        top: -14rem;
        z-index: 12;
    }
    
    .site-header{
        z-index: 11;
    }
    
    .section--why-not-try{
        padding: 16rem 0;
    }
    
    .slide-content{
      cursor: move;
      cursor: grab;
      cursor: -moz-grab;
      cursor: -webkit-grab;
    }
    
    .slide-content:active{
      cursor: grabbing;
      cursor: -moz-grabbing;
      cursor: -webkit-grabbing;
    }
    
    .slick-vertical .slick-slide{
      border: none;
    }
    
}

@media only screen and (max-width: 640px) {
  .site-logo img {
    max-width: 80px;
  }
}