@view-transition {
  navigation: auto;
}
#flexy {
  display: flex;
}

#containy {
  margin: 5px;
}

#itemy {
  background-color: green;
}

.heading-container {
  display: flex;
  flex-direction: row;
  margin-bottom: 5px;
  padding-bottom: 10px;
  justify-content: end;
  background-image: linear-gradient(to top, #a8edea 50%, #fed6e3 80%);
  height: 25px;
}

.heading-list {
  display: inline;
  padding: 5px;
  z-index: 3;
}

.command-modal-content {
  border: none;
  border-radius: 10px;
  padding: 18px 20px;
  width: 260px;
  font-family: Rubik, sans-serif;
  font-weight: normal;
  font-size: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: rgba(140, 20, 252, 0.09);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35);

  flex-direction: column;
  gap: 0;
}

.command-modal-content::backdrop {
  background-color: rgba(0, 0, 0, 0.15);
}

.command-modal-title {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  text-align: center;
  font-family: Rubik, sans-serif;
}

.command-section {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.command-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.command-toggle-grid {
  display: grid;
  grid-template-columns: 1fr 40px 40px;
  gap: 5px;
  align-items: center;
}

.command-row-label {
  font-size: 11px;
  color: #555;
  display: block;
  margin-bottom: 4px;
}

.command-toggle-grid .command-row-label {
  margin-bottom: 0;
}

.command-slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.command-slider-row:last-of-type {
  margin-bottom: 0;
}

.command-slider-row .command-row-label {
  margin-bottom: 0;
  width: 48px;
  flex-shrink: 0;
}

.command-action-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 10px;
}

.command-select {
  width: 100%;
  height: 26px;
  font-size: 12px;
  font-family: Rubik, sans-serif;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  padding: 0 4px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.6);
}

.top-controls-button {
  cursor: pointer;
  background: white;
  font-size: 12px;
  font-family: Rubik, sans-serif;
  border: 1px solid #bbb;
  border-radius: 4px;
  height: 26px;
  padding: 0 10px;
}
.top-controls-button:hover {
  background-color: #f5f5f5;
  border-color: #888;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.toggle-button-disabled {
  height: 25px;
  width: 40px;
  background-color: #fedee6;
  border: 1px solid gray;
  border-radius: 3px;
  cursor: pointer;
}

