@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap");
:root {
	--shadow-color: 214deg 100% 12%;
	--shadow-elevation-medium: 0.3px 0.5px 0.7px hsl(var(--shadow-color) / 0.11),
		0.8px 1.6px 2px -0.8px hsl(var(--shadow-color) / 0.11),
		2.1px 4.1px 5.2px -1.7px hsl(var(--shadow-color) / 0.11),
		5px 10px 12.6px -2.5px hsl(var(--shadow-color) / 0.11);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
body {
	font-family: "Roboto", sans-serif;
	background-color: #f3f5fc;
	width: 100vw;
	height: 100vh;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-around;
}

header {
	padding: 0.5rem;
	width: 100%;
	height: 5rem;
	display: flex;
	z-index: 2;
	position: relative;
}
.navbar {
	position: fixed;
	top: -3rem;
	right: 2rem;
	transition: all 0.5s ease-in-out;
	display: flex;
	justify-content: space-around;
	align-items: center;
	width: auto;
	list-style: none;
}

.navbar li {
	margin: 0 0.5rem;
}
.navbar li a,
h1 a {
	display: grid;
	place-items: center;
}
.navbar li a:hover,
h1 a:hover {
	filter: grayscale(0.75);
}
.box-switches {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: row-reverse;
	align-items: center;
	justify-content: end;
}

main {
	display: flex;
	justify-content: space-around;
	height: 100vh;
	width: 100vw;
	flex-wrap: wrap;
}
section {
	margin: 1% 0;
	height: auto;
	display: flex;
	min-width: 400px;
	flex-wrap: wrap;
	min-height: 40%;
}
.one {
	border-radius: 12px;
	width: 50%;
	box-shadow: var(--shadow-elevation-medium);
}

.two {
	justify-content: center;
	align-items: center;
	width: 25%;
	background-color: white;
	box-shadow: var(--shadow-elevation-medium);
	border-radius: 12px;
}
#textInput {
	border: none;
	background-color: #f3f5fc;
	width: 100%;
	height: 100%;
	resize: none;
	font-size: 2rem;
	color: #0a3871;
	text-align: left;
	margin-bottom: 2%;
	padding: 5rem;
	border-radius: 12px;
	line-height: 2.5rem;
}
#textInput::placeholder {
	color: #0a3871;
	font-size: 2rem;
	text-align: left;
}

#textInput:focus {
	outline: none;
}

.box-request {
	width: 100%;
	height: 100%;
	border-radius: 12px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
}
.box-response1 {
	height: auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	color: #0a3871;
}

.box-response1 > h3 {
	padding-top: 5%;
	text-align: center;
	font-size: 1.25rem;
}
.box-response1 > p {
	padding: 2%;
	text-align: center;
	font-size: 1.25rem;
}
.box-response2 {
	height: 80%;
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}
#textOutput {
	border: none;
	width: 100%;
	height: 100%;
	resize: none;
	font-size: 2rem;
	color: #0a3871;
	text-align: left;
	padding: 3rem;
	border-radius: 12px;
	line-height: 2.5rem;
}
#textOutput:focus {
	outline: none;
}
.text-error {
	text-align: center;
	display: flex;
	color: #495057;
	padding: 1% 2%;
}
.box-buttons {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	padding-bottom: 2%;
	width: 100%;
	flex-wrap: wrap;
}
.box-buttons:first-child {
	justify-content: start;
}

button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 15rem;
	height: 3rem;
	border-radius: 12px;
	border: none;
	background-color: #f3f5fc;
	box-shadow: var(--shadow-elevation-medium);
	cursor: pointer;
	font-size: 1rem;
	font-weight: bold;
	margin: 1%;
}
.div-buttons {
	width: 100%;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
}
button.encriptar {
	background-color: #0a3871;
	color: #d8dfe8;
}
button.desencriptar:hover {
	transition: all 0.1s ease-in-out;
	background-color: #d8dfe8;
	color: #0a3871;
}
button.encriptar:hover {
	transition: all 0.1s ease-in-out;
	background-color: #d8dfe8;
	color: #0a3871;
}
.icon {
	padding-left: 3px;
}

button:active {
	transform: scale(0.98);
}
.copiar {
	display: none;
}
.copiar:hover {
	transition: all 0.1s ease-in-out;
	background-color: #d8dfe8;
	color: #0a3871;
}
footer {
	width: 100%;
	height: auto;
	display: flex;
	justify-content: center;
	font-size: 0.85rem;
	z-index: 2;
}
footer a {
	text-decoration: none;
	color: #0a3871;
	font-weight: 500;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 0 1% 0;
}
footer a:hover {
	transition: all 0.1s ease-in-out;
	color: black;
}
footer a:active {
	transform: scale(0.98);
}
.ri-github-fill,
.ri-copyright-fill {
	font-size: 1.25rem;
	padding: 3px;
}
a img:active {
	transform: scale(0.98);
}
@media screen and (max-width: 800px) {
	#textInput::placeholder,
	#textOutput,
	#textInput {
		font-size: 1.25rem;
		line-height: 2rem;
		padding-top: 1%;
		width: auto;
	}
	.checkbox-wrapper-12 {
		position: fixed;
		left: 3rem;
	}
	main,
	article,
	body,
	footer{
		height: 100%;
		width: 100%;
	}

}

/* checkbox */

