
/* General Styles */
body {
  font-family: 'Press Start 2P', sans-serif;
  background-color: #000;
  color: #fff;
  margin: 0;
  padding: 0;
}

h1, h2, h3 {
  text-align: center;
}

.section {
  padding: 50px 20px;
  text-align: center;
}


/* Hero Section */
.hero {
  background-color: #000;
  text-align: center;
  padding: 0px 20px;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.header-image {
  width: 300px;
  height: auto;
  border-radius: 10px;
}

.title-container {
  text-align: center;
}

.title {
  font-size: 3rem;
  margin-bottom: 20px;
  padding-top: 20px;
}

.tagline {
  font-size: 1.5rem;
  margin-bottom: 30px;
}

/* Add this to your existing CSS */
.subtitle {
  transition: opacity 0.5s ease-in-out;
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.fade-out {
  opacity: 0;
}

/* Add the animation to the CTA button */
.cta-button {
  font-size: 1rem;
  animation: bounce 2s infinite; /* Apply bounce animation */
  display: inline-block;
  transition: 0.3s;
}

.cta-button:hover {
  animation: none; /* Stop bouncing on hover */
  color: #fff;
  background: #000;
  border-color: #000;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25D366; /* WhatsApp Green */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  animation: vibrate 1.5s infinite ease-in-out; /* Add the vibration animation */
}

/* WhatsApp Icon Image */
.whatsapp-float img {
  width: 80px;
  height: 80px;
}

/* Vibration Animation */
@keyframes vibrate {
  0% { transform: rotate(0deg); }
  10% { transform: rotate(-5deg); }
  20% { transform: rotate(5deg); }
  30% { transform: rotate(-5deg); }
  40% { transform: rotate(5deg); }
  50% { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}


/* Keyframes for bounce animation */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0); /* Start and end at the same position */
  }
  50% {
    transform: translateY(-10px); /* Move up slightly */
  }
}


/* On mobile, even more spacing for clarity */
@media (max-width: 768px) {
  #textmobile {
    font-size: 12px;
    line-height: 2.4;
    letter-spacing: 1.2px;
    word-spacing: 3px;
  }
}

/* About Section Container */
.about-content {
  display: flex; /* This puts image & text side-by-side */
  align-items: flex-start; /* Align top edges */
  justify-content: flex-start; /* Left align content */
  gap: 30px; /* Space between image & text */
  margin: 0 auto;
  max-width: 1000px;
  flex-wrap: wrap; /* Allows stacking on small screens */
}

/* About Section Container */

.about {
  padding-bottom: 0px; /* smaller than default */
  margin-bottom: 0; /* remove extra margin */
}

.about-content {
  display: flex; /* Side-by-side layout */
  align-items: flex-start; /* Align tops */
  justify-content: flex-start; /* Left align */
  gap: 30px; /* Space between image & text */
  margin: 0 auto;
  max-width: 1000px;
  flex-wrap: wrap; /* Stack on smaller screens */
}

/* Trainer Image */
.about-content .trainer-image {
  border-radius: 50%; /* Circle shape */
  width: auto;
  height: 200px;
  object-fit: cover; /* Ensures image fills the circle without distortion */
}

/* About Text */
.about-content p {
  font-family: 'Press Start 2P', cursive;
  font-size: 14px;
  line-height: 2.2;
  letter-spacing: 1.5px;
  word-spacing: 4px;
  text-transform: uppercase;
  color: #fff;
  max-width: 600px;
}

/* Links in About Text */
.about-content .linktext {
  color: rgb(92, 180, 101);
  text-decoration: underline;
}

.linktext {
 color: rgb(92, 180, 101);
 text-decoration: none;
 background: #000;
 padding: 0px 0px;
 border: 1px solid #ffff;
 border-radius: 0px;
 display: inline-block;
 cursor: pointer;
  }

#textmobile {
display:none;
}