.toggle-button-enabled {
  height: 25px;
  width: 40px;
  background-color: #3277df;
  border: 1px solid black;
  border-radius: 3px;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.top-controls-container {
  display: flex;
  gap: 16px;
  padding: 6px 12px;
  grid-column: 1 / span 2;
  align-items: center;
  justify-content: space-around;
  background-color: #f8f8f8;
  border-bottom: 1px solid #e0e0e0;
}

.top-controls-container-item {
  display: flex;
  gap: 8px;
  align-items: center;
}

.control-select-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.control-label {
  font-size: 10px;
  font-family: Rubik, sans-serif;
  font-weight: normal;
  color: #888;
  line-height: 1;
}

select {
  font-size: 11px;
  padding: 2px 4px;
  width: 115px;
}

.labels {
  float: left;
  width: 10em;
  margin-right: 1em;
  text-align: right;
  width: 60px;
  font-style: italic;
  height: 15px;
  padding: 1px;
  text-align: left;
  border-width: 0px;
  font-family: Rubik;
  font-weight: normal;
  font-size: 10px;
  color: #808080;
}

.word-rec-advanced {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 8px 12px;
  align-items: start;
  font-family: Rubik, sans-serif;
  font-size: 12px;
  font-weight: normal;
}

.wr-title {
  margin: 0 0 14px 0;
  font-family: Rubik, sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #444;
  text-align: center;
  letter-spacing: 0.3px;
}

.wr-ear-header {
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  padding-bottom: 6px;
  border-bottom: 2px solid;
}

.wr-ear-header.wr-right {
  border-color: rgba(255, 0, 0, 0.4);
  color: darkred;
}

.wr-ear-header.wr-left {
  border-color: rgba(0, 0, 255, 0.4);
  color: darkblue;
}

.wr-row-label {
  font-size: 11px;
  color: #888;
  text-align: right;
  padding-right: 6px;
  padding-top: 6px;
}

.wr-value {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 2px 8px;
  background-color: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 13px;
}

.wr-value.wr-right {
  color: darkred;
  border-left: 3px solid rgba(200, 0, 0, 0.25);
}

.wr-value.wr-left {
  color: darkblue;
  border-left: 3px solid rgba(0, 0, 200, 0.25);
}

.wr-input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wr-input {
  height: 28px;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 13px;
  font-family: Rubik, sans-serif;
  text-align: center;
  box-sizing: border-box;
}

.wr-input.wr-right {
  color: darkred;
  border-color: rgba(200, 0, 0, 0.35);
}

.wr-input.wr-left {
  color: darkblue;
  border-color: rgba(0, 0, 200, 0.35);
}

.wr-score-input {
  width: 42px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-family: Rubik, sans-serif;
  text-align: right;
  color: inherit;
  padding: 0;
}

.wr-score-input:focus {
  outline: none;
}

.wr-score-input::-webkit-outer-spin-button,
.wr-score-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.wr-score-input[type=number] {
  -moz-appearance: textfield;
}

.wr-score-pct {
  font-size: 13px;
  margin-left: 2px;
  color: inherit;
}

.wr-mask-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.wr-mask-label {
  font-size: 10px;
  color: #bbb;
  white-space: nowrap;
  flex-shrink: 0;
}

.wr-input.wr-mask {
  color: #555;
  border-color: #ccc;
  border-style: dashed;
  flex: 1;
  width: auto;
}

.wr-select {
  width: 100%;
  height: 28px;
  font-size: 12px;
  font-family: Rubik, sans-serif;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0 4px;
  box-sizing: border-box;
}

.wr-checkbox-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px solid #eee;
  margin-top: 2px;
}

.wr-checkbox-label {
  font-size: 11px;
  color: #555;
  font-family: Rubik, sans-serif;
}

.wr-close-btn {
  display: block;
  width: 100%;
  margin-top: 14px;
}

.word-rec-simple {
  display: grid;
  grid-template-columns: 52px 1fr 1fr;
  grid-column: 1 / span 2;
  grid-row-start: 16;
  column-gap: 0;
  row-gap: 4px;
  justify-self: center;
  border: 1px solid #ddd;
  border-radius: 5px;
  width: 185px;
  margin-top: 5px;
  padding: 6px 8px;
  font-family: Rubik;
  font-size: 12px;
  background: #fafafa;
}

.wrs-col-header {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  padding-bottom: 3px;
  border-bottom: 2px solid;
}

.wrs-right-header {
  color: darkred;
  border-color: rgba(255, 0, 0, 0.4);
}

.wrs-left-header {
  color: darkblue;
  border-color: rgba(0, 0, 255, 0.4);
}

.wrs-row-label {
  font-size: 11px;
  color: #555;
  align-self: center;
}

.wrs-value {
  text-align: center;
  font-size: 12px;
  align-self: center;
  min-height: 16px;
}

.wrs-right-val {
  color: darkred;
}

.wrs-left-val {
  color: darkblue;
}

.WR-modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.25);
}

.WR-modal-content {
  background-color: white;
  margin: 60px auto;
  padding: 22px 24px;
  border: none;
  border-radius: 8px;
  max-width: 360px;
  min-width: 300px;
  font-family: Rubik, sans-serif;
  font-weight: normal;
  font-size: 12px;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.18);
}

table {
  border-width: 0px;
  border-spacing: -2px;
}

