@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap");

body {
	font-family: "Roboto", Arial, Helvetica, sans-serif;
	margin: 0;
	background: #fff;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.fa-magnifying-glass {
	color: white;
}

.flex-center {
	display: flex;
	justify-content: center;
}

.header-center {
	align-items: center;
	flex-direction: column;
	margin-top: 10%;
}

.left-margin {
	margin: 0px 16px;
}

#ob-scura {
	border: none;
	position: absolute;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: #111;
}

#uv-error {
	color: #ff6666 !important;
	white-space: pre-wrap;
}

#uv-error-code {
	font-size: 12px;
	color: #fff;
	font-family: "Courier New", Courier, monospace;
}

#uv-register-sw {
	color: white;
	background: #555555;
	cursor: pointer;
	outline: none;
	border: none;
	border-radius: 6px;
	padding: 16px 20px;
	line-height: 16px;
	display: none;
}

#uv-register-sw:active {
	background: #333333;
}

#uv-register-sw.show {
	display: block;
}

.logo {
	width: 150px;
	height: 150px;
}

.logo-wrapper .text {
	font-size: 75px;
	color: #fff;
}

.logo-wrapper h1 {
	color: white;
}

footer {
	margin: 0 5vw;
	margin-top: auto;
	display: flex;
	flex-direction: column;
	line-height: 30px;
	margin-bottom: 20px;
}

footer > div {
	display: flex;
	justify-content: left;
	align-items: center;
	flex-wrap: wrap;
	margin-bottom: 15px;
}

footer a,
footer span {
	margin: 0 15px;
	text-decoration: none;
	color: #fff;
	font-size: 15px;
}

footer a {
	cursor: pointer;
}

footer a:hover {
	text-decoration: underline;
}

.desc p {
	width: 560px;
	color: rgba(253, 253, 253, 0.514);
}

#uv-address {
	background: none;
	font-family: inherit;
	padding: 0px 17px;
	height: 48px;
	border: 1px solid rgb(255, 255, 255, 0.2);
	color: var(--text-color);
	border-radius: 3px;
	outline: none;
	width: 350px;
	margin-top: 5px;
	border-radius: 50px;
	color: #fff;
	transition: border-radius 0.1s;
}

#uv-address:focus {
	border: 1px solid rgba(253, 253, 253, 0.514);
	border-radius: 6px;
}

.credit {
	border-radius: 10px;
	padding: 10px;
	display: block;
	border: #fff 1px solid;
	color: #fff;
	display: flex;
	flex-wrap: wrap;
	margin-bottom: 15px;
}

.credit label {
	margin-left: auto;
	margin-right: 15px;
}

.credit a,
.credit label {
	color: white;
	text-decoration: underline;
	text-align: right;
}

.credit pre {
	display: none;
	width: 100%;
}

.credit label::after {
	content: "show license";
	cursor: pointer;
}

.credit input:checked + label::after {
	content: "hide license";
}

.credit input:checked ~ pre {
	display: block;
}

.terminal-container {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: rgba(30, 30, 30, 0.8);
	border: 1px solid #3a3a3a;
	border-radius: 8px;
	width: 700px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
	backdrop-filter: blur(10px);
	z-index: 1000;
	transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.terminal-container.hiding {
	opacity: 0;
	transform: translate(-50%, -50%) scale(0.95) translateY(-20px);
}

.terminal-container.showing {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1) translateY(0);
}

.terminal-header {
	cursor: move;
	background-color: #2d2d2d;
	padding: 8px;
	border-radius: 8px 8px 0 0;
	display: flex;
	align-items: center;
	border-bottom: 1px solid #3a3a3a;
	position: relative;
}

.terminal-buttons {
	display: flex;
	gap: 6px;
	margin-left: 8px;
}

.terminal-button {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	position: relative;
}

.terminal-button.close {
	background-color: #ff5f56;
	cursor: pointer;
	transition: all 0.2s ease;
}
.terminal-button.close:hover {
	background-color: #e33b3b;
	transform: scale(1.1);
}
.terminal-button.close:hover::after {
	content: "×";
	color: black;
	font-size: 10px;
	line-height: 12px;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}