/* Read More Button */
.calendarbutton {
  background: #fff;
  color: #000;
  padding: 10px 20px;
  border: 2px solid #fff;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
  margin: 10px;
  max-width: 200px ;
}

#openModal{
  padding: 10px 20px;
  border: 2px solid #fff;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
  margin: 10px;
  max-width: 200px ;
}

.calendarbutton:hover {
  background: #000;
  color: #fff;
  border-color: #000;    /*box-shadow: 6px 6px 6px rgba(199, 196, 196, 0.86);*/
}

/* The Team Section */
.team {
  background-color: #000;
  color: #fff;
  padding: 0px 20px;
  padding-bottom: 40px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap:20px;
}

.team-member:hover {
  cursor:pointer;
  color: #000;
  background-color: rgb(255, 255, 255); 
  transform: scale(1.05);

  }

  .team-member:hover::after {
    content: "Double-click for info";
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #000;
    padding: 5px 10px;
    border-radius: 50px;
    width: 300px;
    font-size: 0.8rem;
    white-space: nowrap;
  }
  
  
.team-member {
  display: flex;
  align-items: center;
  /*gap: 20px;*/
  border: 2px solid #fff;
  padding: 20px;
  border-radius: 10px;
  transition: background-color 0.3s, color 0.3s, transform 0.3s;
  }

.team-photo {
  width: auto;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
}

.team-info {
  text-align: left;
}

.team-info h3 {
  /*margin: 0 0 10px;*/
  font-size: 1.2rem;
}

.team-info p {
  margin: 0;
  font-size: 0.9rem;
}

/* Programs Section */

@keyframes bounce {
  0%, 100% {
      transform: translateY(0);
  }
  50% {
      transform: translateY(-10px);
  }
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 0px; /* smaller than default */
  padding-top: 0; /* remove extra padding */
}

.program-card {
  perspective: 1000px; /* Enable 3D perspective for the flip */
  /* animation: bounce 2s infinite;
  transition: transform 0.3s ease;*/
}

.program-card:hover {
  animation: none; /* Stop the bounce animation on hover */
  transform: scale(1.05); /* Add a slight zoom effect */
}

.card-inner {
  position: relative;
  width: 100%;
  height: 300px;
  transform-style: preserve-3d;
  transition: transform 0.8s;
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: 2px solid #fff;
  border-radius: 10px;
  overflow: hidden;
}

.card-front {
  border: 2px solid #fff;
  align-items: center;
  cursor: pointer;
}

#card-front1{
  background: url('img/PULL-UP\ BAR\ GRNDJN.JPG');
  background-size: cover;
  background-position: center; /* Center the image within the container */
  background-repeat: no-repeat; /* Prevent the image from repeating */
}


#card-front2{
  background: url('img/ktakrachttraining.jpg');
  background-size: cover;
  background-position: center; /* Center the image within the container */
  background-repeat: no-repeat; /* Prevent the image from repeating */
}

#card-front3{
  background: url('img/muaythay.jpg');
  background-size: cover;
  background-position: center; /* Center the image within the container */
  background-repeat: no-repeat; /* Prevent the image from repeating */
}
  
#card-front4{
  background: url('img/jimsgroepstraining.jpg');
  background-size: cover;
  background-position: center; /* Center the image within the container */
  background-repeat: no-repeat; /* Prevent the image from repeating */
}

#card-front5{
  background: url('img/calipersonal.jpg');
  background-size: cover;
  background-position: center; /* Center the image within the container */
  background-repeat: no-repeat; /* Prevent the image from repeating */
}

#card-front6{
  background: url('img/HIIT.JPG');
  background-size: cover;
  background-position: center; /* Center the image within the container */
  background-repeat: no-repeat; /* Prevent the image from repeating */
}

.card-back {
  transform: rotateY(180deg);
  background-color: #000;
  Text-align: center;
}
  
/* Flip Effect on Click */
.program-card.flipped .card-inner {
  transform: rotateY(180deg);
}

