/**/
/* THIS FILE AUTOGENERATED FROM CSS in saito/css-includes/ / */ 
/**/
.notification-item {
    padding-top: 1rem;
}

.notification-tweet {
  cursor: pointer;
  padding: 1.5rem 0rem;
  position: relative;
}

.notification-item:hover {
  background-color: pink;
}

.notifications-empty {
  margin-left: 1rem;
  display: flex;
  margin-left: 40%;
  margin-top: 4rem;
}

.notifications-empty p {
  font-size: 1.8rem;
}

.notifications-empty span {
  margin-right: 1rem;
  font-size: 1.8rem;
}

.redsquare-notifications .tweet .tweet-header {
  padding: 2rem 0rem;
}

.redsquare-notifications .tweet .tweet-body {
  min-height: 5rem;
  overflow-y: hidden;
}

.saito-chat-notifications{
  position: absolute;
  width: 20%;
  height: 100%;
  display: flex;
  right: 0.5rem;
  top: 0;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
}

.saito-chat-notifications .saito-notification-dot {
  position: relative;
  bottom: unset;
  left: unset;
  height: 3rem;
  min-width: 3rem;
}

.saito-user:hover .saito-notification-dot{
  background-color: var(--saito-background-color);
  color: var(--saito-font-color);
}


#saito-header-menu-toggle .saito-notification-dot {
  bottom: unset;
  top: -20%;
  left: unset;
  right: -10%; 
}/*
link preview
*/

.link-preview {
  /*margin: 1rem 0;*/
  white-space: normal;
}

.link-img {
  width: 100%;
  max-height: 2rem;
  border-top-left-radius: var(--saito-border-radius);
  border-top-right-radius: var(--saito-border-radius);
  border: 1px solid var(--saito-border-color);
  border-bottom: none;
  overflow: hidden;
  display: flex;
}

.link-img.has-picture {
  max-height: 25rem;
}

.link-img img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: cover;
  object-position: top;
}

.link-info {
  padding: 2rem;
  border: 1px solid var(--saito-border-color);
  border-radius: var(--saito-border-radius);
  border-top: none;
  border-top-right-radius: unset;
  border-top-left-radius: unset;
  overflow-wrap: anywhere;
  color: var(--saito-font-color);
  font-size: 1.5rem;
  background-color: color-mix(in srgb, var(--saito-gray-700) 27%, transparent);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.link-title {
  font-size: 1.8rem;
}

.link-url {
  color: var(--saito-font-color-secondary);
  font-style: italic;
  font-size: 1.3rem;
}

.link-preview a {
  white-space: normal;
}
.saito-img-flex {
  /*--image-height: 200px;*/
  display: flex;
  overflow: hidden;
  flex-wrap: wrap;
  margin: -2.5px;
}

.saito-img-flex > * {
  position: relative;
  display: block;
  height: var(--image-height);
  margin: 2.5px;
  flex-grow: 1;
  max-height: var(--multi-max-height);
  border-radius: var(--saito-border-radius);
  overflow: hidden;
  border: 1px solid transparent;
}

.saito-img-flex > * > img {
  height: var(--image-height);
  object-fit: cover;
  max-width: 100%;
  min-width: 100%;
  vertical-align: bottom;
  max-height: var(--multi-max-height);
}

.saito-img-flex.single-img > * {
  margin: auto;
  flex-grow: unset;
}
.saito-img-flex.single-img > * > img {
  object-fit: contain;
}

.saito-img-flex.saito-img-flex-margin {
  margin: 2.5px;
}

@media (max-width: 980px) {
  .saito-img-flex > *,
  .saito-img-flex > * > img {
    height: calc(var(--image-height) * 0.75);
  }
}

@media (max-width: 400px) {
  .saito-img-flex > *,
  .saito-img-flex > * > img {
    height: calc(var(--image-height) * 0.5);
  }
}

/* borrowing heavily from flexbin */
.saito-menu > ul {
  padding: 0;
  list-style-type: none;
}

.saito-menu > ul > li {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  list-style: none;
  cursor: pointer;
  transition: all 0.2s;
  align-items: center;
  font-size: 1.92rem;
  position: relative;
  border-radius: var(--saito-border-radius);
}

.saito-menu > ul > li:active {
  /* newly added state, for use in Sangre3000 -only so far */
  background: var(--background-color-button-active-sidebar);
}

.saito-menu > ul > li:hover p {
  background-color: var(--saito-background-color);
  color: var(--saito-background-color);
}

.saito-menu > ul > li > i {
  font-size: 2.6rem;
  width: 2rem;
  padding-left: 1.2rem;
  margin-bottom: 0.4rem;
}

.saito-menu > ul > li > span {
  font-size: 1.92rem;
  margin-right: 1rem;
}

/* saito header menu */

.saito-header-menu-section {
  padding: /*0.5rem*/ 1rem;
}

.saito-header-menu-section .saito-menu > ul {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 1.5rem;
  row-gap: 2rem;
}

.empty-menu-section + hr {
  display: none;
}

.saito-header-menu-section hr {
  margin: 1.5rem;
  border-style: dashed;
}

.saito-header-menu-section .saito-menu > ul > li {
  display: flex;
  text-align: center;
}
.saito-header-menu-section .saito-menu > ul > li > i {
  padding: 0;
  width: unset !important;
  font-size: 2.75rem;
  margin-bottom: 0.75rem;
}

.saito-header-menu-section .saito-menu > ul > li > i.navigation-symbol {
  font-size: 1.4rem;
  margin-left: 5px;
}

.saito-header-menu-section .saito-menu > ul > li > i + span {
  margin: 0;
  text-overflow: ellipsis;
  max-width: 10rem;
  overflow: hidden;
  white-space: pre-wrap;
  padding: 0.5rem;
}
.saito-header-menu-section .saito-menu > ul > li > span {
  font-size: 1.33rem;
  margin: 0;
}

.saito-menu > ul > li > i + span,
.saito-menu > ul > li > i + span + span {
  margin-left: 3.8rem;
}

.saito-menu i::before {
  -webkit-text-stroke-color: var(--saito-font-color);
  -webkit-text-stroke-width: 1px;
  color: transparent;
}

.saito-menu li:hover i::before {
  -webkit-text-stroke-color: var(--saito-primary-text);
}

@media screen and (max-width: 620px) {
  .saito-header-menu-section .saito-menu > ul {
    column-gap: 1rem;
    padding: 0 0.5rem;
  }

  .saito-header-menu-section .saito-menu > ul > li {
    padding: 0.5rem;
  }

  .saito-header-menu-section .saito-menu > ul > li > i {
    font-size: 2.25rem;
    margin-bottom: 0.25rem;
  }
}

.saito-calendar {
  border-radius: var(--saito-border-radius);
  width: 100%;
  display: grid;
  grid-template-rows: min-content min-content min-content;
  flex-direction: column;
}

.saito-modal-calendar-tabs {
  display: flex;
  margin-bottom: 1rem;
}

.saito-tab-button {
  border: none;
  padding: 1rem;
  font-size: 1.6rem;
  cursor: pointer;
  flex: 1;
  text-align: center;
  margin-right: 1rem;
  border-radius: var(--saito-border-radius);
  border: 1px solid var(--saito-primary);
}

.saito-tab-button.active {
  color: var(--saito-white);
  background-color: var(--saito-primary);
}

.saito-tab-button:hover {
  background-color: var(--saito-primary);
  color: var(--saito-white);
}

.saito-calendar-events-details {
  clear: both;
  font-size: 1.5rem;
  color: var(--saito-font-color);
  font-weight: bold;
  max-height: 50vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.saito-calendar-events-details#tab2 {
  display: none;
}

.saito-calendar-event-actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
}

.saito-calendar-event-actions button {
  margin-bottom: 1rem;
}

.saito-modal.saito-modal-calendar {
  display: grid;
  /* grid-template-columns: 30rem 1fr; */
  width: 100%;
  padding: 4rem;
  grid-gap: 0;
  margin: 0;
}

.saito-modal-calendar-content {
  /*    padding-right: 3rem; */
}

.saito-modal-calendar-title {
  font-size: 5rem;
  margin-bottom: 1rem;
}
.saito-modal-calendar-note {
  font-size: 1.5rem;
  display: block;
}

.saito-calendar-events-date {
  float: right;
  padding: 0.5rem;
  color: #777;
  font-size: 1.5rem;
  font-style: italic;
}

.saito-calendar-event {
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid #ccc;
  width: 95%;
}

.saito-calendar-month {
  display: grid;
  grid-template-columns: min-content max-content min-content;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 0 2rem;
}

.saito-calendar-month i {
  font-size: 1.5rem;
  cursor: pointer;
  padding: 1px 1rem 3px;
}

.saito-calendar-date {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  gap: 1rem;
}

.saito-calendar-date span {
  font-size: 2.3rem;
}

.saito-calendar-weekdays div {
  font-size: 1.6rem;
  text-align: center;
}

.saito-calendar-days,
.saito-calendar-weekdays {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
  grid-gap: 3px;
}
.saito-calendar-day {
  min-height: 3rem;
  font-size: 1.2rem;
  padding: 8px;
  cursor: pointer;
  width: 100%;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.saito-calendar-day-date {
  margin-right: 0.2rem;
}

.saito-calendar-day-icon {
  padding-right: 0.75rem;
  background: red;
}

.saito-calendar-days div:hover {
  background-color: var(--saito-primary);
  color: var(--saito-background-color);
  border-radius: var(--saito-border-radius);
}

.prev-date {
  color: rgba(0, 0, 0, 0.391);
}

.next-date {
  color: #8888;
}

.today {
  background-color: var(--saito-primary);
  color: var(--saito-background-color);
  border-radius: var(--saito-border-radius);
}
.league-overlay {
	background: var(--saito-background-color);
	width: 90vw;
	padding: 2rem 1rem;
	display: flex;
	flex-direction: column;
	grid-gap: 2rem;
	max-height: 95vh;
	max-width: 95rem;
}

.league-overlay > div {
	margin: 0 1rem;
}

.league-overlay-controls {
	display: flex;
	flex-direction: row;
	justify-content: end;
}

.league-overlay-controls i {
	font-size: 2rem;
	border-radius: 0.5rem;
	height: 5rem;
	width: 5rem;
	border: 1px solid;
	line-height: 5rem;
	text-align: center;
	border-color: inherit;
}

.league-overlay-header {
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	row-gap: 1.5rem;
	flex-wrap: wrap;
	height: 8rem;
}

.league-overlay-header-title-box {
	flex: 1;
	min-width: fit-content;
}

.league-page-tab {
	width: 9rem;
	height: 9rem;
	cursor: pointer;
	transition: all 0.2s;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem;
	justify-content: space-evenly;
}

.league-page-tab i.notification {
	position: absolute;
	top: 19%;
	left: 43%;
	font-size: 16px;
	color: var(--saito-red);
	width: unset;
	padding: unset;
	margin: unset;
}

.league-overlay .hidden {
	display: none;
}

.league-page-tab:hover,
.league-page-tab.active-tab {
	border-color: var(--saito-primary);
	color: var(--saito-primary);
}

.league-overlay-header-title-box-title {
	font-size: 4rem;
}

.league-overlay-header-title-box-desc {
	font-size: 2rem;
	text-transform: capitalize;
}

.league-overlay-body {
	display: grid;
	grid-template-columns: minmax(40rem, 3fr) minmax(33rem, 2fr);
	gap: 2rem;
	height: min(45rem, calc(100vh - 160px));
}

.league-error {
	padding: 0rem 1.5rem;
	line-height: 2rem;
}

.league-overlay-content-box {
	border-radius: 0.5rem;
	overflow-y: auto;
	border: 1px solid var(--border-color-general-dividers);
	flex: 1;
}

.league-overlay-body-content {
	display: flex;
	flex-direction: column;
	overflow: auto;
}

.league-overlay-body.admin-mode .league-overlay-body-content {
	grid-column: span 2;
}

.league-overlay-body.admin-mode .league-overlay-controls {
	display: none;
}

.league-overlay-header-image {
	/* Fallback image, should be inserted by JS*/
	background-image: url(/saito/img/dreamscape.png);
	background-size: cover;
	width: 11rem;
	min-width: 11rem;
	height: 7rem;
	margin-right: 1rem;
}

.league-overlay-description {
	position: relative;
	line-height: 2.3rem;
	padding: 1.5rem;
}

.league-overlay-description i,
#admin_contact i {
	position: absolute;
	top: 0;
	right: 0;
}

.league-overlay-description img {
	max-width: 100%;
	margin: 1rem auto;
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	border-radius: var(--saito-border-radius);
}

#admin_details {
	flex: unset;
	min-height: 7.5rem;
}

span.attention {
	text-decoration: underline dashed 1px;
	cursor: pointer;
}

#admin_contact {
	min-width: 10rem;
	height: fit-content;
	min-height: 2rem;
	position: relative;
}

.league-overlay-league-body-games {
	display: flex;
	flex-direction: column;
	row-gap: 1rem;
	flex-grow: 1;
}

.league_recent_game,
.game-manager .saito-table-header,
.game-manager .saito-table-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-gap: 1rem;
	text-align: center;
}

.league_recent_player {
	max-width: 27rem;
	overflow: hidden;
	display: inline-block;
	white-space: nowrap;
	text-overflow: ellipsis;
	vertical-align: bottom;
}

.league_recent_players_list {
	display: flex;
	flex-direction: row;
	column-gap: 1rem;
	margin: auto;
}

.league_recent_players_list_item {
	display: flex;
	flex-direction: row;
}

.league-overlay-games-list .saito-table {
	overflow-y: scroll;
}

.league_recent_player {
	position: relative;
	overflow: visible;
	width: 3.5rem;
	height: 3.5rem;
}

.league_recent_player.winner::before {
	content: '♕';
	display: inline-block;
	font-style: normal;
	font-variant: normal;
	text-rendering: auto;
	position: absolute;
	top: -1.1rem;
	right: -1rem;
	font-size: 30px;
	font-weight: 900;
	color: var(--saito-red);
	text-shadow: 0 0 3px var(--saito-white);
}

.league_recent_game div {
	align-self: center;
}

.league-overlay-leaderboard {
	position: relative;
	min-width: min(40rem, 100%);
	padding: 0px; /* keeps scrolled content from showing above sticky header */
}

.alert_email,
.alert_identifier {
	position: relative;
	box-shadow: 0px 0px 10px var(--color-contrast) !important;
	cursor: pointer;
}

.alert_email .league-leaderboard,
.alert_identifier .league-leaderboard {
	filter: blur(2px);
	pointer-events: none;
}

.alert_email i,
.alert_identifier i {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: var(--saito-secondary);
	font-size: 6.4rem;
}

.admin-widget .saito-table-header,
.admin-widget .saito-table-row {
	grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
	justify-items: center;
	align-items: center;
}

.admin-widget .saito-table-row > div {
	width: 100%;
	text-align: center;
}

.editable_field {
	border: 1px solid var(--saito-border-color);
	cursor: text;
}

.contactAdminWarning {
	font-size: 2rem;
	/*min-height: 30rem;*/
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	flex: 4;
}

.contactAdminWarning > * {
	margin: 1rem;
}

.contactAdminWarning > div:first-child {
	font-size: 5rem;
	justify-content: center;
}

.contactAdminWarning i {
	font-size: 5rem;
	color: var(--saito-secondary);
}

.league-page-tab.mobile-only {
	display: none;
}

.explanation {
	padding: 1rem;
	font-style: italic;
}

.league-settings .saitox-table {
	grid-template-columns: 1fr repeat(3, max-content);
}

.league-settings .saitox-table > div {
	justify-content: center;
}

.league-settings .clickable-element:hover {
	color: var(--saito-font-color-light);
	background: var(--saito-highlight);
}

@media screen and (max-width: 900px) {
	.league-overlay-header {
		height: unset;
	}
	.oversize-load {
		font-size: clamp(3rem, 5vw, 4rem);
	}
	.league-overlay-body {
		display: flex;
		flex-direction: column;
		row-gap: 2rem;
		overflow-y: auto;
		margin: 0 !important;
		padding: 1px 1rem;
		height: calc(90vh - 12rem);
	}
	.league-overlay-body > div {
		/*  overflow-y: unset;*/
	}
	.league-overlay-body .league-overlay-controls {
		justify-content: center;
	}

	.league-overlay-content-box {
		max-height: 40vh;
	}
}

@media screen and (max-width: 600px) {
	.oversize-load {
		font-size: clamp(3rem, 10vw, 4rem);
	}
	.league-page-tab.mobile-only {
		display: flex;
	}
	.mobile-hide {
		display: none;
	}
	.mobile-hide.hidden {
		display: unset;
	}
	.league-overlay > div {
		margin: 0;
	}
	.league-overlay {
		width: 100vw;
		max-height: calc(95 * var(--saito-vh));
	}
	.contactAdminWarning {
		min-height: 0;
	}
	.league-overlay-body {
		height: calc(90vh - 20rem);
		flex-direction: column-reverse;
		row-gap: 1rem;
	}
	.league-overlay-controls {
		justify-content: center;
		max-width: 100%;
	}
	.league-overlay-leaderboard {
		min-height: calc(100% - 8rem);
	}

	.league-overlay-header {
		flex-direction: column;
		position: relative;
	}
	.league-overlay-body-content {
		flex: 1;
	}
	.league-overlay-header-image {
		margin: 0;
		width: 100%;
		background-position: center center;
		height: 10rem;
	}
	.league-overlay-header-title-box {
		position: absolute;
		left: 1rem;
		top: 1.4rem;
		text-shadow:
			1px 1px 2px var(--saito-background-color),
			-1px -1px 2px var(--saito-background-color),
			1px -1px 2px var(--saito-background-color),
			-1px 1px 2px var(--saito-background-color);
		/* testing, haven t seen any of this */
	}
}

.league-rankings .sidebar-title {
	display: flex;
	justify-content: space-between;
	width: 100%;
	padding-right: 1rem;
	color: var(--saito-font-color-heavy);
}

.ranking-overlay {
	max-width: 95vw;
	width: 450px;
	padding: 3rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	font-size: 1.8rem;
	border: 1px solid var(--saito-border-color);
}
/* ----------------------------------------------------------------
buttons -- Primary & Secondary -- difference is color pattern
-----------------------------------------------------------------*/

button,
.saito-button-primary,
.saito-button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
  letter-spacing: 1px;
  font-size: 1.8rem;
  border-radius: var(--saito-border-radius);
  cursor: pointer;
  border: var(--border-thickness-thin) solid var(--saito-primary);
  text-transform: capitalize;
  padding: 0 1rem;
  margin: 0.5rem;
  white-space: nowrap;
  min-width: 18rem;
  min-height: 4.5rem;
  max-width: 100%;
}

button,
.saito-button-primary {
  background: var(--saito-primary);
  color: var(--saito-primary-text);
}

.saito-button-secondary {
  color: var(--saito-primary);
  background: var(--saito-background-color);
}

button:focus,
.saito-button-primary:focus,
.saito-button-secondary:focus {
  outline: none;
}

.saito-button-primary.disabled,
.saito-button-primary[disabled] {
  background: var(---saito-background-color);
  color: var(--saito-font-color-primary);
  border: var(--border-thickness-thin) solid var(--saito-font-color-primary);
  cursor: not-allowed;
}

.saito-button-secondary.disabled,
.saito-button-secondary[disabled] {
  background: var(---saito-background-color);
  color: var(--saito-font-color-light);
  border: var(--border-thickness-thin) solid var(--saito-font-color-light);
  cursor: not-allowed;
}

button:hover,
.saito-button-primary:hover {
  background: var(--saito-primary-dark);
}

.saito-button-secondary:hover {
  background: var(--saito-primary);
  color: var(--saito-primary-text);
}

button.small,
.saito-button-primary.small,
.saito-button-secondary.small {
  padding: 0.75rem 0.7rem;
  font-size: 1.4rem;
  min-width: 4.5rem;
  min-height: 2.5rem;
}

.saito-button-secondary.small {
  color: unset;
  border-color: unset;
}

.saito-button-secondary.small:hover {
  background: var(--saito-highlight-heavy);
  color: unset;
}

button.fat,
.saito-button-primary.fat,
.saito-button-secondary.fat {
  height: 7rem;
  font-size: 2rem;
}

button i {
  margin: 0 0.5rem;
}

/*******************************
 Arrange multiple buttons 
 *******************************/
.saito-button-row {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  gap: 2rem;
  margin-top: 1rem;
}

.saito-button-row .saito-anchor {
  margin-left: 1rem;
  margin-right: auto;
}

.saito-button-row button,
.saito-button-row .saito-button-secondary,
.saito-button-row .saito-button-primary {
  margin: 0;
}

.saito-button-row.auto-size button,
.saito-button-row.auto-size .saito-button-secondary,
.saito-button-row.auto-size .saito-button-primary {
  min-width: unset;
  flex: 1;
  width: 100%;
}

/*******************************
 Text buttons 
 *******************************/
.saito-anchor {
  cursor: pointer;
  transition: color 0.1s;
}

