@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;600&family=Poppins:ital,wght@0,400;0,700;1,700&display=swap');

body {
  font-size  : 16px;
  color: #444;
  margin  : 0 auto;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}

h1 , h2 , h3 , h4 , h5 , h6 {
  color:#212121;
}

a {
  color:blue;
}

a:hover {
  color:#212121;
}

button {
  background: none;
  border: 2px solid #212121;
  font-size: 16px;
  font-weight: 600;
  padding: 10px;
  font-family: 'Inter' , sans-serif;
  cursor: pointer;
}

button>a {
  text-decoration: none;
  color          : #212121;
}

button>a:hover {
  color: #fff;
}

button:hover {
  background: #212121;
  color     : #fff;
}


img {
  max-width: 100%;
}

main {
  grid-template-columns: repeat(10, 1fr);
  display              : grid;
  grid-gap             : 24px;
  padding-top          : 50px;
  max-width            : 1600px;


}

.center {
  align-self:center;
}

.top {
  align-self:start;
}

.bottom {
  align-self:end;
}

header {
  grid-column          : 1 / 2;
  display              : grid;
  grid-template-columns: 120px 1fr;
  grid-template-areas  :
    "h n";
top:50px;
  position: fixed;
}

.header-title {
  writing-mode: tb-rl;
  align-self  : start;
  justify-self: center;
  grid-area   : h;
}

.header-title-h1 {
  transform : rotate(180deg);
  text-align: left;
  align-self: start;
}


.header-title-h1>h1 {
  font-size     : 5rem;
  text-transform: uppercase;
  font-weight   : 700;
  cursor        : pointer;
}

nav {
  grid-area: n;
}

nav>ul {
  padding: 0;
}

nav>ul>li {
  list-style-type: none;
  margin-bottom  : 5px;
}

nav>ul>li :last-child {
  margin-bottom: 0;

}

nav>ul>li>a {

  font-size      : 1.8rem;
  font-weight    : 300;
  color          : #212121;
  text-decoration: none;
  text-transform : uppercase;
  text-align     : left;
}


nav>ul>li>a:hover {
  font-weight: 600;
}


.content {
  grid-column          : 4 / -1;
  display              : grid;
  grid-template-columns: repeat(12, 1fr);
  grid-gap             : 20px;
  grid-template-rows   : auto;
  margin-bottom        : 50px;
}

.text-area-wide {
  grid-column: 1 / span 10;
}

/* Work section */
.work-section-odd {
  grid-column          : 1 / -1;
  grid-template-columns: repeat(12, 1fr);
  display              : grid;
  grid-gap             : 20px;
  align-items          : center;
  margin-bottom        : 50px;
}

.work-section-even {
  grid-column          : 1 / -1;
  grid-template-columns: repeat(12, 1fr);
  display              : grid;
  grid-gap             : 20px;
  align-items          : center;
  margin-bottom        : 50px;

}


.work-section-odd_summary.work-section-even_summary>h2 {
  font-size  : 2rem;
  font-weight: 300;
}

.work-section-summary>p {}

.work-section-odd_summary {
  grid-column: 6 / span 5;
}

.work-section-even_summary {
  grid-column: 1 / span 5;

}



.work-section-odd_image {
  grid-column: 1 / span 5;


}

.work-section-even_image {
  grid-column: 6 / span 5;


}



.gallery {
  grid-column          : 1 / -2;
  display              : grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  grid-gap             : 15px;
}

.gallery img {
  width           : 100%;
  object-fit      : cover;
  transition      : 0.3s;
  cursor          : pointer;
  /* border-radius: 10px; */
}

.gallery img:hover {
  opacity: 0.8;
}


@media only screen and (max-width:1024px) {

  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    grid-column: 2 / -2;
  }

}

@media only screen and (max-width:768px)
 {

  .gallery {
    grid-column          : 2 / -2;
    display              : grid;
    grid-template-columns: 1fr;
    grid-gap             : 15px;
  }


 }








/*BOOKING TEMPLATE*/




.accordion>p {
  font-size  : 14px;
  line-height: 1.2em;

}

.accordion>h3 {

  line-height: 1.4em;
  font-size  : 18px;
}

.accordion-header {
  cursor: pointer;
}

.accordion {
  line-height: 1.4em;
  font-size  : 18px;
  cursor     : pointer;
  padding    : 18px 0 10px 0;
  width      : 100%;
  border     : none;
  text-align : left;
  outline    : none;
  transition : 0.4s;
  border-top:1px solid #212121;
  margin-top: 20px;
}


