/* navbar */
:root{
  --black: #000;
  --fblack: #2B2F3A;
  --bgwhite: #E9EFF6;
  --white: #fff;
  --cardbg: #aaa;
  --green: #39FF14;
  --b_green: hsl(120, 61%, 42%);
  --blue: #0077FF;
  --purple: #8156b4;
  --dark_purple: #6C3BAA ;
  --bg_color: #1f1f1f;
  --footer_bg: #111111;
}

@font-face { font-family: built tilting; src: url('built-titling/built\ titling\ bd.otf'); } 
@font-face { font-family: la oriental; src: url('LaOriental.otf'); }
@font-face { font-family: open_sans; src: url('OpenSans-CondBold.ttf'); } 

body{
  background-color: var(--bg_color);
  /* background: url('dark\ wall.jpg'); */
  background-size: 100%, 100%;
  background-repeat: no-repeat;
  background-attachment: fixed;
  margin-left: 0%;
  width: 100%;
}
#a {
  text-decoration: none;
}
.navbar{
  background: var(--black);
}
ul {
  list-style: none;
  margin-top: -5px;
  padding-left: 0;
  position: relative;
}

li {
  padding: 1rem;
  padding-top: 10px;
  color: var(--white);
  display: block;
  float: left;
  position: relative;
  text-decoration: none;
}

li #a {
  padding: 30px;
  transition: all 0.3s ease;
  font-size: 30px;
  font-family: open_sans;
  color: var(--white);
}
li #b{
  text-decoration: none;
  font-size: 24px;
  font-family: open_sans;
  color: var(--white);
  transition: all 0.3s ease;
}
li #a:hover {
  color: var(--white);
}

ul li ul {
  visibility: hidden;
  opacity: 0;
  min-width: 6rem;
  position: absolute;
  transition: all 0.5s ease;
  margin-top: -5px;
  left: 15%;
  display: none;
}

ul li:hover > ul,
ul li:focus-within > ul,
ul li ul:hover,
ul li ul:focus {
  visibility: visible;
  opacity: 1;
  display: block;
}

#a::before {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 2px;
  bottom: 20%;
  left: 20%;
  background-color: var(--purple);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: top left;
}

#a:hover::before {
  transform: scaleX(2);
}
#b::before {
  content: "";
  position: absolute;
  display: flex;
  width: 40px;
  height: 2px;
  bottom: 20%;
  left: 10%;
  background-color: var(--purple);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: bottom left;
  margin-top: -30px;
}

#b:hover::before {
  transform: scaleX(2);
}
#logo{
  width: 150px;
  height: 75px;
  margin-top: -21px;
  margin-left: -24px;
  margin-right: -40px;
}
#About{
  float: right;
}
#Services a::before{
  width: 60px;
}
#underservices a::before{
  width: 50px;
}
#underservices2 a::before{
  width: 47px;
}
#Testimonials a::before{
  width: 87px;
  margin-left: -10px;
}
.cover{
  margin-top: -72px;
  margin-left: -65px;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/gym_cover.webp');
  width: 104.85%;
  height: 700px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top;
}
@keyframes king{
  from{
    opacity: 0;
    margin-top: -30px;
  }
  to{
    opacity: 1;
    margin-top: 0px;
  }
}
.king{
  font-size: 90px;
  color: var(--white);
  position: absolute;
  top: 250px;
  left: 250px;
  font-family: la oriental;
}
.king.in-view{
  animation: king 1s ease;
}
span{
  color: var(--dark_purple);
}
@keyframes undertitle{
  from{
    opacity: 0;
    margin-top: -30px;
  }
  to{
    opacity: 1;
    margin-top: 20px;
  }
}
#undertitle{
  animation: undertitle 1s ease;
  text-align: center;
  position: absolute;
  top: 330px;
  left: 490px;
  color: var(--white);
  font-family: open_sans;
}
@keyframes learn_more{
  from{
    opacity: 0;
  }
  to{
    opacity: 1;
  }
}
.learn_more{
  opacity: 0; 
  display: none; 
  padding: 7px 17px;
  position: absolute;
  top: 450px;
  left: 555px;
  border: 2px solid var(--dark_purple);
  color: var(--white);
  font-size: 23px;
  text-decoration: none;
  background-color: var(--dark_purple);
  transition: opacity 1s ease, all 0.3s ease;
  border-radius: 5px;
  font-family: open_sans;
}
.learn_more.visible {
  display: block; 
  opacity: 1;
}