.saito-anchor span,
span.saito-anchor {
  border-bottom: 1px dotted;
  line-height: 2.5rem;
}

.saito-anchor.clicked {
  color: var(--saito-primary-dark);
}

.saito-anchor:hover {
  color: var(--saito-primary);
}

.saito-menu-select-subtle > div,
.saito-menu-select-subtle > li {
  cursor: pointer;
  transition: all 0.2s;
}

.saito-menu-select-subtle > div:not(.disabled-option):hover,
.saito-menu-select-subtle > li:not(.disabled-option):hover {
  background-color: var(--saito-highlight-heavy);
  color: var(--saito-font-color-heavy);
}

.saito-menu-select-heavy > div,
.saito-menu-select-heavy > li {
  cursor: pointer;
  transition: all 0.2s;
}

.saito-menu-select-heavy > div:not(.disabled-option):hover,
.saito-menu-select-heavy > li:not(.disabled-option):hover {
  background-color: var(--saito-primary);
  color: var(--saito-primary-text);
}

.saito-menu-select-heavy > .disabled-option,
.saito-menu-select-subtle > .disabled-option {
  color: var(--saito-gray-600);
  cursor: default;
}

@media (max-width: 600px) {
  .saito-button-secondary {
    min-width: 10rem;
  }

  button,
  .saito-button-primary {
    /* controls main post buttons */
    min-width: 12rem;
  }

  .saito-button-row {
    flex-direction: column;
  }
  .saito-overlay-form > button[type='button'],
  .saito-button-row > button[type='button'] {
    width: 100%;
  }
}
.saito-file-transfer-overlay {
  width: min(45rem, 100vw);
  min-height: 45rem;
  max-height: 90vh;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  /* pseudo overlay */
  max-height: calc(100 * var(--saito-vh));
  max-width: 100vw;
  box-shadow: var(--saito-box-shadow);
  border-radius: var(--saito-border-radius);
  overflow: hidden;
  background-color: var(--saito-background-color);
  border: var(--border-thickness-thin) solid var(--border-color-general-dividers);
  position: fixed;
  /*left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);*/
  left: 0;
  bottom: 0;
  z-index: 50;
}

#cancel-transfer {
  visibility: hidden;
}

.pseudo-overlay-controls {
  position: absolute;
  top: 0;
  right: 0;
  width: 6rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.pseudo-overlay-controls .icon-button {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.pseudo-overlay-controls .icon-button:hover {
  background-color: var(--saito-primary);
  color: var(--saito-background-color);
}

.saito-file-transfer-overlay.minimize {
  padding: 2rem 0 0 0;
  bottom: 0;
  left: 0;
  top: unset;
  height: fit-content;
  min-height: unset;
  transform: unset;
}

.saito-file-transfer-overlay.minimize h1,
.saito-file-transfer-overlay.minimize > div {
  display: none;
}

.saito-file-transfer-overlay.minimize .pseudo-overlay-controls {
  display: flex;
}

.teleporter-file-data {
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.saito-file-transfer-overlay.minimize .teleporter-file-data {
  display: block;
  margin-bottom: 0;
}

.teleporter-status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.5rem;
  margin: 0.5rem;
  min-height: 3rem;
}

.teleporter-status {
  font-size: 1.8rem; /* slightly bigger than default */
}

.teleporter-status .fa-check {
  color: var(--saito-green);
}

.teleporter-status .fa-xmark {
  color: var(--saito-red);
  font-size: 2.8rem;
}

.fixed-width {
  font-family: monospace;
}

.saito-button-primary#download-transfer {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/**** Temporary for developing file transfer in chat ***/
.saito-file-transfer {
  border-radius: var(--saito-border-radius);
  position: relative;
  border: 1px dashed;
  display: grid;
  align-items: center;
  padding: 1rem;
  grid-template-columns: min-content 1fr;
  grid-template-rows: 1fr 1fr;
  row-gap: 1rem;
  column-gap: 2rem;
  justify-items: flex-end;
  overflow: hidden;
  background-color: var(--saito-gray-600);
  color: var(--saito-white);
}

.saito-file-transfer.complete {
  border: 1px solid;
}

.saito-file-transfer.received {
  grid-template-rows: unset;
}

.file-transfer-progress {
  position: absolute;
  left: 1px;
  top: 1px;
  height: calc(100% - 2px);
  width: 0%;
  background-color: var(--saito-primary);
}

.saito-file-transfer.received .file-transfer-progress {
  background-color: var(--saito-secondary);
}

.saito-file-transfer i {
  font-size: 4rem;
  grid-row: 1 / span 2;
  z-index: 1;
}

.saito-file-transfer .file-name,
.saito-file-transfer .file-size {
  z-index: 1;
}

.saito-file-uploader.needs-file {
  text-decoration: underline;
  cursor: pointer;
  font-weight: bold;
}

.hideme,
.saito-button-primary.hideme#download-transfer {
  display: none;
}
#saito-alert-shim {
  z-index: 2000;
  background-color: var(--background-color-shim-dark);
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
}

#saito-alert-box {
  width: 75vw;
  max-width: 70rem;
  transition: all 333ms ease-in-out;
  background: var(--saito-background-color);
  margin: 1rem auto;
  position: relative;
  top: 0;
  border: var(--border-thickness-thin) solid var(--saito-border-color);
  border-radius: 0.5rem;
  padding: 1.5rem;
  color: var(--saito-font-color);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  box-shadow: var(--saito-box-shadow-high);
}

.saito-alert-message {
  font-family: 'visuelt-light', 'Microsoft Yahei', 'Hiragino Sans GB';
  font-size: 2rem;
  text-align: center;
  align-self: center;
  display: block;
  margin: 1rem 0;
  overflow-wrap: break-word;
  line-height: 3rem;
  width: -webkit-fill-available;
}
.saito-overlay-backdrop {
  position: fixed !important;
  display: none;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--background-color-shim-normal);
  z-index: 100;
}

.saito-overlay-backdrop ~ .saito-overlay-backdrop {
  background-color: var(--background-color-shim-light);
}

.saito-overlay {
  position: fixed;
  display: inline-block;
  z-index: 1000;
  height: min-content;
  width: min-content;
  /*min-height: 10%; Why? */
  max-height: calc(100 * var(--saito-vh));
  max-width: 100vw;
  border-radius: var(--saito-border-radius);
  background-color: var(--saito-background-color); /* Dont know why had to be added manually*/
}

.saito-overlay > div:last-child,
.saito-overlay > form {
  box-shadow: var(--saito-box-shadow);
  border-radius: var(--saito-border-radius);
  border: var(--border-thickness) solid var(--border-color-general-dividers);
}

.center-overlay {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0 auto;
}

.saito-overlay-closebox {
  position: absolute;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  z-index: 100;
  top: -1.5rem;
  right: -1.5rem;
  background-color: var(--font-color-icon-close); /* testing */
  transition: all 0.3s;
  display: none;
}

.saito-overlay > .saito-overlay-closebox {
  box-shadow: unset;
}

.maximized-overlay .saito-overlay-closebox {
  top: 1rem;
  right: 1rem;
}

/* Close icon */

.saito-overlay-closebox-btn {
  cursor: pointer;
  display: block;
  height: 3rem;
  width: 3rem;
  color: var(--saito-primary);
  background-color: var(--saito-primary-text);
  font-size: 3rem;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.saito-overlay-closebox:hover {
  transform: rotate(90deg);
}

.saito-app-overlay .saito-app-body .saito-app-upload {
  border: 3px dotted;
  width: 100%;
  margin: auto;
  text-align: center;
  font-size: 2.2rem;
  padding: 15rem 0rem;
}

.saito-app-overlay .saito-app-body .saito-app-upload {
  border: 3px dotted;
  width: 100%;
  margin: auto;
}

.saito-overlay-form {
  width: min(60rem, 95vw);
  padding: 2rem;
  background-color: var(--saito-background-color);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.saito-overlay-form .token-dropdown {
  color: var(--saito-font-color);
  background: var(--saito-background-color);
}

.saito-overlay-form-header {
  height: 6rem;
  background: var(--saito-highlight-heavy);
  color: var(--saito-font-color-heavy);
  width: 100%;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.saito-overlay-form-header-title {
  height: 6rem;
  color: inherit;
  padding: 1.6rem;
  font-size: 2.5rem;
  text-transform: uppercase;
  white-space: nowrap;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.saito-overlay-form-header-title.loading {
  line-height: 6rem;
  text-align: left;
  padding-top: 0rem;
}

.saito-overlay-form-input {
  margin: 0 3px;
}

.saito-overlay-form-text {
  font-size: 2rem;
  line-height: 3rem;
  padding: 0 1rem;
}

.saito-overlay-subform-inputs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.saito-overlay-form-inputs > input[type='text'] {
  height: 6rem;
  font-size: 2.3rem;
  margin-top: 1.25rem;
}

.saito-overlay-form > input[type='text'],
.saito-overlay-form-input[type='text'],
.saito-overlay-form > input[type='password'] {
  height: 6rem;
  font-size: 2.3rem;
}

.saito-overlay-subform {
  display: grid;
  grid-template-columns: min-content 1fr;
  gap: 1rem;
  border: var(--border-thickness-thin) dashed var(--border-color-general-dividers);
  border-radius: var(--saito-border-radius);
  padding: 1.4rem;
}

.saito-overlay-subform.centerme {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.saito-overlay-subform-text {
  font-size: 2rem;
  flex-grow: 1;
  line-height: 3rem;
}

.saito-overlay-form textarea,
.saito-overlay-form input {
  border: var(--border-thickness-thin) solid var(--border-color-general-dividers);
}

.saito-overlay-form textarea {
  font-size: 2.2rem;
  height: 13rem;
}

.module-settings-overlay {
  min-width: min(800px, 95vw);
  min-height: min(400px, 90vh);
  max-width: 95vw;
  max-height: 95vh;
  padding: 2rem;
  background: var(--saito-background-color);
  border-radius: var(--saito-border-radius);
  border: var(--border-thickness-medium) solid var(--saito-primary);
  display: flex;
  flex-direction: column;
}

.module-settings-overlay .saito-module-settings::-webkit-scrollbar {
  display: none;
}

.module-settings-overlay .saito-module-settings {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
  overflow-y: auto;
  padding: unset;
}

@media screen and (max-width: 600px) {
  .maximized-overlay .saito-overlay-closebox {
    top: 0.5rem;
    right: 0.5rem;
  }

  .saito-overlay-subform > div:first-child {
    display: none;
  }

  .saito-overlay-subform-inputs {
    grid-column: span 2;
  }

  .module-settings-overlay {
    padding: 1rem;
  }

  .bottom-mobile-overlay.center-overlay {
    top: unset;
    bottom: 0;
    transform: translateX(-50%);
  }
}
.gif-icon {
  /*background-image: url('/saito/img/GIF.svg');*/
  /*height: 37px;
  width: 37px;
  line-height: 3.6rem;*/
}

.gif-icon svg {
  max-width: 2.8rem;
  max-height: 2.8rem;
  fill: var(--saito-primary);
}

.gif-icon:hover svg {
  fill: var(--saito-white);
}

.resize-icon {
  position: absolute;
  left: calc(var(--border-radius-offset) - 0.3rem);
  top: calc(var(--border-radius-offset) - 0.4rem);
  width: 0.8rem;
  height: 1.3rem;
  cursor: nw-resize;
  transform: rotate(45deg);
  border-right: 1px solid var(--border-color-general-dividers);
  z-index: 20;
}

.resize-icon::after {
  content: '';
  cursor: nw-resize;
  border-right: 1px solid var(--border-color-general-dividers);
  z-index: 21;
  position: absolute;
  top: -0.7rem;
  width: 0.1rem;
  height: 2.5rem;
  padding: 0.6rem;
}

.resize-icon::before {
  content: '';
  cursor: nw-resize;
  z-index: 21;
  position: absolute;
  top: -0.8rem;
  left: 0.6rem;
  height: 3rem;
  padding: 0.75rem;
}

.resize-icon.horizontal {
  right: 0rem;
  top: 50%;
  left: auto;
  transform: translate(50%, -50%) rotate(0deg);
  background-color: var(--border-color-general-dividers);
  width: 1.2rem;
  height: 5rem;
  z-index: 2;
  cursor: ew-resize;
  border-radius: 0.25rem;
}

.resize-icon.horizontal:before {
  content: '';
  position: absolute;
  right: 7px;
  left: 15%;
  top: 45%;
  transform: rotate(90deg);
  font-size: 1.5rem;
  color: white;
  z-index: 21;
  height: 0rem;
  padding: 0.3rem;
  border-right: 2px solid var(--saito-white);
  cursor: ew-resize;
}

.resize-icon.horizontal:after {
  content: '';
  position: absolute;
  right: 0px;
  top: 35%;
  left: 22%;
  transform: rotate(90deg);
  font-size: 1.5rem;
  z-index: 21;
  height: 0rem;
  padding: 0.3rem;
  border-right: 2px solid var(--saito-white);
  cursor: ew-resize;
}

@media screen and (max-width: 660px) {
  .gif-icon svg {
    height: 2.6rem;
    width: 2.6rem;
  }
}
/* ----------------------------------------------------------------
 Saito Base: CSS default settings, layouts
-----------------------------------------------------------------*/

/* @custom-media --breakpoint-xl (max-width: 1920px);
@custom-media --breakpoint-lg (max-width: 1280px);
@custom-media --breakpoint-md (max-width: 768px);
@custom-media --breakpoint-md (max-width: 590px);
@custom-media --breakpoint-sm (max-width: 375px); */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  font-size: 10px;
}

body {
  line-height: 1.2;
  color: var(--saito-font-color);
  font-family: var(--saito-font);
  margin: 0;
  font-size: 1.6rem;
  font-weight: 400;
  position: fixed; /* why relative? */
  height: calc(var(--saito-vh) * 100);
  width: 100vw;
  max-height: -webkit-fill-available;
  max-width: -webkit-fill-available;
  overflow: hidden;
  background-color: var(--saito-background-color);
}

/* ----------------------------------------------------------------
 Link
-----------------------------------------------------------------*/

a {
  text-decoration: none;
  cursor: pointer;
  /*color: rgb(29, 155, 240);*/
  color: var(--saito-primary);
}

a:hover {
  color: var(--saito-primary);
  opacity: 0.8;
}

.saito-text-link {
  font-weight: bold;
  cursor: pointer;
  color: var(--saito-primary);
}

/* ----------------------------------------------------------------
  Headings
-----------------------------------------------------------------*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: normal;
  margin-bottom: 1rem;
  font-family: var(--saito-font);
  line-height: 1.2em; /* make sure relative to the different sizes! */
  cursor: default; /* We don't want the text cursor on headers */
}

h1 {
  font-size: var(--font-size-h1);
}

h2 {
  font-size: var(--font-size-h2);
}

h3 {
  font-size: var(--font-size-h3);
}

h4 {
  font-size: var(--font-size-h4);
}

h5 {
  font-size: var(--font-size-h5);
}

h6 {
  font-size: var(--font-size-h6);
}

textarea {
  resize: none;
}

iframe {
  border: none;
}

/* ----------------------------------------------------------------
 Paragraph
-----------------------------------------------------------------*/

p.large {
  font-size: var(--font-size-large);
  font-weight: bold;
}

p,
p.middle {
  font-size: var(--font-size-medium);
  overflow: auto;
  text-indent: 0;
}

p::-webkit-scrollbar {
  display: none;
}

p.small {
  font-size: var(--font-size-tiny);
}

li p {
  text-indent: 0;
  display: inline;
}

blockquote {
  border-color: var(--saito-primary);
  border-width: 0 0 0 2px;
  border-style: solid;
  padding: 0 0 0 0.5rem;
}

/* ----------------------------------------------------------------
QR Code
-----------------------------------------------------------------*/

@media screen and (max-width: 600px) {
}

/* ----------------------------------------------------------------
Password Font
-----------------------------------------------------------------*/

.saito-password {
  font-family: 'p-word';
}

/* ----------------------------------------------------------------
Divider
-----------------------------------------------------------------*/

hr {
  color: var(--saito-font-color-light);
  margin: 2.5rem;
}

/*-----------------------------------------------------------------
Scrollbars
-----------------------------------------------------------------*/

::-webkit-scrollbar {
  width: 0.6rem;
}

::-webkit-scrollbar-track {
  background: transparent;
  /*
  background: linear-gradient(
    90deg,
    transparent 0 45%,
    var(--saito-border-color) 45% 55%,
    transparent 55% 100%
  );
  */
}

::-webkit-scrollbar-thumb {
  background-color: var(--saito-primary);
  border-radius: 1rem;
}

/* utils */

.left-align {
  text-align: left;
  justify-content: flex-start !important;
}

.center-align {
  text-align: center;
  justify-content: center;
  align-items: center !important;
}

.right-align {
  text-align: right;
  justify-content: flex-end;
}

.clickable-element {
  cursor: pointer;
}

.saito-deemphasize {
  opacity: 0.66;
}

.saito-address {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: inline-block /*!important*/;
  min-width: 0px;
  width: auto;
  /* Why did that need to be less than 100%?? */
  max-width: 100%;
  cursor: pointer;
}

.tip:hover .tiptext {
  visibility: visible;
}

.tiptext {
  visibility: hidden;
  position: absolute;
  box-sizing: content-box !important;
  z-index: 10;
  width: 90%;
  min-width: 300px;
  max-width: 750px;
  padding: 1em;
  border-left: 2px solid var(--saito-primary);
  font-style: italic;
  font-size: smaller;
  border-radius: 0 0.5rem 0.5rem 0;
  line-height: 2rem;
}

.hidden {
  display: none;
}

#site-message-wrapper {
  border: var(--border-thickness-medium) solid var(--saito-primary);
  min-width: 500px;
  max-width: 100vw;
  padding: 3rem;
  font-size: var(--font-size-large);
  background: var(--saito-primary);
  color: var(--saito-primary-text);
  position: fixed;
  bottom: min(5rem, 10vh);
  left: min(5rem, 5vw);
  z-index: 200;
  border-radius: var(--saito-border-radius);
  user-select: none;
  cursor: default;
}

#site-message-wrapper.message-clickable {
  cursor: pointer;
}

/* ----------------------------------------------------------------
 Scrollbars 
----------------------------------------------------------------- */

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.hide-scrollbar {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
  overflow-y: auto;
  overflow-x: auto;
}

/* ----------------------------------------------------------------
Font family
-----------------------------------------------------------------*/
.monospace {
  font-family: monospace;
}

/* ----------------------------------------------------------------
Media Queries
-----------------------------------------------------------------*/

@media screen and (max-width: 768px) {
  body {
    font-size: 1.45rem;
  }
  h1 {
    font-size: 4rem;
  }
  h2 {
    font-size: 3.5rem;
  }
  h3 {
    font-size: 3rem;
  }
  h4 {
    font-size: 2.5rem;
  }
  h5 {
    font-size: 2rem;
  }
  h6 {
    font-size: 1.5rem;
  }
  p.large {
    font-size: 1.8rem;
  }
  p,
  p.middle {
    font-size: 1.4rem;
  }
  p.small {
    font-size: 1.1rem;
  }
  #site-message-wrapper {
    width: 100vw;
    min-width: unset;
    padding: 2rem;
    bottom: 0;
    left: 0;
  }
}

@media screen and (max-width: 375px) {
  body {
    font-size: 1.4rem;
  }
}
.saito-scheduler {
  min-width: 50rem;
  background-color: #fff;
  border-radius: 1rem;
  padding: 3rem;
}

input#schedule-datetime-input,
.saito-scheduler-natural-time {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--border-color-general-dividers);
  border-radius: 0;
  height: 3rem;
  line-height: 3rem;
}

/*  Responsive */

@media screen and (max-width: 503px) {
  .saito-scheduler {
    min-width: auto;
  }
}

@media screen and (max-width: 396px) {
}
/*-------------------- CLASSIC DARK THEME -------------------- */

html[data-theme='dark'] {
  /*BASE COLOR SECTION*/
  --saito-background-color: #1c1c23;
  --saito-header-background: var(--saito-background-color);

  /*FONTS SECTION*/
  --saito-font-color: #ddd;
  --saito-font-color-heavy: var(--saito-white);
  --saito-font-color-light: #aaa;
  --saito-font-color-secondary: var(--saito-gray-500);
  --saito-font-color-inverse: var(--saito-gray-850);

  /*TINTS COLOR SECTION*/
  --saito-highlight: #ccc1;
  --saito-highlight-heavy: #8885;

  /* BORDER COLORS */
  --saito-border-color: var(--saito-border-color-dark);
  --border-color-general-dividers: var(--saito-border-color);

}
/*-------------------- RAVEN THEME -------------------- */

