/* Importamos las fuentes */

@font-face {
	font-family: "Anurati";
	src: url(/fonts/Anurati-Regular.otf);
}

@font-face {
	font-family: "Elianto";
	src: url(/fonts/Elianto-Regular.otf);
}

/*======================= Variables  ======================*/

:root {
	--font-scale: 1.333;
	--p: 1rem;
	--h5: calc(var(--p) * var(--font-scale));
	--h4: calc(var(--h5) * var(--font-scale));
	--h3: calc(var(--h4) * var(--font-scale));
	--h2: calc(var(--h3) * var(--font-scale));
	--h1: calc(var(--h2) * var(--font-scale));
	--small: calc(var(--p) / var(--font-scale));
	--margin-lg: 0 12%;
	--margin-md: 0 6%;
	--border1: 1rem;
	--border05: 0.5rem;
	--color-bg-primary: #000212;
	--transparent: hsla(0, 0%, 100%, 0);
	--text-color: #fff;
}

/* Personalizar Scroll-bar`& Selección */
::-webkit-scrollbar {
	width: 8px;
	height: 3px;
	background-color: var(--color-bg-primary);
}
::selection {
	background-color: #5e6ad2;
	color: var(--text-color);
}
/*=========================================================*/

/*======================= RESET CSS  ======================*/

/* Reseteamos los margin y paddings de todas las etiquetas */
* {
	margin: 0;
	padding: 0;
	border: 0;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	vertical-align: baseline;
}

/* Evitamos problemas con las imagenes */
img,
picture,
video,
iframe,
figure {
	max-width: 100%;
	width: 100%;
	display: block;
	/* opcional */
	-o-object-fit: cover;
	object-fit: cover;
	/* opcional */
	-o-object-position: center center;
	object-position: center center;
}

/* Reseteamos los enlaces para funcionar como cajas... */
a {
	display: block;
	text-decoration: none;
	color: inherit;
	font-size: inherit;
	height: min-content;
}

body {
	height: 100vh;
	width: 100vw;
	user-select: none;
	background: var(--color-bg-primary);
	color: var(--text-color);
	/* background: #011b25; */
	/* background: radial-gradient(58.06% 58.06% at 50% 50%, #0e261b 0, #000 100%); */
	/* background-color: #010a00;
	background-image: url("https://www.transparenttextures.com/patterns/3px-tile.png"); */
}

.site-content {
	height: 100vh;
	width: 100vw;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	font-family: "Elianto", sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: var(--text-color);
	position: relative;
	z-index: -2;
	padding: 1.5rem 0;
}

main {
	display: grid;
	grid-template-columns: 10% 60% 30%;
	gap: 2rem;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	height: 90%;
}

/* Estilos Loader */

.radial-gradient {
	position: absolute;
	top: 0;
	width: 100%;
	height: 100vh;
	background: radial-gradient(
		ellipse 80% 75% at 50% -25%,
		rgba(120, 119, 198, 0.3),
		var(--transparent)
	);
	pointer-events: none;
}

.pre-loader {
	position: fixed;
	top: 0;
	width: 100%;
	height: 100%;
	clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.loader {
	position: absolute;
	top: 0;
	width: 100vw;
	height: 100vh;
	background: url(../img/loader03.gif) no-repeat 50% 50%;
	background-size: cover;
	color: #fff;
	display: flex;
	justify-content: center;
	align-items: center;
}

.loader-content {
	position: fixed;
	top: 50%;
	left: 50%;
	bottom: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	width: 400px;
	z-index: 2;
	color: #fff;
}

.count {
	flex: 2;
	text-align: right;
	line-height: 1;
	padding: 0 1em;
	font-family: "Elianto", "sans-serif";
}

.copy {
	flex: 6;
	font-family: "Anurati", sans-serif;
	font-size: 30px;
	text-transform: uppercase;
	line-height: 1;
}

.ml16 {
	overflow: hidden;
}

.ml16 .letter {
	display: inline-block;
	line-height: 1em;
}

.loader-bg {
	position: absolute;
	display: block;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: var(--color-bg-primary);
	background: url(../img/aluralatam.png);
	background-size: 300px;
	background-position: center;
	background-repeat: no-repeat;
	z-index: -1;
}

.loader-2 {
	position: fixed;
	top: 0;
	bottom: 0;
	width: 100vw;
	height: 100vh;
	background: url(../img/loader01.gif);
	background-size: cover;
	background-position: center;
	z-index: -1;
	clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}

/*======================================================================*/

/*======================= ESTILOS ÁREA DEL INPUT  ======================*/

.logo__container {
	display: flex;
	justify-content: center;
	align-items: center;
}

.logo {
	width: 60px;
}

/* Estilos Área del Input */

.input__container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
}

