:root {
  --main-font-family: "Fira Sans", "Rubik";
  --main-font-color: #a6accd;
  --main-background-color: #0b0f14;
  --main-font-size: 14px;
  --border: rgba(255, 255, 255, 0.4);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --separator: 1px solid #ffffff29;
}

/*================================*/
/*================================*/
/* GENERAL */
/*================================*/
/*================================*/
html {
  min-height: 100%;
  background:
    radial-gradient(
      1200px 700px at 20% 10%,
      rgba(122, 162, 255, 0.18),
      transparent 50%
    ),
    radial-gradient(
      900px 600px at 80% 0%,
      rgba(45, 212, 191, 0.12),
      transparent 55%
    ),
    var(--main-background-color);
  background-repeat: no-repeat;
  background-attachment: fixed; /* keeps it consistent while scrolling */
}

body {
  color: var(--main-font-color);
  font-family: var(--main-font-family);
  font-size: 1.2rem;
  line-height: 1.6;
  padding-top: 1em;
  background-color: transparent;
  font-size: var(--main-font-size);
}

nav {
  display: flex;
  justify-content: space-between;
}

#navbar_menu {
  position: fixed;
  top: 0.8rem;
  right: 2rem;
}

#navbar_menu_items {
  position: absolute;
  top: 2rem;
  right: 0;
  min-width: max-content;
  background-color: #000000;
  padding: 15px;
  border: 1px solid;
  border-radius: 5px;
  color: white;
  font-family: "Fira Code";
}

.navbar-brand {
  top: 4px;
  position: absolute;
  padding: 0;
}

#navbar_menu_items div {
  padding: 4px 0;
  border-bottom: 1px solid #ffffff33;
  cursor: pointer;
}

#navbar_menu_items div:last-child {
  border-bottom: none;
}

#root {
  margin: 0 auto;
  padding: 4rem 1rem 1rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  flex-direction: column;
  min-height: 90vh;
}

.flex {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
}

.flex-column {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  flex-direction: column;
}

.separator {
  border: var(--separator);
}

.pointer {
  cursor: pointer;
}

.my_btn {
  display: flex;
  gap: 1rem;
  border: 1px solid;
  padding: 7px 10px;
  width: 16rem;
  justify-content: center;
  border-radius: 50px;
  align-items: center;
  line-height: 1;
  height: 2.2rem;
}

.error_icn,
.success_icn {
  position: absolute;
  left: 1rem;
}

.red_glow {
  box-shadow:
    0 0 10px rgba(236, 0, 0, 0.6),
    0 0 20px rgba(236, 0, 0, 0.5),
    0 0 40px rgba(236, 0, 0, 0.4);
}

.green_glow {
  box-shadow:
    0 0 10px rgba(0, 236, 28, 0.6),
    0 0 20px rgba(0, 236, 16, 0.5),
    0 0 40px rgba(0, 236, 55, 0.4);
}

.hidden {
  display: none;
}

.green {
  color: green !important;
}

/*================================*/
/*================================*/
/* OVERLAY SCREEN */
/*================================*/
/*================================*/
#overlay_screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #c8bdbd47;
  display: flex;
  align-items: center;
  justify-content: center;
}

#overlay_screen_card {
  position: relative;
  border: 1px solid #8f8f8f;
  max-width: 80%;
  height: fit-content;
  text-align: center;
  border-radius: var(--radius);
  background: #ffffff;
  gap: 0;
  width: 35rem;
  margin: 0 1rem;
  font-family: "Fira Code";
  word-break: break-word;
  max-height: 75dvh;
  overflow: hidden;
}

#overlay_screen_header {
  padding: 1rem;
  border-bottom: 1px solid #8f8f8f;
  background-color: black;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  font-size: 1.2rem;
  color: white;
}

#overlay_screen_content {
  font-size: 0.8rem;
  color: white;
  padding: 40px 20px;
  background-color: #272626;
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  text-align: justify;
  overflow-y: auto;
  flex: 1;
}

#overlay_screen_closebtn {
  position: absolute;
  right: 2rem;
  color: white;
  font-size: 2rem;
}

#overlay_screen_closebtn:hover {
  color: rgb(248, 166, 13);
}

#my_navbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.516);
  height: 3rem;
}

/*================================*/
/*================================*/
/* SAVE/LOAD POP-UP */
/*================================*/
/*================================*/
.popup_storage_line {
  justify-content: space-between;
  padding: 10px 20px;
  font-family: "Fira Code";
  border-bottom: 1px solid #ffffff38;
  flex-wrap: wrap;
}

.popup_storage_line:last-child {
  border-bottom: none;
}

.storage_status {
  padding: 3px 10px;
  border-radius: var(--radius);
  font-size: 0.8rem;
}

.storage_status_empty {
  border: 1px solid #00fffd;
  background: #40e0d05c;
  color: #00fffd;
}

.storage_status_used {
  border: 1px solid #efff00;
  background: #e0bd405c;
  color: #efff00;
}

.popup_storage_line_left {
  gap: 0;
  padding-right: 3rem;
}