html[data-theme='raven'] {
  /*BASE COLOR SECTION*/
  --saito-background-color: #14212d;
  --saito-header-background: var(--saito-background-color);

  --saito-primary: #358ccf;
  --saito-primary-dark: #3071a6;
  --saito-secondary: #c535cf;

  /*FONTS SECTION*/
  --saito-font-color: #ddd;
  --saito-font-color-heavy: var(--saito-white);
  --saito-font-color-light: #aaa;
  --saito-font-color-secondary: var(--saito-gray-500);
  --saito-font-color-inverse: var(--saito-gray-850);

  /*TINTS COLOR SECTION*/
  --saito-highlight: #ccc1;
  --saito-highlight-heavy: #7775;

  /* BORDER COLORS */
  --saito-border-color: var(--saito-border-color-dark);
  --border-color-general-dividers: var(--saito-border-color);
}
/*  alert  */

.saito-notification-dot {
  min-width: 2rem;
  min-height: 2rem;
  padding: 1px 3px;
  border-radius: 0.5rem;
  background-color: var(--saito-primary);
  color: var(--saito-white);
  position: absolute;
  left: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  line-height: 1.8rem;
  z-index: 2;
}

.saito-header-appspace-option .saito-notification-dot {
  left: 60%;
  bottom: unset;
  top: 5%;
}

.online-status-indicator:after {
  position: absolute;
  display: none;
  content: "";
  border-radius: 100%;
  width: 1.5rem;
  height: 1.5rem;
  background-color: var(--saito-primary);
}

.online .online-status-indicator:after, .stun .online-status-indicator:after {
  display: block;
  top: 2.9rem;
  left: 2.75rem;
  border: 2px solid var(--saito-background-color);
}

.stun .online-status-indicator{
}

.online-status-indicator i {
  display: none;
  position: absolute;
}

.stun .online-status-indicator i {
  display: block;
  top: 2.9rem;
  left: 2.75rem;
  font-size: 8px;
}

.busy .online-status-indicator:after {
  background-color: var(--saito-font-color);
}


.fileshare-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  text-align: center;
}
/***
 * 
 * We have some name space confusion ....
 * TODO: FIX !!!!
 * 
 * this css looks like it is for game invites in Arcade and the sidebar in RedSquare
 * 
 * maybe should change to saito-game...
 * 
 */

.saito-module {
  display: flex;
  flex-wrap: wrap;
  row-gap: 1rem;
  flex-direction: row;
  justify-content: space-between;
  position: relative;
  width: 100%;
  cursor: pointer;
  padding: 1rem;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-color: color-mix(in srgb, var(--saito-gray-700) 27%, transparent);
  background-blend-mode: soft-light;
  border-radius: var(--saito-border-radius);
  overflow: hidden;
}

.saito-module-titlebar {
  padding: 0.5rem;
  max-width: 18rem;
  min-width: 12rem;
  width: 18rem;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  overflow-wrap: break-word;
  opacity: 0.8;
  background: #000a;
  border-radius: var(--saito-border-radius);
}

.saito-module-titlebar > div {
  margin: 0.25rem;
}

.saito-module-titlebar-title {
  color: var(--saito-white);
  font-size: 2rem;
}

.saito-module-titlebar-details {
  font-size: 1.4rem;
  text-transform: uppercase;
  color: var(--saito-white);
}

.saito-game-details {
  display: flex;
  flex-direction: row;
  column-gap: 1rem;
  align-items: center;
  flex-grow: 1;
  justify-content: flex-end;
}

.saito-module-identicon {
  border: none;
}

/*
    Small tweaks for when the saito-module is crammed into a sidebar
*/
.saito-sidebar .saito-module {
  padding: 0.5rem;
}

.saito-sidebar .saito-module-titlebar {
  width: unset;
}

.saito-sidebar .saito-module-titlebar-details {
  font-size: 1.2rem;
}

/***
 * 
 * Here is fresh code for actual saito-module stuff, a new (19 Jan 2024) UI component
 * for handling generic module stuff. It should display basic metadata about the module
 * and have selectable options that we would save in the app.options[module] section.
 * The basic idea is to have a way to change module settings from outside of the module!
 * 
 * Maybe also useful when we resurrect the appstore
 * 
 */

.saito-module-overlay {
  display: flex;
  flex-direction: column;
  row-gap: 1rem;
  width: min(90vw, 80rem);
  max-height: 70vh;
  overflow: auto;
  background: var(--saito-background-color);
  border-radius: var(--saito-border-radius);
  border: var(--border-thickness-thin) solid var(--border-color-general-dividers);
  padding: 2rem;
  user-select: none;
}

.saito-module-header {
  background: var(--dreamscape); /* testing not sure where*/
  background-size: cover;
  background-position: center;
  padding: 0.5rem;
}

.saito-module-header .saito-module-titlebar {
  max-width: 100%;
  width: 100%;
  padding: 0.5rem 1rem;
}

.saito-module-overlay .saito-module-titlebar {
  background: var(--saito-header-background);
  color: var(--saito-white);
}

.saito-module-details {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 1rem;
  margin: 1rem;
  padding: 2rem;
  border-radius: 0.5rem;
  border: var(--border-thickness-thin) solid var(--border-color-general-dividers);
}

.saito-module-overlay > h4 {
  margin-left: 1rem;
}

.saito-module-settings {
  padding: 1rem;
}

fieldset.saito-grid {
  padding: 2rem;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 2rem;
  align-items: center;
  margin: 1rem 0;
  border: var(--border-thickness-thin) solid var(--border-color-general-dividers);
  border-radius: 0.5rem;
  position: relative;
}

fieldset.saito-grid > fieldset.saito-grid {
  grid-column-start: 1;
  grid-column-end: span 2;
}

fieldset.saito-grid .note {
  margin-left: 5px;
}

.saito-module-settings .note {
  font-style: italic;
}

.saito-grid input,
.saito-grid label {
  cursor: pointer;
}

.saito-grid-extra-button {
  position: absolute;
  right: 1rem;
  bottom: 0.25rem;
  min-height: min(70%, 40px);
  max-width: 50%;
}

.saito-grid i {
  margin: 0 0.5rem;
  font-size: 1.8rem;
  cursor: pointer;
}

.settings-link,
.settings-link label {
  cursor: pointer;
}

.settings-link:hover label {
  text-decoration: underline;
  color: var(--font-color-hover-module-menu);
}

.flex-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
}
/* Pulsing saito loader */

.saito-loader {
  /* border struggles with overlay 8?
/*  border: 1px solid aqua; */
  position: relative;
  width: 100%;
}

.saito-loader::after {
  background-color: var(--saito-primary);
  background-image: url(/saito/img/saito-loader.svg);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  animation-duration: 2s;
  animation-name: loader-pulse;
  animation-iteration-count: infinite;
  position: relative;

  width: 70px;
  height: 70px;
  left: 50%;
  transform: translate(-50%, -50%);
  content: '';
  display: block;
  transform-origin: 50%, 50%;
}

@keyframes loader-pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.2);
    border-radius: 50%;
    background-size: 0px;
  }

  40% {
    transform: translate(-50%, -50%) scale(1);
    background-size: 50px;
    border-radius: 5%;
  }

  60% {
    transform: translate(-50%, -50%) scale(1);
    background-size: 50px;
    border-radius: 5%;
  }

  100% {
    transform: translate(-50%, -50%) scale(0.2);
    border-radius: 50%;
    background-size: 0px;
  }
}

.saito-loader-container {
  transition:
    opacity 0.5s,
    margin 0.5s;
}

.saito-loader-container.blocker {
  height: 100vh;
  width: 100vw;
  position: fixed;
  z-index: 150;
  display: flex;
  justify-content: center;
  align-items: center;
  background: none;
}

.saito-loader-container.non-blocker {
  z-index: 20;
  margin-top: 7rem;
}

.saito-loader-container.disappear {
  opacity: 0;
  margin-top: 0;
}

/* Spinning loader */

.game-loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-loader-spinner {
  margin: auto;
  border: 16px solid var(--saito-primary);
  border-top: 16px solid var(--saito-white);

  border-radius: 50%;
  animation: spin 1.5s linear infinite;
  width: 5em;
  height: 5em;
  margin-top: 3rem;
}

.observer-loader-spinner {
  margin: auto;
  border: 6px solid var(--saito-primary);
  border-top: 6px solid var(--saito-white);

  border-radius: 50%;
  animation: spin 1.5s linear infinite;
  width: 3rem;
  height: 3rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(720deg);
  }
}
.saito-tooltip {
  display: inline-block;
  position: relative;
}

.saito-tooltip .saito-tooltip-icon {
  margin: 0rem 1rem;
  color: var(--saito-white);
  cursor: pointer;
  font-size: 2rem;
}

.saito-tooltip .saito-tooltip-info {
  border-radius: 1rem;
  position: fixed;
  background: var(--saito-white);
  padding: 1rem;
  box-shadow: (--saito-box-shadow);
  z-index: 2;
  color: var(--saito-font-color-heavy);
  font-weight: 400;
  min-width: 20rem;
}

.tooltip-info-hide {
  display: none;
}
.saito-container {
  width: 100vw;
  height: calc(100% - var(--saito-header-height));
  display: grid;
  grid-template-columns: 25rem 62rem 30rem;
  padding: 0 max(1rem, calc((100vw - var(--saito-width)) / 2));
  column-gap: 2rem;
  z-index: 0;
  margin: 0;
  position: absolute;
  top: var(--saito-header-height);
  overflow-y: auto;
  overflow-x: hidden;
}

.saito-main {
  width: 100%;
  position: relative;
}

.saito-sidebar.left {
  position: sticky;
  height: calc(100 * var(--saito-vh) - var(--saito-header-height));
  top: 0;
  padding: 1.5rem 1rem 1rem 0.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.saito-sidebar.right {
  padding: 1.5rem 1rem;
  position: relative;
  top: 0;
  min-width: 30rem;
  height: max-content;
  margin-left: 1rem;
}

.saito-sidebar h5 {
  margin: 0;
}

.saito-sidebar-element {
  /* side bar controls*/
  padding: var(--border-padding-normal);
  border-radius: var(--saito-border-radius);
}

.sidebar-header {
  display: flex;
  align-items: center;
  font-size: 2rem;
  justify-content: space-between;
  min-height: 40px;
  color: var(--saito-font-color-heavy);
  text-transform: uppercase;
  font-family: var(--saito-font);
}

.sidebar-header > div {
  width: fit-content;
  cursor: pointer;
  transition: transform 0.4s;
}

.sidebar-header > div.sidebar-title {
  cursor: default;
}

/* This should be handled module by module...
@media screen and (max-width: 900px) {
  .saito-container {
    padding: 0;
    grid-template-columns: 1fr;
  }

  .saito-main {
    min-width: 0;
    width: 100%;
    max-width: 100vw;
    margin-left: 0rem !important;
    margin-right: 0rem;
  }
}

*/
.mixin_crypto_overlay {
  padding: 2rem;
  background-color: var(--saito-white);
  color: black;
  line-height: 1.6em;
  font-size: 1.5em;
  width: 90rem;
}

.mixin_crypto_title {
  margin: 0.5em 0;
  font-size: 2em;
  font-weight: bold;
  margin-top: 0rem;
}

.mixin_crypto_warning {
  margin-top: 0px;
  margin-bottom: 20px;
}

.mixin_risk_acknowledge {
  max-width: 200px;
  text-align: center;
  margin-right: auto;
}

.input-cont {
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.input-cont p {
  color: #fff;
}

.input-heading {
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 18px;
}

#copy-deposit-add {
  position: absolute;
  top: 54%;
  right: 4%;
  color: #444;
  cursor: pointer;
}

.copy-check::before {
  content: '\f00c';
}

.info-cont {
  display: flex;
  justify-content: space-between;
}

.info-item {
}

.info-item-title {
  font-size: 13px;
  font-weight: 700;
}

.info-item-detail {
  font-size: 12px;
}

.note {
  margin-top: 30px;
  font-size: 13px;
}

.add-input-box {
  width: 100%;
}

#withdrawl-confirm-cont,
#withdrawl-sent-cont {
  display: none;
}

.decision-cont a {
  color: #fff;
  transition: all 0.1s ease-in-out;
}

.decision-cont a:hover {
  color: #333;
}

.withdraw-identicon-container {
  display: flex;
  align-items: center;
}

.withdraw-identicon-container .saito-identicon {
  margin: 0.5rem;
}

.mixin-withdraw-token-wrapper {
  margin-bottom: 2rem;
}

.mixin-withdraw-token-wrapper p {
  color: #fff;
}

.mixin-withdraw-input {
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 20px;
}

.no-margin {
  margin: 0px;
}

.max-amount-error {
  display: none;
  color: #5d1919;
}

.input-heading {
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 18px;
}

.info-cont {
  display: flex;
  justify-content: space-between;
}

.info-item {
}

.info-item-title {
  font-size: 13px;
  font-weight: 700;
}

.info-item-detail {
  font-size: 12px;
}

.note {
  margin-top: 30px;
  font-size: 12px;
}

.note.withdrawl {
  font-size: 15px;
  margin-top: 25px;
  margin-bottom: 30px;
}

.history-tx-link {
  display: flex;
  flex-direction: row;
  align-items: baseline;
}

.history-tx-id {
  padding: 1.5rem 0rem;
  display: block;
  min-width: 25rem;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hidden {
  display: none /*!important*/;
}

/* pagination */

.pagination-container {
  display: flex;
  gap: 2rem;
  width: fit-content;
  margin: auto;
  padding: 2rem 0rem 1.3rem 0rem;
}

#pagination-numbers {
  display: flex;
  gap: 2rem;
}

/*changed*/
.pagination-number.active {
  color: var(--saito-white);
  background: var(--saito-primary);
}

.pagination-number {
  border: 1px solid var(--border-color-general-dividers);
  cursor: pointer;
  padding: 0.3rem 1rem;
  transition: all 0.2s ease-in-out;
  border-radius: 0.2rem;
}

/*changed*/
.pagination-number:hover {
  border: 1px solid var(--border-color-general-dividers);
}

.pagination-button {
  cursor: pointer;
  font-size: 2rem;
}

.pagination-button.disabled {
  visibility: hidden;
}

.pagination-button:hover {
  transition: all 0.2s ease-in-out;
  transform: scale(1.5);
}

.pagination-container.disabled .pagination-button {
  color: #9f9b9b;
}

.pagination-container.disabled .pagination-button:hover {
  transform: scale(1);
}

/* Unfinished changes */
.mixin-overlay-history {
  min-height: 20rem;
  padding: 1.5rem;
  border-radius: 0.5rem;
  border-radius: var(--saito-border-radius);
  background: var(--saito-background-color);
  color: var(--saito-font-color-heavy);
}

.auth_title {
  font-size: 3.5rem;
}

.from_address,
.to_address {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.game-crypto-transfer-manager-container .balance {
  margin-bottom: 1.1rem;
  font-size: 3.5rem;
}

/*
  Withdrawl overlay 
*/

/*changed*/
.token-dropdown {
  display: flex;
  position: relative;
  padding: 0 0.5rem;
  border-radius: var(--saito-border-radius);
  border: 1px solid var(--saito-border-color);
}

.token-dropdown img {
  width: 2rem;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0.5rem;
}

.token-dropdown select {
  height: 45px;
  padding: 0rem 1rem 0 3rem;
  border: none;
  font-size: 1.6rem;
  width: 100%;
  color: inherit;
  background: inherit;
}

.withdraw-input-cont {
  background: var(--saito-background-color);
  border: 1px solid var(--saito-border-color);
  display: grid;
  grid-template-columns: 1fr min-content;
  align-items: center;
}

.withdraw-input-cont.fixed-user {
  grid-template-columns: min-content 1fr;
}

.saito-overlay-form-input .withdraw-input-cont input {
  border: none;
  outline: none;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 99%;
  autocomplete: off;
  background-color: var(--saito-background-color) !important;
}

/* Hide arrows, Chrome, Safari, Edge, Opera */
.saito-overlay-form-input input::-webkit-outer-spin-button,
.saito-overlay-form-input input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
.saito-overlay-form-input input[type='number'] {
  -moz-appearance: textfield;
}

/* Fully override Chrome's autofill styling */
.saito-overlay-form-input input:-webkit-autofill,
.saito-overlay-form-input input:-webkit-autofill:hover,
.saito-overlay-form-input input:-webkit-autofill:focus,
.saito-overlay-form-input input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--saito-font-color) !important;
  caret-color: var(--saito-primary) !important;
  background-color: var(--saito-background-color) !important;
  border: none !important;
  outline: none !important;
  -webkit-box-shadow: 0 0 0px 1000px var(--saito-background-color) inset !important;
  box-shadow: 0 0 0px 1000px var(--saito-background-color) inset !important;
}

.withdraw-options-cont,
.withdraw-input-cont > i {
  cursor: pointer;
  padding: 1rem;
  margin-left: 0.5rem;
  font-size: 2rem;
}

.withdraw-options-cont {
  display: flex;
  align-items: center;
  justify-content: center;
}

.withdraw-options-cont:hover {
  font-weight: bold;
}

.withdraw-options-cont:hover i {
  transform: scale(1.15);
}

.withdraw-options-cont span {
  font-size: 1.6rem;
}

.withdraw-input-cont.fixed-user .withdraw-options-cont {
  display: none;
}

.saito-overlay-form-submit,
.saito-overlay-form-subtext {
  grid-column: span 2;
}

.input-elements-container {
  gap: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  align-content: flex-start;
  overflow: auto;
  flex-direction: row;
}

.input-elements-container .saito-overlay-form-input {
  width: 100%;
}

