@import url('https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=DM+Serif+Display:ital@0;1&family=DM+Serif+Text:ital@0;1&family=Permanent+Marker&family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');

/* ---------------------- */
/* DEFAULT COLORS         */
/* ---------------------- */

:root,
.wa-light {
    --font-size-base: 16px;
    --ice: #ebfaff;
    --lime: #99cc00;
    --teal: #28323c;
    --orange: #ff4433;
    --text-primary: #000000;
    --text-secondary: var(--teal);
    --text-inverted: var(--ice);
    --link-color: black;
    --link-hover-color: var(--teal);
}

.wa-dark {
    --text-primary: white;
    --text-secondary: var(--ice);
    --text-inverted: var(--ice);
    --link-color: var(--lime);
    --link-hover-color: white;
}

/* ---------------------- */
/* WEB AWESOME OVERRIDES  */
/* ---------------------- */

:where(:root) {
  --wa-font-family-body: 'DM Sans', sans-serif;
  --wa-font-family-heading: var(--wa-font-family-body);
  --wa-font-family-code: 'DM Mono', Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  --wa-font-family-longform: 'DM Serif Text', ui-serif, serif;
}

:where(:root),
:host,
.wa-light,
.wa-dark .wa-invert {
  --wa-color-brand-fill-quiet: var(--teal);
  --wa-color-brand-fill-normal: var(--teal);
  --wa-color-brand-fill-loud: var(--teal);
  --wa-color-brand-border-quiet: var(--teal);
  --wa-color-brand-border-normal: var(--teal);
  --wa-color-brand-border-loud: var(--teal);
  --wa-color-brand-on-quiet: var(--ice);
  --wa-color-brand-on-normal: var(--ice);
  --wa-color-brand-on-loud: var(--ice);
}

.wa-dark,
.wa-light .wa-invert {
  --wa-color-brand-fill-quiet: var(--lime);
  --wa-color-brand-fill-normal: var(--lime);
  --wa-color-brand-fill-loud: var(--lime);
  --wa-color-brand-border-quiet: var(--lime);
  --wa-color-brand-border-normal: var(--lime);
  --wa-color-brand-border-loud: var(--lime);
  --wa-color-brand-on-quiet: var(--lime);
  --wa-color-brand-on-normal: var(--lime);
  --wa-color-brand-on-loud: var(--ice);
}

/* ---------------------- */
/* DEFAULT ELEMENT STYLES */
/* ---------------------- */

body {
    font-size: calc(15px + 0.390625vw);
    margin: 0;
    padding: 0;
}

a {
    color: var(--link-color);
    transition: color 0.3s ease;
}
a:hover {
    color: var(--link-hover-color);
    transition: color 0.2s ease;
}

/* Unused? */
/*
hr {
    border: 0;
    border-top: 2px dotted var(--text-secondary);
}
*/

/* Unused? */
/*
.flank {
  display: flex;
  flex-direction: row;
  align-items: left;
  align-content: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}
*/

/* Unused? */
/*
.flank-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: left;
}
*/

/* Unused? */
/*
.hideElement {
  display: none;
}
*/

/* ---------------------- */
/* SNAP SCROLL STYLES     */
/* ---------------------- */

html, body {
    height: 100%;
    overflow: hidden;
}

.snapContainer {
    scroll-snap-type: y mandatory;
    height: 100dvh;
    overflow-y: scroll;
}

#loading {
  scroll-snap-align: start;
  background-color: var(--ice);
  color: var(--teal);
  height: 100dvh;
  width: 100vw;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  img {
    width: 30%;
    min-width: 200px;
    height: auto;
    object-fit: contain;
    padding-bottom: 2rem;
  }
  h1 {
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 900;
    padding-top: 1rem;
  }
  i {
    font-size: 4rem;
  }
}

/* Loading complete state */
#loading.loading-complete i,
#loading.loading-complete h1 {
  visibility: hidden;
}

#loading #loading-buttons {
  visibility: hidden; /* Hide button container by default */
}

#loading.loading-complete #loading-buttons {
  visibility: visible; /* Show button container when loading is complete */
}

#start-button {
  text-transform: uppercase;
  font-weight: 900;
}

#test-button {
  text-transform: uppercase;
  font-weight: 900;
}

