:root
{
	--bkg: rgb(255,255,255,1);
	--panel: #fff;
	--border: #000;
	--text: #000;
	--fields: #fff;
	--logo: url(img/logolight.png);
	--toggle: url(img/togglelight.png);
	--close: url(img/closelight.png);
	--load: url(img/loadinglight.png);
}

[color-scheme="light"]
{
	--bkg: rgb(255,255,255,1);
	--panel: #fff;
	--border: #000;
	--text: #000;
	--fields: #fff;
	--logo: url(img/logolight.png);
	--toggle: url(img/togglelight.png);
	--close: url(img/closelight.png);
	--load: url(img/loadinglight.png);
}

[color-scheme="dark"]
{
	--bkg: rgb(0,0,0,1);
	--panel: #28292a;
	--border: #ababab;
	--text: #fff;
	--fields: #1f1f1f;
	--logo: url(img/logodark.png);
	--toggle: url(img/toggledark.png);
	--close: url(img/closedark.png);
	--load: url(img/loadingdark.png);
}

@font-face
{
	font-family: notosansR;
	src: url(NotoSansRegular.ttf);
}

*
{
	margin: 0;
	padding: 0;
	font-family: notosansR;
	color: var(--text);
	-moz-box-sizing: border-box; 
    -webkit-box-sizing: border-box; 
     box-sizing: border-box; 
}

a, a:visited, a:hover, a:active
{
	color: inherit;
}

body
{
	background-color: var(--bkg);
}

html, body
{
	height: 100%;
	overflow: hidden;
}

/* Outer box always fills the viewport: desktop, mobile portrait and
   mobile landscape all use this single full-bleed rule. */
#modal
{
	position: fixed;
	top: 0;
	left: 0;
	transform: none;
	width: 100%;
	height: 100vh;
	height: 100dvh;
	max-width: none;
	background-color: var(--panel);
	border: none;
	border-radius: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.center
{
	position: absolute; 
	left: 50%;
	transform: translateX(-50%);
	text-align: center;
	max-width: 560px;
}

.title
{
	position: absolute;
	width: 100%;
	height: 51px;
	font-size: 32px;
	font-weight: bold;
}

.fieldblock
{
	height: 90px;
}

.fieldscontainer
{
	position: absolute; 
	width: calc(100% - 40px);
	max-width: 560px;
	left: 50%;
	transform: translateX(-50%);
	text-align: left;
}

.fieldlabels
{
	font-size: 14px;
	font-weight: bold;
	padding-left: 16px;
	line-height: 1.6;
}

.fieldsinput
{
	width: 100%;
	height: 56px;
	padding-left: 16px;
	font-size: 16px;
	background-color: var(--fields);
	border: 2px solid var(--border);
	border-radius: 30px;
}

.errorcontainer
{
	margin-right: 18px;
	text-align: right;
	height: 14px;
}

.error
{
	color: #fe5757;
	font-size: 12px;
	vertical-align: middle;
}

.btnnextcontainer
{
	text-align:center;
	width: 50%;
	max-width: 252px;
}

.btnnext
{
	width: 100%;
	height: 43px;
	background-color: #745dff;
	color: white;
	font-weight: bold;
	border: none;
	border-radius: 30px;
}

.footer
{
	position: absolute;
	bottom: 15px;
	width: 100%;
	max-width: none;
	height: 35px;
}

.privacy
{
	bottom: 60px;
	left: 50%;
	height: 23px;
	font-size: 12px;
	text-align: center;
}

.privacy a:link, a:visited, a:hover, a:active
{
	text-decoration: none;
}

.logo
{
	position: absolute;
	right: 39px;
	width: 166px;
	height: 23px;
	background-image: var(--logo);
}

.btnmode
{
	position: absolute;
	left: 45px;
	width: 62px;
	height: 33px;
	background-color: var(--panel);
	background-image: var(--toggle);
	border: none;
}

.popupback
{
	display: none;
	position: absolute;
	top: 2px;
	left: 2px;
	width: 99%;
	height: 99%;
	background-color: var(--panel);
	border-radius: 30px;
	overflow-x: hidden;
	overflow-y: hidden;
}

.popup
{
	position: absolute;
	top: 45px;
	left: 50%;
	transform: translateX(-50%);
	width: 93%;
	height: 90%;
	background-color: transparent;
	overflow-x: hidden;
	overflow-y: scroll;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.popup::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.popup {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.popupclose
{
	position: absolute;
	top: 15px;
	right: 15px;
	width: 24px;
	height: 24px;
	background-color: transparent;
	background-image: var(--close);
	border: none;
}

.loadingback
{
	display: none;
	position: absolute;
	top: 35px;
	left: 50%;
	transform: translate(-50%, -50%);
}

.rotate
{
	width: 40px;
	height: 40px;
	background-image: var(--load);
	background-repeat: no-repeat;
	background-size: 40px 40px;
	animation: rotation 2s infinite linear;
}

@keyframes rotation {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(359deg);
  }
}
