html {
  --col-bg1: linear-gradient(to right top, #dbddbb,#6ba587,#d5d88d,#88b884);
  --col-bg2: #FFFFFF;
  --col-text1: #000000;
  --col-text2: #FFFFFF;
  --col-text-secondary: #919598;
  --col-but: #2481cc;
  --col-placeholder: #EBEBEB;
  --col-textarea: rgba(255,255,255,0.4);
  --col-randombut: rgba(255,255,255,0.3);
  --col-dark-bg: rgba(0,0,0,0.25);
  --col-darker-bg: rgba(0,0,0,0.5);
  --col-disabled: #acacac;
  --col-indicator: #f05252;
  --col-pro: linear-gradient(to right top, #5c9ef4,#8667dc,#b04dce,#eb6dc2);
  width: 100vw;
  height: 100vh;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
	--safe-top: 0px;
  --top-panel-height: 40px;
}

body {
  background: var(--col-bg1);
  font: 14px "Montserrat", Arial, sans-serif;
  color: var(--col-text1);
  box-sizing: border-box;
  overflow: hidden;
}

#app {
  width: 100vw;
  height: 100vh;
}

.view {
  display: none;
  width: 100%;
  height: 100%;
}

.subview {
	position: relative;
	width: 100%;
	height: 100%;
	scroll-snap-align: center;
	flex: none;
}

.view:has(.top-panel) > .subview {
	height: calc(100% - var(--top-panel-height));
  margin-top: var(--top-panel-height);
}

.top-panel {
	position: absolute;
	left: 0;
	top: 0;
	width: 100vw;
	height: var(--top-panel-height);
	background: var(--col-bg2);
	display: flex;
	flex-direction: row;
	border-bottom: 1px solid var(--col-disabled);
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
	font-weight: 700;
	text-transform: uppercase;
  color: var(--col-disabled);
  z-index: 50;
}

.top-panel > .active {
  color: var(--col-text1)
}

.panel-element {
  cursor: pointer;
}

.indicator {
	background: var(--col-indicator);
	display: none;
	width: 8px;
	height: 8px;
	border-radius: 32px;
	margin-left: 4px;
	margin-top: 4px;
	position: absolute;
}

.scrollable {
	flex-flow: row nowrap;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
}

.view-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10001;
  position: absolute;
  left: 0;
  top: 0;
}

.dark-bg {
  background: var(--col-dark-bg);
}

.loader {
  width: 32px;
  height: 32px;
  border: 5px solid;
  border-color: var(--col-text2);
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
  margin: 8px;
}

.loader-large {
  width: 64px;
  height: 64px;
}

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

.container {
	width: 85%;
	max-width: 640px;
	margin: 0 auto;
  position: relative;
  z-index: 10;
}
.container-bottom {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-direction: column;
  width: 85%;
	max-width: 640px;
	margin: 0 auto;
	bottom: calc(env(safe-area-inset-bottom) + 50px);
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 15;
}

.relative {
  position: relative;
  top: 32px;
}

.fullscreen-bottom {
	top: 0;
	height: 100%;
	justify-content: center;
}

.button {
	display: flex;
  justify-content: center;
	align-items: center;
	width: 100%;
	background: var(--col-but);
  color: var(--col-text2);
	border-radius: 64px;
	border: none;
	font-size: 18px;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 4px 8px rgba(0,0,0,0.25);
	height: 64px;
	cursor: pointer;
}

.button-small {
	display: flex;
	justify-content: center;
	align-items: center;
	background: transparent;
	border-radius: 64px;
	font-size: 18px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	color: var(--col-but);
	border: 2px var(--col-but) solid;
	padding: 8px;
}

.share-container {
	width: 100%;
	height: auto;
	display: flex;
	justify-content: center;
	align-items: center;
}

.share-container > .button-small {
  width: max-content;
}

.cta_animation {
  animation: cta_perspective2 2s infinite linear;
}

