@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Parisienne&family=Quintessential&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

:root {
	--cbg: #1b1b21;
	/* 	--cbg: #fff; */
	--cprim: rgb(100, 100, 255);
	--csec: #fff;
	--cina: #c8c8c8;
	--cwarn: #e44;
	--ff: "Roboto", sans-serif;
}

body {
	margin: 0;
}

#abtxt-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
	z-index: 99;
}

#abtxt-backdrop.open {
	opacity: 1;
	pointer-events: auto;
}

#abtxt {
	position: fixed;
	top: 0;
	right: 0;
	height: 100%;
	width: 320px;
	background: var(--cbg);
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.3s ease;
	z-index: 100;
	box-shadow: -4px 0 24px rgba(0, 0, 0, 0.4);
}

#abtxt.open {
	transform: translateX(0);
}

.abtxt__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 20px 0;
	/* border-bottom: 1px solid rgba(255, 255, 255, 0.08); */
	padding-bottom: 16px;
	background: #333;

}

.abtxt__title {
	font-family: var(--ff);
	font-size: 20px;
	font-weight: 700;
	font-style: italic;
	color: var(--csec);
}

.abouttxt {
	color: var(--cina);
	font-size: 16px;
	font-family: var(--ff);
	line-height: 1.6;
	padding: 24px 20px;
	user-select: text;
	overflow: visible;
}

.abtxt__shareimg {
	width: 100%;
	display: block;
	margin-top: auto;
	border-radius: 0 0 0 0;
	opacity: 0.85;
}

@media only screen and (max-width: 400px) {
	#abtxt {
		width: 100%;
	}
}


footer {
	position: absolute;
	bottom: 0;
	left: 0;
	color: var(--cina);
	padding: 10px;
	font-size: 16px;
	font-family: var(--ff);
	font-style: italic;
}

.error {
	color: var(--cwarn);
	font-size: 16px;
	font-family: var(--ff);
	font-style: italic;
	width: 80%;
	align-self: start;
	visibility: hidden;
}

#get.active {
	background: var(--cprim);
}

.container {
	/* 	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0; */
	height: 100svh;
	width: 100%;
	background: var(--cbg);
	/* 	background: #e1e1e1; */
	display: grid;
	grid-template-rows: 60px 40fr 60fr;
	place-items: center;
}

.titl {
	width: calc(100% - 10px);
	height: 100%;
	background: #333;
	font-family: var(--ff);
	font-weight: 900;
	font-size: 32px;
	color: #eee;
	font-style: italic;
	display: grid;
	/* 	grid-template-columns: auto 100px; */
	align-items: center;
	justify-items: start;
	padding-left: 10px;
}

.m {
	margin-left: 0px;
}

.red {
	color: var(--cwarn);
}

.blue {
	color: rgb(0, 110, 255);
}

.m--domain {
	font-size: 12px;
	font-weight: 900;
	color: var(--cina);
	line-height: 1;
}

.abbtn {
	position: absolute;
	top: 0;
	right: 0;
	height: 60px;
	width: 100px;
	/* 	background: #39a; */
	display: grid;
	place-items: center;
}

#about {
	background: none;
	border: 2px var(--cprim) solid;
	border-radius: 32px;
	height: auto;
	width: auto;
	padding: 6px 14px;
	color: var(--cina);
	font-size: 14px;
	font-style: italic;
	line-height: normal;
	overflow: visible;
}

#close {
	background: none;
	border: none;
	color: var(--cina);
	font-size: 20px;
	width: 32px;
	height: 32px;
	padding: 0;
	line-height: 1;
	cursor: pointer;
	display: grid;
	place-items: center;
}

#close:hover {
	color: var(--csec);
}

.settings {
	width: 80%;
	display: grid;
	/* 	background: #39a; */
}

.in,
.out {
	height: 100%;
	width: 100%;
	display: grid;
	place-items: center;
}

.in {
	/* 	align-self: start; */
	height: 28svh;
}

.pic {
	width: 80%;
	aspect-ratio: 16 / 9;
	display: grid;
	place-items: center;
	/* 	background: #39a; */
}

.myca {
	grid-column-start: 1;
	grid-row-start: 1;
	width: 100%;
	aspect-ratio: 16 / 10;
	background: var(--cbg);
}

.frame {
	grid-column-start: 1;
	grid-row-start: 1;
	width: 100%;
	opacity: 0;
}

button {
	width: 80%;
	height: 50px;
	border-radius: 5px;
	text-align: center;
	font-size: 20px;
	font-weight: bold;
	color: var(--csec);
	background: var(--cina);
	line-height: 50px;
	cursor: pointer;
	/* 	justify-self: start; */
	font-family: var(--ff);
}

#down {
	width: 100px;
	width: 80%;
	height: 50px;
	border-radius: 5px;
	text-align: center;
	font-size: 20px;
	font-weight: bold;
	color: var(--csec);
	background: var(--cprim);
	line-height: 50px;
	cursor: pointer;
	font-family: var(--ff);
	width: 30%;
	min-width: 200px;
}

input {
	width: calc(80% - 20px);
	height: 30px;
	border-radius: 5px;
	font-size: 16px;
	font-weight: bold;
	font-family: var(--ff);
	background: var(--csec);
	line-height: 30px;
	border: none;
	padding: 10px;
}

/*Desktop Stuff*/
@media only screen and (min-width: 1000px) {
	.container {
		grid-template-rows: 100%;
		grid-template-rows: 60px 100fr;
		grid-template-columns: 30% 70%;
	}

	.titl {
		grid-column-start: 1;
		grid-column-end: 3;
		justify-items: start;
	}

	.m {
		margin-left: 10px;
	}

	.abtxt {
		width: 50%;
		height: auto;
	}
}

/*prevent defaults*/
button,
p {
	display: inline-block;
	border: none;
	margin: 0;
	text-decoration: none;
	padding: 0;
	-webkit-appearance: none;
	-moz-appearance: none;
	overflow: hidden;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}

button:focus {
	outline: none;
}

input:focus {
	outline: none;
}

textarea:focus {
	outline: none;
}

select:focus {
	color: #39a;
}

a,
a:link,
a:visited {
	color: var(--cina);
	text-decoration: none;
}

/* The whole component (label text + switch) */
.toggle {
	display: grid;
	width: 100%;
	/* fill grid column */
	-webkit-tap-highlight-color: transparent;
}

.toggle__label {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	column-gap: 12px;
	cursor: pointer;
}

/* Text */
.toggle__text {
	font-size: 16px;
	font-weight: bold;
	color: var(--csec);
	font-family: var(--ff);
}

/* Visually hide input but keep it focusable and accessible */
.toggle__input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
}

/* The visible track */
.toggle__slider {
	position: relative;
	width: 54px;
	height: 30px;
	background-color: var(--cina);
	border-radius: 999px;
	flex: 0 0 auto;
	/* don't shrink in tight layouts */
}

/* The knob */
.toggle__slider::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 4px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--csec);
	transition: transform 0.2s ease;
}

/* Checked state */
.toggle__input:checked+.toggle__slider {
	background-color: var(--cprim);
}

.toggle__input:checked+.toggle__slider::before {
	transform: translateX(24px);
}

/* Keyboard focus (important!) */
.toggle__input:focus-visible+.toggle__slider {
	outline: 3px solid currentColor;
	outline-offset: 3px;
}