.learn_more:hover{
  border: 2px solid var(--purple);
  transform: scale(1.1);
  background-color: var(--purple);
}
button:hover{
  cursor: pointer;
}

/* why choose us */
/* @keyframes why{
  from{
    opacity: 0;
  }
  to{
    opacity: 1;
  }
}
@keyframes pasta {
  from{
    opacity: 0;
    margin-left: 80px;
  }
  to{
    opacity: 1;
    margin-left: 0;
  }
} */
.the_whys{
  padding-bottom: 60px;
  padding-top: 30px;
  padding-left: 10px;
}
.the_whys.in-view{
  animation: why 3s ease;
}
.trainer{
  margin-top: -30px;
  margin-left: 15px;
  float: right;
  height: 516px;
  width: 45%;
}
.the_whys h1{
  font-family: built tilting;
  color: var(--dark_purple);
  font-size: 50px;
}

.the_whys p{
  font-size: 20px;
  font-family: open_sans;
  color: var(--white);
}

/* services */
.coach_king_services{
  margin-top: -55px;
  padding-top: 20px;
  height: 670px;
  background-color: var(--dark_purple);
}
.what_to_offer{
  text-align: center;
  font-size: 60px;
  padding-bottom: 1%;
  color: var(--white);
  font-family: built tilting;
}
.what_to_offer.in-view{
  animation: WTO 3s ease;
}

@keyframes WTO{
  from{
    opacity: 0;
  }
  to{
    opacity: 1;
  }
}

/* accordion products */
.img-accordion {
  box-sizing: border-box;
  width: 100%;
  height: 55vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.accordion-item {
  flex: 1;
  height: 100%;
  margin: 0;
  cursor: pointer;
  transition: flex 0.4s ease;
}

.accordion-item:hover {
  flex: 4;
}

.skew-bg1 {
  clip-path: polygon(0 0, 100% 0%, 85% 100%, 0% 100%);
  height: 100%;
  width: 110%;
}
.skew-bg1::after {
  clip-path: polygon(0 0, 100% 0%, 93% 100%, 0 100%);
  height: 100%;
  width: 110%;
}
.skew-bg2 {
  clip-path: polygon(15% 0, 100% 0%, 85% 100%, 0% 100%);
  height: 100%;
  width: 120%;
  margin-left: -20px;
}

.skew-bg3 {
  clip-path: polygon(15% 0, 100% 0%, 100% 100%, 0 100%);  
  height: 100%;
  width: 110%;
}

.skew-content {
  height: 100%;
  width: 100%;
  position: relative;
}

.skew-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.skew-content p {
  position: absolute;
  bottom: 0;
  left: 30px;
  font-size: 24px;
  text-transform: uppercase;
  font-family: "Century Gothic";
  white-space: nowrap;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 10px;
  transform: rotate(-78deg);
  transform-origin: top left;
  transition: all 0.3s;
  margin-left: -15px;
}
.skew-bg1 .skew-content p {
  margin-left: -25px;
  transform: rotate(-90deg);
}

.accordion-item:hover .skew-content p {
  transform: rotate(0);
  background-color: #000;
}


/* Forms */
.form_section{
  margin-top: -30px;
  padding-top: 130px;
  padding-bottom: 150px;
  background-image: url(images/gym_cover.webp);
  height: 350px;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
form {
  background: var(--dark_purple);
  border-radius: 10px;
  padding-top: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  width: 50%;
  margin-left: 25%;
  font-family: built tilting;
}
form h2 {
  color: var(--white);
  margin-bottom: 15px;
  text-align: center;
  font-size: 30px;
}
form #fname{
  color: black;
  padding-left: 0.75%;
  padding-top: 10px;
  padding-bottom: 10px; 
  width: 40%; 
  margin-left: 5%;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  background-color: white;
}
form #lname{
  color: black;
  padding-left: 0.75%;
  padding-top: 10px;
  padding-bottom: 10px;
  width: 40%; 
  margin-left: 5%;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  background-color: white;
}
form input::placeholder{
  color: #888;
  position: absolute;
  left: 2%;
}
form input[type=tel]{
  color: black;
  padding-left: 0.75%;
  padding-top: 10px;
  padding-bottom: 10px;  
  width: 40%; 
  margin-left: 5%;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  background-color: white;
}
form #location{
  color: black;
  padding-left: 0.75%;
  padding-top: 10px;
  padding-bottom: 10px;
  width: 40%; 
  margin-left: 5%;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  background-color: white;
}
form input[type=checkbox]{
  margin-left: 5%;
}
form .submit-btn {
  background-color: var(--purple);
  color: white;
  padding: 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 18px;
  width: 40%;
  margin-left: 32%;
  margin-top: 25px;
  font-weight: 700;
}
form .submit-btn:hover {
  background-color: var(--white);
  color: var(--purple);
}