.confirm-msg-container {
  color: var(--saito-font-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  display: flex;
  transition: all 0.3s ease-in-out;
}

.confirm-msg-container .withdraw-msg-icon {
  font-size: 10rem;
}

.confirm-msg-container .withdraw-msg-icon.hide {
  display: none;
}

.confirm-msg-container .spinner {
  display: none;
  height: 9rem;
}

.confirm-msg-container .spinner.show {
  display: block;
}

.confirm-msg-container .confirm-msg {
  display: inline-block;
  width: min-content;
  text-align: center;
  min-width: 40rem;
  font-size: 1.8rem;
  line-height: 2.8rem;
}

.confirm-submit {
  transition: all 0.3s ease-in-out;
  justify-content: center;
}

.hide-element {
  display: none !important;
}

.fa-circle-notch {
  animation: spin 1.5s ease-in-out infinite;
  -webkit-animation: spin 1.5s ease-in-out infinite;
}

.dropdown-cont {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dropdown-cont .saito-overlay-form-input {
  flex: 1;
  margin: 0;
  max-width: fit-content;
}

.withdraw-info-cont {
  color: var(--saito-font-color);
  line-height: 2rem;
  text-align: center;
}

.withdraw-info-cont .withdraw-info-title {
  display: block;
}

#withdraw-step-one {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

#withdraw-step-two {
  gap: 3rem;
  display: flex;
  flex-direction: column;
}

.saito-history-msg {
  color: var(--saito-font-color);
}

.withdraw-error {
  padding: 0rem 1rem;
  color: var(--saito-red);
  display: none;
  position: absolute;
  right: 3rem;
  background: var(--saito-background-color);
}

.withdraw-external-fee-span.saito {
  display: none;
}

.withdraw-fee-info-icon.egld {
  display: none;
}

.create-nft-deposit {
  cursor: pointer;
}

.create-nft-btn {
  margin-left: auto;
  padding: 1.2rem;
  display: flex;
  font-size: 3rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.create-nft-btn:hover {
  transform: scale(1.1);
}

/*
    add nft utxo overlay
*/

.create-nft-container,
.nft-list-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
  min-width: 60rem;
}

.create-nft-container {
  min-height: 65vh;
  justify-content: space-between;
}

.user-slips {
  width: 18rem;
  font-size: 1.5rem;
  padding: 1rem 0.5rem;
}

.slip-info {
  padding: 1rem;
  background: var(--saito-background-color);
  display: flex;
  justify-content: space-between;
}

.right-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.input-div {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#nfts-deposit {
  width: 65rem;
  height: 5rem;
}

.nft-list {
  min-height: 24rem;
  user-select: none;
}

.nft-list-container > .right-section {
  min-width: 50rem;
  gap: 2rem;
}

.nft-list-container > .right-section > .nft-receiver {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.nft-image-preview {
  align-self: center;
  height: 30rem;
  position: relative;
}

.nft-image-preview i {
  position: absolute;
  font-size: 2rem;
  cursor: pointer;
  top: -1rem;
  right: -1rem;
}

.inputs {
  display: flex;
  gap: 2rem;
}

.data-table tr.total_supply_value {
  background-color: #fdeed5;
}
.data-table tr.payout_value {
  background-color: #e0ebf0b0;
}
.data-table tr.total_supply.total_supply_value {
  background-color: #d8c3a2;
}
.inputs div {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.textarea-container {
  display: flex;
  flex-direction: column;
}

textarea {
  width: 100%;
  height: 100px;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: none;
}

#nft-image-upload {
  border: 3px dotted;
  height: 30rem;
  text-align: center;
  line-height: 30rem;
  font-size: 2rem;
  border-radius: 1rem;
  width: 55rem;
}

.utxo-div {
  display: flex;
  flex-direction: row;
  width: 45rem;
  gap: 1rem;
  align-items: center;
}

.utxo-div.send-nft {
  gap: 2rem;
  width: auto;
  flex-direction: column;
}

#utxo-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.slip-info .metric {
  text-align: left;
}

.utxo-div.send-nft {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.send-nft-left-row {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.send-nft-right-row {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: fit-content;
  align-self: center;
}

.send-nft-id,
.send-nft-create-by {
  white-space: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-all;
  display: inline-block;
}

.send-nft-id {
  letter-spacing: 0.1rem;
}

.send-nft-create-by > .saito-user > .saito-userline {
  width: 10rem;
}

.send-nft-create-by > .saito-user {
  margin-right: -1rem;
}

.send-nft-details {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.send-nft-deposit {
  width: fit-content;
}

.send-nft-list {
  max-height: min(76rem, 85vh);
  overflow-y: scroll;
  display: flex;
  flex-direction: row;
  gap: 2rem;
  flex-wrap: wrap;
  width: max-content;
  max-width: 94rem; /* fits 4 nfts wide */
  /* 4: 94rem, 3: 70rem */
}

#send-nft-wait-msg {
  color: var(--saito-gray-750);
}

/*

  file icon
*/

.nft-file-transfer {
  border-radius: var(--saito-border-radius);
  position: relative;
  border: 1px dashed;
  display: grid;
  align-items: center;
  padding: 1rem;
  grid-template-columns: min-content 1fr;
  grid-template-rows: 1fr 1fr;
  row-gap: 1rem;
  column-gap: 2rem;
  justify-items: flex-end;
  overflow: hidden;
  background-color: var(--saito-gray-600);
  color: var(--saito-white);
}

.nft-file-transfer.complete {
  border: 1px solid;
}

.nft-file-transfer.received {
  grid-template-rows: unset;
}

.file-transfer-progress {
  position: absolute;
  left: 1px;
  top: 1px;
  height: calc(100% - 2px);
  width: 0%;
  background-color: var(--saito-primary);
}

.nft-file-transfer.received .file-transfer-progress {
  background-color: var(--saito-secondary);
}

.nft-file-transfer i {
  font-size: 4rem;
  grid-row: 1 / span 2;
  z-index: 1;
  cursor: pointer;
}

.nft-file-transfer .file-name,
.nft-file-transfer .file-size {
  z-index: 1;
}

.create-nft-type-dropdown {
  width: 12rem;
  color: var(--saito-font-color);
  background: var(--saito-background-color);
  padding: 0.5rem;
  border-radius: 0.5rem;
  font-size: 1.4rem;
}

.create-nft-textarea {
  height: 30rem;
  display: none;
}

.page-navigation {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  font-size: 1.9rem;
  display: none;
}


.nft-creator , .nft-receiver {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

#page2 {
  flex-direction: column;
  gap: 3rem;
}

.page-navigation.page1 {
  align-self: flex-end;
}

.create-nft-amount {
  max-width: 8rem;
  text-align: center;
  border: 1px solid var(--saito-font-color);
  padding: 0.3rem 0rem;
  border-radius: var(--saito-border-radius);
}

.page-navigation.page2 {
  display: flex;
  align-self: flex-end;
  gap: 1rem;
}

.nft-creator > .saito-file-transfer {
  border-radius: var(--saito-border-radius);
  position: relative;
  border: 1px dashed;
  display: grid;
  align-items: center;
  padding: 2rem;
  grid-template-columns: min-content 1fr;
  grid-template-rows: 1fr 1fr;
  row-gap: 1rem;
  column-gap: 2rem;
  justify-items: flex-end;
  overflow: hidden;
  background-color: var(--saito-gray-600);
  color: var(--saito-white);
}

.fancy-slider-bar {
  position: relative;
  width: 100%;
  background-color: var(--saito-background-color);
  display: flex;
  align-items: center;
  z-index: 10;
  padding: 0;
  height: 4.5rem;
  border: 1px solid var(--saito-border-color-dark);
}

.split-bar {
  width: 5px;
  position: relative;
}

.split-half {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 1.6rem;
}

input.split-half {
  padding: 0;
  height: 100%;
  border-radius: unset;
  text-align: center;
}

.split-bar > .resize-icon.horizontal {
  background-color: var(--saito-primary);
  height: 5rem;
}

/* 

nft cards

*/

.nft-card {
  width: 22rem;
  height: 24rem;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--saito-border-color);
  border-radius: var(--saito-border-radius);
  overflow: hidden;
  padding: 1rem;
  background-color: var(--saito-background-color);
  flex: 0 0 22rem;
}

.nft-card:hover {
  cursor: pointer;
  border: 1px solid var(--saito-primary);
}

.nft-card.nft-selected {
  border: 1px solid var(--saito-primary);
}

.nft-card-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-image: url('/saito/img/dreamscape.png');
  border-radius: var(--saito-border-radius);
  position: relative;
  overflow: hidden;
  border-bottom-left-radius: unset;
  border-bottom-right-radius: unset;
}

.nft-card-img img,
.nft-card-img i {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
}

.nft-card-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem 0rem 0rem 0rem;
  font-size: 1.4rem;
  gap: 1rem;
  position: relative;
}

.nft-card-identity {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.nft-card-id {
  width: 80%;
  white-space: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-all;
  display: inline-block;
  /* font-size: 1.2rem; */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  /* max-width: 30ch; */
  white-space: pre;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: monospace;
}

.nft-card-info-amount,
.nft-card-info-deposit {
  font-family: monospace;
  font-size: 1.2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nft-card-info-title {
}

.nft-identicon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  align-self: center;
}

.nft-card-details {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.nft-card-deposit {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
}

.nft-card-amount {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nft-card-text {
  font-family: monospace;
  font-size: 1.2rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 10;
  overflow: hidden;
  white-space: pre;
  color: #3ea63e;
  background: var(--saito-black);
  height: 100%;
}

.nft-details-container {
  width: 750px;
  max-width: 95vw;
  min-height: 80vh;
  padding: 1rem;
  gap: 1rem;
  display: grid;
  grid-template-rows: min-content auto min-content;
}

.nft-details-data > .nft-card-img {
  background-size: contain;
  border-radius: var(--saito-border-radius);
  background-position: 50% 50%;
}

.nft-details-id {
  word-wrap: break-word;
  font-size: 1.5rem;
  font-family: monospace;
}

.nft-details-header,
.nft-details-actions {
  border: 1px solid var(--saito-gray-200);
  border-radius: var(--saito-border-radius);
  padding: 1.5rem;
  gap: 1.5rem;
}

.nft-details-header {
  display: grid;
  grid-template-columns: 1fr max-content;
}

.nft-details-header .nft-identicon {
  width: 4rem;
  height: 4rem;
}

.nft-details-header .nft-card-info-amount,
.nft-details-header .nft-card-info-deposit {
  /*font-weight: bold;*/
}

.nft-details-actions {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  position: absolute;
  bottom: 1rem;
  width: calc(100% - 2rem);
  left: 1rem;
  background-color: var(--saito-background-color);
}

.nft-details-actions[data-show='none'] {
  display: none;
}

.nft-details-action {
  display: none;
  width: 100%;
}

.nft-details-actions[data-show='send'] #nft-details-send {
  display: flex;
  flex-direction: column;
}

.nft-details-actions[data-show='split'] #nft-details-split {
  display: flex;
  user-select: none;
}

.nft-details-actions[data-show='merge'] #nft-details-merge {
  display: flex;
}

.nft-details-section-header,
.nft-details-send,
.nft-details-assetstore {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  width: 100%;
}

.nft-details-actions .nft-card-details {
  border: 1px solid color-mix(in srgb, var(--saito-gray-700) 27%, transparent);
  padding: 1rem;
}

.nft-details-container .nft-card-text {
  overflow-x: hidden;
  overflow-y: scroll;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 1.6rem;
  padding: 0.5rem;
}

.nft-details-section {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
}

.nft-details-section.left-justify {
  align-items: flex-start;
}

.nft-details-section-title {
  font-size: 1.3rem;
  font-family: var(--saito-font-heavy);
}

.nft-details-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.nft-details-section-content {
  text-align: center;
  display: flex;
  gap: 1rem;
}

.nft-details-id-cont {
  display: flex;
  gap: 1rem;
  align-items: center;
  overflow: hidden;
}

.nft-details-id {
  word-wrap: break-word;
  white-space: pre-wrap; /* respects line breaks AND allows wrapping */
  word-break: break-word; /* breaks long strings like utxo_key */
}

#nft-details-split-bar {
  height: 4rem;
  width: 100%;
  position: relative;
  display: block;
}

@keyframes spin {
  to {
    -webkit-transform: rotate(360deg);
  }
}
@-webkit-keyframes spin {
  to {
    -webkit-transform: rotate(360deg);
  }
}

@media screen and (max-width: 1000px) {
  .send-nft-list {
    max-width: 70rem;
    /*max-width: 100%;*/
  }
}

@media screen and (max-width: 768px) {
  .mixin-items-container .saito-table-header {
    grid-template-columns: 8rem 8rem;
  }
  .mixin-items-container .saito-table-row {
    grid-template-columns: 7rem 7rem 7rem 7rem 7rem;
  }
  .mixin-no-history {
    margin-top: 1rem;
    margin-left: 0rem;
  }
  .mixin-txn-his-container {
    width: 86vw;
  }
  .mixin-txn-his-container .saito-table-header {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
  .mixin_crypto_overlay {
    width: 99vw;
  }

  /* NFT */
  .nft-list-container,
  .create-nft-container {
    width: 95vw;
    min-width: auto;
    padding: 1rem;
  }

  .send-nft-list {
    width: unset;
    justify-content: center;
  }

  #nft-image-upload {
    width: auto;
  }

  .nft-details-container {
    width: 95vw;
    max-height: 95vh;
    overflow-y: scroll;
  }

  .nft-details-data {
    width: 100%;
  }

  .nft-details-data > .nft-card-img {
    height: 40vh;
  }
}
/* ----------------------------------------------------------------
Saito Identicon
-----------------------------------------------------------------*/

.saito-identicon {
  width: 3.5rem;
  height: 3.5rem;
  border: var(--border-thickness-thin) solid var(--saito-background-color);
  border-radius: var(--saito-border-radius);
  background: var(--saito-background-color);
}

.saito-identicon-box {
  width: 3.5rem;
  height: 3.5rem;
  border: var(--border-thickness-thin) solid var(--saito-background-color);
  border-radius: var(--saito-border-radius);
  cursor: pointer; /* app.browser tries to turn all .saito-identicon into clickable target */
}

.saito-identicon-box .saito-identicon {
  /* It should grow to fit the box! */
  width: 100%;
  height: 100%;
  border-radius: inherit;
  border: none;
}

/* ----------------------------------------------------------------
Saito Username  --- Partially duplicated in saito-base
-----------------------------------------------------------------*/

.saito-user > .saito-address-long:nth-child(2) {
  grid-column-end: 4;
  display: flex;
  flex-direction: row;
  align-items: center;
  column-gap: 1rem;
}

/* ----------------------------------------------------------------
Saito User
-----------------------------------------------------------------*/

.saito-user {
  display: grid;
  column-gap: 1rem;
  grid-template-columns: min-content 1fr min-content;
  grid-template-rows: min-content 1fr;
  justify-items: start;
  width: 100%;
  position: relative;
  white-space: nowrap; /* don't auto wrap time stamps or stuff */
  row-gap: 0;
}

/*  saito-identicon-box  */

.saito-user > .saito-identicon-box {
  grid-column-start: 1;
  grid-column-end: span 1;
  grid-row: span 2;
  position: relative;
}

.saito-user > .saito-identicon-box .saito-identicon {
  opacity: 0.85; /* make identicons less harsh */
}

.saito-user > .saito-identicon-box .saito-identicon[data-id]:hover {
  opacity: 1;
}

.saito-user > .saito-address {
  color: var(--saito-font-color);
  grid-column-start: 2;
  grid-column-end: span 1;
  grid-row-start: 1;
  grid-row-end: span 1;
  font-size: 1.5rem;
}

.saito-user[data-disable='true'] > .saito-address,
.saito-user[data-disable='true'] > .saito-identicon-box {
  cursor: unset; /* allow inheritance from parent for otherwise clickable event */
}