th,
td {
  width: 40px;
  font-size: 10px;
  font-family: Rubik;
  font-weight: normal;
  border: solid;
  border-width: 1px;
  text-align: center;
}

.legend-table-container {
  place-self: center;
  background-color: rgba(183, 239, 197, 0.2);
  grid-column-start: 2;
  grid-row-start: 16;
  grid-row-end: span 2;
}

.legend-label {
  cursor: pointer;
  user-select: none;
  transition: opacity 0.15s;
}

.legend-label:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

tr.legend-row-hidden td {
  opacity: 0.35;
}

tr.legend-row-hidden .legend-label {
  text-decoration: line-through;
}

.PHI-sub-grid {
  display: grid;
  width: 220px;
  grid-template-columns: min-content auto;
  grid-gap: 2px;
  border: solid;
  border-color: grey;
  border-radius: 3px;
  border-width: 1px;
  margin: 5px;
  margin-bottom: -1px;
  padding-bottom: 4px;
  padding-top: 1px;
}

.PHI-sub-grid-item {
  padding-left: 5px;
  padding-bottom: 0px;
  padding-top: 0px;
  margin-top: 2px;
  background-color: white;
  font-size: 12px;
  font-family: Rubik;
  font-weight: normal;
  width: 30px;
  align-self: center;
  color: purple;
}

body {
  min-width: 720px;
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}

h1 {
  text-align: center;
  color: black;
  font-family: Rubik;
  font-weight: normal;
  font-size: 28px;
  height: 8px;
  letter-spacing: -2px;
  margin: 4px;
}

a {
  font-family: Roboto;
}

h3 {
  text-align: center;
  color: black;
  font-family: Rubik;
  font-weight: normal;
  font-size: 20px;
  margin: 4px;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(350px, auto));
  grid-template-rows: auto;
  grid-gap: 0px;
  background-color: white;
  color: #444;
  padding: 0px;
  border-style: solid;
  border-width: 1px;
}

.grid-title {
  height: 10px;
  background-color: white;
  color: black;
  border-radius: 0px;
  font-weight: normal;
  font-family: Roboto;
  padding: 0px;
  align-self: center;
  justify-self: center;
}

.grid-item {
  color: black;
  border-radius: 3px;
  align-self: center;
  justify-self: center;
}

.right-position {
  justify-self: right;
  padding-right: 13px;
}

.left-position {
  justify-self: left;
  padding-left: 48px;
}

.button-row-details {
  margin: 0;
  padding: 0;
  interpolate-size: allow-keywords;
}

.button-row-details::details-content {
  overflow: hidden;
  block-size: 0;
  opacity: 0;
  transition:
    block-size 0.35s ease,
    opacity 0.25s ease,
    content-visibility 0.35s allow-discrete;
}

.button-row-details[open]::details-content {
  block-size: auto;
  opacity: 1;
}

.button-row-summary {
  list-style: none;
  cursor: pointer;
  text-align: center;
  font-size: 14px;
  font-family: sans-serif;
  user-select: none;
  padding: 2px 0;
}
.button-row-summary:hover {
  font-weight: 900;
  background-color: rgba(0, 0, 0, 0.05);
}

.button-row-summary::-webkit-details-marker {
  display: none;
}

.button-row-summary::after {
  content: " ▸";
}

.button-row-details[open] > .button-row-summary::after {
  content: " ▾";
}

.button-row-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: #f8f8f8;
  border: 1px solid #e0e0e0;
  padding: 0.5rem;
}

.button-row-R {
  justify-self: end;
  padding-right: 13px;
}

.button-row-L {
  justify-self: start;
  padding-left: 48px;
}

.bar_R {
  cursor: pointer;
  font-family: Helvetica;
  color: darkgray;
  padding-top: 5px;
}

.bar_L {
  cursor: pointer;
  font-family: Helvetica;
  color: darkgray;
  padding-top: 5px;
}

.crosshair {
  cursor: crosshair;
  background-color: white;
}