/* Results program */
.results{
  margin-top:-100px;
  background:var(--bg_color);
  padding:50px 10px 0;
  height:550px; /* optional; remove if you prefer auto height */
  width:99.25%;
  color:var(--white);
  margin-bottom:100px;
}
.results h1{
  font-family: built tilting;
  text-align:center;
  margin-bottom:50px;
  color:var(--purple);
  font-size:50px;
}
.results *{ box-sizing:border-box; }

/* Flickity gallery */
.gallery{ background:var(--bg_color); }
.gallery .flickity-page-dots{ display:none !important; }

.gallery-cell{
  width:66%;
  height:300px;
  margin-right:10px;
  border-radius:10px;
  background:var(--purple);

  /* New: lay out image + text cleanly */
  display:flex;
  overflow:hidden; /* keep rounded corners clean */
}
.gallery-cell img{
  width:60%;
  height:100%;
  object-fit:cover;              /* prevents image distortion */
  flex:0 0 60%;
}
.gallery-cell .copy{
  flex:1 1 40%;
  padding:18px 20px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.gallery-cell h2{
  color:var(--white);
  font-family: open_sans;
  margin:0 0 8px;
}
.gallery-cell p{
  color:var(--white);
  font-family: open_sans;
  margin:0;
}

/* (optional) shrink nicely on small screens */
@media (max-width: 900px){
  .gallery-cell{ width:85%; height:260px; }
}
@media (max-width: 600px){
  .gallery-cell{ width:92%; height:240px; }
  .gallery-cell img{ flex-basis:55%; }
}


/* reviews */
.review_section{
  background-image: url(images/review_bgimg.webp);
  height: 750px;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  margin-top: -150px;
}
.review_h1{
  color: white;
  font-family: built tilting;
  text-align: center;
  font-size: 55px;
  margin-top: 150px;
  padding-top: 50px;
  padding-bottom: 25px;
}

.people{
  font-family: open_sans;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-left: 35px;
}
.reviewer{
  border-radius: 10px;
  margin-right: 20px;
  padding-bottom: 20px;
  background-color: var(--dark_purple);
}
.Suk-Mai{
  border-radius: 10px;
  margin-right: 20px;
  padding-bottom: 20px;
  background-color: var(--dark_purple);
}
.people .image{
  text-align: center;
}
.people #r_img{
  width:150px;
  height: 150px;
  border-radius: 50%;
  margin-top: 10px;
}
.people h4{
  margin-top: -10px;
  text-align: center;
  color: var(--white);
}
.people h5{
  text-align: center;
  color: var(--white);
  margin-top: -15px;
  font-size: 15px;
}
.people p{
  text-align: center;
  margin-top: -17px;
}
.fa-star{
  color: white;
}
.fa-star-half{
  color: orange;
  margin-right: -2.5px;
}
.checked{
  color: orange;
}
.review .stars{
  margin-top: -10px;
  text-align: center;
  padding-bottom: 10px;
}

/* join the community */
.JTC{
  background-color: var(--footer_bg);
  margin-top: 100px;
  height: 300px;
}
.JTC h2{
  padding-top: 75px;
  text-align: center;
  color: var(--dark_purple);
  font-family: built tilting;
  font-size: 40px;
}
.JTC p{
  font-family: open_sans;
  color: white;
  text-align: center;
  margin-left: 15%;
  margin-right: 15%;
}

/* footer */
.container{
  margin-left: -10px;
  margin-bottom: -15px;
  background-color: var(--footer_bg);
  box-sizing: border-box;
}
#ul{
  list-style: none;
  display: flex;
  flex-direction: column;
  margin-left: -15px;
  font-family: open_sans;
}
#ul2{
  list-style: none;
  display: flex;
  flex-direction: row;
  top: -65px;
  left: 400px;
  font-family: open_sans;
}
#ul2 i:hover{
  cursor: pointer;
  font-size: 40px;
}
.column{
  width: 30%;
  margin-left: 10px;
}
.column h4{
  font-family: built tilting;
}
.enter_mail{
  position: relative;
  top: 20px;
}
.enter_mail i{
  font-size: 25px;
}
#subscribe{
  color: #fff;
  font-size: 25px;
  font-family: open_sans;
}
input[type=email]{
  padding: 4px 20px;
  border-right: none; 
  border-top: none; 
  border-left: none;
  border-bottom: 1px solid grey;
  background-color: var(--footer_bg);
  color: white;
}
input[type=email]::placeholder{
  color: rgb(219, 219, 219);
}
input[type=submit]{
  margin-left: 20px;
  padding: 8px 24px;
  background-color: var(--purple);
  border: none;
  cursor: pointer;
  color: white;
  font-size: 14px;
  border-radius: 2px;
  font-family: open_sans;
}
.top_row{
  color: var(--purple);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto;
}