.accordion:after {
  content    : '▼';
  color      : #212121;
  font-weight: bold;
  float      : right;
  margin-left: 5px;

}

.active:after {
  -moz-transform   : rotate(180deg);
  -webkit-transform: rotate(180deg);
  transform        : rotate(180def);
}

.accordion_content {
  /* padding         : 0 18px; */
  background-color: white;
  max-height      : 0;
  overflow        : hidden;
  transition      : max-height 0.2s ease-out;
}







/* .accordion-content {
  display: none;
  
  } */


.items {
  grid-column: 1 / 11;
}

.cart_accordion {
  float   : right;
  position: relative;
  width   : 200px;
}

.cart_accordion-header {
  float   : right;
  position: relative;
  width   : 200px;
}



.cart_accordion-content {
  display: none;

}


.cart-toggle {
  background: #212121;
  border: 2px solid #212121;
  color: white;
  text-align: center;
  padding: 10px;
  cursor: pointer;
  font-weight: 600;
  grid-row: 1 / 2;
  display: flex;
  align-items: center;
  width: 45px;
  right: 0;
  justify-self: end;
  grid-column: 13 / -1;
}




.cart-toggle:hover {

  background : #212121;
  /* border     : 2px solid #212121; */


}

/* .cart-toggle-added {
  background: #c3c3c3;
} */

.cart-icon {
  width              : 2rem;
  height             : 2rem;
  background-image   : url(http://fabiaclaris.com/perch/resources/shopping-cart-1.svg);
  background-repeat  : no-repeat;
  background-position: center center;
  background-size    : 20px;
  background-color   : transparent;
  color              : inherit;

}

#checkout-div {
  overflow-y: scroll;
  background: #FFF;
  bottom: 50px;
  font-size: 17px;
  padding: 20px;
  border: 2px solid #212121;
  display:none;
  grid-column: 9 / -1;
  margin: 0;

}


#checkout-div > h4 {
  margin-top:5px;
}

.nav-panel {
  display: grid;
  grid-template-columns: repeat(12 , 1fr);
  position: fixed;
  z-index: 100;
  width: 100%;
  grid-template-rows: minmax(94px , 1fr);
  right: 0px;
  
}



/* new booking styles */

.course {
  border       : 1px solid #212121;
  grid-column  : 1 / -1;
  margin-bottom: 30px;
  padding      : 30px;
}

.course > button:hover {
  background:none;
  color:#212121;
}

.course:nth-child(5) {
  margin-bottom: 70px;
}



/* mobile nav styles */

/* The side navigation menu */
.sidenav {
  height          : 100%;
  /* 100% Full-height */
  width           : 0;
  /* 0 width - change this with JavaScript */
  position        : fixed;
  /* Stay in place */
  z-index         : 1;
  /* Stay on top */
  top             : 0;
  /* Stay at the top */
  left            : 0;
  background-color: #212121;
  /* #212121*/
  overflow-x      : hidden;
  /* Disable horizontal scroll */
  padding-top     : 60px;
  /* Place content 60px from the top */
  transition      : 0.5s;
  /* 0.5 second transition effect to slide in the sidenav */
}

/* The navigation menu links */
.sidenav a {
  padding        : 8px 8px 8px 32px;
  display        : block;
  transition     : 0.3s;
  font-size      : 1.8rem;
  font-weight    : 400;
  color          : white;
  text-decoration: none;
  text-transform : uppercase;
  text-align     : left;
}

.sidenav>a:hover {
  font-weight: 600;
}

/* Position and style the close button (top right corner) */
.sidenav .closebtn {
  position   : absolute;
  top        : 0;
  right      : 25px;
  font-size  : 36px;
  margin-left: 50px;
}

.mobile-nav-toggle {

  grid-column: 12 / -1;
  width: 45px;
  grid-row: 1 / 2;
  align-self: center;
  /* top           : 25px; */
  right         : 10px;
  border-left       : 2px solid #212121;
  font-size     : 1rem;
  color         : #212121;
  font-weight   : 600;
  cursor        : pointer;
  text-transform: uppercase;
  padding       : 13px 17px 13px 13px;
  justify-self: end;
}

/* .mobile-nav-toggle:hover {
  background: #212121;
  color     : white;
} */