.terminal-button.close:active {
	transform: scale(0.95);
}

.terminal-button.minimize {
	background-color: #ffbd2e;
	cursor: move;
}

.terminal-button.maximize {
	background-color: #27c93f;
	cursor: move;
}

.terminal-title {
	color: #999;
	font-size: 14px;
	font-family:
		-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
}

.terminal-content {
	padding: 15px;
	min-height: 120px;
}

.terminal-output p {
	font-family: "Courier New", monospace;
	color: #00ff00;
	margin: 0 0 5px 0;
	font-size: 14px;
	line-height: 1.5;
	overflow: hidden;
	white-space: nowrap;
	width: 0;
}

.terminal-output p:nth-child(1) {
	animation: typing 0.2s steps(40, end) 0s forwards;
}
.terminal-output p:nth-child(2) {
	animation: typing 0.2s steps(40, end) 0.2s forwards;
}
.terminal-output p:nth-child(3) {
	animation: typing 0.2s steps(40, end) 0.4s forwards;
}
.terminal-output p:nth-child(4) {
	animation: typing 0.2s steps(40, end) 0.6s forwards;
}

@keyframes typing {
	from {
		width: 0;
	}
	to {
		width: 100%;
	}
}

.terminal-form {
	display: flex;
	align-items: center;
	visibility: hidden;
	animation: fadeInForm 0.1s linear 0.8s forwards;
}

@keyframes fadeInForm {
	to {
		visibility: visible;
	}
}

.terminal-prompt {
	color: #00ff00;
	margin-right: 10px;
	white-space: pre;
	font-family: "Courier New", monospace;
	font-size: 14px;
	user-select: none;
}

.terminal-input {
	background: none;
	border: none;
	color: #00ff00;
	font-family: "Courier New", monospace;
	font-size: 14px;
	flex-grow: 1;
	outline: none;
	padding: 0;
	margin: 0;
	line-height: 1.5;
}

#uv-address {
	background: none;
	font-family: "Courier New", monospace;
	font-size: 14px;
	line-height: 1.5;
	padding: 0;
	height: auto;
	border: none;
	color: #00ff00;
	border-radius: 0;
	outline: none;
	width: auto;
	margin: 0;
	transition: none;
	flex-grow: 1;
	caret-color: #00ff00;
}

@keyframes blink {
	0%,
	50% {
		opacity: 1;
	}
	51%,
	100% {
		opacity: 0;
	}
}

#uv-address:focus {
	border: none;
	border-radius: 0;
	box-shadow: none;
	animation: none;
}
#uv-address::placeholder {
	color: rgba(0, 255, 0, 0.5);
	opacity: 1;
}

@keyframes blink {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0;
	}
}

#uv-address::after {
	content: "|";
	animation: blink 1s infinite;
}

.terminal-loading p {
	font-family: "Courier New", monospace;
	color: #00ff00;
	margin: 0 0 15px 0;
	font-size: 14px;
	line-height: 1.5;
	overflow: visible;
	white-space: normal;
	width: auto;
	animation: none;
}

.progress-bar-container {
	width: 100%;
	background-color: #333;
	border-radius: 4px;
	height: 10px;
	margin-top: 5px;
	margin-bottom: 15px;
}

.progress-bar {
	width: 0%;
	height: 100%;
	background-color: #00ff00;
	border-radius: 4px;
	animation: loadProgress 2s linear forwards;
}

@keyframes loadProgress {
	from {
		width: 0%;
	}
	to {
		width: 100%;
	}
}

.popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: rgba(0, 0, 0, 0.6);
	display: none;
	justify-content: center;
	align-items: center;
	z-index: 10000;
	backdrop-filter: blur(5px);
	opacity: 0;
	transition: opacity 0.3s ease-out;
}

.popup-overlay.active {
	display: flex;
	opacity: 1;
}