.storage_key {
  font-size: 0.8rem;
  color: #a1a1a1;
  font-family: "Fira Code";
}

.popup_btn {
  margin: auto 0;
  padding: 3px 20px;
  border-radius: var(--radius);
}

.popup_save_btn,
.save_btn {
  border: 1px solid #8bdbff;
  background-color: #0074ff;
  color: #8bdbff;
}

.popup_save_btn:hover,
.save_btn:hover {
  border-color: rgba(0, 149, 255, 0.644);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);
}

.popup_overwrite_btn {
  border: 1px solid #ff7b7b;
  background-color: #713131;
  color: #ff7b7b;
}

.popup_overwrite_btn:hover {
  border-color: rgba(255, 0, 0, 0.644);
  box-shadow: 0 0 0 3px rgba(212, 45, 45, 0.12);
}

.popup_load_btn {
  background-color: #efcb87;
  color: #87714a;
}

.popup_load_btn:hover {
  border-color: rgba(255, 196, 0, 0.644);
  box-shadow: 0 0 0 3px rgba(212, 159, 45, 0.12);
}

.popup_storage_line_left_index {
  color: gray;
}

.session_name_card_content {
  padding: 0 20px;
  text-align: left;
}

#session_name_input {
  cursor: text;
  background-color: rgb(33, 37, 41);
  color: white;
  border-radius: 4px;
}

#overwrite_warning {
  border: 1px solid;
  padding: 5px 10px;
  border-radius: var(--radius);
  text-align: center;
  color: red;
  background-color: #82262666;
}

/*================================*/
/*================================*/
/* IMPORT WORKOUT SCREEN */
/*================================*/
/*================================*/

#import_screen_wrapper {
  justify-content: center;
  margin: auto;
  text-align: center;
  border: var(--separator);
  padding: 2rem;
  border-radius: var(--radius);
  background-color: #4e4c4c2b;
}

#workout_string_lbl {
  font-size: 1.4rem;
  font-weight: bold;
}

#workout_string {
  width: 100%;
  cursor: text;
  background-color: rgb(33, 37, 41);
  color: white;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 1rem;
}

.import_screen_top {
  padding-bottom: 2rem;
  border-bottom: var(--separator);
  align-items: center;
}

.import_screen_bottom {
  padding-top: 1rem;
  margin: auto;
}

#import_workout_btn {
  color: rgb(131 215 184);
  background-color: #306e38;
}

#import_workout_btn:hover {
  border-color: rgba(3, 155, 100, 0.644);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);
}

#create_workout_btn {
  color: rgb(123 173 208);
  background-color: rgb(26 44 98);
}

#create_workout_btn:hover {
  border-color: rgba(0, 98, 255, 0.644);
  box-shadow: 0 0 0 3px rgba(45, 81, 212, 0.12);
}

#load_workout_btn {
  color: #efcb87;
  background-color: #87714a;
}

#load_workout_btn:hover {
  border-color: rgba(255, 196, 0, 0.644);
  box-shadow: 0 0 0 3px rgba(212, 159, 45, 0.12);
}

/*================================*/
/*================================*/
/* MOVE SELECTION SCREEN */
/*================================*/
/*================================*/

/*===========================*/
/*Moves config card*/
/*===========================*/
#workout_config_card {
  width: 80vw;
  margin: auto;
  background-color: #4e4c4c2b;
}

/*===========================*/
/*Moves config header*/
/*===========================*/
#workout_config_title {
  margin: 0;
  padding: 12px 10px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: rgba(231, 238, 252, 0.92);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.11);
  text-align: center;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  border-bottom: none;
  font-weight: bold;
}

#workout_config {
  border: 1px solid var(--border);
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 7px 10px;
}

.workout_config_pill {
  width: 8rem;
}

.config_label {
  width: 3rem;
  font-weight: bold;
}

.config_value_pill {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

#workout_config_info {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  gap: 1rem;
  border-bottom: var(--separator);
  padding: 0.8rem;
  justify-content: space-evenly;
}

#workout_config_activerest {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  gap: 1rem;
  padding: 0.8rem;
  justify-content: space-evenly;
}

.plusminus_btns {
  justify-content: space-evenly;
  border: 1px solid;
  border-radius: var(--radius);
  background-color: #1e3250;
}

.plusbtn {
  padding-left: 15px;
}

.minusbtn {
  padding-right: 15px;
}

#total_duration_hidden {
  display: none;
}

/*===========================*/
/*Moves labels*/
/*===========================*/
#moves_selection {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.move_label {
  display: flex;
  gap: 1rem;
  border: 1px solid;
  padding: 7px 10px;
  width: 16rem;
  justify-content: space-between;
  border-radius: 50px;
  background: rgba(18, 25, 38, 0.6);
  flex: 1 1 calc(50% - 0.75rem);
  height: 2.4rem;
  min-width: 22rem;
}

.move_label:hover {
  border-color: rgba(45, 212, 191, 0.55);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);
}

div.okselection {
  background-color: rgba(45, 212, 190, 0.2);
}

.noselection {
  background-color: rgba(255, 187, 0, 0.2);
}