@keyframes cta_perspective2 {
  0% {
    transform: rotateX(10deg) rotateY(0deg);
  }
  12.5% {
    transform: rotateX(5deg) rotateY(5deg);
  }
  25% {
    transform: rotateX(0deg) rotateY(10deg);
  }
  37.5% {
    transform: rotateX(-5deg) rotateY(5deg);
  }
  50% {
    transform: rotateX(-10deg) rotateY(0deg);
  }
  62.5% {
    transform: rotateX(-5deg) rotateY(-5deg);
  }
  75% {
    transform: rotateX(0deg) rotateY(-10deg);
  }
  87.5% {
    transform: rotateX(5deg) rotateY(-5deg);
  }
  100% {
    transform: rotateX(10deg) rotateY(0deg);
  }
}

.message-input {
  display: block;
  border-radius: 32px;
  margin-top: 40px;
}

.message-header {
  display: flex;
  justify-content: left;
  background: var(--col-bg2);
  color: var(--col-text1);
  font-size: 16px;
  border-radius: 16px 16px 0 0;
  padding: 16px 16px 12px;
}

.message-avatar {
  display: block;
  position: relative;
  flex-shrink: 0;
  background: var(--col-placeholder);
  width: 48px;
  height: 48px;
  border-radius: 64px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-transform: uppercase;
  background-size: 48px 48px;
  background-position: center;
}

.message-user {
  font-size: 14px;
  margin-left: 12px;
}

.message-nickname {
}

.message-usertext {
  font-weight: 700;
}

.message-textarea {
  display: block;
  position: relative;
  width: 100%;
  background: var(--col-textarea);
  border-radius: 0 0 16px 16px;
  -webkit-appearance: none;
}

.message-random {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  background: var(--col-randombut);
  right: 16px;
  bottom: 16px;
  padding: 8px;
  width: 20px;
  height: 20px;
  border-radius: 32px;
  text-align: center;
  cursor: pointer;
}

.message-text {
  display: block;
  background-color: #ffffff00;
  padding: 18px 24px;
  height: 140px;
  font-size: 20px;
  font-weight: 700;
  border: none;
  outline: none;
  box-sizing: border-box;
  width: 100%;
}

.break {
  margin-top: 12px;
  margin-bottom: 12px;
  font-size: 14px;
  text-align: center;
  color: var(--col-text1);
}

.counter-span {
  font-weight: 700;
  margin: 0;
  padding-bottom: 16px;
  text-align: center;
  margin-top: 8px;
  margin-bottom: 8px;
}

.backdropped {
	background: var(--col-dark-bg);
	padding: 8px;
	border-radius: 16px;
	color: var(--col-text2);
}

.result-span {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  padding-bottom: 24px;
}

.result-span > span:first-child {
  font-size: 72px;
}

.send-more {
  color: var(--col-text2);
  text-decoration: underline;
  font-weight: 700;
  font-size: 18px;
  text-align: center;
  cursor: pointer;
}

.basic-block {
  display: block;
  border-radius: 16px;
  background: var(--col-bg2);
  color: var(--col-text1);
  margin-top: 20px;
}

.dark-block {
	background: var(--col-dark-bg);
	color: var(--col-text2);
	font-weight: 700;
}

.dark-block > .button-small {
	border-color: var(--col-text2);
	color: var(--col-text2);
}

.endless > .basic-block {
	margin-top: 10px;
}

.link-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 16px;
}

.link-container > span:first-child {
  font-weight: 700;
  font-size: 16px;
}

.question-area {
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 120px;
  border-radius: 0 0 16px 16px;
  background: var(--col-but);
}

.question-area > textarea {
  display: block;
  background-color: #ffffff00;
  padding: 18px 24px;
  height: 140px;
  font-size: 20px;
  font-weight: 700;
  border: none;
  outline: none;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  resize: none;
  text-align: center;
  color: var(--col-text2);
}

.message-body {
	height: 96px;
	display: flex;
	justify-content: flex-start;
	align-items: center;
	margin-left: 16px;
	margin-right: 16px;
}

.message-body > .message-avatar {
	width: 64px;
	height: 64px;
  background: url('../static/inbox.png');
  background-size: 64px 64px;
  background-position: center;
  background-repeat: no-repeat;
}

.basic-block[data-unread="0"] > .message-body > .message-avatar {
	filter: grayscale(1) brightness(1.4);
}

.mail-footer > .mail-content {
	min-height: auto;
	border-radius: 16px;
}

.right-icon {
	position: absolute;
	right: 16px;
  cursor: pointer;
  opacity: 0.25;
}