/* Hide the default checkbox */
.container input {
	opacity: 0;
	cursor: pointer;
	width: 0;
	height: 0;
}

.container {
	display: block;
	position: relative;
	cursor: pointer;
	font-size: 20px;
	user-select: none;
	width: 30px;
	height: 30px;
	border-radius: 3px;
	background: #f3f5fc;
}

.container:hover {
	background: rgba(216, 216, 216, 0.603);
}

.line {
	width: calc(100% - 8px);
	height: 3px;
	left: 4px;
	background: #0a3871;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	transition: 0.7s transform cubic-bezier(0, 1, 0.33, 1.2), background 0.4s;
}

.line-indicator {
	transform: translateY(-50%) rotate(90deg);
}

.container input:checked ~ .line-indicator {
	transform: translateY(-50%);
}

/* checkbox colors */

.checkbox-wrapper-12 {
	position: absolute;
	right: 50%;
}

.checkbox-wrapper-12 > svg {
	position: absolute;
	top: -130%;
	left: -170%;
	width: 110px;
	pointer-events: none;
}

.checkbox-wrapper-12 * {
	box-sizing: border-box;
}

.checkbox-wrapper-12 input[type="checkbox"] {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
	cursor: pointer;
	margin: 0;
}

.checkbox-wrapper-12 input[type="checkbox"]:focus {
	outline: 0;
}

.checkbox-wrapper-12 .cbx {
	width: 24px;
	height: 24px;
	top: calc(100px - 12px);
	left: calc(100px - 12px);
}

.checkbox-wrapper-12 .cbx input {
	position: absolute;
	top: 0;
	left: 0;
	width: 24px;
	height: 24px;
	border: 2px solid #0a3871;
	border-radius: 50%;
}

.checkbox-wrapper-12 .cbx label {
	width: 24px;
	height: 24px;
	background: none;
	border-radius: 50%;
	position: absolute;
	top: 0;
	left: 0;
	transform: trasnlate3d(0, 0, 0);
	pointer-events: none;
}

.checkbox-wrapper-12 .cbx svg {
	position: absolute;
	top: 5px;
	left: 4px;
	z-index: 1;
	pointer-events: none;
}

.checkbox-wrapper-12 .cbx svg path {
	stroke: #fff;
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 19;
	stroke-dashoffset: 19;
	transition: stroke-dashoffset 0.3s ease;
	transition-delay: 0.2s;
}

.checkbox-wrapper-12 .cbx input:checked + label {
	animation: splash-12 0.6s ease forwards;
}

.checkbox-wrapper-12 .cbx input:checked + label + svg path {
	stroke-dashoffset: 0;
}

@-moz-keyframes splash-12 {
	40% {
		background: #0a3871;
		box-shadow: 0 -18px 0 -8px #0a3871, 16px -8px 0 -8px #0a3871,
			16px 8px 0 -8px #0a3871, 0 18px 0 -8px #ff5733,
			-16px 8px 0 -8px #0a3871, -16px -8px 0 -8px #0a3871;
	}

	100% {
		background: #0a3871;
		box-shadow: 0 -36px 0 -10px transparent, 32px -16px 0 -10px transparent,
			32px 16px 0 -10px transparent, 0 36px 0 -10px transparent,
			-32px 16px 0 -10px transparent, -32px -16px 0 -10px transparent;
	}
}

@-webkit-keyframes splash-12 {
	40% {
		background: #0a3871;
		box-shadow: 0 -18px 0 -8px #0a3871 16px -8px 0 -8px #0a3871,
			16px 8px 0 -8px #0a3871, 0 18px 0 -8px #0a3871,
			-16px 8px 0 -8px #0a3871, -16px -8px 0 -8px #0a3871;
	}

	100% {
		background: #0a3871;
		box-shadow: 0 -36px 0 -10px transparent, 32px -16px 0 -10px transparent,
			32px 16px 0 -10px transparent, 0 36px 0 -10px transparent,
			-32px 16px 0 -10px transparent, -32px -16px 0 -10px transparent;
	}
}

@-o-keyframes splash-12 {
	40% {
		background: #0a3871;
		box-shadow: 0 -18px 0 -8px #0a3871, 16px -8px 0 -8px #0a3871,
			16px 8px 0 -8px #0a3871, 0 18px 0 -8px #0a3871,
			-16px 8px 0 -8px #0a3871, -16px -8px 0 -8px #0a3871;
	}

	100% {
		background: #0a3871;
		box-shadow: 0 -36px 0 -10px transparent, 32px -16px 0 -10px transparent,
			32px 16px 0 -10px transparent, 0 36px 0 -10px transparent,
			-32px 16px 0 -10px transparent, -32px -16px 0 -10px transparent;
	}
}

@keyframes splash-12 {
	40% {
		background: #0a3871;
		box-shadow: 0 -18px 0 -8px #0a3871, 16px -8px 0 -8px #0a3871,
			16px 8px 0 -8px #0a3871, 0 18px 0 -8px #0a3871,
			-16px 8px 0 -8px #0a3871, -16px -8px 0 -8px #0a3871;
	}

	100% {
		background: #0a3871;
		box-shadow: 0 -36px 0 -10px transparent, 32px -16px 0 -10px transparent,
			32px 16px 0 -10px transparent, 0 36px 0 -10px transparent,
			-32px 16px 0 -10px transparent, -32px -16px 0 -10px transparent;
	}
}
