* {
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

html,
body {
  margin: 0;
  padding: 0;

  width: 100%;
  height: 100%;

  /* 🔒 Prevent viewport scrolling */
  overflow: hidden;

  /* Text defaults */
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #ffffff;

  /* Prevent mobile weirdness */
  overscroll-behavior: none;
  touch-action: manipulation;
}

#bg {
  position: fixed;
  top: 0;
  left: 0;

  width: 100vw;
  height: 100vh;

  z-index: -1;

  pointer-events: none;
}


#app {
  position: relative;
  width: 100%;
  height: 100%;

  overflow-y: auto;
  -webkit-overflow-scrolling: touch;

  z-index: 1;
}

#screen-workout {
  height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}



.instruction-text {
  text-align: center;
  margin: 18px 0 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}


.landing-text {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
  margin: 20px 0 28px;
  font-size: 14px;
}

.privacy {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  font-size: 13px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.8);
}

.privacy a {
  color: #bfc3c6;
  text-decoration: underline;
}

#landingNext:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}


.screen {
  display: none;
  min-height: 100vh;
  padding: 28px 22px;
}

.screen.active {
  display: block;
  animation: screenFade 0.2s ease;
}

@keyframes screenFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}



/* Logo */
.logo {
  max-width: 130px;
}

.logo.center {
  display: block;
  margin: 36px auto 24px;
}

.logo.sticky {
  position: sticky;
  top: 16px;
  z-index: 10;
}

/* Text */
.subtitle {
  text-align: center;
  margin-bottom: 22px;
  margin-top: 11px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.5px;
}

/* Text */
.rating {
  text-align: center;
  margin-bottom: 22px;
  margin-top: 22px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.5px;
}

/* Selector */
.selector-card {
  align-items: center;
  background: transparent;
  border-radius: 9px;
  padding: 22px;
  display: flex;
  flex-direction: column;   
  gap: 12px;
}

.selector {
  display: flex;
  justify-content: space-between;
  width: 75%;
  align-items: center;
  background: #4D4D4D;
  padding: 14px 18px;
  border-radius: 7px;
  margin-bottom: 16px;
  color: #ffffff;
}

/* Buttons */
.btn {
  width: 60%;
  display: block;
  margin: 12px auto 0;
  padding: 14px;
  border: none;
  border-radius: 0px;
  font-size: 15px;
  cursor: pointer;
}


.btn.neutral {
  background: #2f2f2f;   /* darker grey */
  color: #ffffff;        /* white text */
}


.btn.stop {
  background: #FF6666;
  color: #000;
}

#stopBtn {
  display: block;
  width: 60%;
  max-width: 320px;

  margin: 20px auto 28px auto; /* centered, spaced */

  position: static; /* 👈 IMPORTANT */
  z-index: auto;

  pointer-events: auto;
  touch-action: manipulation;
}




/* Workout blocks */
.workout-block {
  /* Glass base */
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.02)
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); /* iOS Safari */

  /* Shape & spacing */
  border-radius: 9px;
  padding: 16px;
  margin-bottom: 16px;

  /* Subtle outline */
  border: 1px solid rgba(255, 255, 255, 0.15);

  /* Depth */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);

  /* Smooth appearance */
  animation: fadeInUp 0.25s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.exercise-title {
  text-align: center;
  margin-top: 10px;     /* pushes it down from top of card */
  margin-bottom: 22px;  /* increases gap before SET rows */
}


.set {
  display: flex;
  justify-content: space-between;
  margin: 6px 0;
}

.set i {
  color: #ffffff;
}

/* DONE button */
.done-btn {
  display: block;
  width: 60%;
  margin: 28px auto 0;   /* ↑ increased top margin */
  background: #006633;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 12px;  
}

button {
  font-weight: 700;
}





/* Completion */
.hidden {
  display: none;
}

.completion {
  margin-top: 32px;
  text-align: center;
  animation: blockFade 0.2s ease forwards;
}

.time {
  margin: 16px 0 24px;
  font-size: 16px;
}

.history-actions {
  display: flex;
  flex-direction: column;   /* 👈 stack vertically */
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}


#historyList {
  display: flex;
  flex-direction: column;
  align-items: center;
}


.history-block {

  background: #121212;
  border-radius: 0px;
  padding: 14px 16px;
  margin-bottom: 14px;
  margin-top: 20px;
  width: 85%;
}

.history-header {
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

.history-body {
  margin-top: 12px;
}

.history-body ul {
  padding-left: 18px;
  margin-bottom: 12px;
}

.history-footer {
  text-align: center;
  font-size: 13px;
  opacity: 0.8;
}

.history-empty {
  text-align: center;
  margin-top: 40px;
}

.hidden {
  display: none;
}

.support-text {  
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);  
}

.support-text a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}

.share-icon-btn {
  margin: 18px auto 0;     /* 👈 top space + horizontal centering */
  background: transparent;
  border: none;
  cursor: pointer;

  display: flex;
  justify-content: center;
  align-items: center;

  color: #ffffff;
  font-size: 22px;
  padding: 10px;
}


.share-icon-btn:hover {
  opacity: 0.8;
}

/* Drop-set spacing */
.drop-set-group + .drop-set-group {
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.set-label {
  font-weight: 700;
  margin-bottom: 6px;
  color: #bab3b3;
}

.mode-note {
  font-size: 0.85rem;
  color: rgba(186,169,169,0.6);
  margin-top: 6px;
  text-align: center;
}

select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}







