.index-main-container {
  position: absolute;
  top: 48px;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
}

article {
  padding: 16px;
  width: calc(100% - 32px);
  max-width: 800px;
  height: fit-content;
  max-height: calc(100% - 64px);
  display: flex;
  flex-direction: column;
  margin: 16px auto;
  box-shadow: 0 0 4px 4px rgba(0, 0, 0, 0.5);
}

article header {
  margin: -16px -16px 16px -16px;
  flex-shrink: 0;
  color: #fff;
  padding: 8px;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  font-size: 24px;
  line-height: 24px;
  text-align: center;
  text-shadow:
    -1px 0 0 #fff,
    1px 0 0 #fff;
}

article footer {
  color: #fff;
  flex-shrink: 0;
  padding: 8px;
  background-color: rgba(10, 16, 11, 0.1);
  margin: 24px -16px -16px -16px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

input[type="submit"] {
  color: #fff;
  background-color: var(--btn-background);
  height: 24px;
  margin: 0 0 8px 0;
  border: none;
  cursor: pointer;
  overflow-x: hidden;
  text-overflow: ellipsis;
}

input[type="submit"]:hover {
  background-color: var(--btn-background-hower);
}

input[type="text"],
input[type="password"] {
  width: 100%;
  line-height: 16px;
  font-size: 16px;
  padding: 4px 8px;
  border-radius: 8px;
  border: solid 1px #007a50;
  outline: none;
}

div[role="group"] {
  display: inline-flex;
  width: 100%;
}

div[role="group"] input {
  border-top-right-radius: 0px;
  border-bottom-right-radius: 0px;
  border-right: none;
}

div[role="group"] button {
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
}

div[role="group"] button:active {
  transform: translateX(-2px);
}

label {
  margin: 0 0 16px;
}

label h4 {
  font-size: 20px;
  font-weight: 700;
  padding: 0 8px 4px;
}

hgroup p {
  font-size: 12px;
  color: #646b60;
  position: relative;
  bottom: 4px;
  letter-spacing: -0.5px;
  padding: 0 8px 0;
}

#containerError {
  margin: 8px 16px;
  padding: 4px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.5);
  background-color: #fef;
}

.hidden {
  display: none;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  padding-top: 48px;
  align-items: flex-start;
  z-index: 1000;
}

.reg-success {
  margin: 16px 8px 8px;
  padding: 8px;
  border-radius: 8px;
  box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.5);
}

.red-note {
  color: rgb(136, 56, 53);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.5px;
  position: relative;
  left: 8px;
}

.preload-label {
  width: 100%;
  font-size: 32px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 8px 16px 8px 0;
}

.load-title {
  display: block;
  padding: 4px 0 8px 0;
  font-size: 24px;
  line-height: 24px;
  font-weight: 700;
}

.progress-container {
  width: 100%;
  background-color: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar {
  height: 24px;
  background-color: #007a50;
  width: 0;
  text-align: center;
  line-height: 24px;
  color: white;
  transition: width 0.4s ease;
}

.progress-names {
  width: 100%;
  text-align: center;
  font-weight: 700;
  color: #555;
  padding-top: 4px;
}

.progress-numbers {
  font-size: 12px;
  line-height: 12px;
  width: 100%;
  margin-top: 4px;
}

.progress-numbers span {
  font-weight: 700;
  padding: 0 2px;
}

.load-error {
  width: inherit;
  height: fit-content;
  margin: 8px;
  padding: 8px;
  box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.5);
}

.load-error span {
  display: block;
  border-radius: 4px;
  border: solid 1px #222;
  padding: 4px;
  margin: 4px 0 0;
  background: #fee;
}

.options-container {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
}

.options-container input[type="submit"] {
  display: block;
  width: 100%;
}

.options-item {
  max-height: fit-content;
  height: 24px;
  margin: 4px 0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.options-item span {
  white-space: break-spaces;
  font-size: 16px;
  height: fit-content;
  width: 100%;
  height: 100%;
  flex-grow: 1;
  padding: 1px 2px;
  line-height: 16px;
  border: solid 2px #007a50;
  border-radius: 4px 0 0 4px;
  border-right: none;
}

.options-item button {
  height: 100%;
  width: 80px;
  flex-shrink: 0;
  padding: 0 4px;
  font-size: 16px;
  border-radius: 0 4px 4px 0;
}

.back-btn {
  width: 100%;
  height: 24px;
}

.done {
  background-color: #676;
  cursor: default;
}

.options-item button.red {
  background-color: #901a20;
}

.options-item button.red:hover {
  background-color: #701a20;
}

.error-hint{
  box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.5);
  padding: 2px;
  margin-top: 8px;
  border-radius: 8px;
  text-align: center;
}

.err-btn-back{
  margin-top: 8px;
}