.saito-user > .saito-userline {
  grid-column-start: 2;
  grid-column-end: span 1;
  grid-row-start: 2;
  grid-row-end: span 1;
  font-size: 1.4rem;
  /* Added for all the publickeys in saito-userlines that overflow */
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.saito-user .saito-datetime {
  cursor: pointer;
  grid-column-start: 3;
  grid-column-end: span 1;
  grid-row: span 2;
  font-size: 1.4rem;
  align-items: top;
}

.saito-user-fourth-elem-large {
  grid-row: span 2;
}

.saito-overlay .saito-user {
  max-width: 90vw;
}

.saito-anon {
  margin-right: 3px;
  font-style: italic;
}

/****************************
 * Account Login
 * *************************/
.wallet-selection {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.wallet-selection .saito-user {
  padding: 1rem;
  border: 1px solid var(--saito-border-color-light);
  border-radius: var(--saito-border-radius);
  width: unset;
}
/* ----------------------------------------------------------------
font imports
-----------------------------------------------------------------*/
@font-face {
  font-family: 'visuelt-black';
  src: url('/saito/fonts/visuelt-black.eot');
  src:
    url('/saito/fonts/visuelt-black.eot?#iefix') format('embedded-opentype'),
    url('/saito/fonts/visuelt-black.woff2') format('woff2'),
    url('/saito/fonts/visuelt-black.woff') format('woff'),
    url('/saito/fonts/visuelt-black.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'visuelt-light';
  src: url('/saito/fonts/visuelt-light.eot');
  src:
    url('/saito/fonts/visuelt-light.eot?#iefix') format('embedded-opentype'),
    url('/saito/fonts/visuelt-light.woff2') format('woff2'),
    url('/saito/fonts/visuelt-light.woff') format('woff'),
    url('/saito/fonts/visuelt-light.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'visuelt-medium';
  src: url('/saito/fonts/visuelt-medium.eot');
  src:
    url('/saito/fonts/visuelt-medium.eot?#iefix') format('embedded-opentype'),
    url('/saito/fonts/visuelt-medium.woff2') format('woff2'),
    url('/saito/fonts/visuelt-medium.woff') format('woff'),
    url('/saito/fonts/visuelt-medium.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'p-word';
  src: url('/saito/fonts/password.ttf') format('truetype');
}

@font-face {
  font-family: 'digital-7';
  src: url('/saito/fonts/digital-7.mono.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'digital-7';
  src: url('/saito/fonts/digital-7.mono.italic.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
}

:root {

  --saito-white: #fff;
  --saito-gray-050: #f2f2f2;
  --saito-gray-100: #e4e4e4;
  --saito-gray-150: #d7d7d7;
  --saito-gray-200: #c9c9c9;
  --saito-gray-250: #bcbcbc;
  --saito-gray-300: #aeaeae;
  --saito-gray-350: #a1a1a1;
  --saito-gray-400: #939393;
  --saito-gray-450: #868686;
  --saito-gray-500: #787878;
  --saito-gray-550: #6b6b6b;
  --saito-gray-600: #5d5d5d;
  --saito-gray-650: #505050;
  --saito-gray-700: #424242;
  --saito-gray-750: #353535;
  --saito-gray-800: #272727;
  --saito-gray-850: #1a1a1a;
  --saito-gray-900: #0c0c0c;
  --saito-gray-950: #000000;
  --saito-black: #000;

  --saito-red: #f71f3d;
  --saito-red-dark: #e8001e;
  --saito-green: #3df71f;
  --saito-orange: #ff8235;
  --saito-orange-dark: #e57631;
  --saito-magenta: #f7009b;
  --saito-pink: #e98eaf;
  --saito-yellow-light: #e9ce93;

  --dreamscape:
    linear-gradient(125deg, #e8001e 30%, #0001 55%, #ff8235 80%),
    linear-gradient(40deg, #f7009b 15%, #f71f3d 25%, #f71f3d 65%, #e98eaf 75%, #0000),
    linear-gradient(180deg, #e9ce93, #f71f3d);

  --saito-primary: var(--saito-orange);
  --saito-primary-dark: var(--saito-orange-dark);
  --saito-primary-text: var(--saito-white);
  --saito-primary-background: linear-gradient(
      45deg,
      var(--saito-primary) 0%,
      var(--saito-secondary) 55%,
      var(--saito-primary) 100%
    )
    transparent no-repeat left top / 400% auto;

  --saito-secondary: var(--saito-yellow-light);
  --saito-secondary-text: var(--saito-white);

  --saito-background-color: #fff9f9;

  --saito-highlight: #6662;
  --saito-highlight-heavy: #4445;

  /* Background Shim Colors */
  --background-color-shim-light: color-mix(in srgb, var(--saito-black) 40%, transparent);
  --background-color-shim-normal: color-mix(in srgb, var(--saito-black) 50%, transparent);
  --background-color-shim-dark: color-mix(in srgb, var(--saito-black) 70%, transparent);


  --saito-heart-animation: url('/redsquare/images/heart-orange.png');

  /* Main Theme */
  --saito-width: 1200px;
  --saito-vh: 1vh;
  --saito-header-height: 7rem;
  --saito-header-color: var(--saito-primary-text);
  --saito-header-background: var(--dreamscape);

  /* Box Shadows */
  --saito-box-shadow-low:
    0px 1px 2px color-mix(in srgb, var(--saito-black) 30%, transparent);
  --saito-box-shadow:
    0px 2px 4px color-mix(in srgb, var(--saito-black) 50%, transparent);
  --saito-box-shadow-high:
    0px 12px 17px 2px hsla(0, 0%, 0%, 0.14),
    0px 5px 22px 4px hsla(0, 0%, 0%, 0.12),
    0px 7px 8px -4px hsla(0, 0%, 0%, 0.2);

  /* Fonts */
  --saito-font: 'visuelt-light';
  --saito-font-medium: 'visuelt-medium';
  --saito-font-heavy: 'visuelt-black';
  --saito-font-monospace: monospace;

  --font-size-h1: 5rem;
  --font-size-h2: 4.5rem;
  --font-size-h3: 4rem;
  --font-size-h4: 3.5rem;
  --font-size-h5: 2.5rem;
  --font-size-h6: 2rem;
  --font-size-large: 2rem;
  --font-size-medium: 1.5rem;
  --font-size-tiny: 1.3rem;

  --saito-font-color: var(--saito-font-color-primary);
  --saito-font-color-primary: var(--saito-gray-750);
  --saito-font-color-secondary: var(--saito-gray-600);
  --saito-font-color-heavy: var(--saito-black-heavy);
  --saito-font-color-light: var(--saito-font-color-secondary);
  --saito-font-color-inverse: #e6e6e6;

  /* Border Padding */
  --saito-border-color-light: var(--saito-gray-850);
  --saito-border-color: color-mix(in srgb, var(--saito-gray-200) 73%, transparent);
  --saito-border-color-dark: var(--saito-gray-750);
  --saito-border-radius: 0.5rem;

  --border-padding-normal: 0.5rem;
  --border-padding-wide: 1rem;

  /* Borders */
  --border-thickness-thin: 1px;
  --border-thickness-medium: 2px;
  --border-thickness-thick: 3px;
  --border-thickness-fat: 5px;
  --border-thickness: var(--border-thickness-thin);
  --border-color-general-dividers: var(--saito-gray-750);

}
.uploader-uploaded-photo {
    height: auto;
    object-fit: cover;
    width: 100%;
}

.photo-uploader {
    background-color: var(--saito-background-color);
    height: 33rem;
    width: 70rem;
    /* position: absolute; */
    /* top: 50%;
	left: 50%; */
    padding: 5rem;
    /* transform: translate(-50%, -50%); */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--saito-border-color);
    font-size: 2rem;
    border-radius: 0.5rem;
    color: var(--saito-font-color);
}

@media (max-width: 768px) {
    .photo-uploader {
        width: 90vw;
        padding: 5vw;
    }
}

@media (max-width: 480px) {
    .photo-uploader {
        width: 95vw;
        font-size: calc(14px + 1vw);
    }
}

.uploader-content {
    display: none;
    height: 100%;
    width: 100%;
    padding: 5rem;
    position: absolute;
}

.uploader-actions {
    width: calc(100% - 10rem);
    position: absolute;
    bottom: 0;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    z-index: 10;
}

.uploader-actions> :nth-child(1) {
    margin-right: 1rem;
}

@media (max-width: 768px) {
    .uploader-actions {
        flex-direction: column;
        justify-content: center;
    }
    .uploader-actions> :nth-child(1) {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}
.purchase-container {
  background: var(--saito-background-color);
  display: flex;
  height: fit-content;
  max-width: 60rem;
  justify-content: space-between;
  padding: 3rem;
  font-size: 2rem;
  display: flex;
  flex-direction: column;
  text-align: center;
  font-size: 2rem;
  gap: 1rem;
  width: max-content;
}

.purchase-crypto-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;            
  padding: 1rem; 
}

.purchase-crypto-item {
  flex: 0 1 15rem;                  
  max-width: 18rem;                 
  aspect-ratio: 1 / 1;              
  padding: 2rem;                     
  border-radius: var(--saito-border-radius);
  display: flex;
  flex-direction: row;
  column-gap: 0.5rem;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  background-color: var(--saito-primary);
  color: var(--saito-primary-text);
  border: 0.25rem dashed var(--saito-primary-text);
  font-weight: bolder;
}

.purchase-crypto-item input {
  border: 1px solid var(--saito-primary-text)
}

.purchase-crypto-item:hover input {
  border: 1px solid var(--saito-primary)
}

.purchase-crypto-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background-color: var(--saito-primary-text);
  color: var(--saito-primary);
  border: 0.25rem dashed var(--saito-primary);
}

    .purchase-select-crypto-msg {
      text-align: center;
    }

    #purchase-crypto-generate {
      width: fit-content;
      align-self: end;
    }

    .purchase-crypto-item input:hover {
      cursor: pointer;
    }




.payment-box {
  padding: 30px;
  width: 420px;
  height: 600px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.payment-box h2 {
  margin: 0 0 15px 0;
  font-weight: 600;
  text-align: center;
  font-size: 3rem;
  color: var(--saito-primary);
}

.product-desc {
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.4;
}

.price {
  font-weight: 700;
  font-size: 3rem;
  margin-bottom: 15px;
}

.instructions {
  font-weight: normal;
  text-align: center;
  line-height: 1.4;
}

.help {
  margin-top: auto;
}

.help .support-email {
  font-weight:bold;
}

.timer {
  font-weight: 600;
  color: var(--saito-primary);
}

.pqrcode {
  width: 220px;
  height: 220px;
  background: #f0f0f0;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  font-family: monospace;
  border: 0.5rem solid #FFF;
  transform: scale(0.9);
}

.wallet-address {
  width: max-content;
}

.wallet-address input {
  width: 100%;
  text-align: center;
  align-self: stretch;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-family: 'Roboto Mono', monospace;
  cursor: pointer;
  transition: border 0.2s, box-shadow 0.2s;
}

.wallet-address input:hover,
.wallet-address input:focus {
  border-color: var(--saito-primary);
  box-shadow: 0 0 8px rgba(255,95,109,0.3);
}


.extend-timer {
  color: var(--saito-primary);
  cursor: pointer;
  border-bottom: 1px dashed;
}
.extend-timer:hover {
  color: var(--saito-primary);
  cursor: pointer;
  border-bottom: 1px solid;
  font-weight: bolder;
}


.saito-crypto-deposit-container {
  max-width: min(40rem, 90vw);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-height: 45rem;
  justify-content: space-between;
}

.saito-crypto-wallet-state {
  display: flex;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.call-to-action {
  font-size: 2rem;
  color: var(--saito-secondary);
  padding: 1rem;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/*  Detail Overlay */
#saito-details-loader {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.crypto-details-overlay {
  width: 600px;
  max-width: 100vw;
  min-height: 700px;
  max-height: calc(100vh - var(--saito-header-height));
  padding: 2rem;
  background-color: var(--saito-background-color);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.crypto-details-overlay .saito-overlay-form-header {
  padding: 0 1rem;
}

.wallet-details {
  display: grid;
  grid-template-columns: 25rem 1fr;
  column-gap: 2rem;
}

.wallet-details h6 {
  grid-column: span 2;
}

.deposit-address {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  align-items: center;
}

.pubkey-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
}

.pubkey-container:hover i {
  transform: scale(1.1);
}

.mobile-only460 {
  display: none;
}

.wallet-actions {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem;
}

.main-balance {
  position: relative;
}

.wallet-actions .label {
  margin-top: 0.5rem;
}

.crypto-details-overlay .balance-amount-whole,
.crypto-details-overlay .balance-amount-separator {
  font-size: 2.5rem;
}

.saito-button-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: auto;
}

.saito-button-grid .saito-button-primary,
.saito-button-grid .saito-button-secondary {
  min-width: unset;
}

.transaction-history {
  display: grid;
  flex-grow: 1;
  position: relative;
  padding: 0.5rem 0;
  max-height: 40rem;
  grid-template-rows: min-content minmax(0, 1fr);
}

.transaction-history .saito-table-header,
.transaction-history .saito-table-row {
  grid-template-columns: repeat(5, 1fr);
}

.transaction-history-table {
  flex-grow: 1;
}

.deposit {
  color: #00ae00;
}

.withdraw {
  color: #e34927;
}

.withdraw.invalid,
.deposit.invalid {
  color: #cab202;
}

.crypto-timestamp {
  white-space: nowrap;
}

.refresh {
  position: absolute;
  right: 1rem;
  font-size: 2rem;
  padding: 1rem;
  cursor: pointer;
  top: 0;
}

.main-balance .refresh {
  top: 0.7rem;
}

.refresh:hover {
  color: var(--saito-primary);
}

.refreshing {
  animation: spin 1s linear infinite;
}

.pagination-container.disabled {
  display: none;
}

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

  50% {
    transform: rotate(180deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.refreshed {
  visibility: hidden;
}

.get-saito-overlay {
  width: min(800px, 95vw);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  font-size: 1.8rem;
  gap: 2rem;
  max-height: 95vh;
  overflow: auto;
}

@media screen and (max-width: 600px) {
  .crypto-details-overlay {
    min-height: calc(100vh - var(--saito-header-height));
  }

  .wallet-details {
    grid-template-columns: min-content 1fr;
    column-gap: 0;
  }

  .saito-button-grid {
    grid-template-columns: unset;
    max-width: 200px;
    gap: 0;
  }

  .wallet-actions {
    min-width: 210px;
    margin-left: auto;
  }
}

@media screen and (max-width: 460px) {
  .crypto-details-overlay {
    gap: 1rem;
  }

  .wallet-details {
    grid-template-columns: 1fr;
  }

  /*
  we should not be doing this! Use a class name!
  h6 {
    display: none;
  }*/

  .wallet-actions {
    padding: 1rem 0;
    margin-left: unset;
    display: grid;
    grid-template-areas: 'A C' 'B C';
  }

  .saito-button-grid {
    grid-area: C;
  }

  .refresh,
  .main-balance .refresh {
    right: unset;
    left: 0;
    top: -3rem;
  }

  .deposit-address .pubkey-container {
    display: none;
  }

  .mobile-only460 {
    display: flex;
    margin-left: auto;
  }

  .saitox-table.transaction-history-table {
    grid-template-columns: 10rem 0px 1fr 0px 1fr;
  }

  .saitox-table.transaction-history-table > div {
    padding: 0;
    overflow: hidden;
  }
}
select {
  width: 100%;
  cursor: pointer;
}

select,
::picker(select) {
/*  appearance: base-select;*/
}


/* ----------------------------------------------------------------
Selects
-----------------------------------------------------------------*/
.saito-select {
  position: relative;
  display: flex;
  width: 20em;
  height: 3em;
  line-height: 3;
  background-color: transparent;
  overflow: hidden;
  width: 100.01%;
  border-radius: 0 1rem 1rem 0;
  outline: none;
  background-color: none;
  cursor: pointer;
}

.saito-select::after {
  content: "\25BC";
  position: absolute;
  top: 0;
  right: 0;
  color: var(--saito-white);
  background-color: var(--saito-primary);
  cursor: pointer;
  pointer-events: none;
  -webkit-transition: 0.25s all ease;
  -o-transition: 0.25s all ease;
  transition: 0.25s all ease;
  border-radius: 0 1rem 1rem 0;
  height: 100%;
  width: 5rem;
  display: flex;
  justify-content: center;
}

.saito-select:hover::after {
  color: var(--saito-white) !important;
}

.saito-select .saito-slct {
  font-size: 2rem;
}

.saito-slct {
  appearance: none;
  background-color: var(--saito-white);
  border-radius: 1rem;
  padding: 0 1rem;
}

textarea,
input {
  background-color: var(--saito-background-color);
  color: var(--saito-font-color-heavy);
  border: var(--border-thickness-thin) solid var(--saito-primary);
}




textarea:focus, input:focus, select:focus {
  outline: none;
}


/* ----------------------------------------------------------------
text and password inputs
-----------------------------------------------------------------*/

input[type="text"],
input[type="number"],
input[type="password"],
input[type="date"],
input[type="datetime-local"] {
  padding: 1rem 1.5rem;
  font-size: 1.6rem;
  width: 20rem;  /* Min width ? */
  color: var(--saito-font-color);
  border-radius: .5rem;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="datetime-local"] {
  outline: none;
}

input::placeholder {
  opacity: 80%;
}

input[type="text"],
input[type="password"],
select {
  width: 100%;
}


/* ----------------------------------------------------------------
checkbox input
-----------------------------------------------------------------*/

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  border: var(--border-thickness-thin) solid var(--saito-primary);
  width: 2rem;
  height: 2rem;
  margin: 3px 0.5rem;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  display: inline-block;
}

input[type="checkbox"]::after {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f00c";
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  font-size: 1.6rem;
  opacity: 0;
}

input[type="checkbox"]:checked {
  background-color: var(--saito-primary);
}

input[type="checkbox"]:checked::after {
  color: var(--saito-background-color);
  opacity: 1;
}

/* ----------------------------------------------------------------
radio inputs
-----------------------------------------------------------------*/

input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  border: var(--border-thickness-thin) solid var(--saito-primary);
  width: 2rem;
  height: 2rem;
  margin: 0 0.5rem;
  border-radius: 3px;
  position: relative;
}

input[type="radio"]::after {
  font-weight: 900;
  content: "";
  width: 1.5rem;
  height: 1.5rem;
  background-color: var(--saito-primary);
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  font-size: 1rem;
  opacity: 0;
  border-radius: 3px;
}

input[type="radio"]:checked::after {
  color: var(--saito-background-color);
  opacity: 1;
}

/* ----------------------------------------------------------------
Range inputs
-----------------------------------------------------------------*/

input[type="range"] {
  -webkit-appearance: none;
  margin: 1.8rem 0;
  width: 100%;
}

input[type="range"]:focus {
  outline: none;
}

input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 0.6rem;
  cursor: pointer;
  box-shadow: var(--saito-box-shadow);
  background: var(--saito-primary);
  border-radius: 0.5rem;
  border: var(--border-color-general-dividers);
}

input[type="range"]::-webkit-slider-thumb {
  box-shadow: var(--saito-box-shadow);
  border: 1px solid var(--color-contrast);
  height: 3rem;
  width: 2rem;
  border-radius: 0.5rem;
  background: var(--saito-white);
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -1.2rem;
}

input[type="range"]::-moz-range-track {
  width: 100%;
  height: 0.6rem;
  cursor: pointer;
  box-shadow: var(--saito-box-shadow);
  background: var(--saito-primary);
  border-radius: .5rempx;
  border: var(--border-color-general-dividers);
}

input[type="range"]::-moz-range-thumb {
  box-shadow: var(--saito-box-shadow);
  border: 1px solid var(--color-contrast);
  height: 3rem;
  width: 2rem;
  border-radius: .5rem;
  background: var(--saito-white);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  margin-top: -1.2rem;
}

input[type="range"]:focus::-webkit-slider-runnable-track {
  background: var(--saito-primary);
}

input[type="range"]::-ms-track {
  width: 100%;
  height: 8.4px;
  cursor: pointer;
  background: transparent;
  border-color: transparent;
  border-width: 1.6rem 0;
  color: transparent;
}

input[type="range"]::-ms-fill-lower {
  background: var(--saito-primary);
  border: var(--border-color-general-dividers);
  border-radius: 0.5rem;
  box-shadow: var(--saito-box-shadow);
}

input[type="range"]::-ms-fill-upper {
  /* background: #3071a9; */
  border: var(--border-color-general-dividers);
  border-radius: 0.5rem;
  box-shadow: var(--saito-box-shadow));
}

input[type="range"]::-ms-thumb {
  box-shadow: var(--saito-box-shadow);
  border: 1px solid var(--color-contrast);
  height: 3.6rem;
  width: 1.6rem;
  border-radius: 0.5rem;
  background: var(--saito-white);
  cursor: pointer;
}

input[type="range"]:focus::-ms-fill-lower {
  background: var(--saito-primary);
}

input[type="range"]:focus::-ms-fill-upper {
  background: var(--saito-primary);
}


/***************************************************
 * the cool toggle switch element for RS - curation
 * (hoping it is more generally applicable)
 * *************************************************/
.toggle-switch {
  position: relative;
  display: flex;
  min-width: 250px;
  width: 100%;
  border-radius: 999px;
  background: color-mix(in srgb, var(--saito-gray-700) 27%, transparent);
  border: 1px solid var(--saito-border-color, #444);
  overflow: hidden;
  font-size: 0.9rem;
  user-select: none;
  padding: 2px;
}

.toggle-switch::before {
  content: '';
  position: absolute;
  top: 2px;
  bottom: 2px;
  width: calc(70% - 4px);
  background: var(--saito-primary, #639);
  border-radius: 999px;
  z-index: 0;
  transition: left 0.3s ease;
  left: 2px; /* initial position */
}

.toggle-option {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  letter-spacing: 1px;
  min-width: auto !important;
  width: auto !important;
  padding: 10px 0 !important;
  margin: 0.5rem;
  background: transparent;
  border: 0;
  box-shadow: none;
  cursor: pointer;
  z-index: 1;
  font-weight: 500;
  transition:
    flex-basis 0.3s ease,
    color 0.25s ease;
  flex-grow: 0;
  flex-shrink: 0;
  flex-basis: 30%;
}

.toggle-option:hover {
  border: 0;
  color: transparent;
}

.toggle-switch .toggle-option.active {
  flex-basis: 70% !important;
  color: #fff;
}

.toggle-switch .toggle-option:not(.active) {
  color: transparent;
}

.toggle-switch.active-left::before {
  left: 2px;
  width: calc(70% - 4px);
}

.toggle-switch.active-right::before {
  left: calc(30% + 2px);
  width: calc(70% - 4px);
}
/*
NOTE: the .saito-model class is a grid with two sectiions
This alows for a header with a header with title to be added without extra CSS
*/

.saito-modal {
  min-width: 70rem;
  height: min-content;
  max-width: 80vw;
  padding: var(--border-padding-wide);
  display: grid;
  grid-template-rows: min-content 1fr min-content; /* last item optional */
  max-height: 95vh;
  border: var(--border-thickness-thick) solid var(--border-color-general-dividers);
  border-radius: var(--saito-border-radius);
  background-image: url(/saito/img/tiled-logo.svg);
}

.saito-modal-title {
  font-size: 3rem;
  padding: unset;
  padding-bottom: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--saito-font-color-heavy);
}

.saito-modal-content {
  overflow: auto;
}

.saito-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: var(--saito-border-radius);
  padding: 0.5rem;
  margin-top: 0.5rem;
}

/* We want to trigger the click event on the container */

.saito-contact .saito-user .saito-identicon-box,
.saito-contact .saito-user .saito-userline,
.saito-contact .saito-user .saito-address {
  pointer-events: none;
}

.secure_contact_notice {
  position: absolute;
  left: 3rem;
  top: 0;
  z-index: 2;
  color: var(--saito-font-color-light);
  /* testing */
  text-shadow: 2px 2px 2px var(--saito-black);
}

.saito-contact.unconfirmed {
  filter: brightness(0.7) grayscale(1);
}

.saito-modal-title + .saito-modal-content {
  border-top: var(--border-thickness-thick) solid var(--border-color-general-dividers);
}

.saito-modal-content .saito-user {
  height: 5rem;
  align-items: center;
  font-size: 20px;
}

.saito-modal .saito-modal-content .saito-user .saito-identicon-box {
  width: 4.5rem;
  height: 4.5rem;
}

.saito-modal-menu .saito-modal-title .saito-user {
  height: 6rem;
  padding: 0 1.25rem;
  cursor: default;
  align-items: center;
  width: calc(100% - 2.5rem);
  white-space: nowrap;
}

.saito-modal-menu .saito-modal-title .saito-user .saito-identicon-box {
  width: 5.5rem;
  height: 5.5rem;
}

/* saito-modal-menu
/* theming for a simple menu with font-awesome icon and text in a two col grid */

.saito-modal-menu-option {
  font-size: 3rem;
  height: 6rem;
  padding: 1.5rem 3rem;
  display: grid;
  align-items: center;
  grid-gap: 1rem;
  grid-template-columns: 4rem 1fr;
  cursor: pointer;
  position: relative;
  border-radius: var(--saito-border-radius);
  margin-top: 0.25rem;
}

.saito-modal-tagline {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  font-style: italic;
}

.saito-modal-point {
  font-size: 2rem;
  padding: 0.5rem;
  display: grid;
  align-items: center;
  grid-gap: 2rem;
  grid-template-columns: 4rem 1fr;
}

.saito-modal-point i {
  font-size: 3rem;
  justify-self: center;
}

.saito-modal-menu-option > i {
  justify-self: center;
  margin-right: 2rem;
}

.saito-modal-menu-option > div {
  float: left;
  margin-right: 2rem;
  font-size: 2rem;
  vertical-align: middle;
  margin-bottom: auto;
  margin-top: auto;
  line-height: 3rem;
  height: 3rem;
}

.saito-modal-text-input {
  margin-left: 3rem;
  margin-right: 3rem;
  width: 50rem;
  max-width: 50rem;
  margin-top: 0.75rem;
}

#saito-confirm-add-publickey {
  background-color: var(--saito-white);
  height: auto;
  width: 30vh;
  border-radius: 1.5rem;
  padding: 2rem;
}

#saito-confirm-add-publickey .saito-identicon-box {
  display: inline-block;
  margin-left: 50%;
  transform: translateX(-50%);
  width: 8rem;
  height: 8rem;
}

#saito-confirm-add-publickey > .saito-address {
  width: 100%;
  max-width: 100%;
  overflow: inherit;
  display: block;
  height: auto;
  word-break: break-word;
  text-overflow: inherit;
  white-space: break-spaces;
  text-align: center;
  margin-top: 5rem;
  margin-bottom: 1rem;
}

#saito-confirm-add-publickey > .saito-contact-status {
  text-align: center;
}

.saito-modal-title .saito-user .saito-address {
  font-size: 4rem;
}

.share-link {
  color: var(--saito-font-color);
}

/* Exclusively for modal-add-user-confirm.template */

.confirm-modal-wrapper {
  font-size: 1.5em;
  padding: 1.5em;
  font-weight: bold;
}

.welcome-invite-box {
  min-width: 200px;
  min-height: 120px;
  max-width: 325px;
  padding: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 25px;
  border: 1px solid var(--saito-border-color);
  margin: 1em;
}

/* LIST SELECTION MODAL */

.game-selection-list-overlay {
  background-color: black;
  /* testing, i have it as white locally. */
  max-height: 90vh;
  overflow-y: scroll;
  font-size: 2rem;
  min-width: 400px;
}

.selection-list li {
  cursor: pointer;
  border-bottom: 1px solid transparent;
  padding: 10px 0px 10px 20px;
  list-style: none;
}

.selection-list li:hover {
  background-color: #33669999;
  /* testing */
}

.selection-list li .tiptext {
  width: fit-content;
  background-color: #000a;
  color: #ffffff !important;
  min-width: 0px;
  padding: 3px;
  pointer-events: none;
  top: 5px;
  right: 0;
}

/* Exclusively for modal-add-user-confirm.template */

.confirm-modal-wrapper {
  font-size: 1.5em;
  padding: 1.5em;
  font-weight: bold;
}

.register-modal-controls {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
}

#signup {
  margin: 0;
  width: 15px;
  height: 21px;
}

.saito-overlaid-icon {
  color: var(--saito-white);
  position: absolute;
  left: 34%;
  top: 34%;
  background: #000a;
  width: min(90%, 5rem);
  height: min(90%, 5rem);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  border: 1px solid var(--saito-font-color);
}

/* Identicons aren't clickable in modals menus */

.saito-modal-menu .saito-identicon-box {
  cursor: default;
}

/* mobile modals */

@media only screen and (max-width: 1000px) {
  .saito-modal {
    min-width: unset;
    max-width: unset;
    padding: 1rem;
    width: 90vw;
    grid-template-columns: 100%;
  }
  .saito-modal > * {
    max-width: 100%;
  }
  .modal-content-blank {
    width: 100%;
  }
  i.fas.fa-arrow-right {
    right: -1em;
  }
}

@media only screen and (max-width: 768px) {
  .saito-modal-menu-option {
    margin: 0 1rem;
  }
  .saito-modal-menu-option > i {
    font-size: 2.2rem;
  }
  .saito-modal-menu-option > div {
    font-size: 2rem;
  }
}

@media only screen and (max-width: 525px) {
  .saito-modal-menu .saito-modal-title .saito-user {
    margin: 0;
  }
  .saito-modal-menu-option {
    margin: 0;
    padding: 1.5rem 1rem;
  }
}

.qr-share-overlay {
  padding: 2rem;
  border: var(--saito-border);
  width: max-content;
}

.qr-share-header {
  font-size: 3rem;
  display: flex;
  justify-content: center;
}

#qr-share-link {
  margin: 2rem;
}

