/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
  background: url('assets/stock/womanbg-comp.jpeg') no-repeat center center fixed;
  background-size: cover;
  background-position-y: 3rem;
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: #333; 
}
@media screen and (max-width: 600px) {
  body { background-size: cover; } /* Adjust background position for smaller screens */
  
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Navigation */
header { 
  background: #222;
  color: #fff; 
  padding: 1rem 2rem; 
  position: fixed;    /* pin it to the top of the viewport */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;      /* above everything else */
  background: #222;   /* re‐declare so it covers content scrolling under */
}

.nav-container { display: flexbox;  align-items: center; height: min-content;}
.logo { margin-right: auto; font-size: 1.5rem; font-weight: 700; justify-self: start; display: flex;}
.nav-links li { display: inline-block; margin-left: 1.5rem;} 
.nav-links a { color: #fff; -webkit-transition: color 0.3s; -moz-transition: color 0.3s; -ms-transition: color 0.3s; -o-transition: color 0.3s; transition: color 0.3s; }
.nav-links a:hover { color: #4eae2f; } /*old color: f39c12*/
nav { display: flex; align-items: center; justify-content: end; padding: 0 10px; height: min-content;}
.nav-toggle {margin-right: 0px; justify-content: end;}

/* Hero Section */
.hero { 
  margin: 10%; 
  display: flex; 
  align-items: center;   
  justify-content: center; 
  text-align: center; 
  padding: 10% 1rem 0; 
  margin-top: 11rem;    
}

.hero-content { position: sticky; flex: 1 1 350px;  margin: 0 auto; background: rgba(49, 48, 48, 0.88); padding: 2rem; border-radius: 8px; }
.hero h1 { font-size: 3rem; color: #ffffff; margin-bottom: 1rem; }
.hero p { font-size: 1.25rem; color: #ffffff; margin-bottom: 1.5rem; }
.btn { display: inline-block; padding: 0.75rem 1.5rem; background: #6bab58; color: #fff; border-radius: 4px; font-weight: 700; transition: background 0.3s; }
.btn:hover { background: #577b49; }

/* Features Section */
.features { padding: 4rem 2rem; background: #edeeefe8; }
.features h2 { text-align: center; font-size: 2.5rem; margin-bottom: 2rem; color: #20201f; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.feature { background: #fff; border-radius: 8px; padding: 2rem; box-shadow: 0 2px 8px rgba(0,0,0,0.1); text-align: center; }
.feature h3 { margin-bottom: 0.5rem; font-size: 1.5rem; }
.feature p { color: #666; }

/* Footer */
footer { background: #222; color: #fff; padding: 2rem; text-align: center;}
footer p { font-size: 0.9rem; }
.social-links a { margin: 0 0.5rem; color: #fff; font-size: 1.2rem; transition: color 0.3s; }
.social-links a:hover { color: #84c172; }

/* Responsive Nav Toggle */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; cursor: pointer; font-size: 2rem; position: relative; }
}

#nav_icon:hover{
  cursor: pointer;
}

/* Responsive Styles */
.feature:hover{
  transform: scale(1.05);
  transition: transform 0.6s;
  cursor: pointer;
  -webkit-transform: scale(1.05);
  -moz-transform: scale(1.05);
  -ms-transform: scale(1.05);
  -o-transform: scale(1.05);
  -webkit-transition: transform 0.6s;
  -moz-transition: transform 0.6s;
  -ms-transition: transform 0.6s;
  -o-transition: transform 0.6s;
}

/*selection*/
::selection {
  background: #87b17b;
  color: #fff;
}

/* list muscle groups */
.parts{
  margin-bottom: 10px;
  color: #f4f4f4;
  font-size: 1.5rem;
}

.parts-list{
  display: flex;
  flex-wrap: wrap;           /* allow stacking on very narrow screens */
  align-items: flex-start;   
  justify-content: space-between;
  gap: 2rem;                 /* space between columns */
  max-width: 1200px;
  margin: 0 auto;            /* center on page */
  padding: 2rem 1rem;
}

.parts li{
  margin-bottom: 5px;
  color: #ffffff;
  font-size: 1.5rem;
  background: #393E46;
  display: inline-flexbox;
  width: 100px;
  align-items: center;
  justify-content: center;
  margin-left: 45%;
}

/*btn geri*/
.hero-content .btngeri{
  position: absolute;
  /*takeitoutofthenormalflow*/top: 1rem;
  /*adjusttotaste*/left: 1rem;
  /*adjusttotaste*//*optionalstyling*/padding: 0.5rem 1rem;
  color: #fff;
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  font-size: x-large;
  -webkit-border-radius: 200px;
  -moz-border-radius: 200px;
  -ms-border-radius: 200px;
  -o-border-radius: 200px;
  border-radius: 200px;
  padding: 3px;
}

.btngeri:hover{
  border-style: solid;
  cursor: pointer;
  border-color: #42413f;
}

/*gif area*/

.mainGif{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 5%;
  margin-bottom: 5%;
  padding: 5%;
  padding-bottom: 5%;
}

.gifs{
  flex: 1 1 500px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  display: block;
  width: 50%;
}



.small-gifs{
  padding: 0.2rem;
  width: 50%;
  height: auto;
  display: block;
  border-radius: 4px;
  /*box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  */margin-bottom: 1.5rem;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  -ms-border-radius: 4px;
  -o-border-radius: 4px;
}

.parts li:hover{
  color: #6bab58;
}

.hidden{
  display: block;
}

.toggle_sidebar{
  position: sticky;
}


/* 1. Make the page a two-column flex */
.page-wrapper {
  display: flex;
  min-height: 100vh;
  margin-top: 2rem;    /* space for the fixed header */
}

/* 2. Sidebar styling */
.sidebar {
  flex: 0 0 150px;           /* fixed 200px wide */
  background: #222;           /* same dark tone as header */
  color: #fff;
  padding: 2rem 1rem;
  position: sticky;
  height: auto;
}

.sidebar__title {
  position: fixed;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}
.sidebar__title:hover{
  cursor: pointer;
  color: #6bab58;
}

.sidebar__list {
  list-style: none;
  padding: 0;
}
.sidebar__link {
  display: block;
  color: #ddd;
  width: 100%;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: 4px;
  
}
.sidebar__link:hover {
  background-color: #6bab58;
  color: #222;
  cursor: pointer;
  transition: background-color 1s, color 0.2s;
  -webkit-transition: background-color 1s, color 0.2s;
  -moz-transition: background-color 1s, color 0.2s;
  -ms-transition: background-color 1s, color 0.2s;
  -o-transition: background-color 1s, color 0.2s;
}

.sidebar__list{
  position: fixed;
  max-height: 0;
  margin-top: 50px;
  overflow: hidden;
  transition: max-height 0.4s ease;
  -webkit-transition: max-height 0.4s ease;
  -moz-transition: max-height 0.4s ease;
  -ms-transition: max-height 0.4s ease;
  -o-transition: max-height 0.4s ease;
}
.sidebar.open .sidebar__list{
  max-height: 900px; 
}

/* 3. Shift your main content over */
.main-content {
  flex: 1;
  margin-top: 3rem;
}

/* 4. Make it stack on narrow screens */
@media (max-width: 768px) {
  .page-wrapper {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    flex: none;
  }
  .sidebar__list{
    position: sticky;
    margin-top: 0;
  }
  .sidebar__title{
    position: sticky;
  }
}

.mainGif{
  justify-self: flex-start;
  padding-left: 3rem;
}

.gif-headers {
  background-color: #393e46dd;
  width: 100%;
  color: white;
  display: flex;
  flex: 0 0 200px;
  border-radius: 10px;
  padding-left: 5px;
  height: 50px;
  font-size: 2rem;
  
}

/* Media Queries */
@media (max-width: 768px) {
  /* Nav toggle */
  .nav-links { display: none; }
  .nav-toggle { display: block; cursor: pointer; font-size: 2rem; }

  /* Sidebar collapse */
  .page-wrapper { flex-direction: column; }
  .sidebar { width: 100%; flex: none; }

  /* GIFs full-width */
  .gifs { flex: 1 1 100%; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  /* Adjust title size for smaller screens */
  .gif-headers { font-size: 1.3rem; height: 40px;}
  /* Hero padding adjust */
  .hero { padding: 5% 1rem 0; }
}

.gifs {
  flex-direction: column;
  gap: 2rem;
  width: 600px;

}

.machine-gifs{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  width: 600px;
}

/* each card flexes the image and text side by side */
.gif-card {
  display: flex;
  align-items: flex-start;
  width: auto;
  gap: 1.5rem;
  background: #ffffff;
  padding: 1rem;
  padding-top: 0rem;
  padding-left: 0rem;
  padding-right: 0rem;
  border-radius: 0px;
  box-shadow: 0 2px 8px rgb(0, 0, 0);
  border-bottom: #393E46 4px solid;
  border-right: #393E46 4px solid;
  margin-right: 40px;
  margin-bottom: 10px;
  border-radius: 12px;
  -webkit-border-radius: 12px;
  -moz-border-radius: 12px;
  -ms-border-radius: 12px;
  -o-border-radius: 12px;
}

/* the image stays a fixed size */
.gif-card__img {
  flex: 0 0 200px;
  /*orwhateverwidthyoulike*/
  max-width:100%;
  width: 400px;
  border-radius:4px;
  
}

/* text body takes remaining space */
.gif-card__body {
  flex: 1;
  
}

/* title styling */
.gif-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  color: #302f2e;
}

/* description styling */
.gif-card__desc {
  margin: 0;
  color: #555;
  line-height: 1.4;
  padding: 1rem;
  background-color: white;
  font-weight: bold;
  font-family: 'Roboto', sans-serif;
  font-size: 1.3rem;
}

/* on small screens, stack image above text */
@media (max-width: 600px) {
  .gifs {
    flex-direction: column;
    width: 100%;
  }
  .machine-gifs {
    flex-direction: column;
    width: 100%;
  }
  .gif-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .gif-card__img {
    width: 100%;
    flex: none;
  }
  .gif-card__desc {
    padding: 0.5rem;
    font-size: 1rem;
  }
}

.machines-gif-container {
  display: grid;
  justify-content: center;
}

.gifs-section {
  display: grid;
  margin-top: 3rem;
  justify-content: center;
}

/* go top button */
.go-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #333536;
  color: white;
  border: none;
  border-radius: 48px;
  padding: 1rem;
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  /*hiddenbydefault*/box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: background 0.3s;
  
}
.go-top i{
  font-size: 1.25rem;
  color: #fff;
}
.go-top:hover {
  background: #7bc466;
}

.TAlogo {
  width: 112px;
  height: 67px;
  justify-content: start;
  cursor: pointer;
}

/* machine cards */
.machines {
  padding: 1rem;
  max-width: 1000px;
  margin: auto;
  margin-top: 5rem;
}

.machines__title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #333;
}

.machine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 4rem;
}

.machine-card {
  background: #ffffff;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.6s;
  -webkit-transition: transform 0.6s;
  -moz-transition: transform 0.6s;
  -ms-transition: transform 0.6s;
  -o-transition: transform 0.6s;
}
.machine-card:hover {
  background-color: #eaedef;
  transform: scale(1.25);
  transition:  transform 0.9s;
  -webkit-transition:  transform 0.9s;
  -moz-transition:  transform 0.9s;
  -ms-transition:  transform 0.9s;
  -o-transition:  transform 0.9s;
}
.machine-card__img {
  width: 120px;
  height: 120px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}
.machine-card__name {
  
  padding: 0.75rem;
  font-size: 1.1rem;
  color: #222;
  margin: 10px;
}

#locationQR{
  width: 300px;
  height: 300px;
}

#locationHeader{
  margin: 2rem;
  font-weight: bolder;
}

.locationContainer{
  background-color: rgb(255, 255, 255);
  border-radius: 8px;
  display: block;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
  width: 500px;
  height: 500px;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
}


/* ---- Updates Feed Styles ---- */
.blogContainer {
  padding: 2rem 1rem;
}
.mainBlog {
  max-width: 600px;
  margin: 0 auto;
}

/* Post form */
.update-form {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.update-form textarea {
  width: 100%;
  height: 80px;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: .5rem;
  resize: none;
  font-family: inherit;
  font-size: 1rem;
}
.update-form button {
  margin-top: .5rem;
  padding: .5rem 1rem;
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.update-form button:disabled {
  background: #999;
  cursor: default;
}

/* Updates list */
.updates-list {
  list-style: none;
  padding: 0;
}
.update-card {
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.update-card__meta {
  font-size: .85rem;
  color: #555;
  margin-bottom: .5rem;
}
.update-card__text {
  font-size: 1rem;
  line-height: 1.4;
  white-space: pre-wrap;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .update-form textarea { height: 60px; }
}


/* level selector buttons */
    .level-selector {
      text-align: center;
      margin: 2rem 0;
    }
    .level-selector button {
      margin: 0 .5rem;
      padding: .5rem 1rem;
      border: none;
      background: #7eaf6b;
      color: #fff;
      font-weight: 700;
      border-radius: 1px;
      cursor: pointer;
      transition: background .3s;
      -webkit-border-radius: 1px;
      -moz-border-radius: 1px;
      -ms-border-radius: 1px;
      -o-border-radius: 1px;
}

.level-selector button.active {
  background: #aac49f;
}
/* grid of program cards */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 1.5rem;
  padding: 0 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.program-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 1.5rem;
  text-align: center;
}

.program-card:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform .6s, box-shadow .8s;
  -webkit-transition: transform .6s, box-shadow .8s;
  -moz-transition: transform .6s, box-shadow .8s;
  -ms-transition: transform .6s, box-shadow .8s;
  -o-transition: transform .6s, box-shadow .8s;
}

.program-card h3 { margin-bottom: .75rem; }
.program-card p { color: #666; }
.hidden { display: none !important; }

.filler {
  height: 100px;
  visibility: hidden;
  margin-top: 2rem;
}