div.noselection:hover {
  border-color: rgba(255, 174, 0, 0.644);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);
}

.move_dropdown {
  outline: none;
  background-color: transparent;
  color: var(--main-font-color);
  border: none;
  width: 10rem;
}

.move_dropdown:focus {
  background-color: rgba(18, 25, 38, 0.6);
}

.move_right {
  display: flex;
  gap: 1rem;
}

.move_dropdown optgroup {
  background-color: #1e3250;
  color: #a6accd;
  font-style: normal;
  font-weight: bold;
}

.move_dropdown optgroup option {
  background-color: rgb(33, 37, 41);
  font-weight: normal;
  padding-left: 1rem;
}

/*===========================*/
/*Form buttons styling*/
/*===========================*/

#form_buttons {
  margin: auto;
  margin-bottom: 70px;
}

.add_btn {
  background: rgba(18, 25, 38, 0.6);
}

.play_btn {
  background-color: #856120;
  color: #f5d69b;
  border: 1px solid #f5d69b;
}

.play_btn:hover {
  border-color: rgba(255, 166, 0, 0.644);
  box-shadow: 0 0 0 3px rgba(212, 159, 45, 0.12);
}

/*===========================*/
/*Draggable styling*/
/*===========================*/
.drag-ghost {
  opacity: 0.4;
}

.drag-handle {
  cursor: grab;
  color: var(--border);
  user-select: none;
}

.drag-handle:active {
  cursor: grabbing;
}

/*================================*/
/*================================*/
/* PLAY SCREEN */
/*================================*/
/*================================*/
#workout_play_card {
  padding: 20px;
  margin: auto;
  border-radius: var(--radius);
  width: 80%;
}

#workout_play_card > .flex-column {
  width: 6rem;
}

#workout_playcard_title {
  font-size: 1.5rem;
  text-align: center;
  max-height: 2rem;
}

#workout_playcard_subtitle {
  font-size: 0.8rem;
  text-align: center;
  padding-bottom: 1rem;
}

#workout_playcard_content {
  font-size: 3rem;
  margin: auto;
}

.rest_styling {
  border: 1px solid;
  background-color: #a87f331f;
  color: #fe7601;
}

.play_styling {
  border: 1px solid;
  background-color: #337ba81f;
  color: #72ddfd;
}

#workout_playcard_img {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

#workout_playcard_img img {
  max-height: 400px;
  border-radius: var(--radius);
}

/*================================*/
/*================================*/
/* MOVE OVERVIEW SCREEN */
/*================================*/
/*================================*/

.move_overview {
  font-family: "Fira Code";
}

.move_overview_header {
  border: 1px solid #00f9ffb3;
  padding: 7px 15px;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  background-color: #04595b69;
  color: #00f9ffb3;
}

.move_overview_content {
  padding: 1rem;
  border: 1px solid;
  margin: 0 1rem 0 2rem;
  border-top: none;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  background-color: black;
  color: white;
}

.move_overview_cat {
  padding-right: 1rem;
}

.move_overview_index {
  color: gray;
}

/*================================*/
/*================================*/
/* SAVED SESSIONS SCREEN */
/*================================*/
/*================================*/

.saved_session {
  margin: 1rem 2rem;
  max-width: 90%;
}

.saved_session_header {
  border: 1px solid;
  padding: 7px 10px;
  border-radius: 5px;
  background-color: #72562769;
  color: orange;
  font-family: "Fira Code";
  display: flex;
}

.saved_session_index {
  color: gray;
}

.saved_session_header_right {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.saved_session_content {
  font-family: "Fira Code";
  border: 1px solid;
  padding: 7px 10px;
  margin-left: 2rem;
  margin-right: 1rem;
  border-top: none;
  background-color: black;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  word-break: break-word;
}

.saved_session_content div {
  display: flex;
  flex-wrap: wrap;
}

.saved_session_content_json {
  border-bottom: 1px solid #ffffff5c;
  margin-bottom: 1rem;
}

.saved_session_content_left {
  width: 4rem;
}

.saved_session_content_right {
  color: white;
  font-family: "Fira Code";
  font-size: 14px;
  cursor: pointer;
}

.saved_session_content_base64string:hover {
  color: orange;
}

.nosavedsession_window {
  font-family: "Fira Code";
  border: 1px solid;
  margin: 1rem;
  padding: 3rem;
  text-align: center;
  border-radius: 10px;
  font-size: 1.5rem;
  background-color: #7524246e;
  color: #f7a543;
}

/*================================*/
/*================================*/
/* FOOTER */
/*================================*/
/*================================*/

#paddingCopyright {
  display: block;
  padding: 20px;
  height: 60px;
  width: 100%;
  background-color: transparent;
}

#copyright {
  background-color: rgb(32, 32, 32, 0.1);
  border-top: 1px solid rgb(63, 63, 63);
  text-align: center;
  padding: 20px;
  height: 60px;
  width: 100%;
  color: white;
  position: sticky; /* ← */
  bottom: 0;
  /*   left: 0px;
  bottom: 0px; */
}

#copyright a {
  text-decoration: none;
}
