:root {
    --bg-color: #FEECF0;
    --one-color: #F7567C;
    --two-color: #92140C;
    --text-color: #191923;
    --disable-color: #B9C8CA;
}

.focus-theme {
  --bg-color: #EBF5FF;
  --one-color: #004E98;
  --two-color: #3A6EA5;
  --text-color: #2d3142;
  --disable-color: #C0C0C0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'JetBrains Mono', monospace !important;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0 auto;
    padding: 10px 30px 0;
    gap: 30px;
    max-width: 675px;
    max-height: 375px;
}

#time-container {
  width: 100%;
  position: absolute;
  top: 0px;
  height: 75px;
  background-color: rgba(255,255,255,0.5);
}
#time-container::before {
    content: "";
    position: absolute;
    top: 40%;
    left: 120px;
    right: 120px;
    height: 2px;
    background-color: white;
    transform: translateY(-50%);
}
#currentTime, #endTime {
    position: absolute;
    top: 0;
    margin-top: 10px;
    font-size: 30px;
    transition: all linear;
    white-space: nowrap;
    z-index: 1;
}
#currentTime {
    left: 20px;
    /*transition: transform 1s linear;*/
}
#endTime {
    right: 20px;
    color: var(--two-color);
    opacity: 0.25;
}

button {
  font-family: 'JetBrains Mono', monospace !important;
}

button:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.switch, .pts {
  width: 12%;
}

.switch {
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
    text-align: center;
}

.switch span:hover {
    text-decoration: underline;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.switch-bg {
    width: 50px;
    height: 100px;
    border-radius: 25px;
    background: white;
    position: relative;
}

.switch-slider {
    width: 40px;
    height: 40px;
    background: var(--two-color);
    border-radius: 50%;
    position: absolute;
    top: 5px; /* Start from the top, representing RACE mode */
    left: 5px;
    transition: top 0.6s ease-out; /* Animation for movement */
}

.switch-labels {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.switch-labels span {
    font-size: 16px;
}


/* -------------- TIMER */

.timer {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
/* countdown animation */
    border-radius: 50%;
    background: conic-gradient(var(--one-color) 0% var(--percentage, 100%),transparent var(--percentage, 100%) 100%);
    background-color: var(--disable-color);
}


.circle {
    position: absolute;
    top: 10px;
    left: 10px;
    border-radius: 50%;
    width: calc(100% - 20px); /* reduced width to account for increased border */
    height: calc(100% - 20px); /* reduced height to account for increased border */
    background-color: var(--bg-color); /* this will cover the inner part of the timer */
}

.controls {
    position: absolute;
    top: 280px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center; /* vertically center aligns the children */
    justify-content: space-between; /* optional: space out the buttons */
}
.controls button {
    background: none;
    border: none;
    cursor: pointer;
    margin: 0 10px;
    transition: transform 0.1s, color 0.2s;
}

.controls button:hover {
  transform: scale(1.1);
  color: var(--two-color);
}

#start::before, #pause::before, #pause::after, #stop::before {
    vertical-align: middle; /* center aligns the pseudo-element */
}


#start::before {
    content: "";
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-left: 15px solid var(--two-color); /* play triangle color */
    border-bottom: 8px solid transparent;
    display: block;
    margin: auto;
}
#pause::before, #pause::after {
    content: "";
    width: 6px;
    height: 16px;
    background-color: var(--two-color); /* pause rectangle color */
    display: inline-block;
    vertical-align: middle;
}
#pause::before {
    margin-right: 5px;
}
#stop::before {
    content: "";
    width: 16px;
    height: 16px;
    background-color: var(--two-color); /* stop square color */
    display: block;
    margin: auto;
}


.time {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 68px;
    font-weight: 200;
}

.adjust-time {
    display: flex;
    align-items: center;
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.adjust-time button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
}

.adjust-time span {
    margin: 0 10px;
}

#incrementTime, #decrementTime {
  color: var(--two-color);
}


/* ------------ POINTS */

.points {
    text-align: center;
    margin-top: 0px;
    font-size: 30pt;
    font-weight: 500;
}
.pts {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#payout, #race, #focus {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    color: var(--one-color);
    font-weight: 800;
    font-size: 22px;
    text-decoration: none;
}

#payout:hover, #race:hover, #focus:hover {
    color: var(--two-color);
}

#footer {
  width: 100%;
  position: absolute;
  bottom: 0px;
  height: 50px;
  background-color: rgba(0,0,0,0.015);
  z-index: -10;
}