.verified-icon {
  position: relative;
	top: 0.4rem;
	left: 0.4rem;
  margin-top: -0.7rem;
}

#button-howtoshare {
  font-size: inherit;
}

.message-preview {
	margin-left: 12px;
  max-width: 60%;
}
.message-preview > span:first-child {
	font-weight: 700;
  text-overflow: ellipsis;
	overflow: hidden;
	max-width: 100%;
	display: inline-block;
  white-space: nowrap;
}

.message-preview > span:last-child {
	margin-top: 8px;
  display: inline-block;
  color: var(--col-text-secondary);
}

.endless {
  height: auto;
	pointer-events: auto;
}

.endless-bottom {
	height: 100px;
}

.mail-header {
	display: flex;
	justify-content: center;
  align-items: center;
	background: var(--col-but);
	color: var(--col-text2);
	font-size: 16px;
  font-weight: 700;;
	border-radius: 16px 16px 0 0;
	padding: 16px 16px 12px;
  text-align: center;
  min-height: 64px;
}

.mail-content {
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 0 0 16px 16px;
	background: var(--col-bg2);
  color: var(--col-text1);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  padding: 16px;
  min-height: 64px;
}

.mail-signature {
	width: fit-content;
	min-height: auto;
	font-weight: 400;
	margin-left: auto;
	margin-right: auto;
	padding-top: 2px;
	padding-bottom: 4px;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 0 0 16px 16px;
	background: var(--col-bg2);
	color: var(--col-text1);
	font-size: 14px;
	text-align: center;
	padding-left: 16px;
	padding-right: 16px;
  color: var(--col-disabled);
}

.inbox-counter {
	background: var(--col-text2);
	color: var(--col-but);
	padding-left: 6px;
	padding-right: 6px;
	border-radius: 32px;
	margin-left: 6px;
}

#inbox-list {
  display: none;
}
#inbox-list > .basic-block {
  cursor: pointer;
}

#sticker-storage {
  display: none;
}

.shadow {
  box-shadow: 0 4px 8px rgba(0,0,0,0.25);
}

#subview-inbox {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0) auto;
  -webkit-overflow-scrolling: touch;
  pointer-events: auto;
}
#subview-inbox > .container-bottom {
  position: sticky;
  bottom: 90px;
}

#modal-subscribe {
  text-align: center;
}

.modal {
  display: none;
  position: absolute;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: var(--col-darker-bg);
  -webkit-animation: fade-in 0.2s linear both;
  animation: fade-in 0.2s linear both;
}

.modal-content {
  position: absolute;
  bottom: 0;
  background: var(--col-bg2);
  width: 100%;
  border-radius: 16px 16px 0 0;
  -webkit-animation: slide-in 0.2s linear both;
  animation: slide-in 0.2s linear both;
}

.modal-header {
  padding: 2px 16px;
  margin-top: 8px;
  border-radius: 16px 16px 0 0;
  text-align: center;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-title {
  max-width: 75%;
  display: inline-block;
}

.modal-close {
  position: absolute;
  right: 16px;
  cursor: pointer;
  opacity: 0.25;
}

.modal-body {
  padding: 2px 16px;
}

.modal-body > .modal-header {
  font-size: 18px;
}

.modal-body > img {
	width: 100%;
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
	display: block;
}

.modal-button {
	width: 100%;
	text-align: center;
	min-height: 48px;
	display: flex;
	justify-content: center;
	align-items: center;
	color: var(--col-text2);
	background: var(--col-but);
	font-weight: 700;
	border-radius: 32px;
	margin-top: 8px;
  cursor: pointer;
}

.modal-badge {
	background: var(--col-pro);
	padding: 4px;
	border-radius: 4px;
	color: var(--col-text2);
	text-transform: uppercase;
	margin-left: 4px;
}

.plus-icon {
	display: block;
	width: 96px;
	height: 96px;
	background: url('../static/plus.png');
	background-position: center;
	background-repeat: no-repeat;
	background-size: 96px 96px;
	margin-left: auto;
	margin-right: auto;
	margin-top: 32px;
  margin-bottom: 32px;
	border-radius: 16px;
}

.secondary {
  color: var(--col-text-secondary);
  text-decoration: none;
}

#modal-userinfo > .modal-content > .modal-body > .secondary {
	text-align: center;
	width: 100%;
	display: inline-block;
	margin-top: 16px;
}