/* Modal Styling */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  overflow-y: auto;   /* Enable vertical scrolling */
  background: white;
  color: black;
  padding: 20px;
  width: 350px;
  height: 60%;
  border-radius: 10px;
  text-align: center;
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
}

/* Close Button */
.close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 20px;
  cursor: pointer;
}

/* Input Fields & Select */
input, select {
  width: 90%;
  padding: 10px;
  margin: 5px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* Calculate Button */
#calculate {
  background: #28a745;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  width: 100%;
  border-radius: 5px;
}
#calculate:hover {
  background: #218838;
}

/* Results */
#results {
  margin-top: 15px;
  font-weight: bold;
  text-align: left;
  background: #f8f9fa;
  padding: 10px;
  color:#000;
  border-radius: 5px;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* calender section*/
.calendar-section {
  background-color: #000; /* Black primary color */
  color: #fff; /* White secondary color */
  padding: 0px 20px;
  text-align: center;
  background: url('img/groenklimop.png'), url('img/groenklimop.png'), url('img/groenklimop.png');
  background-size: contain;
  background-position: left,center,right;
  background-repeat: no-repeat; /* Prevent the image from repeating */
  
}

.calendar-section h2 {
  font-size: 2em;
  margin-bottom: 20px;
}


.calendar-container iframe {
  width: 100%;
  max-width: 1000px;
  height: 600px;
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
  font-family: 'Press Start 2P', sans-serif; /* Example font */
  border-radius: 50px;
}

/* Contact Section */

#contact{
  background: url('img/groenklimop.png'), url('img/groenklimop.png'), url('img/groenklimop.png');
  background-size: contain;
  background-position: left,center,right;
  background-repeat: no-repeat; /* Prevent the image from repeating */
}


.contact-form {
  display: flex;
  flex-direction: column; /* Stack items vertically */
  gap: 10px; /* Add space between items */
  max-width: 80%;
  margin: 0 auto; /* Center the form on the page */
  align-items: center; /* center the items on the page*/
}

select {
  width: 50%; /* Full width like other inputs */
  font-family: 'Press Start 2P', cursive;
  padding: 10px;
  border: 2px solid #fff;
  border-radius: 5px;
  background: #000;
  color: #fff;
  box-sizing: border-box; /* Include padding in width */
  cursor: pointer;
}

select option {
  background: #000;
  color: #fff;
}


input, textarea, button {
  width: 100%; /* Ensure inputs stretch to the container's width */
  font-family: 'Press Start 2P', cursive;
  padding: 10px;
  border: 2px solid #fff;
  border-radius: 5px;
  background: #000;
  color:#fff;
  box-sizing: border-box; /* Include padding in width calculations */
}

textarea {
  resize: none; /* Disable resizing for consistent design */
  height: 100px;
}

.icoon{
  margin-top: 20px;
}

.icoon img{
  width: 100px;
  height: auto;
}

#icon {
  color:none;
  background:none;
  border: none;
}

.whatsapp-float{
  color:none;
  background:none;
  border: none;
}

a, button {
  text-decoration: none;
  color: #000;
  background: #fff;
  padding: 10px 20px;
  border: 2px solid #fff;
  border-radius: 5px;
  display: inline-block;
  transition: 0.3s;
  cursor: pointer;
}

a:hover, button:hover {
  color: #fff;
  background: #000;
  border-color: #000;
}

/* Footer */
.footer {
  text-align: center;
  padding: 10px 0;
  background: #000;
  border-top: 2px solid #fff;
}

/* Hide Top Bar on Desktop */
@media (min-width: 768px) {
  .mobile-top-bar {
    display: none !important;
  }
}

/* Mobile Top Bar */
.mobile-top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background-color: black;
  color: rgb(0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  will-change: transform; /* Optimizes performance */
  backface-visibility: hidden; /* Prevents flickering */
}