.popup-container {
	background-color: rgba(30, 30, 30, 0.95);
	border: 1px solid #3a3a3a;
	border-radius: 12px;
	min-width: 400px;
	max-width: 90vw;
	max-height: 80vh;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(15px);
	overflow: hidden;
	transform: scale(0.9) translateY(30px);
	opacity: 0;
	transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.popup-overlay.active .popup-container {
	transform: scale(1) translateY(0);
	opacity: 1;
}

.popup-header {
	background-color: #2d2d2d;
	padding: 15px 20px;
	border-bottom: 1px solid #3a3a3a;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.popup-title {
	color: #fff;
	font-size: 16px;
	font-weight: 500;
	margin: 0;
}

.popup-close {
	background: none;
	border: none;
	color: #999;
	font-size: 20px;
	cursor: pointer;
	padding: 5px;
	border-radius: 3px;
	transition: color 0.2s;
}

.popup-close:hover {
	color: #ff5f56;
}

.popup-content {
	padding: 20px;
	color: #fff;
	overflow-y: auto;
	max-height: calc(80vh - 120px);
}

.popup-content h3 {
	margin: 0 0 15px 0;
	color: #00ff00;
	font-family: "Courier New", monospace;
}

.popup-content p {
	margin: 10px 0;
	line-height: 1.6;
	color: #ddd;
}

.popup-content .ad-content {
	text-align: center;
	padding: 20px;
	opacity: 0;
	transform: translateY(10px);
	animation: fadeInContent 0.5s ease-out 0.2s forwards;
}

.popup-content .ad-placeholder {
	background: linear-gradient(45deg, #333, #555);
	border: 2px dashed #666;
	border-radius: 8px;
	padding: 40px 20px;
	margin: 20px 0;
	color: #999;
	font-family: "Courier New", monospace;
	opacity: 0;
	transform: scale(0.95);
	animation: scaleInPlaceholder 0.4s ease-out 0.4s forwards;
}

.changelog-entry {
	border-bottom: 1px solid #444;
	padding: 15px 0;
	margin-bottom: 15px;
	opacity: 0;
	transform: translateY(20px);
	animation: slideInFromBottom 0.4s ease-out forwards;
}

.changelog-entry:last-child {
	border-bottom: none;
	margin-bottom: 0;
}

.changelog-entry:nth-child(1) {
	animation-delay: 0.1s;
}
.changelog-entry:nth-child(2) {
	animation-delay: 0.2s;
}
.changelog-entry:nth-child(3) {
	animation-delay: 0.3s;
}
.changelog-entry:nth-child(4) {
	animation-delay: 0.4s;
}
.changelog-entry:nth-child(5) {
	animation-delay: 0.5s;
}

.changelog-version {
	color: #00ff00;
	font-family: "Courier New", monospace;
	font-weight: bold;
	margin-bottom: 5px;
}

.changelog-date {
	color: #999;
	font-size: 12px;
	margin-bottom: 10px;
}

.changelog-changes {
	list-style: none;
	padding: 0;
	margin: 0;
}

.changelog-changes li {
	padding: 3px 0;
	position: relative;
	padding-left: 20px;
}

.changelog-changes li:before {
	content: "→";
	color: #00ff00;
	position: absolute;
	left: 0;
}

@keyframes slideInFromBottom {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.changelog-changes li {
	opacity: 0;
	animation: fadeInText 0.3s ease-out forwards;
}

.changelog-entry:nth-child(1) .changelog-changes li:nth-child(1) {
	animation-delay: 0.3s;
}
.changelog-entry:nth-child(1) .changelog-changes li:nth-child(2) {
	animation-delay: 0.4s;
}
.changelog-entry:nth-child(2) .changelog-changes li:nth-child(1) {
	animation-delay: 0.5s;
}
.changelog-entry:nth-child(2) .changelog-changes li:nth-child(2) {
	animation-delay: 0.6s;
}
.changelog-entry:nth-child(3) .changelog-changes li:nth-child(1) {
	animation-delay: 0.7s;
}
.changelog-entry:nth-child(3) .changelog-changes li:nth-child(2) {
	animation-delay: 0.8s;
}

@keyframes fadeInText {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes fadeInContent {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes scaleInPlaceholder {
	from {
		opacity: 0;
		transform: scale(0.95);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}