.button_R {
  display: inline-block;
  cursor: pointer;
  top: 72%;
  width: 20px;
  height: 18px;
  background: white;
  font-size: 12px;
  padding: 0px 0px;
  border: 2px solid #ff0000;
  transition-duration: 0.4s;
  border-radius: 2px;
  border-width: 1px;
}

.invisible {
  opacity: 0;
}

.masking {
  top: 350px;
}

.NR {
  top: 395px;
}

.button_R_two {
  display: inline-block;
  opacity: 0.4;
  cursor: pointer;
  top: 72%;
  width: 20px;
  height: 18px;
  background: white;
  font-size: 12px;
  padding: 0px 0px;
  border: 0.5px solid #ff0000;
  transition-duration: 0.4s;
  border-radius: 2px;
  border-width: 1px;
}

.button_R:hover {
  background-color: #ff0000;
  color: white;
}

.button_R_two:hover {
  background-color: #ff0000;
  color: white;
}

.button_L {
  display: inline-block;
  cursor: pointer;
  top: 72%;
  width: 20px;
  height: 18px;
  background: white;
  font-size: 12px;
  padding: 0px 0px;
  border: 2px solid #0000ff;
  transition-duration: 0.4s;
  border-radius: 2px;
  border-width: 1px;
}

.button_L_two {
  display: inline-block;
  opacity: 0.4;
  cursor: pointer;
  top: 72%;
  width: 20px;
  height: 18px;
  background: white;
  font-size: 12px;
  padding: 0px 0px;
  border: 0.5px solid #0000ff;
  transition-duration: 0.4s;
  border-radius: 2px;
  border-width: 1px;
}

.button_L:hover {
  background-color: #0000ff;
  color: white;
}

.button_L_two:hover {
  background-color: #0000ff;
  color: white;
}

.button_T {
  cursor: pointer;
  height: 26px;
  background: white;
  font-size: 13px;
  font-family: Rubik, sans-serif;
  color: rgb(0, 0, 0, 0.7);
  padding: 0 10px;
  border: 1px solid rgba(0, 0, 0, 0.35);
  transition-duration: 0.8s;
  border-radius: 4px;
  background-color: rgb(0, 0, 0, 0.01);
}

.button_T:hover {
  background-color: #abdaa9;
  color: black;
  font-weight: normal;
}

.button_U {
  cursor: pointer;
  height: 26px;
  background: white;
  font-size: 13px;
  font-family: Rubik, sans-serif;
  padding: 0 10px;
  border: 1.5px solid #333;
  transition-duration: 0.2s;
  border-radius: 4px;
  background-color: rgb(255, 255, 255, 1);
  box-shadow:
    rgba(0, 0, 0, 0.16) 0px 1px 2px,
    rgb(51, 51, 51) 0px 0px 0px 1px;
}
.button_T,
.button_U {
  min-width: 52px;
}

.spacer1 {
  height: 5px;
}

.spacer2 {
  height: 2px;
}

.spacer3 {
  height: 5px;
  margin-bottom: 10px;
}

.button_AU {
  display: inline-block;
  cursor: pointer;
  top: 72%;
  height: 18px;
  width: 110px;
  background: white;
  font-size: 12px;
  margin: 2px;
  padding: 0px 0px;
  border: 1px solid #000000;
  transition-duration: 0.4s;
  border-radius: 2px;
  border-width: 1px;
}

.button_AU:hover {
  background-color: #f5f5f5;
  color: black;
  border: 2px solid #000000;
  box-shadow: 5px 5px 5px;
}

@media print {
  .no-print {
    display: none;
  }

  .button_T,
  .button_U {
    visibility: hidden;
  }
}
.point_size_slider {
  width: 100px;
  height: 20px;
  margin: 0;
}
.point_size_slider_list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  writing-mode: vertical-lr;
  width: 100px;
  option {
    padding: 0;
  }
}