#ab{
  text-decoration: none;
  font-size: 25px;
  color: rgb(212, 212, 212);
  transition: all 0.3s ease;
}

#ab:hover{
  color: var(--white);
  padding-left: 10px;
}
h4{
  margin-bottom: 10px;
  font-size: 33px;
  text-transform: capitalize;
}
.ficon{
  height: 35px;
  width: 35px;
  vertical-align: -6px;
  color: currentColor;
  transition: all 0.3s ease;
}
#person-img {
  width: 150px;
  height: 150px;
  background-size: cover;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.5);
}


/* Responsive Breakpoints */

/* Large desktops: 24" and bigger */
@media (min-width: 1440px) {
  /* intro */
  .cover{
    width: 104%;
    height: 700px;
    background-size: cover;
  }

  .king{
    font-size: 120px;
    top: 250px;
    left: 425px;
  }

  #undertitle{
    text-align: center;
    position: absolute;
    font-size: 30px;
    top: 345px;
    left: 700px;
  }

  .learn_more{
    position: absolute;
    top: 450px;
    left: 43%;
    font-size: 23px;
  }
  /* ----------------- */



  /* why choose us */
  .trainer{
    margin-top: -30px;
    margin-left: 15px;
    float: right;
    height: 492px;
    width: 45%;
  }
  /* --------------- */
  .img-accordion {
    height: 55vh;
    gap: 8px;
  }

  .what_to_offer {
    font-size: 70px;
  }

  .coach_king_services {
    padding-top: 40px;
    padding-bottom: 120px;
  }

  .results h1{
    font-size: 65px;
  }

  /* form section */
  form h2{
    font-size: 40px;
  }
  .form_section{
    margin-top: -30px;
    padding-top: 150px;
    padding-bottom: 150px;
    background-image: url(images/gym_cover.webp);
    height: 450px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
  }

  /* -------------- */
  .people{
    font-family: open_sans;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding-left: 35px;
  }
  .reviewer{
    border-radius: 10px;
    margin-right: 30px;
    margin-left: 20px;
    padding-left: 10px;
    padding-bottom: 20px;
    background-color: var(--dark_purple);
  }
  .review_h1{
    font-size: 65px;
  }

  /* transformations */
  .gallery-cell{
    height:375px;
  }
  .results{
    height:600px;
  }
}
/* ---------------- */

/* ---------------- */
/* Standard laptops */
@media (min-width: 1024px) and (max-width: 1439px) {
  .img-accordion {
    height: 60vh;
    gap: 4px;
  }

  .what_to_offer {
    font-size: 60px;
  }
  .coach_king_services{
    margin-top: -55px;
    padding-top: 20px;
    height: 650px;
    background-color: var(--dark_purple);
  }

  .results{
    margin-top:-100px;
    background:var(--bg_color);
    padding:30px 10px 0;
    width:99.25%;
    margin-bottom:100px;
  }
  .form_section{
    padding-bottom: 170px;
  }
}
/* ---------------- */

/* ---------------- */
/* Tablets */
@media (max-width: 1023px) {
  .img-accordion {
    flex-direction: column;
    height: auto;
  }

  .accordion-item {
    flex: none;
    height: 200px;
    clip-path: none;
  }

  .accordion-item:hover {
    flex: none;
  }

  .skew-content p {
    transform: rotate(0) !important;
    font-size: 18px;
  }

  .what_to_offer {
    font-size: 40px;
    padding-bottom: 10px;
  }

  .coach_king_services {
    padding-top: 20px;
    padding-bottom: 60px;
  }

  .trainer {
    width: 100%;
    height: auto;
    margin-top: 20px;
  }

  .king {
    font-size: 60px;
    top: 200px;
    left: 20px;
  }

  #undertitle {
    font-size: 16px;
    left: 20px;
    top: 270px;
  }
}
