.action-menu {
  position: absolute;
  top: 20px;
  left: 0;
  width: max-content;
  height: fit-content;
  background-color: var(--base-color);
  border: 1px solid var(--darker-color);
  border-radius: 10px;
  opacity: 0;
  transform: translate(1000px, 0);
  transition: opacity 200ms ease-in-out, top 300ms ease-in-out;
  z-index: 10;
}

.active-action-menu {
  opacity: 1;
  top: 40px;
  transform: translate(0, 0);
}

.more-actions-item {
  width: 100%;
  padding: 10px 10px;
  border-radius: 10px;
}

.more-actions-item:hover {
  background-color: var(--darker-color);
}

.more-actions-item:first-child {
  border-radius: 10px 10px 0 0;
}

.more-actions-item:last-child {
  border-radius: 0 0 10px 10px;
}

.recut-menu {
  position: fixed;
  top: 60%;
  left: 50%;
  background-color: var(--base-color);
  border-radius: 10px;
  width: 40%;
  height: 40%;
  z-index: 2;
  transform: translate(-1000%, -50%);
  padding: 10px;
  display: grid;
  grid-auto-flow: row;
  grid-template-rows: 30px 30px 30px 30px 30px 1fr;
  align-items: end;
  opacity: 0;
  transition: opacity 100ms ease-in-out, top 200ms ease-in-out;
  z-index: 10;
}

.raise-lower-menu,
.set-box-menu,
.go-to-menu {
  position: fixed;
  top: 20%;
  left: 10%;
  background-color: var(--base-color);
  border-radius: 10px;
  width: 40%;
  height: fit-content;
  z-index: 2;
  padding: 10px;
  align-items: end;
  z-index: 10;
  display: none;
  flex-direction: column;
  align-items: flex-start;
}

.recut-menu > span,
.raise-lower-menu > span,
.set-box-menu > span,
.go-to-menu > span {
  margin-bottom: 10px;
}

.recut-menu > div {
  display: flex;
  margin: 10px 0;
  align-items: center;
}

.raise-lower-menu > div,
.set-box-menu > div,
.go-to-menu > div {
  display: flex;
  margin: 5px 0;
  align-items: center;
}

.recut-menu input[type="radio"] {
  margin-right: 5px;
  accent-color: var(--darker-color);
}

.raise-lower-menu input[type="radio"],
.set-box-menu input[type="radio"],
.go-to-menu input[type="radio"] {
  margin: 5px 0;
  margin-right: 5px;
  accent-color: var(--darker-color);
}

.recut-menu button,
.raise-lower-menu button,
.set-box-menu button,
.go-to-menu button {
  justify-self: center;
  cursor: pointer;
}

.recut-menu input[type="number"]::-webkit-outer-spin-button,
.recut-menu input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[name="go-to-type"] {
  cursor: pointer;
}
.recut-menu input[type="number"],
.raise-lower-menu input[type="number"],
.set-box-menu input[type="number"],
.go-to-menu input[type="number"] {
  width: 60px;
  text-align: center;
  background-color: var(--darker-font-color);
  border-radius: 5px;
  border: none;
}
.go-to-menu input[type="number"][name="go-to-sub-input"],
.go-to-menu input[type="number"][name="go-to-time-input"]:first-child {
  margin-left: 0.5em;
}
.recut-menu label[name="recut-range"],
.raise-lower-menu label[name="raise-lower-range"],
.set-box-menu label[name="set-box-range"],
.go-to-menu label[name] {
  margin-left: 10px;
}

.raise-lower-menu .raise-lower-header,
.set-box-menu .set-box-header,
.go-to-menu .go-to-header {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.close-button-raise-lower,
.close-button-set-box,
.close-button-go-to {
  background-color: rgba(0, 0, 0, 0);
  color: white;
  border: none;
  outline: none;
  cursor: pointer;
}

#recut-duration {
  width: 120px;
  color: var(--darker-color);
  font-size: larger;
  border-radius: 5px;
  text-align: center;
  align-self: center;
  justify-self: center;
}

.recut-menu .duration-input {
  background-color: var(--darker-font-color);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 230px;
  height: 30px;
  justify-self: center;
  align-self: center;
  font-size: larger;
  justify-content: space-evenly;
  color: var(--darker-color);
}
.recut-menu input[name="duration"] {
  width: 40px;
  text-align: center;
  background-color: transparent;
  border: none;
  outline: none;
  font-size: large;
  color: var(--darker-color);
}
.recut-menu select {
  width: 40px;
  height: 30px;
  text-align: center;
  background-color: var(--darker-font-color);
  border-radius: 5px;
  border: none;
  color: var(--darker-color);
  outline: none;
}

.duration-input-container {
  align-self: center;
  justify-self: center;
}

.recut-header {
  display: flex;
  justify-content: space-between;
}

.recut-header > button {
  width: 15px;
  height: 15px;
  border-radius: 50px;
  text-align: center;
  box-sizing: content-box;
}
.active-recut {
  opacity: 1;
  transform: translate(-50%, -50%);
  top: 50%;
}

.recut-error {
  color: red;
}