.mobile-nav>a:hover {
  font-weight: 600;
}



/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
  .sidenav {
    padding-top: 15px;
  }

  .sidenav a {
    font-size: 18px;
  }
}



@media screen and (min-width:1024px) {

  .sidenav {
    display: none;
  }

  .mobile-nav-toggle {
    display: none;
  }

  .nav-panel {
    grid-template-rows: minmax(45px , 1fr);
  }


}



@media screen and (max-width:1280px) {
  .items {
    grid-column: 1 / 12;
  }
}



  @media screen and (max-width:1024px)  {


    .content {
      grid-column: 3 / -1;
    }


    nav {
      display: none;
    }

    .items {
      grid-column: 2 / -2;
    }


  
    header {
      display: grid;
      grid-template-columns: repeat(12 , 1fr);
      grid-template-rows: minmax(90px , 1fr);
      position: fixed;
      background-color: white;
      z-index:99;
      width: 100%;
      top:0px;
      border-bottom: 1px solid lightgrey;
  
  }
  
  .header-title-h1 > h1 {
    font-size: 3rem;
width:100%;
line-height: 1.9rem;
  }

    
    .header-title {
      writing-mode: rl-tb;
      align-self  : start;
      justify-self: start;
      grid-column: 2 / 10;
      grid-row: 1 / 2;
  
    }
    
    .header-title-h1 {
      transform : rotate(0deg);
      text-align: left;
      align-self: start;
  
    }
    
    main {
    padding-top:120px;  
    }


.content {
  grid-column: 1 / -1;
}

.text-area-wide {
  grid-column: 2 / span 10;
}
  }


 


  .text-area-left {
    grid-column: 1 / span 5;
      }
    
      .text-area-right {
        grid-column: 6 / span 5;
      }
    
      .main-image-left {
    grid-column: 1 / span 5;
      }
      
      .main-image-right {
        grid-column: 6 / span 5;
      }


  @media screen and (max-width:768px) {

    .header-title-h1 > h1 {
      font-size: 3rem;
      line-height: 1.9rem;
      width:100%;

    }

    .work-section-even {
      grid-column: 2 / -2;
    }

    .work-section-odd {
      grid-column: 2 / -2;
    }

    .work-section-even_image {
      grid-row   : 1 / 2;
      grid-column: 1 / -1;
    }

    .work-section-even_summary {
      grid-row   : 2 / 3;
      grid-column: 1 / -1;

    }


    .work-section-odd_image {
      grid-row   : 1 / 2;
      grid-column: 1 / -1;
    }

    .work-section-odd_summary {
      grid-row   : 2 / 3;
      grid-column: 1 / -1;

    }

    .course {
      padding:20px;
    }

    .text-area-left {
      grid-column: 2 / -2;
        }
      
        .main-image-left {
      grid-column: 2 / -2;
        }
    
        .text-area-right {
          grid-column: 2 / -2;
            }
          
            .main-image-right {
          grid-column: 2 / -2;
            }
    
   
}

@media (max-width:1024px) and (min-width:768px){

  .work-section-even_image {
  
    grid-column: 7 / span 6;
  }

  .work-section-even_summary {
 
    grid-column: 1 / span 6;

  }

  .work-section-odd_image {

    grid-column: 1 / span 6;
  }

  .work-section-odd_summary {

    grid-column: 7 / span 6;

  }


  .work-section-even {
    grid-column: 2 / -2;
  }

  .work-section-odd {
    grid-column: 2 / -2;
  }


  .text-area-left {
    grid-column: 2 / span 5;
      }
    
      .text-area-right {
        grid-column: 7 / span 5;
      }
    
      .main-image-left {
    grid-column: 2 / span 5;
      }
      
      .main-image-right {
        grid-column: 7 / span 5;
      }

}





@media (max-width:510px) and (min-width:375px) {

  .header-title-h1 > h1 {
    font-size: 2.4rem;
    width: 100%;
    line-height: 2.65rem;
  }


  .header-title {
    grid-column: 1 / 12;
    margin-left: 15px;
}

#checkout-div {
  grid-column: 1 / -1;
}

}

@media screen and (max-width:375px){

  .header-title-h1 > h1 {
    font-size: 1.5rem;
    line-height: 3.9rem;
    width: 100%;
}

.header-title {
  grid-column: 1 / 12;
  margin-left: 15px;
}
#checkout-div {
  grid-column: 1 / -1;
}


}