.modal-table {
  width: 100%;
  border-radius: 16px;
  margin-top: 16px;
}
.modal-table > tbody > tr {
  height: 40px;
}
.modal-table > tbody > tr > th:first-child {
  font-weight: 700;
  text-align: left;
}
.modal-table > tbody > tr > th:nth-child(2) {
  font-weight: 400;
  text-align: right;
  overflow-wrap: anywhere;
}

input[type="radio"] {
	-webkit-appearance: none;
	appearance: none;
  width: 24px;
  height: 24px;
  border: 2px solid var(--col-disabled);
  border-radius: 32px;
  transform: translateY(3px);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-right: 4px;
}

input[type="radio"]::before {
	content: "";
	width: 16px;
	height: 16px;
	border-radius: 32px;
	transform: scale(0);
	transition: 100ms transform ease-in-out;
	background: var(--col-but);
}

input[type="radio"]:checked::before {
  transform: scale(1);
}

.payment {
	display: none;
	position: fixed;
	width: 100vw;
	height: 100vh;
	left: 0;
	top: 0;
	background: var(--col-darker-bg);
	z-index: 20000;
	justify-content: center;
	align-items: center;
}

.payment-content {
	display: flex;
	width: calc(100vw - 32px);
	height: calc(100vh - 32px);
	z-index: 20001;
	margin: 16px;
	flex-direction: column;
	background: #ffffff;
	border-radius: 16px;
	justify-content: center;
	align-items: center;
	max-width: 640px;
	max-height: 120px;
	gap: 16px;
  text-align: center;
}

.payment-content > .button-small {
  min-width: 96px;
}

.payment-header {
  width: 100%;
  height: var(--top-panel-height);
}

.payment-iframe {
  border: none;
  width: 100%;
  flex-grow: 1;
}

.pm-notification {
	margin: 16px;
	font-size: 20px;
	text-align: center;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	gap: 20px;
	padding: 16px;
}

.questions-list {
	display: flex;
  width: 100%;
}

.question-container {
  width: 100vw;
  scroll-snap-align: center;
  flex: none;
}
.question-block {
	width: 85%;
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
}

#teamsetting-bottom {
	padding: 16px;
	display: none;
	justify-content: center;
	align-items: center;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  margin-right: 8px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--col-disabled);
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 60px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: var(--col-bg2);
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 60px;
}

input:checked + .slider {
  background-color: var(--col-but);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--col-but);
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.scale-up {
  -webkit-animation: scale-up 0.2s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
          animation: scale-up 0.2s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
}

@-webkit-keyframes scale-up {
  0% {
    //-webkit-transform: scale(0.75);
            //transform: scale(0.75);
      opacity: 0;
  }
  100% {
    //-webkit-transform: scale(1);
            //transform: scale(1);
      opacity: 1;
  }
}
@keyframes scale-up {
  0% {
    //-webkit-transform: scale(0.75);
            //transform: scale(0.75);
      opacity: 0;
  }
  100% {
    //-webkit-transform: scale(1);
            //transform: scale(1);
      opacity: 1;
  }
}

.scale-down {
  -webkit-animation: scale-down 0.2s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
          animation: scale-down 0.2s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
}

@-webkit-keyframes scale-down {
  0% {
    //-webkit-transform: scale(1.25);
            //transform: scale(1.25);
      opacity: 0;
  }
  100% {
    //-webkit-transform: scale(1);
            //transform: scale(1);
      opacity: 1;
  }
}
@keyframes scale-down {
  0% {
    //-webkit-transform: scale(1.25);
            //transform: scale(1.25);
      opacity: 0;
  }
  100% {
    //-webkit-transform: scale(1);
            //transform: scale(1);
      opacity: 1;
  }
}

@-webkit-keyframes slide-in {
  from {bottom: -300px; opacity: 0}
  to {bottom: 0; opacity: 1}
}

@keyframes slide-in {
  from {bottom: -300px; opacity: 0}
  to {bottom: 0; opacity: 1}
}

@-webkit-keyframes fade-in {
  from {opacity: 0}
  to {opacity: 1}
}

@keyframes fade-in {
  from {opacity: 0}
  to {opacity: 1}
}