#qr-share-link img {
  height: auto;
  max-width: 24rem;
  width: 24vh;
  border: var(--border-thickness-medium) solid var(--saito-primary);
  padding: var(--border-padding-normal);
  border-radius: var(--saito-border-radius);
  background: var(--saito-background-color);
}
#saito-header {
  position: fixed;
  display: flex;
  width: 100vw;
  backdrop-filter: blur(1px);
  margin: 0;
  align-items: center;
  justify-content: space-between;
  padding: 1rem max(2rem, calc((100vw - var(--saito-width)) / 2 + 0.5rem));
  top: 0;
  left: 0;
  z-index: 15;
  height: var(--saito-header-height);
  transition:
    top 0.33s linear,
    height 0.33s linear,
    padding 0.33s linear;
  color: var(--saito-header-color);
  background: var(--saito-header-background);
}

#saito-header.wide-screen {
  padding: 1.3rem 3rem;
}

#saito-header.arcade {
  padding: 1rem max(1.5rem, calc((100vw - var(--saito-arcade-width)) / 2 + 1rem));
  padding-left: max(1.5rem, calc((100vw - var(--saito-arcade-width)) / 4 + 1rem));
}

#saito-header.game {
  padding: 0;
  padding-right: 2rem;
  /* redefining base variable in game-layout doesn't work if people push themes on games */
  background: transparent;
  backdrop-filter: none;
  z-index: 90; /* to be the same as game-menu was */
}

#saito-header.game .saito-header-logo-wrapper,
#saito-header.game .header-msg {
  display: none;
}

.saito-header-logo {
  width: 15rem;
  cursor: pointer;
  height: 100%;
  fill: var(--saito-header-color);
}

#saito-header-menu-toggle {
  margin-right: auto;
  cursor: pointer;
  position: relative;
  width: 4rem;
  display: flex;
  justify-content: center;
}

#saito-header-menu-toggle i {
  transition: all 0.2s;
  font-size: 3rem;
  transform: scaleX(1.2);
}

#saito-header-menu-toggle:hover i {
  opacity: 0.9;
  transform: scale(1.2);
}

#saito-header-menu-toggle:active {
  transform: scale(0.9);
}

#saito-header-menu-toggle span {
  display: block;
  width: 33px;
  height: 4px;
  margin-bottom: 5px;
  position: relative;
  background: var(--saito-white);
  border-radius: 3px;
  z-index: 1;
  transform-origin: 4px 0px;
  transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
  background:
    0.5s cubic-bezier(0.77, 0.2, 0.05, 1),
    opacity 0.55s ease;
  margin-left: auto;
}

#saito-header-menu-toggle span:first-child {
  transform-origin: 0% 0%;
}

#saito-header-menu-toggle span:nth-last-child(2) {
  transform-origin: 0% 100%;
}

.saito-header-profile .saito-identicon-box .saito-identicon {
  width: 4.9rem;
  height: 4.9rem;
}

.saito-header-hamburger-contents {
  display: block;
  background: var(--saito-background-color);
  position: absolute;
  right: -40rem;
  top: var(--saito-header-height);
  border-top: 1px solid var(--border-color-general-dividers);
  border-left: 1px solid var(--border-color-general-dividers);
  transition:
    right 0.33s,
    width 0.33s;
  z-index: 21;
  width: 40rem;
  height: calc(100 * var(--saito-vh) - var(--saito-header-height) + 3px);
  overflow: hidden auto;
  color: var(--saito-font-color);
}

.saito-header-hamburger-contents.show-menu {
  right: 0;
}

.saito-header-hamburger-contents.show-wallet .wallet-infoo {
  height: 0;
  margin: 0;
}

.saito-header-hamburger-contents.show-wallet .saito-header-menu-section {
  display: none;
}

.saito-header-backdrop {
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: var(--saito-header-height);
  left: 0;
  width: 100vw;
  height: calc(100vh - var(--saito-header-height));
  overflow: hidden;
  z-index: 19;
  background: var(--background-color-shim-dark);
  transition: opacity 0.33s;
}

.saito-header-backdrop.menu-visible {
  opacity: 1;
  pointer-events: auto;
}

.saito-header-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: inherit;
  transition: all 2s;
}

#qrcode,
.qrcode {
  width: 100%;
  max-height: 20rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

#qrcode img,
.qrcode img {
  height: auto;
  max-width: 18rem;
  width: 20vh;
  border: var(--border-thickness-medium) solid var(--saito-primary);
  padding: var(--border-padding-normal);
  border-radius: var(--saito-border-radius);
  background: var(--saito-background-color);
  visibility: inherit;
}

.balance-amount {
  display: flex;
  align-items: baseline;
}

.balance-amount.pending {
  color: var(--saito-font-color-light);
  animation: fade-animation 1.5s infinite ease-in-out;
}

.balance-amount.flash {
  animation: fade-animation 1.5s infinite ease-in-out;
}

.balance-amount-whole,
.balance-amount-separator,
.balance-amount-decimal {
  width: min-content;
  display: block;
}

.balance-amount-whole,
.balance-amount-separator {
  font-size: 3.5rem;
}

.balance-amount-decimal {
  font-size: 2rem;
}

.wallet-btn-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(3rem, 1fr));
  background: var(--saito-font-color);
  color: var(--saito-font-color-inverse);
  border-radius: var(--saito-border-radius);
  margin: 0.5rem 0;
  width: 95%;
  text-transform: uppercase;
}

.wallet-btn {
  display: flex;
  cursor: pointer;
  transition: all 0.2s;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  border-radius: inherit;
}

.wallet-btn:hover {
  color: var(--saito-font-color);
  background: var(--saito-primary);
}

.wallet-identicon {
  width: 3.2rem;
  height: 3.2rem;
  margin: auto 0;
  margin-right: 0.5rem;
}

.pubkey-containter {
  display: flex;
  flex-direction: row;
  width: 75%;
  max-width: 38rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  gap: 1rem;
  font-size: 1.6rem;
}

.pubkey-mobile-wrapper {
  display: none;
  position: absolute;
  bottom: 1rem;
  right: 1rem;
}

.pubkey-mobile-wrapper i {
  font-size: 3.2rem;
  padding: 0.4rem;
}

.pubkey-containter:hover i {
  transform: scale(1.1);
}

.pubkey-mobile-wrapper > i:hover {
  transform: scale(1.1);
}

.wallet-infoo {
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  justify-content: space-around;
  width: 100%;
  background: inherit;
  height: min(50vh, 273px);
  overflow: hidden;
  color: var(--saito-font-color);
  margin: 1.5rem 0;
  transition: all 0.8s;
}

.wallet-balance {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: baseline;
  height: 4.2rem;
  background: inherit;
}

.wallet-balance select {
  border: none;
  width: auto;
  height: 100%;
  font-size: 2.2rem;
  color: inherit;
  background: inherit;
}

.profile-public-key {
  width: fit-content;
}

.profile-public-key > div:first-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-wallet {
  overflow: hidden;
  height: 0;
  transition: all 2s;
}

.saito-header-hamburger-contents.show-wallet .header-wallet {
  height: fit-content;
}

.hamburger-container {
  display: grid;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
  grid-template-columns: 1fr min-content;
}

#header-msg {
  cursor: pointer;
  font-size: 2rem;
  padding: 0 0 0 2rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

#header-msg.flash {
  width: fit-content;
  max-width: fit-content;
  animation: fade-animation 1.5s infinite ease-in-out;
}

@keyframes fade-animation {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
  100% {
    opacity: 1;
  }
}

/*
  Floating menu
*/

.saito-floating-plus-btn {
  margin: auto;
  width: 4.6rem;
  height: 4.6rem;
  transition: transform 200ms ease-out;
  background-color: var(--saito-primary);
  border-radius: 50%;
  position: relative;
  z-index: 2;
  cursor: pointer;
  display: none;
  justify-content: center;
  align-items: center;
  filter: drop-shadow(1px 1px 2px var(--color-contrast));
}

.activated .saito-floating-plus-btn {
  transform: rotate(45deg);
}

.saito-floating-plus-btn i {
  font-size: 2.5rem;
  color: #fff;
  width: 2.5rem;
  height: 2.5rem;
  text-align: center;
}

.saito-floating-menu-item {
  position: relative;
  width: 4.1rem;
  height: 4.1rem;
  border-radius: 50%;
  background-color: var(--saito-background-color); /* testing */
  transition: box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid var(--border-color-general-dividers); /* testing */
  color: var(--saito-font-color);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.saito-floating-menu-item i {
  font-size: 2rem;
}

.saito-floating-menu-mask {
  width: 100%;
  height: 100%;
  background: var(--saito-background-color); /* testing */
  position: absolute;
  opacity: 0;
  transition: all 0.3s linear;
}

.activated .saito-floating-menu-mask {
  width: 100vw;
  height: 100vh;
  opacity: 0.8;
  bottom: -2.5rem;
  right: -2.5rem;
}

.saito-floating-container {
  display: inline-block;
  height: max-content;
  display: block;
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  z-index: 3;
}

.saito-floating-item-container {
  display: flex;
  pointer-events: none;
  transition: all 500ms linear;
  position: absolute;
  height: fit-content;
  width: fit-content;
  bottom: 0;
  right: 0;
  opacity: 0;
  gap: 2rem;
  align-items: center;
  z-index: 2;
}

.saito-floating-item-container.main {
  flex-direction: column;
  /*height: 0;*/
  bottom: 6.5rem;
  left: 50%;
  transform: translateX(-50%);
}

.saito-floating-item-container.alt {
  flex-direction: row;
  /*width: 0;*/
  right: 6.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.activated .saito-floating-item-container {
  opacity: 1;
  pointer-events: auto;
}

.saito-header-logo-wrapper {
  position: relative;
  height: 100%;
  cursor: pointer;
}

.saito-header-logo-wrapper img,
.saito-header-logo-wrapper i::before {
}

.saito-back-button {
  position: absolute;
  font-size: 40px;
  padding: 0.75rem;
  cursor: pointer;
  transition: transform 0.2s;
  top: 0;
  left: 0;
  color: var(--saito-header-color);
  background: var(--saito-header-background);
  background-size: 100vw;
  background-position-x: min(-2rem, calc(- (100vw - var(--saito-width)) / 2 + 0.5rem));
}

.saito-header-logo-wrapper:hover .saito-back-button {
  transform: scale(1.1);
}

.saito-overlay-auto-backup .saito-overlay-subform {
  display: flex;
  gap: 2rem;
  flex-direction: column;
}

.saito-overlay-auto-backup .saito-overlay-form-subtext {
  font-size: 2rem;
  line-height: 2.8rem;
}

.saito-overlay-auto-backup .saito-overlay-subform-text {
  font-size: 1.8rem;
  line-height: 2.5rem;
}

.saito-overlay-auto-backup .saito-overlay-form-submit {
  width: fit-content;
  align-self: end;
}

.saito-overlay-auto-backup .saito-overlay-form-checkbox-container,
.saito-overlay-backup-reminder .saito-overlay-form-checkbox-container {
  display: flex;
  gap: 1rem;
}

.saito-overlay-auto-backup .saito-overlay-subform-checkbox {
  width: 3.5rem;
}

.saito-overlay-backup-reminder .saito-overlay-subform-checkbox {
  width: 2rem;
}

.saito-overlay-backup-reminder .saito-overlay-subform-text {
  line-height: 3rem;
}

.hide-for-fade-in {
  opacity: 0;
  transition: opacity 4s;
}

/*   Crypto Menu */
.saito-header-wallet-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.saito-crypto-details {
  display: grid;
  grid-template-columns: 5rem 1fr;
  grid-template-rows: 2fr 1fr;
  row-gap: 0.5rem;
  column-gap: 1rem;
  height: 6rem;
  padding: 0.5rem 1rem;
}

.saito-crypto-details.unactive {
  filter: grayscale(100%) opacity(75%);
}

.crypto-logo-container {
  position: relative;
  max-width: 5rem;
  max-height: 5rem;
}

.saito-crypto-details .crypto-logo-container {
  grid-column-start: 1;
  grid-column-end: span 1;
  grid-row: span 2;
}

.crypto-logo {
  height: 100%;
  width: 100%;
}

.header-crypto-balance {
  font: var(--saito-font-medium);
  color: var(--saito-font-color-heavy);
  font-size: 19px;
  align-self: flex-end;
}

.header-crypto-value {
  color: var(--saito-font-color-light);
}

@media screen and (max-width: 620px) {
  .saito-header-hamburger-contents {
    width: 100vw;
    right: -100vw;
    border-radius: unset;
  }

  #saito-header {
    padding: 1.3rem 1rem;
  }
  .saito-header-logo {
    width: 12rem;
  }
  .saito-back-button {
    font-size: 30px;
  }
  .saito-floating-plus-btn {
    display: flex;
  }

  .wallet-infoo {
    margin-top: 0.5rem;
    height: 85px;
    gap: 0;
  }

  #qrcode {
    height: 0;
    visibility: hidden;
    overflow: hidden;
  }

  .show-qr .wallet-infoo {
    margin-top: 1.5rem;
    height: 260px;
    gap: 1rem;
  }

  .show-qr #qrcode,
  .show-qr .qrcode {
    height: auto;
    visibility: visible;
  }

  .pubkey-mobile-wrapper {
    display: flex;
  }
}

@media screen and (max-width: 420px) {
  #header-msg {
    font-size: 1.5rem;
  }
}
.game-crypto-transfer-manager-container {
  max-width: 95vw;
  align-items: center;
  color: var(--saito-white);
  background: var(--saito-arcade-overlay-background);
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  width: auto;
  padding: 3rem;
  min-width: 55rem;
}

.game-crypto-transfer-manager-container .token-dropdown {
  color: var(--saito-white);
  background: var(--saito-arcade-overlay-background);
}

.saito-overlay:has(.game-crypto-transfer-manager-container) {
  background: none;
}

.game-crypto-transfer-manager-container .auth_title {
  margin: 0rem;
}

.ignore {
  font-size: 2rem;
}

input[type='checkbox'].ignore_checkbox {
  border: 1px solid white;
  vertical-align: bottom;
  position: relative;
}

.game-crypto-transfer-manager-container .stake-input-container {
  position: relative;
  background: inherit;
  margin-bottom: 2.5rem;
  display: flex;
  gap: 1rem;
  width: max-content;
  align-items: center;
}

#approve-crypto-request-container .stake-input-container {
  margin-bottom: 3.5rem;
}

.game-crypto-transfer-manager-container .stake-input-container.wallet-balance {
  margin-bottom: 1.5rem;
}

.game-crypto-transfer-manager-container .stake-input-container.hidden {
  display: none;
}

.stake-input-error {
  position: absolute;
  display: none;
  color: var(--saito-red);
  font-size: 1.6rem;
  top: 105%;
  left: 1rem;
  font-weight: bolder;
}

#approve-crypto-request-container .stake-input-error {
  top: 140%;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type='number'] {
  -moz-appearance: textfield;
}

.game-crypto-transfer-manager-container .stake {
  background: none;
  border: none;
  color: var(--saito-white);
  border-radius: 0;
  border-bottom: 1px solid var(--saito-white);
  text-align: center;
  padding: 1rem;
  font-size: 4rem;
  display: inline-block;
  width: 80%;
  max-width: 25rem;
}

.stake-input-container .crypto_msg {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-style: italic;
  position: absolute;
  top: 100%;
  width: 100%;
  right: 0;
  white-space: nowrap;
}

.stake-input-container .crypto-ticker {
  position: absolute;
  right: 0;
  bottom: 0;
}

.auth_title {
  font-size: 1.7em;
}

.game-crypto-transfer-manager-container .description p {
  margin-top: 2rem;
}
.game-crypto-transfer-manager-container .description {
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 2.8rem;
}

.crypto_transfer_btn.secondary {
  background: none;
  color: var(--saito-white);
  border: 1px solid var(--saito-border-color); /* testing */
}

#cryptoManagerFeedback {
  display: none;
}

.crypto-stake-offer-btn-container {
  display: flex;
  flex-direction: row;
  width: 100%;
  justify-content: space-evenly;
}

.crypto_amount_btn {
  margin-left: auto;
  margin-right: auto;
  width: auto;
  line-height: 4rem;
  margin-top: 1rem;
}

.commentary {
  font-size: 1.6rem;
  line-height: 2.5rem;
  cursor: pointer;
}

.crypto_transfer_btn.hidden {
  display: none;
}

.crypto-stake-confirm-container {
  position: relative;
  display: flex;
  flex-direction: row;
  padding: 0rem;
  gap: 1rem;
  width: fit-content;
  min-width: 35rem;
}

.crypto-stake-confirm-container input {
  background: none;
}

.crypto_msg {
  font-size: 1.6rem;
}

.select_max,
.select_min,
.select_match {
  cursor: pointer;
}

.select_match.nomatch {
  order: 1;
  cursor: not-allowed;
  opacity: 50%;
}

.amount {
  font-size: 2.4em;
  margin: auto;
}
.from_address {
  margin-bottom: 20px;
}
.send_to {
  font-size: 1.4em;
}
.from_address,
.to_address {
  font-size: 1.6em;
  text-overflow: ellipsis;
  overflow: hidden;
}
.game-crypto-transfer-manager-container .spinner {
  max-width: 10rem;
  margin-left: auto;
  margin-right: auto;
  width: 10rem;
}

.game-crypto-transfer-manager-container .game-crypto-icon {
  font-size: 8rem;
  display: none;
}

.crypto-transfer-countdown {
  margin-left: auto;
}

.crypto-transfer-countdown span {
  font-family: monospace;
}