.snapDay {
    scroll-snap-align: start;
    background-color: var(--lime);
    height: 100dvh;
    width: 100vw;
    padding: 1rem;
    background-image: url('/images/day-mon.svg');
    background-size: contain;
    background-position: top right;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.exerciseLabel {
  font-size: 1rem;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--ice);
  background-color: var(--teal);
  padding: 0.25rem 0.5rem;
  border-radius: 1rem;
  width: 5rem;
  text-align: center;
  overflow: hidden;
}
.exerciseName {
  font-weight: 700;
}

.snapExercise {
    scroll-snap-align: start;
    background-color: white;
    height: 100dvh;
    width: 100vw;
    padding: 2rem;
    h4 {
      text-transform: uppercase;
    }
}

.snapExerciseName {
  font-size: 4rem;
  font-weight: 900;
  line-height: 0.9;
}

.snapExerciseInfo {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-top: 0.5rem;
  h3 {
    margin-right: 0.5rem;
    font-size: 1rem;
    background-color: var(--teal);
    color: var(--ice);
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    text-transform: uppercase;
  }
}

.snapExerciseAlt {
    background-color: var(--ice);
}

#snap-day {
  .wa-flank {
    margin-top: 0.5rem;
  }
}
#snap-day-title {
  /* margin-top: -0.5rem; */
  /* margin-left: -0.5rem; */
  font-size: 2rem;
  text-transform: uppercase;
}

#snap-day-welcome {
  font-weight: 900;
  text-transform: uppercase;
  font-size: 2.5rem;
  margin-top: 1rem;
}

#snap-day-exercises {
  font-size: 1.5rem;
  margin-top: 0.5rem;
}

.snapExerciseSetsLabel {
  margin-top: 3rem;
  text-transform: uppercase;
  font-weight: 900;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.snapExerciseWeight, .snapExerciseReps {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.snapExerciseEffortUp {
  color: #339933;
}

.snapExerciseEffortDown {
  color: #993333;
}

.snapExerciseSets {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 1rem;
  margin-top: 0.5rem;
}

.snapExerciseSetsButtons {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.snapExerciseSetsValue {
  h4 {
    text-transform: uppercase;
  }
  p {
    font-family: 'DM Mono', monospace;
    font-size: 7rem;
    font-weight: 900;
  }
}

.snapPain {
  scroll-snap-align: start;
  background-color: var(--lime);
  color: var(--teal);
  height: 100dvh;
  width: 100vw;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

/* Add rules for inline SVG */
.snapPain svg {
  height: 80%;
  width: auto; /* Let height control size via aspect ratio */
  max-width: 100%; /* Prevent horizontal overflow */
}

.snapJournal {
    scroll-snap-align: start;
    background-color: var(--teal);
    color: var(--ice);
    height: 100dvh;
    width: 100vw;
    padding: 2rem;
}

#snap-journal-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content:space-between;
  gap: 1rem;
  height: 80%;
  margin-top: 3rem;
}

wa-button.limeButton::part(base) {
  background-color: black;
  color: white;
  font-weight: 900;
  text-transform: uppercase;
}
wa-button.limeButton::part(base):hover {
  transform: scale(1.05);
}
wa-button.limeButton::part(base):active {
  background-color: var(--lime);
}

.snapSummary {
    scroll-snap-align: start;
    background-color: var(--teal);
    color: var(--ice);
    height: 100dvh;
    width: 100vw;
    padding: 2rem;
}

#snap-summary-total {
  margin-bottom: 2rem;
}

wa-badge.blackBadge {
  --background-color: black !important;
}

.snapSummary sup {
  font-size: 0.5em;
}

.bigNumber {
  font-size: 2.5rem;
  font-weight: 900;
}
.numberPositive {
  color: var(--lime);
}
.numberNegative {
  color: var(--orange);
}

.snapErata {
  background-color: var(--lime);
  color: var(--teal);
  height: 100dvh;
  width: 100vw;
  padding: 2rem;
  scroll-snap-align: start;
  p {
    margin-top: 1rem;
  }
  a {
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
  }
}

#timer-overlay {
  display: none;
  z-index: 9999;
  position: fixed;
  top: 1rem;
  right: 1rem;
  background-color: color-mix(in srgb, var(--teal) 70%, transparent 30%);
  color: white;
  padding: 1rem;
  border-radius: 1rem;
  font-size: 2rem;
  font-family: 'DM Mono', monospace;
  font-weight: 500;
  letter-spacing: 0.1rem;
}
/* ---------------------- */
/* MEDIA QUERIES          */
/* ---------------------- */

@media screen and (min-width: 900px) {
  #snap-day-title {
    margin-top: -1rem;
    margin-left: 0;
    font-size: 3rem;
  }
}