/* ---------------- */

.title__container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
}

.title {
	font-size: var(--h2);
	letter-spacing: 0.4;
	max-width: 100%;
	text-align: center;
	margin: 0;
	line-height: 1.1;
}

.title-color-effect {
	/* background: linear-gradient(to bottom, #fcfcfc 0%, #97979e 100%); */
	background: linear-gradient(to bottom, #fcfcfc 0%, rgb(0, 183, 255) 100%);
	/* background: linear-gradient(to bottom, #fcfcfc 0%, #5e6ad2 100%); */
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	font-weight: 900;
	font-family: "Elianto", "Inter", sans-serif;
	letter-spacing: 0.4;
}

/* Animar el título */

.typing {
	display: flex;
	align-items: center;
	justify-content: center;
	height: auto;
	font-style: italic;
	-webkit-text-stroke-width: 1px;
	-webkit-text-stroke-color: var(--text-color);
	color: transparent;
	font-family: "Anurati", sans-serif;
	/* background: linear-gradient(to bottom, #fcfcfc 0%, #97979e 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent; */
	font-weight: 900;
}

.textarea__container {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 28rem;
}

textarea {
	-webkit-tap-highlight-color: transparent;
	width: 100%;
	min-height: 15rem;
	padding: 2rem 3.5rem;
	font-size: 1.5rem;
	line-height: 2rem;
	font-weight: 500;
	background-color: hsl(147, 58%, 75%, 5%);
	border: none;
	border-radius: 20px;
	outline: none;
	box-shadow: inset 0 0 0.5px 1px hsla(0, 0%, 100%, 0.075),
		0 0 0 1px hsla(0, 0%, 0%, 0.05), 0 0.3px 0.4px hsla(0, 0%, 0%, 0.02),
		0 0.9px 1.5px hsla(0, 0%, 0%, 0.045), 0 3.5px 6px hsla(0, 0%, 0%, 0.09);
	transition: all ease 0.2s;
	cursor: pointer;
	resize: none;
	color: var(--text-color);
	font-family: "Elianto", sans-serif;
	/* margin-top: 5rem; */
}

textarea::placeholder {
	color: #d2f9f4;
	font-weight: 300;
	font-style: italic;
	font-family: "Elianto", sans-serif;
	font-size: 20px;
}

textarea:focus {
	min-height: 28rem;
}

textarea:placeholder-shown {
	background: hsl(147, 58%, 75%, 5%);
}

.seccion__botones {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.texto__info {
	display: flex;
	align-items: center;
	gap: 5px;
	font-weight: 400;
	color: var(--text-color);
}

.texto__info p {
	font-size: 15px;
	font-family: "Elianto", sans-serif;
}

.texto__info i {
	font-size: 18px;
}

.botones__container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
}

button:active {
	transform: translate(0, 3px);
}

.boton__encriptar {
	display: block;
	width: 250px;
	padding: 1rem 0;
	border-radius: 10px;
	border: none;
	background-color: #5e6ad2;
	color: var(--text-color);
	font-weight: 600;
	font-family: "Elianto", sans-serif;
	text-transform: uppercase;
	cursor: pointer;
	transition: all ease 0.2s;
	text-align: center;
}

.boton__encriptar:hover {
	box-shadow: 0 20px 80px -10px #5e6ad2;
}

.boton__desencriptar {
	display: block;
	width: 250px;
	padding: 1rem 0;
	border-radius: 10px;
	border: none;
	background-color: var(--color-bg-primary);
	border: 1px solid var(--text-color);
	color: var(--text-color);
	font-weight: 600;
	font-family: "Elianto", "sans-serif";
	text-transform: uppercase;
	cursor: pointer;
	transition: all ease 0.2s;
	text-align: center;
}

.boton__desencriptar:hover {
	/* transform: translate(0, -3px); */
	background-color: var(--text-color);
	color: var(--color-bg-primary);
}

.boton__copiar {
	display: block;
	padding: 1rem 0;
	width: 200px;
	border-radius: 10px;
	background-color: var(--text-color);
	color: var(--color-bg-primary);
	font-weight: 600;
	cursor: pointer;
	transition: all ease 0.2s;
	border: 1px solid var(--color-bg-primary);
	text-transform: uppercase;
}

/*==========================================================================*/

/*===================== Estilos Área del Output ============================*/

.output__container {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(
		-180deg,
		rgba(19, 21, 42, 0.3) 0%,
		rgba(19, 21, 42, 1) 100%
	);
	border-radius: 20px;
	box-shadow: inset 0 0 0.5px 1px hsla(0, 0%, 100%, 0.075),
		0 0 0 1px hsla(0, 0%, 0%, 0.05), 0 0.3px 0.4px hsla(0, 0%, 0%, 0.02),
		0 0.9px 1.5px hsla(0, 0%, 0%, 0.045), 0 3.5px 6px hsla(0, 0%, 0%, 0.09);
	padding: 2rem;
	position: relative;
	place-content: center;
	place-items: center;
	overflow: hidden;
	border-radius: 20px;
	z-index: 1;
}

.output__container::before {
	content: "";
	position: absolute;
	width: 100px;
	background-image: linear-gradient(
		180deg,
		rgb(0, 183, 255),
		rgb(255, 48, 255)
	);
	height: 130%;
	animation: rotBGimg 3s linear infinite;
	transition: all 0.2s linear;
	z-index: -1;
}

@keyframes rotBGimg {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

.output__container::after {
	content: "";
	position: absolute;
	background: #000212;
	inset: 5px;
	border-radius: 15px;
	z-index: -1;
}

.figure {
	animation-name: floating;
	animation-duration: 3s;
	animation-iteration-count: infinite;
	animation-timing-function: ease-in-out;
}

@keyframes floating {
	0% {
		transform: translate(0, 0px);
	}
	50% {
		transform: translate(0, 15px);
	}
	100% {
		transform: translate(0, -0px);
	}
}

.texto__output {
	margin: 1rem 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	text-align: center;
	color: var(--text-color);
}
.texto__output-titulo {
	font-weight: bold;
	color: var(--text-color);
	font-size: var(--h5);
	text-wrap: pretty;
	line-height: 1.1;
	font-family: "Elianto", sans-serif;
	text-transform: uppercase;
}

.texo__output-parrafo {
	font-weight: 500;
	font-size: var(--p);
	color: var(--text-color);
	text-wrap: pretty;
	font-family: "Elianto", sans-serif;
}

.output__text {
	font-size: 20px;
	font-weight: 600;
	text-wrap: pretty;
	font-weight: 300;
	z-index: 1;
	background-color: #000212;
	min-height: 90%;
	width: 100%;
	border: none;
	box-shadow: none;
	padding: 0;
}

.output__final {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	height: 100%;
	width: 100%;
}

.remove {
	display: none;
}

/* Estilos Footer */

footer {
	height: auto;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

.footer__container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.footer__container p {
	font-size: 12px;
	font-weight: 600;
	color: var(--text-color);
	font-family: "Anurati", sans-serif;
	text-transform: uppercase;
}

.footer__container a {
	color: var(--text-color);
	transition: all ease 0.2s;
}

.icons-footer {
	display: flex;
	align-items: center;
	gap: 8px;
}

.icons-footer a {
	cursor: pointer;
}
.icons-footer a i {
	font-size: 20px;
	color: var(--text-color);
	transition: all ease 0.2s;
}
.icons-footer a i:hover {
	color: rgb(0, 183, 255);
}

/*===============================================================*/

/*======================= MEDIA QUERIES  ======================*/

@media screen and (max-height: 768px) {
	.site-content {
		height: auto;
	}
	main {
		grid-template-columns: 1fr;
		width: fit-content;
	}
	.seccion__botones {
		margin-top: 3rem;
	}
	#input {
		margin-top: 2rem;
	}

	.output__container {
		margin-top: 4rem;
		height: 840px;
	}

	.output__inicial {
		padding: 0 5rem;
	}

	.texto__output {
		margin: 2rem 0;
	}

	footer {
		margin-top: 2rem;
	}
}

@media screen and (max-height: 600px) {
	.output__container {
		height: 740px;
	}
}

@media screen and (max-width: 1150px) {
	.site-content {
		height: 100%;
	}
	.title {
		font-size: var(--h2);
	}
}

@media screen and (max-width: 1024px) {
	main {
		grid-template-columns: 10% 50% 40%;
	}
	.boton__encriptar {
		width: 200px;
	}
	.boton__desencriptar {
		width: 200px;
	}
}

@media screen and (max-width: 768px) {
	.site-content {
		height: auto;
		padding: 0.8rem 0.5rem;
	}

	.title__container {
		margin: 0;
	}

	.title {
		font-size: var(--h3);
		margin: 0;
		padding: 0;
	}
	.textarea__container {
		height: 320px;
		margin-top: 1rem;
	}

	#input {
		min-height: 320px;
	}

	.seccion__botones {
		margin-top: 1rem;
	}
	main {
		grid-template-columns: 1fr;
		width: 80%;
		gap: 0;
	}

	.loader-2 {
		background-position: center;
	}

	.seccion__botones {
		margin-top: 1rem;
	}
	.output__container {
		margin-top: 1rem;
		height: 640px;
	}

	.output__inicial {
		padding: 2rem;
	}

	.input__container {
		margin-top: 0.5rem;
	}
	.boton__encriptar {
		width: 200px;
	}
	.boton__desencriptar {
		width: 200px;
	}
	.boton__copiar {
		width: 200px;
	}

	footer {
		margin-top: 1rem;
	}

	.title {
		font-size: var(--h2);
	}
	.logo {
		width: 50px;
	}
}

@media screen and (max-width: 485px) {
	main {
		width: 95%;
	}
	.boton__encriptar {
		width: 180px;
	}
	.boton__desencriptar {
		width: 180px;
	}
	.boton__copiar {
		width: 180px;
	}
	.output__inicial {
		padding: 0;
	}
}

@media screen and (max-width: 430px) {
	.loader-2 {
		background-position: center;
	}
	.copy {
		font-size: 27px;
	}
	.site-content {
		padding: 0.8rem 0;
	}
	main {
		padding: 0;
		gap: 0.5rem;
		width: 90%;
	}
	.input__container {
		margin-top: 0;
	}

	.logo__container {
		height: auto;
	}

	.Logo__container a {
		display: flex;
		flex-direction: column;
		justify-content: start;
		width: 38px;
	}

	.title {
		font-size: var(--h3);
	}
	.logo {
		width: 30px;
	}
	.texto__info {
		margin-top: 1rem;
	}
	.boton__encriptar {
		width: 150px;
	}
	.boton__desencriptar {
		width: 150px;
	}
	.boton__copiar {
		width: 150px;
	}
	.textarea__container {
		height: 300px;
		margin-top: 1rem;
	}
	textarea {
		padding: 1.5rem;
		font-size: 1.3rem;
		min-height: 100%;
	}
	textarea::placeholder {
		font-size: 19px;
	}
	textarea:focus {
		border-color: #5e6ad2;
		min-height: 100%;
	}

	.output__container {
		margin-top: 1rem;
		height: 540px;
	}

	.output__text {
		font-size: 18px;
		min-height: 85%;
		min-width: 300px;
		box-shadow: none;
		padding: 0 0.5rem;
	}

	.boton__copiar {
		margin-top: 0.5rem;
	}

	.figure {
		position: relative;
		top: -1.7rem;
	}

	footer {
		margin-top: 1rem;
	}
}

/*========================================================*/