/* Prevent Page from Shifting */
body {
  margin: 0;
  overflow-x: hidden; /* Stops horizontal scrolling issues */
  position: relative; /* Ensures stability */
}

/* Prevent Scroll Jitter */
html {
  scroll-behavior: smooth; /* Smooth scrolling */
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch; /* Improves touch performance */
}

/* Ensure items take equal space */
.mobile-top-bar > * {
  flex: 1; /* Makes all items take equal space */
  text-align: center; /* Centers text/icons */
}

/* Adjustments for specific elements */
.hamburger-menu, .shopping-cart {
  font-size: 20px;
}

/* Logo Styling - Does not stretch */
.mobile-logo {
  height: auto;  /* Keeps proportion */
  width: 100%;   /* Maintains aspect ratio */
  flex: 0;       /* Prevents logo from resizing like other elements */
}

/* Logo Styling - Does not stretch */
.Mobile-logo {
  height: 50px;  /* Keeps proportion */
  width: auto;   /* Maintains aspect ratio */
  flex: 0;       /* Prevents logo from resizing like other elements */
  margin-left: 10px;
}

/* Shopping Cart Icon */
.shopping-cart {
  font-size: 24px;
  text-decoration: none;
  color: rgb(255, 255, 255);
  background-color: #000;
  border: 0px;
}

/* Hamburger Menu */
.hamburger-menu {
  font-size: 24px;
  cursor: pointer;
  color: white;
}

/* Animated Sliding Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%; /* Initially hidden outside the screen */
  width: 50%;
  height: 100vh;
  color: #fff;
  background-color: black;
  display: flex;
  flex-direction: column;
  text-align: center;
  box-shadow: -4px 0px 10px rgba(255, 255, 255, 0.3);
  transition: right 0.66s ease-in-out;
  z-index: 999;
}

/* Show Menu */
.mobile-menu.open {
  right: 0; /* Slide in from right */
}

/* Menu Links */
.mobile-menu a {
  color: rgb(0, 0, 0);
  padding: 15px;
  text-decoration: none;
  display: block;
  border-bottom: 1px solid #333;
  font-size: 10px;
}

/* Close Menu (Slide Out to Right) */
.mobile-menu.close {
  right: -100%; /* Slides out */
}



/* Mobile-Friendly Adjustments */
@media (max-width: 768px) {
  
  body {
    font-family: 'Press Start 2P', sans-serif; /* Ensure same font for mobile */
  }

  .title {
    font-size: 2.5rem;
    margin-top: 60px;
  }
  
  .tagline {
    font-size: 1rem;
  }

  /* Section Headings */
  h2 {
    font-size: 1.5rem;
  }

  .header-image {
    display: none;
  }

#textmobilehide{
display:none;
}

#textmobile{
  display: flex;
  max-width: 400px; /* Adjusting max-width for the whole content */
  align-items: center;
  justify-content: center;
  }

  .about-content {
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 0 auto;
  }


  /* Program Section */
  .programs-grid {
    grid-template-columns: repeat(2, 1fr); /* Two equal columns */
    gap: 10px; /* Smaller gap to fit better */
  }

  .card-inner {
    height: 150px; /* Shorter for mobile rectangular shape */
  }

  .program-card {
    aspect-ratio: 1 / 1; /* Keep them square */
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .program-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fill square without stretching */
    border-radius: 8px;
  }

  .card-back {
  font-size: 10px;
 }

  /* Calendar Section */
  .calendar-container iframe {
    width: 100%;
    height: 400px; /* Reduce height on mobile */
  }

  /* Team Section */
  .team-member {
    flex-direction: column; /* Stack image and text */
    align-items: center;
    text-align: center;
    width: 80%;

  }

  /* Contact Section */
  #contact-form input, #contact-form textarea, #contact-form select, #contact-form button {
    width: 100%; /* Full-width form elements */
    margin-bottom: 15px;
  }

  .icoon {
    display:flex;
  }

  .icoon img  {
   width:80px;
  }


}
