.popup-blur {
  position: fixed;
  background-color: rgba(0, 0, 0, 0);
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: url("/res/settings_bg.png");
}

.popup {
  display: inline-flex;
  position: fixed;
  z-index: 1001;
  width: 100vw;
  height: 100vh;
  left: -1px;
  top: -1px;
}

.toggle-theme {
  z-index: 1;
  position: fixed;
  right: 0.6rem;
  top: 0.45rem;
}

.popup-close-button {
  z-index: 1;
  position: absolute;
  right: 0.53rem;
  top: 0.52rem;
}

.settings {
  padding: none;
  background-color: var(--primary-color);
  border: var(--border-width) var(--border-type) var(--border-color);
  border-radius: var(--border-radius);
}

.settings-theme-editor {
  padding: 0.4rem;
}

.settings-theme-color-editors {
  display: inline-flex;
  flex-direction: column;
  width: 100%;
}

.color-editor {
  border-bottom: var(--border-width) var(--border-type) var(--border-color);
  border-right: var(--border-width) var(--border-type) var(--border-color);
  border-left: var(--border-width) var(--border-type) var(--border-color);
  display: inline-flex;
  justify-content: space-evenly;
  width: 100%;
}

.settings-theme-editor-title {
  border: var(--border-width) var(--border-type) var(--border-color);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  display: flex;
  justify-content: center;
  width: 100%;
}

.hex-color-input {
  width: 5rem;
  height: 1.55rem;
  border-width: 0px;
  margin-left: auto;
  margin-right: 0.4em;
  box-sizing: border-box;
  border: none;
}

.text-color-input {
  padding: 0px;
  margin: 0px;
  border-width: 0px;
  width: 5rem;
}

.color-preview {
  padding-inline: 0.4rem;
  padding-block: 0.2rem;
}

#color-editor-last {
  border-radius: 0 0 var(--border-radius) 0;
}

#color-editor-last .color-preview {
  border-radius: 0 0 var(--border-radius) 0;
}

.color-editor label {
  padding-inline: 0.4rem;
  padding-block: 0.2rem;
}

.settings-theme-reset {
  border-left: var(--border-width) var(--border-type) var(--border-color);
  border-bottom: var(--border-width) var(--border-type) var(--border-color);
  border-right: var(--border-width) var(--border-type) var(--border-color);
  padding-inline: 0.4rem;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  width: min-content;
  white-space: nowrap;
}

.timezone-editor {
  display: flex;
  flex-direction: column;
  margin: 0.4rem;
  border: var(--border-width) var(--border-type) var(--border-color);
  border-radius: var(--border-radius);
}

.timezone-editor * {
  max-width: calc(100% - 0.8rem);
  margin-block: 0.2rem;
  margin-inline: 0.4rem;
}

.timezone-editor span {
  border-bottom: var(--border-width) var(--border-type) var(--border-color);
}

.timezone-editor select {
  border: var(--border-width) var(--border-type) var(--border-color);
  background-color: var(--secondary-color);
  color: var(--text-color);
  margin-inline: 0.8rem;
  margin-bottom: 0.4rem;
}

.timezone-editor-search {
  display: flex;
  flex-direction: row;
}

.timezone-editor-results-count {
  white-space: nowrap;
  border: none !important;
}

.token-button {
  display: inline-block;
  width: 100%;
  white-space: nowrap;
  color: var(--error-color);
  cursor: copy;
  padding-bottom: 0.2rem;
  padding-inline: 0.4rem;
  box-sizing: border-box;
  text-align: center;
}

.powered-by {
  width: 100%;
  white-space: nowrap;
  color: var(--error-color);
  padding-bottom: 0.2rem;
  padding-inline: 0.4rem;
  box-sizing: border-box;
  text-align: center;
  color: var(--peetext-color);
}

.invite-tools {
  display: flex;
  flex-direction: column;
  margin: 0.4rem;
  padding: 0.4rem;
  border: var(--border-width) var(--border-type) var(--border-color);
  border-radius: var(--border-radius);
}

.invite-tools span {
  margin-bottom: 0.2rem;
}

.invite-tools-content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-bottom: 0.2rem;
}

.invite-tools-title {
  margin-right: 0.4rem;
  white-space: nowrap;
}

.invite-tools-content input {
  margin-right: 0.4rem;
}

.redeem-code {
  display: flex;
  flex-direction: column;
  padding-inline: 1rem;
}

.redeem-code h2 {
  margin-bottom: 0.4rem;
  display: flex;
  justify-content: center;
}

.redeem-code p {
  margin-bottom: 0;
  margin-top: 0;
  display: flex;
  justify-content: center;
}