.recut-loader {
  border: 16px solid #f3f3f3; /* Light grey */
  border-top: 16px solid #3498db; /* Blue */
  border-radius: 50%;
  width: 60px;
  height: 60px;
  align-self: end;
  margin: 0;
  justify-self: center;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.delete-menu {
  position: fixed;
  top: 60%;
  left: 50%;
  background-color: var(--base-color);
  border-radius: 10px;
  width: 40%;
  height: 40%;
  z-index: 2;
  transform: translate(-1000%, -50%);
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  opacity: 0;
  transition: opacity 200ms ease-in-out, top 300ms ease-in-out;
  z-index: 3;
}

.close-delete-menu {
  border-radius: 50%;
  width: 15px;
  height: 15px;
  border: none;
  cursor: pointer;
}

.delete-header {
  display: flex;
  justify-content: space-between;
}

.delete-container-up,
.delete-container-down {
  margin: 10px 10px;
  accent-color: var(--darker-color);
}

.delete-button-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

.delete-subtitles-button {
  width: fit-content;
  padding: 5px;
  border-radius: 5px;
  outline: none;
  border: none;
}

.delete-subtitles-button:hover,
.close-delete-menu:hover {
  background-color: rgb(179, 179, 179);
}

.delete-menu-active {
  top: 50%;
  opacity: 1;
  transform: translate(-50%, -50%);
}

.delete-range {
  display: flex;
}
.delete-range label {
  margin-left: 5px;
}

.delete-range-range {
  margin-left: 10px;
}

.delete-range-range input {
  width: 60px;
  border-radius: 8px;
  outline: none;
  border: none;
  text-align: center;
  background-color: var(--darker-font-color);
}

.delete-range-range input::-webkit-outer-spin-button,
.delete-range-range input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.find-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 600px;
  height: 200px;
  background-color: var(--base-color);
  border-radius: 10px;
  border: 1px solid var(--darker-color);
  z-index: 10;
  padding: 10px;
  display: none;
}

.find-menu div {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
}

.find-menu span {
  font-weight: bold;
  font-size: 1.5em;
}

.find-menu span:nth-child(2) {
  cursor: pointer;
}

.find-menu button {
  cursor: pointer;
  border-radius: 5px;
  width: 60px;
}

b.blue {
  background-color: blue;
}
b.blue.red {
  background-color: red;
}

.clone-menu,
.marked-menu {
  position: fixed;
  top: 30%;
  left: 100px;
  background-color: var(--base-color);
  border-radius: 10px;
  width: 40%;
  height: fit-content;
  z-index: 2;
  padding: 10px;
  display: none;
  z-index: 10;
  padding-bottom: 10px;
}

.clone-title,
.marked-title {
  font-weight: bold;
  font-size: 1.5em;
}

.clone-close,
.marked-close {
  cursor: pointer;
}

.clone-header,
.marked-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.clone-content,
.marked-content {
  display: flex;
  flex-direction: column;
}

.clone-menu input {
  accent-color: black;
  margin-bottom: 10px;
  cursor: pointer;
}

.clone-menu label {
  cursor: pointer;
}

.column-container {
  margin-top: 10px;
}

.middle-column-container {
  display: none;
}

.clone-button-container,
.marked-menu-button-container {
  display: flex;
  justify-content: flex-end;
}

.clone-button-container button,
.marked-menu-button-container button {
  border-radius: 8px;
  width: 40px;
  height: 30px;
  border: none;
}

.clone-button-container button:hover,
.marked-menu-button-container button:hover {
  opacity: 0.8;
}

.marked-menu {
  width: fit-content;
  user-select: none;
}

.marked-menu button {
  cursor: pointer;
}

.marked-menu hr {
  margin: 10px 0;
}

.marked-menu p {
  margin-bottom: 10px;
}

.marked-actions img,
.marked-f-container span {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.marked-actions img {
  position: relative;
  top: 4px;
}

.marked-actions span {
  padding: 10px 10px;
}

.marked-align-container span {
  position: relative;
  top: -6px;
}

.marked-actions span:hover {
  background-color: var(--darker-color);
  border-radius: 50%;
}

.alignment-container {
  display: flex;
}

.marked-i {
  font-family: "Times New Roman", Times, serif;
  font-style: italic;
}

.marked-no-i {
  font-family: "Times New Roman", Times, serif;
  font-style: italic;
  text-decoration: line-through;
}

.spellcheck-menu {
  display: none;
  position: fixed;
  top: 30%;
  left: 10%;
  width: 250px;
  height: 50px;
  z-index: 10;
  background-color: var(--darker-color);
  border-radius: 8px;
  align-items: center;
  justify-content: space-evenly;
}

.spellcheck-menu button {
  width: 60px;
  height: 25px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.spellcheck-menu button:hover {
  opacity: 0.7;
}

.spellcheck-menu span {
  cursor: pointer;
}

.referance-materials-info {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 50%;
  height: fit-content;
  min-height: 100px;
  z-index: 5;
  transform: translate(-50%, -50%);
  background-color: var(--darker-color);
  border-radius: 5px;
  padding: 1em;
  display: flex;
  justify-content: space-between;
}

.reference-materials-close {
  cursor: pointer;
}

.referance-materials-info a {
  color: #3498db;
}

button.replace-all-button {
  white-space: nowrap;
  width: fit-content;
  padding: 0 0.5em;
}

.marked-tab-container {
  cursor: pointer;
}

.check-range {
  margin-bottom: 1em;
  margin-left: 0.5em;
}

.check-range input {
  width: 5em;
  margin-right: 1em;
  outline: none;
  border-radius: 5px;
  border: none;
  padding: 1px;
  text-align: center;
}

.external-video-menu {
  position: fixed;
  width: fit-content;
  height: fit-content;
  left: 50%;
  top: 50%;
  transform: translate(-25%, -25%);
  background-color: var(--base-color);
  border-radius: 3px;
  border: 1px solid var(--darker-color);
  z-index: 10;
  padding: 0.5em 0.5em;
  display: none;
}

.external-video-menu span {
  cursor: pointer;
}

.external-video-menu input {
  cursor: pointer;
}