.counterparty-details {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.counterparty-details .saito-user {
  width: unset;
  align-items: self-end;
}

.counterparty-details .saito-user > .saito-address {
  color: white;
  font-size: 1.2em;
}

.counterparty-details .saito-identicon-box {
  width: 5rem;
  height: 5rem;
}

.counterparty-details .saito-userline {
  text-transform: unset;
}

.history-to-publickey {
  text-align: left;
  line-height: 2.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  width: 80%;
}

.history-to-address-container {
  display: flex;
  flex-direction: row;
  width: 80%;
  justify-content: flex-end;
}

.history-to-address-container .history-to-address {
  line-height: 2.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  width: 100%;
}

.history-copy-address {
  line-height: 2.2rem;
  cursor: pointer;
}
.saito-profile {
  min-width: 0;
  width: 100%;
  padding: 0;
  max-width: 1000px;
  margin: auto;
}

.saito-profile-menu {
  margin-left: 0.2rem;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
}

.saito-profile-menu > div {
  cursor: pointer;
  padding: 1rem;
  text-transform: capitalize;
}

.saito-profile-menu > div:hover {
  color: var(--saito-primary);
  background-color: var(--background-color-button-sidebar);
  border-radius: var(--saito-border-radius);
}

.saito-profile-menu .active {
  text-decoration: underline dashed;
  text-underline-offset: 0.5rem;
  /*border-bottom: 1px dashed var(--saito-font-color);*/
}

.saito-profile-banner {
  width: 100%;
  height: 0;
  padding-top: min(33.33%, 180px);
  background-image: url(/saito/img/profile-banner.jpg);
  background-size: cover;
  background-position: center;
  position: relative;
}

.saito-profile-header-row .saito-identicon-box {
  border: var(--border-thickness-medium) solid var(--border-color-identicon-square-profile);
  width: 10rem;
  height: 10rem;
  background-size: cover;
  border-radius: 5%;
  margin-top: -4.5rem;
  z-index: 1;
  margin-left: 1rem;
  position: relative;
  cursor: unset;
  font-size: 4rem;
}

.saito-profile-header-row .saito-identicon-box .saito-overlaid-icon {
  top: 50%;
}

.limbo-floating-overlay .saito-profile-header-row .saito-identicon-box .saito-overlaid-icon {
  left: 50%;
  width: 6rem;
  height: 6rem;
}

.saito-banner-edit {
  margin-left: 0;
  right: 0.5rem;
  bottom: 0.5rem;
  position: absolute;
  text-shadow: 1px 1px 4px var(--saito-black);
  cursor: pointer;
}

.saito-profile-description {
  position: relative;
  margin-left: 1rem;
  padding: 0.5rem;
  margin-right: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.saito-profile-description.empty {
  display: none;
}

.saito-profile-description.can-edit.empty {
  display: block;
}

.saito-profile-description.can-edit {
  display: grid;
  grid-template-columns: 1fr min-content;
  cursor: pointer;
}

.saito-description-edit {
  display: none;
  cursor: pointer;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: flex-end;
  font-size: 1.5rem;
}

.saito-profile-description.can-edit .saito-description-edit {
  display: flex;
}

.saito-follow {
  font-size: 1.5rem;
  color: var(--saito-font-color-light);
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  cursor: pointer;
}

.saito-follow-count {
  color: var(--saito-font-color-heavy);
  font-weight: bold;
}

.saito-profile-header-row {
  display: grid;
  grid-template-columns: min-content 1fr;
  align-items: center;
  height: 5rem;
  gap: 1rem;
  margin-bottom: 1rem;
  margin-right: 0.5rem;
}

.saito-profile-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-evenly;
  height: 100%;
  min-width: 0;
  max-width: 100%;
}

.saito-profile-username {
  font-size: 2.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  white-space: nowrap;
}

.saito-profile-key {
  font-size: 1.4rem;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.saito-profile .saito-modal-menu-option {
  font-size: 2rem;
  height: unset;
  width: 100%;
  padding: 1rem;
  margin: 0;
}

.saito-profile .saito-modal-menu-option > div {
  font-size: 1.8rem;
}

.saito-profile .saito-modal-menu-option > i {
  justify-self: center;
  margin: 0;
}

.saito-profile-note {
  margin-top: 0.5rem;
}

.saito-banner-edit {
  color: var(--saito-gray-850);
}

@media screen and (max-width: 600px) {
  .saito-profile-header-row {
    margin-bottom: unset;
  }

  .saito-profile-header-row .saito-identicon-box {
    border-width: 1px;
    width: 7rem;
    height: 7rem;
    margin-top: -2.5rem;
    margin-left: 0.5rem;
  }
  .saito-profile-menu {
    justify-content: space-between;
  }
  .saito-profile-menu > div {
    margin-right: unset;
    flex-grow: 1;
    text-align: center;
  }

  .saito-profile-description {
    margin: unset;
  }
}
/* ----------------------------------------------------------------
Saito Table
-----------------------------------------------------------------*/

.saito-table-body {
  font-size: 1.5rem;
  display: grid;
  grid-template-columns: auto;
  grid-gap: 0.75rem;
  width: 100%;
  position: relative;
  border-radius: 0.1rem;
  max-height: 100%;
  height: fit-content;
  position: relative;
  overflow-y: auto;
  min-height: 2rem;
}

.saito-table-row {
  display: grid;
  grid-template-columns: 1fr min-content;
  grid-gap: 0.5rem;
  padding: 0.6rem 1rem 0.5rem;
  background: var(--saito-highlight);
}

.saito-table-row:hover {
  background: var(--saito-highlight-heavy);
}

.saito-table-rank {
  font-family: courier, monospace;
  font-size: 1.5rem;
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  justify-content: space-around;
}

.saito-table-header {
  display: grid;
  grid-gap: 0.5rem;
  padding: 0.6rem 1rem 0.5rem;
  width: 100%;
  text-align: center;
  text-transform: capitalize;
  color: var(--saito-font-color-heavy);
  background: var(--saito-highlight-heavy);
}

.saitox-table {
  display: grid;
  grid-template-rows: repeat(auto-fill, minmax(3rem, 1fr));
  grid-template-columns: repeat(5, minmax(max-content, 1fr));

  font-size: 1.5rem;
  width: 100%;
  position: relative;
  border-radius: var(--saito-border-radius);
  max-height: 100%;
  height: fit-content;
  position: relative;
  overflow-y: auto;
  min-height: 2rem;
  align-items: center;
}

.saitox-table > div {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Right Justify */
  padding: 0 0.5rem;
  border-bottom: 1px solid var(--saito-border-color-light);
  min-height: 3rem;
}

.saitox-header-item {
  text-align: center;
  text-transform: capitalize;
  color: var(--saito-font-color-heavy);
  background: var(--saito-highlight-heavy);
  font-family: var(--saito-font-medium);
}

.saitox-table-break {
  grid-column: span 5;
  width: 100%;
  justify-content: flex-start !important;
  font-style: italic;
}

.crypto-timestamp {
  font-family: var(--saito-font-monospace);
}
.saito-input {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: fit-content;
	overflow: visible;
}

.saito-input .text-input:not(.post-tweet-textarea) {
	/*height: 100%;*/
	width: 100%;
	padding: 1.2rem 3rem 1.2rem 1rem;
	cursor: text;
	border: transparent;
	font-size: 1.6rem;
	line-height: 2rem;
	outline: none;
	background: var(--background-color-message-input);
	max-height: 15rem;
	overflow-y: auto;
	word-break: break-word;
	min-height: 4.5rem;
	max-height: 12.5rem;
	height: fit-content;
}

.saito-input-selection-box {
	position: absolute;
	height: min(46rem, 50vh);
	width: 36rem;
	max-width: 100%;
	z-index: 150;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-direction: column;
	border: var(--border-thickness-medium) solid var(--border-color-general-dividers);
	border-radius: var(--saito-border-radius);

	/*
	We can't control for if user resizes chat-popup, better to have visibile borders
	border-top: none;
	border-left: none;
	*/
	background-color: var(--saito-background-color); /* testing */
}

.saito-mention {
	cursor: pointer;
	color: var(--saito-primary);
	font-style: italic;
	user-select: none;
	margin-right: 8px !important;
	width: fit-content;
}

.saito-mention:hover {
	color: var(--saito-font-color);
}

* + .saito-mention {
	margin-left: 8px;
}

.saito-mention.saito-address {
	overflow: visible;
}

.selection-box-window {
	position: relative;
	width: 100%;
	height: 100%;
}

.photo-window {
	font-size: 3rem;
	text-align: center;
	padding: 4rem;
	cursor: pointer;
	opacity: 0.5;
}

.selection-box-pane {
	display: none;
	position: absolute;
	margin: auto;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
}

.selection-box-pane.active-tab {
	display: flex;
}

.selection-box-tabs {
	display: flex;
	align-items: center;
	justify-content: space-evenly;
	width: 100%;
	height: 5rem;
	background-color: var(--saito-background-color);
	border-top: 1px var(--border-color-general-dividers);
}

.selection-box-tabs i {
	font-size: 2.5rem;
}

.saito-box-tab {
	font-size: 1.2rem;
	color: var(--saito-primary);
	border-radius: 8px;
	transition: background 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 4rem;
	height: 4rem;
}

/* override definitions from giphy.css */
.selection-box-window .saito-gif-container {
	padding: 0.5rem;
}

emoji-picker {
	display: none;
	--emoji-size: 2.5rem;
	--emoji-padding: 0.5rem;
	z-index: 2;
}

.saito-emoji {
	position: absolute;
	right: 0;
	bottom: 0;
	padding: 0.8rem 0.5rem;
	color: var(--saito-primary);
	cursor: pointer;
	transition: all 0.2s;
	font-size: 2rem;
}

.selection-box-window emoji-picker {
	width: 100%;
	height: 100%;
	display: flex;
}

.saito-input-large .selection-box-tabs {
	width: 14rem;
	border-top: unset;
	background-color: unset;
	align-items: flex-end;
	justify-content: space-between;
}

.at-window {
	flex-direction: column;
	justify-content: flex-start;
}

.at-window .saito-input-mention-header {
	font-size: 2.2rem;
	width: 100%;
	display: grid;
	align-items: center;
	grid-gap: 1rem;
	grid-template-columns: 1fr 2rem;
	padding: 1rem;
}

.at-window .saito-input-mention-header input {
	margin-bottom: 0;
}

.saito-input-contact-list {
	width: calc(100% - 2px);
	position: absolute;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	padding: 0.5rem;
	font-size: 2rem;
	overflow: auto;
	flex: 1;
	background: var(--saito-background-color); /* testing */
	border-radius: 0.5rem;

	/* for popping up over input field */
	max-height: 200px;
	bottom: 0;
}

.at-window .saito-input-contact-list {
	bottom: unset;
	top: 5rem;
	max-height: calc(100% - 4.5rem);
	position: static;
}

.saito-input-contact {
	cursor: pointer;
	display: flex;
	gap: 0.5rem;
	width: 100%;
	align-items: center;
	height: 4rem;
	padding: 0.75rem;
}

.saito-input-contact:hover,
.saito-input-contact:focus {
	background-color: var(--saito-primary);
}

.no-mouse .saito-input-contact:hover {
	background-color: revert;
}

.saito-input-quote {
	display: grid;
	grid-template-columns: 5rem auto 3rem;
	align-items: center;
	font-size: 1.5rem;
}

.saito-input-quote i {
	justify-self: center;
	font-size: 2rem;
}

.saito-input-quote blockquote {
	background-color: rgba(250, 250, 250, 0.1);
	cursor: default;
}

.saito-input-quote .cancel-quote {
	cursor: pointer;
	font-size: 2.5rem;
	width: 40px;
	height: 40px;
	border-radius: 40px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.chat-footer .saito-input-quote i:hover {
	transform: unset;
}

.chat-footer .saito-input-quote i.cancel-quote:hover {
	background-color: var(--saito-primary);
	color: var(--saito-white);
}

/* saito mentions list */
.saito-mentions-list {
	background-color: var(--saito-background-color);
	position: absolute;
	z-index: 104;
	color: var(--saito-font-color);
	max-height: 30rem;
	border: 1px solid var(--saito-border-color);
	overflow-y: scroll;
	font-size: 1.6rem;
	border-radius: 0.5rem;
	padding: 0.5rem 0 0.5rem 0.2rem;
	max-width: 100%;
	width: 36rem;
}

.saito-mentions-list.hidden {
	border: none;
}

.saito-mentions-list.empty {
	border: none;
	background: none;
}

.saito-mentions-list .menu-item {
	padding: 0.55rem;
	width: calc(100% - 4rem);
	overflow: hidden;
	text-overflow: ellipsis;
}

.saito-mentions-list .saito-identicon {
	width: 3rem;
	height: 3rem;
}

.menu-item.selected {
	background-color: var(--saito-primary);
	color: white;
}

.menu-item:hover {
	cursor: pointer;
}

.saito-mentions-contact {
	cursor: pointer;
	display: flex;
	width: 100%;
	align-items: center;
	height: 4rem;
	padding: 0.75rem 0.5rem;
	gap: 0.5rem;
}

.saito-mentions-contact:hover .menu-item {
	background-color: var(--saito-background-color); /* #afafaf  old  testing */
	color: var(--saito-font-color);
}

@media only screen and (max-width: 768px) {
	.saito-input-large .selection-box-tabs {
		align-items: center;
		height: 6rem;
		width: 14rem;
		margin-left: unset;
	}

	.saito-box-tab {
		font-size: 3rem;
	}
}
.chat-manager {
  min-height: 25%;
  /*flex: 1;*/
  position: relative;
  display: grid;
  grid-template-rows: 40px 1fr;
  user-select: none;
}

.chat-manager .saito-userline {
  text-overflow: ellipsis;
  overflow: hidden;
  width: 13rem;
  white-space: nowrap;
  height: 1.8rem;
}

.chat-manager .saito-userline .img-prev {
  max-width: 100%;
  cursor: pointer;
}

.chat-popup-img-overlay-box {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid var(--saito-border-color);
  border-radius: var(--saito-border-radius);
  background-image: url(/saito/img/tiled-logo.svg);
  background-color: var(--saito-background-color);
}

.chat-popup-img-enhanced {
  max-height: 80vh;
  max-width: 95vw;
  border: 1px solid var(--saito-border-color);
  border-radius: var(--saito-border-radius);
}

.chat-manager .saito-user {
  padding: 0.75rem 0.5rem;
  border-radius: var(--saito-border-radius);
  overflow: hidden;
  min-height: 4.5rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.chat-manager .saito-user:hover {
  background-color: var(--saito-primary);
  color: var(--saito-white);
}

.chat-manager .saito-user:hover .saito-userline,
.chat-manager .saito-user:hover .saito-address {
  color: inherit;
}

.chat-manager-list {
  gap: 0.5rem;
  display: flex;
  flex-direction: column;
  min-height: 22rem;
  max-height: 100%; /*calc(100% - 5rem);*/
  position: relative;
}

.chat-manager-list .saito-address {
  font-size: 1.5rem;
  line-height: 1.8rem;
}

.chat-manager-list .saito-userline {
  font-size: 1.5rem;
}

.chat-manager-list.saito-sidebar-element {
  padding: 1rem;
  border: var(--border-thickness-thin) solid var(--saito-border-color);
}

.new-notification {
  background: linear-gradient(90deg, #0003 47%, var(--saito-primary), #0003 53%);
  background-size: 300%;
  animation: notificationAnimation 1.8s ease;
}

.new-notification .saito-chat-notifications {
  visibility: hidden;
}

@keyframes notificationAnimation {
  0% {
    background-position: 100%;
  }
  100% {
    background-position: 0%;
  }
}

.chat-popup .saito-notification-dot {
  min-width: 3.5rem;
  min-height: 3.5rem;
  bottom: 6rem;
  left: unset;
  right: 2rem;
  cursor: pointer;
}

.chat-popup.minimized .saito-notification-dot {
  min-height: unset;
  height: 100%;
  left: 0;
  bottom: 0;
  border-radius: 0;
  z-index: inherit;
}

.chat-popup .saito-notification-dot i,
.chat-popup .saito-notification-dot:hover .new-message-count {
  display: none;
}

.chat-popup .saito-notification-dot:hover i {
  display: block;
}

.chat-popup.minimized .saito-notification-dot:hover i {
  display: none;
}

.chat-popup.minimized .saito-notification-dot .new-message-count {
  display: block;
}

.chat-popup .link-preview {
  max-width: 40rem;
}

.chat-popup .link-info {
  padding: 1rem;
}

.chat-popup .saito-treated-link[data-link='local_link'] .link-url,
.chat-container .saito-treated-link[data-link='local_link'] .link-description {
  display: none;
}

.chat-popup .saito-treated-link[data-link='local_link'] .link-img.has-picture {
  max-height: 10rem;
}

/* Chat teaser indicating said chat is open in a popup */
.saito-chat-active {
  background-color: color-mix(in srgb, var(--saito-gray-700) 27%, transparent);
  color: var(--saito-font-color-secondary);
}

.chat-body blockquote {
  cursor: help;
}

/* Embedded chat container */

.chat-static {
  height: 100%;
  width: 100%;
  position: relative;
}

.chat-static .chat-minimizer-icon,
.chat-static .chat-maximizer-icon,
.chat-static .chat-container-close,
.chat-static .fa-comment-dots {
  display: none;
}

.chat-container {
  position: fixed;
  bottom: 0px;
  border: var(--border-thickness-thin) solid var(--saito-border-color);
  background: var(--saito-background-color);
  color: var(--saito-font-color);
  max-height: 100vh;
  min-width: 30rem;
  min-height: 20rem;
  height: 50rem;
  width: 36rem;
  border-radius: var(--saito-border-radius);
  z-index: 20;
  /* making z-index greater than overlay so that users
     can chat or send each other their crypto address without
     closing the withdraw overlay
  */
  /* So weird, at 15 it blocks the z-index 20 slide in menu*/
  /* reason: the slidein is child of saito header, so whatever z-index is assigned to saito header,
  the child (slidein menu) inherits it */
  box-shadow: var(--saito-box-shadow);
}

.chat-container,
.chat-container .chat-body,
.chat-container .chat-footer {
  transition: all 0.15s ease-in-out;
}

.chat-popup {
  display: grid;
  grid-template-rows: min-content 1fr min-content;
  grid-template-columns: 100%;
  align-items: center;
}

.chat-container.active {
  z-index: 21;
}

.chat-container.dragging {
  z-index: 22;
}

.chat-container.minimized {
  height: 3rem;
  min-height: unset;
  grid-template-rows: 30px auto;
}

.chat-container.minimized .chat-body,
.chat-container.minimized .chat-footer {
  height: 0;
  min-height: unset;
  overflow: hidden;
  padding: 0;
  opacity: 0;
  /*
  This works but is a little abrupt
  display: none;
  */
}

.chat-container.minimized .chat-header {
  min-height: unset;
}

.chat-body img {
  /* If a small image, we don't want to zoom in
  but the width: 100% should keep it from being to big
   */
  max-width: fit-content;
  width: 100%;
}

.chat-header {
  z-index: inherit;
  min-height: 6rem;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  width: 100%;
}

.chat-header > .chat-header-nav {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  border-bottom: 1px solid var(--saito-border-color); /* border splitting the header on chat popup*/
  cursor: grab;
  font-size: 1.7rem;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  padding-left: 1rem;
  overflow: hidden; /* for extreme border radius */
}

.chat-header > .chat-header-nav > i {
  margin: 0;
  color: var(--saito-font-color-heavy); /* popup-button colour */
  font-size: 1.4rem;
  display: inline-block;
  position: relative;
  transition: all 0.2s;
  cursor: pointer;
  padding: 0.5rem;
  height: 100%;
  width: 2.4rem;
  text-align: center;
}

.chat-header > .chat-header-nav > i:hover {
  background-color: var(--saito-primary);
  color: var(--saito-background-color);
}

.fix-me {
  cursor: pointer;
}

.chat-container.minimized .chat-header-nav {
  align-items: center;
  height: 3rem;
}

.chat-container.minimized .chat-header-nav > i {
  padding: 0.8rem 0.5rem;
}

.chat-header-info {
  height: 4rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0px 1px 3px -1px; /* added some depth to the header here. Across all themes, but I feel it is necessary. */
}

.chat-header-info i {
}

.chat-container.minimized .chat-header-info {
  display: none;
}

.chat-actions {
  display: flex;
  flex-direction: row-reverse;
}

.chat-action-icons {
  display: flex;
  flex-direction: row;
  height: 100%;
  align-items: center;
  font-size: 2rem;
  color: var(--saito-font-color-heavy); /* ellipsis */
}

.chat-action-item,
.chat-action-menu,
.chat-mobile-back {
  cursor: pointer;
  height: 4rem;
  width: 3.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s;
}

.chat-action-menu {
  width: 3rem;
}

.chat-action-item:hover,
.chat-action-menu:hover {
  background-color: var(--saito-primary);
  color: var(--saito-background-color);
}

.chat-action-item:hover i,
.chat-action-menu:hover i {
}

/*.chat-header > i:last-child:hover {
  transform: rotate(90deg) scale(1.1);
}*/

.chat-header .chat-group {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: default;
  font-size: 1.7rem;
}

.chat-header .chat-group.saito-address {
  cursor: pointer;
}

.chat-header-nav .chat-details,
.chat-header-info .chat-details {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  margin-left: 1rem;
  align-items: center;
  flex-grow: 1;
}

.chat-header-nav .chat-details {
  display: none;
}

.chat-header-nav .chat-details .chat-group {
  max-width: 82%;
}

.chat-popup.minimized .chat-header .chat-header-nav .chat-details {
  display: flex;
}

.chat-mobile-back {
  display: none;
  font-size: 24px;
}

.chat-body {
  padding: 1rem;
  display: block;
  height: 100%;
  overflow: clip auto;
  background-image: url(/saito/img/tiled-logo.svg);
  background-color: var(--saito-background-color);
}

.chat-body > .saito-user {
  padding-bottom: 1.5rem;
  cursor: default;
  grid-template-rows: min-content 1fr;
  min-height: 5.5rem;
  gap: 0 2rem;
}

.chat-body .saito-user .saito-userline {
  /* others messages*/
  font-size: 1.6rem;
  padding: 0.75rem;
  padding-right: 3rem;
  border-radius: 0.5rem 0.5rem 0.5rem 0;
  background: var(--saito-background-color);
  box-shadow:var(--saito-box-shadow);
  margin-right: 1rem;
  height: fit-content;
  overflow: visible;
}

.chat-body .saito-user > .saito-address {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
  font-family: var(--saito-font);
  color: var(--saito-font-color-light);
}

.chat-body .saito-user-self.saito-user {
  display: flex;
  justify-content: flex-end;
}

/* self's messages -- inverse of other people's messages */
.chat-body .saito-user-self.saito-user .saito-userline {
  box-shadow: var(--saito-box-shadow);
  border-radius: var(--saito-border-radius);
}

/* hide my own name */

.chat-body .saito-user-self.saito-user > .saito-address,
.chat-body .saito-user-self.saito-user > .saito-identicon-box {
  display: none;
}

.saito-mention.saito-address.treated {
  display: inline-block !important;
  margin: 0 8px 0 0;
}

/* Hide user names in 2-person chats */

.saito-dm-chat .chat-body .saito-user .saito-address {
  visibility: hidden;
  height: 0;
}

.chat-body .saito-identicon-box {
  align-self: end;
}

.chat-manager .saito-userline {
  color: var(--saito-font-color-secondary);
  font-style: italic;
}

.saito-time-stamp {
  font-size: 1.4rem;
  text-align: center;
  color: var(--saito-font-color-secondary);
  font-style: italic;
  margin: 3px 0;
}

.saito-chat-notice {
  color: var(--saito-font-color-secondary);
  font-style: italic;
}

.saito-chat-line-controls {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  grid-row: span 2;
}

.chat-message-line {
  position: relative;
  padding: 0.25rem;
  word-wrap: anywhere;
  white-space: normal;
}

.chat-message-line p {
  overflow: hidden;
  height: min-content;
}

.chat-message-line li {
  margin-left: 2rem;
}

.saito-userline-reply {
  display: none;
}

.chat-body .saito-userline {
  width: unset !important;
  min-width: 10rem;
  max-width: 600px;
}

.chat-message-line .saito-userline-reply {
  display: flex;
  position: absolute;
  flex-direction: row;
  align-items: center;
  right: -5rem;
  bottom: 1; /* bumped it down a notch, and closer to the element */
  z-index: 9;
  background: var(--saito-background-color);
  border-radius: var(--saito-border-radius);
  border: var(--border-thickness-thin) solid var(--saito-border-color);
  font-size: 1.1rem; /* made this way smaller, but this way access immediately below the line works better */
  opacity: 0; /* Initial opacity set to 0 for invisibility */
  transition: opacity 0.3s ease-in-out; /* Transition effect on opacity */
}

.chat-message-line .saito-userline-reply > div {
  padding: 4px;
  cursor: pointer;
  min-height: 22px;
  min-width: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-message-line .saito-userline-reply > div.saito-chat-line-timestamp {
  cursor: revert;
}

.chat-message-line:hover .saito-userline-reply {
  opacity: 1; /* Opacity set to 1 on hover to make the element visible */
}

.chat-likes {
  right: -4rem;
  bottom: 0;
  display: flex;
  width: 40px;
  font-size: 1.3rem;
  font-weight: bold;
  align-items: center;
  gap: 0.25rem;
}

.chat-likes .chat-like-number {
  margin-left: 0.2rem;
}
.saito-user-self .chat-message-line:hover .saito-userline-reply {
  right: -2.5rem;
}

.saito-user-self .chat-message-line .saito-userline-reply .chat-message-action {
  display: none;
}

.saito-user .saito-userline-reply i:hover {
  transform: scale(1.2);
  color: var(--saito-primary);
  cursor: pointer;
}

.chat-footer {
  min-height: 4.5rem;
  height: fit-content;
  font-size: 2rem;
  /*position: absolute;
  bottom: 0;*/
  width: 100%;
  padding: 0;
  display: flex;
  flex-flow: row;
  align-items: end;
  z-index: 2;
  border-top: 1px solid var(--saito-border-color);
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
  background: var(--saito-background-color);
  position: relative;
}

.chat-container blockquote {
  color: inherit;
  line-height: 2.5rem;
  margin: 0.5rem 0;
}

.chat-footer .saito-emoji {
  padding: 1.3rem 0.5rem;
}

/* This is the submit paper airplane icon */

.chat-footer > i {
  color: var(--saito-primary);
  cursor: pointer;
  z-index: 2;
  transition: all 0.2s;
  font-size: 2rem;
  padding: 1.3rem 1rem 1.3rem 0.5rem;
}

.chat-footer i:hover {
  transform: rotate(45deg);
}

.dockedLeft {
  border-left: 3px solid var(--saito-primary) !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

.dockedRight {
  border-right: 3px solid var(--saito-primary) !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.dockedTop {
  border-top: 3px solid var(--saito-primary) !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
}

.dockedBottom {
  border-bottom: 3px solid var(--saito-primary) !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.remove_user {
  padding: 0.5rem;
}

.remove_user:hover {
  color: var(--saito-font-color-secondary);
}

.chat-main-container {
  background-color: var(--saito-background-color);
  background-image: url(/saito/img/tiled-logo.svg);
}

.chat-main-container .chat-body {
  background-color: unset;
  background-image: unset;
}

.chat-main-container .saito-sidebar.left {
  background-color: var(--saito-background-color);
}

.saito-chat-button {
  cursor: pointer;
  width: fit-content;
  margin: auto;
  padding: 4px;
  color: var(--saito-border-color);
  font-style: italic;
  font-size: 1.4rem;
}

.saito-chat-button:hover {
  font-style: unset;
  color: var(--saito-font-color-heavy); /* testing */
}

/* Mobile Overlay */

.close-chat-manager {
  margin-right: auto;
  display: none;
  position: relative;
  height: 100%;
}

.chat-manager-overlay .close-chat-manager {
  display: block;
}

.close-chat-manager i {
  position: absolute;
  left: 0;
  top: 0;
  padding: 0.6rem 1.1rem;
  color: var(--saito-header-color);
  background: var(--saito-header-background);
  font-size: 24px;
}

.chat-manager-options {
  height: 100%;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-manager-overlay .chat-manager-header {
  font-size: 20px;
  padding-right: 1rem;
}

.chat-manager-overlay {
  background-color: var(--saito-background-color); /* testing */
  position: absolute;
  left: 0;
  top: var(--saito-header-height);
  z-index: 90;
  width: 300px;
  border: var(--border-thickness-thin) solid var(--saito-border-color);
  box-shadow: var(--saito-box-shadow);
  border-radius: var(--saito-border-radius);
  height: fit-content;
  overflow: hidden;
}

.floating-cm-overlay .chat-manager-header {
  cursor: grab;
}

.alternate-close-button,
.floating-cm-overlay .chat-manager-options,
.chat-manager-overlay.floating-cm-overlay .close-chat-manager {
  display: none;
}

.chat-manager-overlay .chat-manager-list.saito-sidebar-element {
  box-shadow: unset;
  padding: unset;
  border: unset;
}

.floating-cm-overlay .alternate-close-button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 30px;
}

.chat-manager-overlay.floating-cm-overlay .chat-manager {
  max-height: 400px;
}

.chat-manager-overlay.floating-cm-overlay .chat-manager-list {
  min-height: unset;
  max-height: unset;
}

.chat-popup.maximized .chat-maximizer-icon,
.chat-popup.minimized .chat-minimizer-icon {
  background-color: var(--saito-primary);
  color: var(--saito-background-color);
}

@media screen and (max-width: 720px) {
  .chat-manager-overlay .chat-manager-title {
    display: none;
  }

  .chat-header i.chat-sizing-icon {
    display: none;
  }

  .chat-header > .chat-header-nav > i.chat-container-close {
    width: 4rem;
    text-align: center;
    font-size: 2.4rem;
  }

  .chat-container,
  .chat-container .chat-body,
  .chat-container .chat-footer {
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -o-transition: none !important;
    transition: none !important;
  }
}

@media screen and (max-width: 600px) {
  .chat-manager-overlay {
    top: 0;
    height: 100vh;
    height: calc(100 * var(--saito-vh));
    width: 100vw;
    max-height: -webkit-fill-available;
    max-width: -webkit-fill-available;
    border-radius: unset;
  }

  .chat-manager-overlay .chat-manager {
    margin-left: auto;
    margin-right: auto;
    min-height: 25rem;
    height: 100%;
    grid-template-rows: var(--saito-header-height) 1fr;
  }

  .chat-manager-overlay .close-chat-manager i {
    width: 45px;
    height: 70px;
    font-size: 3rem;
    padding: 2rem 0.8rem;
  }

  .chat-container {
    margin: 0;
    min-width: unset;
    width: 100vw;
    height: 100vh;
    height: calc(100 * var(--saito-vh));
    max-height: -webkit-fill-available;
    max-width: -webkit-fill-available;
    border-radius: 0;
    /* For the keyboard */
    right: 0;
    bottom: 0;
    top: 0;
    left: 0;
  }

  .chat-header > .chat-header-nav {
    display: none;
  }

  .chat-mobile-back {
    display: flex;
    margin: 1rem;
  }

  /* emoji-picker breaks this */
  .chat-manager-overlay + .chat-container {
    height: 100vh;
    height: calc(var(--saito-vh) * 100);
    z-index: 90;
  }

  .chat-header-info {
    height: 6rem;
  }
}
.tweet-overlay {
  background: var(--saito-background-color);
  padding: var(--border-padding-wide);
  max-height: 95vh;
  max-width: 98vw;
  width: 600px;
  overflow: visible;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Twitter copy overrides */
#tweet-overlay {
  border-radius: var(--saito-border-radius);
  padding: 24px;
  animation: fadeIn 0.2s ease-in-out forwards;
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 99999;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.tweet-overlay-content {
  display: flex;
  flex-direction: column;
}

.tweet-overlay-content .tweet-overlay-header {
  order: 1;
}

.tweet-overlay-content .saito-input {
  order: 2;
}

.tweet-overlay-content-controls {
  display: flex;
  flex-direction: row;
  justify-content: right;
  align-items: center;
  flex-wrap: wrap;
}

.tweet-overlay-content-controls i {
  color: transparent;
  font-size: 2rem;
  -webkit-text-stroke: var(--saito-primary) 1px; /* testing */
  padding: 1rem;
  cursor: pointer;
  position: relative;
  transition: all 0.1s;
}

.tweet-overlay-content-controls i:hover {
  transform: scale(1.1);
}

.post-tweet-preview {
  margin-bottom: 1.5rem;
}

.post-tweet-preview > .tweet {
  margin-bottom: 1.5rem;
  padding: 0 0 2rem;
  max-height: 50vh;
  overflow-y: scroll;
  overflow-x: hidden;
}

.post-tweet-textarea {
  display: block;
  padding: 1.4rem;
  width: 100%;
  outline: none;
  font-size: 1.6rem;
  margin: 1rem 0;
  min-height: 15rem;
  line-height: 2.25rem;

  resize: none;
  box-shadow: inset 0 0 0 1px #ddd;
  transition: background 0.3s ease;

  border-radius: 12px;
  /* Copied from textarea in saito-form-elements */
  background: var(--saito-background-color);
  color: var(--saito-font-color);
  border: none;
}

.post-tweet-textarea:focus {
  background: var(--saito-highlight);
  box-shadow: inset 0 0 0 1px var(--saito-primary);
}

.post-tweet-img-preview-container {
  position: absolute;
  left: 19.5rem;
  bottom: 1.1rem;
  width: calc(100% - 40rem);
  height: 7rem;
  align-items: self-start;
  border: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1rem;
}

.post-tweet-img-preview {
  position: relative;
  height: auto;
  width: 4rem;
  cursor: pointer;
  z-index: 1;
}

.post-tweet-img-preview-container img {
  max-width: 100px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-tweet-img-preview img {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 6rem;
  border: 1px solid var(--saito-primary);
  border-radius: var(--saito-border-radius);
  overflow: hidden;
}

.post-tweet-img-preview i {
  position: absolute;
  font-size: 6rem;
  color: var(--saito-primary); /* testing */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  display: none;
}

.post-tweet-img-preview:hover img {
  filter: brightness(0.5);
}

.post-tweet-img-preview:hover i {
  display: flex;
}

.post-tweet-button {
  margin-right: 0;
  line-height: 2.5rem;
  font-size: 1.8rem;
  position: absolute;
  max-width: 35%;
  bottom: 2rem;
  right: 2rem;
  padding: 15px 35px;
  border-radius: 999px;
  font-weight: bold;
  z-index: 1; /* So button is clickable above the saito-input-large */
}

@media screen and (max-width: 600px) {
  .post-tweet-preview {
    display: none;
  }

  #tweet-overlay {
    padding: 12px;
    /*transform: translate(-50%, -75%);*/
  }

  .tweet-overlay .tweet-overlay-content {
    margin: 0;
  }

  .post-tweet-button {
    bottom: 2.4rem;
    padding: 15px 25px;
  }

  .post-tweet-img-preview-container {
    width: calc(100% - 2rem);
    left: 1rem;
    top: calc(100% + 0.5rem);
  }

  .post-tweet-img-preview {
    width: 20%;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translate(-50%, -50%);
    }
    to {
      opacity: 1;
      transform: translate(-50%, -75%);
    }
  }
}
.saito-progress-bar-container{
	background: var(--saito-primary);
	width: 75%;
	margin: 0 12.5%;
	height: 3rem;
	padding: 0 1rem;
	display: flex;
	align-items: center;
	background-size: 400% auto;
	position: absolute;
    /*z-index: 999;  z-index governed by redsquare-progress-banner */
    border-radius: var(--saito-border-radius);
    border: var(--border-thickness-thin) solid var(--saito-background-color);
	top: 0.75rem;
}

.saito-progress-bar-container.active{
	animation: shimmer 3s infinite alternate ease-in-out;
}

.saito-progress-bar {
	color: var(--saito-background-color);
	text-shadow: 1px 1px 1px var(--saito-black);
	text-wrap: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

@keyframes shimmer {
	from {
		background-position: 0 0;
	}
	to {
		background-position: 99% 99%;
	}
}

.saito-img-arrow-box {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.saito-img-arrow-box.left {
  left: -10rem;
}

.saito-img-arrow-box.right {
  right: -10rem;
}

.saito-img-icon {
  font-size: 3rem;
  color: var(--saito-white);
  background: var(--saito-gray-600);
  padding: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
}

.saito-overlay-img-cont > img {
  transition: all 0.2s ease-in-out;
}

.saito-overlay-img-cont img {
  max-height: 90vh;
  max-width: 90vw;
  display: none;
}

@keyframes flash {
   0%, 50%, 100% {
      opacity: 1;
   }
   25%, 75% { 
      opacity: 0;
   }
}


.saito-camera {
  position: relative;
  width: fit-content;
  display: block;
  background-color: var(--saito-black);
}

.saito-camera #video {
  border: 1px solid black;
  box-shadow: 2px 2px 3px black;
  width: 320px;
  height: 240px;
}

.saito-camera #photo-preview {
  border: 1px solid black;
  box-shadow: 2px 2px 3px black;
  width: 320px;
  height: 240px;
}

.saito-camera #canvas {
  display: none;
}

.saito-camera .camera-controls {
  position: absolute;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  bottom: 0;
  font-size: 40px;
  color: rgba(255, 255, 255, 1);
}

.saito-camera .saito-camera i {
  border-radius: 100%;
  box-shadow: 0px 0px 1px 2px rgba(0, 0, 0, 0.2);
  background-color: var(--saito-primary);
  margin: 1rem;
  cursor: pointer;
}

.first-phase {
  visibility: hidden;
}

.video .first-phase {
  visibility: visible;
}

.second-phase {
  visibility: visible;
}

.video .second-phase {
  visibility: hidden;
}

.saito-camera #flip {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 32px;
  color: var(--saito-primary);
  background-color: rgba(255, 255, 255, 1);
  width: fit-content;
  padding: 0.5rem;
}
.cropper-overlay {
	height: min(100vh, 70rem);
	width: min(100vw, 80rem);
	text-align: center;
	background-color: var(--saito-background-color);
	border: 1px solid var(--saito-border-color);
	padding: 2rem;
	font-size: 2rem;
	border-radius: 0.5rem;
	align-items: center;
	color: var(--saito-font-color);
	display: grid;
	grid-template-rows: 1fr min-content;
	gap: 1rem;
}

.photo-cropper {
	width: 100%;
	height: 100%;
	display: block;
}

.photo-cropper img {
	display: block;
	max-width: 100%;
}

.cropper-container {
	width: 100% !important;
	height: 100% !important;
}

/* Media Queries for different screen sizes */

@media (max-width: 768px) {
	.cropper-overlay {
		padding: 1rem;
	}

	.photo-cropper {
		/*height: 60vh;*/
		/* Increase height on smaller screens */
		/*width: 95vw;*/
		/* Increase width on smaller screens */
		font-size: calc(12px + 2vw);
		/* Slightly larger font on smaller screens */
		padding: 1rem;
	}
}

@media (max-width: 480px) {
	.photo-cropper {
		/*height: 70vh;*/
		/* Further increase height on very small screens */
		/*width: 98vw;*/
		/* Almost full width on very small screens */
		font-size: calc(14px + 2vw);
		/* Even larger font on very small screens */
		padding: 0.5rem;
	}
}

/*!
 * Cropper.js v1.6.1
 * https://fengyuanchen.github.io/cropperjs
 *
 * Copyright 2015-present Chen Fengyuan
 * Released under the MIT license
 *
 * Date: 2023-09-17T03:44:17.565Z
 */

.cropper-container {
	direction: ltr;
	font-size: 0;
	line-height: 0;
	position: relative;
	-ms-touch-action: none;
	touch-action: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.cropper-container img {
	backface-visibility: hidden;
	display: block;
	height: 100%;
	image-orientation: 0deg;
	max-height: none !important;
	max-width: none !important;
	min-height: 0 !important;
	min-width: 0 !important;
	width: 100%;
}

.cropper-wrap-box,
.cropper-canvas,
.cropper-drag-box,
.cropper-crop-box,
.cropper-modal {
	bottom: 0;
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
}

.cropper-wrap-box,
.cropper-canvas {
	overflow: hidden;
}

.cropper-drag-box {
	background-color: #fff;
	opacity: 0;
}

.cropper-modal {
	background-color: #000;
	opacity: 0.5;
}

.cropper-view-box {
	display: block;
	height: 100%;
	outline: 1px solid #39f;
	outline-color: rgba(51, 153, 255, 0.75);
	overflow: hidden;
	width: 100%;
}

.cropper-dashed {
	border: 0 dashed #eee;
	display: block;
	opacity: 0.5;
	position: absolute;
}

.cropper-dashed.dashed-h {
	border-bottom-width: 1px;
	border-top-width: 1px;
	height: calc(100% / 3);
	left: 0;
	top: calc(100% / 3);
	width: 100%;
}

.cropper-dashed.dashed-v {
	border-left-width: 1px;
	border-right-width: 1px;
	height: 100%;
	left: calc(100% / 3);
	top: 0;
	width: calc(100% / 3);
}

.cropper-center {
	display: block;
	height: 0;
	left: 50%;
	opacity: 0.75;
	position: absolute;
	top: 50%;
	width: 0;
}

.cropper-center::before,
.cropper-center::after {
	background-color: #eee;
	content: ' ';
	display: block;
	position: absolute;
}

.cropper-center::before {
	height: 1px;
	left: -3px;
	top: 0;
	width: 7px;
}

.cropper-center::after {
	height: 7px;
	left: 0;
	top: -3px;
	width: 1px;
}

.cropper-face,
.cropper-line,
.cropper-point {
	display: block;
	height: 100%;
	opacity: 0.1;
	position: absolute;
	width: 100%;
}

.cropper-face {
	background-color: #fff;
	left: 0;
	top: 0;
}

.cropper-line {
	background-color: #39f;
}

.cropper-line.line-e {
	cursor: ew-resize;
	right: -3px;
	top: 0;
	width: 5px;
}

.cropper-line.line-n {
	cursor: ns-resize;
	height: 5px;
	left: 0;
	top: -3px;
}

.cropper-line.line-w {
	cursor: ew-resize;
	left: -3px;
	top: 0;
	width: 5px;
}

.cropper-line.line-s {
	bottom: -3px;
	cursor: ns-resize;
	height: 5px;
	left: 0;
}

.cropper-point {
	background-color: #39f;
	height: 5px;
	opacity: 0.75;
	width: 5px;
}

.cropper-point.point-e {
	cursor: ew-resize;
	margin-top: -3px;
	right: -3px;
	top: 50%;
}

.cropper-point.point-n {
	cursor: ns-resize;
	left: 50%;
	margin-left: -3px;
	top: -3px;
}

.cropper-point.point-w {
	cursor: ew-resize;
	left: -3px;
	margin-top: -3px;
	top: 50%;
}

.cropper-point.point-s {
	bottom: -3px;
	cursor: s-resize;
	left: 50%;
	margin-left: -3px;
}

.cropper-point.point-ne {
	cursor: nesw-resize;
	right: -3px;
	top: -3px;
}

.cropper-point.point-nw {
	cursor: nwse-resize;
	left: -3px;
	top: -3px;
}

.cropper-point.point-sw {
	bottom: -3px;
	cursor: nesw-resize;
	left: -3px;
}

.cropper-point.point-se {
	bottom: -3px;
	cursor: nwse-resize;
	height: 20px;
	opacity: 1;
	right: -3px;
	width: 20px;
}

@media (min-width: 768px) {
	.cropper-point.point-se {
		height: 15px;
		width: 15px;
	}
}

@media (min-width: 992px) {
	.cropper-point.point-se {
		height: 10px;
		width: 10px;
	}
}

@media (min-width: 1200px) {
	.cropper-point.point-se {
		height: 5px;
		opacity: 0.75;
		width: 5px;
	}
}

.cropper-point.point-se::before {
	background-color: #39f;
	bottom: -50%;
	content: ' ';
	display: block;
	height: 200%;
	opacity: 0;
	position: absolute;
	right: -50%;
	width: 200%;
}

.cropper-invisible {
	opacity: 0;
}

.cropper-bg {
	background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC');
}

.cropper-hide {
	display: block;
	height: 0;
	position: absolute;
	width: 0;
}

.cropper-hidden {
	display: none !important;
}

.cropper-move {
	cursor: move;
}

.cropper-crop {
	cursor: crosshair;
}

.cropper-disabled .cropper-drag-box,
.cropper-disabled .cropper-face,
.cropper-disabled .cropper-line,
.cropper-disabled .cropper-point {
	cursor: not-allowed;
}
body::before {
  transition:
    opacity 1.2s linear,
    z-index 1.2s ease-in-out;
}
body.xclose::before {
  opacity: 0 !important;
  z-index: -2 !important;
}
