:root {
	--accent: #f9e2af;
	--bg-2: hsl(220, 10%, 17%);
	--bg-3: hsl(220, 10%, 11%);
	--bg-4: hsl(220, 10%, 16%);
	--bg-t-2: hsla(220, 12%, 5%, 0.5);
	--bg-t: hsla(220, 12%, 5%, 0.25);
	--bg: hsl(220, 10%, 8%);
	--border-d: #334155;
	--border: hsl(0, 0%, 100%);
	--error: #f38ba8;
	--gradient-primary: linear-gradient(90deg, #CF5DEB 0%, #9F3DFA 100%);
	--gradient-secondary: linear-gradient(90deg, var(--txt-1) 0%, var(--txt) 100%);
	--success: #a6e3a1;
	--txt-1: hsl(220, 45%, 90%);
	--txt-2: hsl(220, 14%, 55%);
	--txt-3: hsl(220, 11%, 35%);
	--txt-4: #000000;
	--txt: hsl(220, 30%, 80%);
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html,
body {
	color: var(--txt-1);
	font-family: "Source Code Pro", monospace;
	height: 100dvh;
	margin: 0px;
	overflow-x: hidden;
	scroll-behavior: smooth;
	width: 100%;
	-ms-overflow-style: none;
}

/* Disabled Scroll Bars */
.settings-content, .cookie-banner {
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

h1,
h2,
h3,
h4 {
	font-family: "Source Code Pro", monospace;
	font-variant-ligatures: no-common-ligatures;
	font-weight: 400;
	line-height: 1.3;
	margin-block-end: 5.1px;
	margin-block-start: 5.1px;
	margin-inline-end: 0px;
	margin-inline-start: 0px;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.bold {
	font-weight: 800;
}

.hidden {
	display: none !important;
}

.placeholder {
	margin: 0 auto;
}

.linkout,
.nodecoration {
	color: var(--txt-1);
	cursor: pointer;
	text-decoration: none;
}

.nodecoration:hover {
	text-decoration: underline;
}

footer {
	background: var(--bg);
	border-radius: 10px;
	bottom: 0;
	color: var(--txt-2) !important;
	display: flex;
	flex-direction: column;
	font-size: 1rem;
	gap: 7.5px;
	margin-top: auto;
	padding: 1rem 0;
	position: relative;
	text-align: center;
	width: 100%;
}

footer a {
	color: var(--txt-2) !important;
}

footer .linkout,
footer .nodecoration,
footer .linkout.nodecoration {
	color: #aaa;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 28px;
	font-size: 1rem;
	font-weight: 500;
	border-radius: 32px;
	border: 2px solid transparent;
	transition: all 0.2s ease-in-out;
	cursor: pointer;
	outline: none;
}

.btn__icon {
	width: 20px;
	height: 20px;
	fill: currentColor;
	transition: transform 0.3s ease;
}

.btn--primary {
	background: var(--gradient-primary);
	color: var(--txt-1);
	position: relative;
	overflow: hidden;
}

.btn--primary:hover {
	transform: scale(1.05);
}

.btn--secondary {
	background: transparent;
	border-color: #CF5DEB;
	color: #CF5DEB;
	position: relative;
}

.btn--secondary:hover {
	background-color: hsla(0, 0%, 100%, 0.1);
}

.btn--secondary:hover .btn__icon {
	transform: rotate(5deg) scale(1.1);
}

.ripple {
	position: absolute;
	border-radius: 50%;
	transform: scale(0);
	animation: ripple-effect 600ms linear;
	background-color: rgba(255, 255, 255, 0.7);
}

.ripple-btn {
	position: relative;
    overflow: hidden;
}

@keyframes ripple-effect {
	to {
	  transform: scale(4);
	  opacity: 0;
	}
}

/* Scrollbar / Source: https://community.hubspot.com/t5/CMS-Development/CSS-for-Scrollbar-in-iOS-devices/m-p/293889 */


::-webkit-scrollbar {
	width: 7.5px;
	-webkit-appearance: none;
	z-index: 1000000;
}

::-webkit-scrollbar-thumb {
	background-color: transparent;
	border-radius: 4px;
	-webkit-box-shadow: 0 0 1px rgba(255,255,255,.5);
}

::-webkit-scrollbar-track {
	border-bottom-right-radius: 5px;
	border-top-right-radius: 5px;
	background: transparent;
}

::-webkit-scrollbar-thumb {
	background: #707070;
}

::-webkit-scrollbar-thumb:hover {
	background: #a0a0a0;
}

.scrollbar-hidden::-webkit-scrollbar {
	width: 0 !important;
	height: 0 !important;
	background: transparent !important;
	display: none !important;
}

.scrollbar-hidden::-webkit-scrollbar-thumb {
	background: transparent !important;
}

.scrollbar-hidden::-webkit-scrollbar-track {
	background: transparent !important;
}

.scrollbar-hidden {
	scrollbar-width: none !important;
}

.cookie-banner {
	animation: slideUp 0.5s ease-out;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 16px;
	bottom: 1rem;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
	left: 50%;
	max-height: calc(100% - 2rem);
	max-width: 800px;
	overflow: scroll;
	padding: 2rem;
	position: fixed;
	text-align: left;
	transform: translateX(-50%);
	width: calc(100% - 5px);
	z-index: 9998;
}

.cookie-header {
	align-items: flex-start;
	display: flex;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.cookie-icon {
	align-items: center;
	background: rgba(159, 61, 250, 0.15);
	border-radius: 12px;
	display: flex;
	font-size: 1.8rem;
	height: 50px;
	justify-content: center;
	padding: 10px;
	width: 50px;
}

.cookie-title {
	background: var(--gradient-primary);
	background-clip: text;
	color: transparent;
	font-size: 1.8rem;
	margin-bottom: 0.5rem;
	-webkit-background-clip: text;
}

.cookie-description {
	color: var(--txt-1);
	line-height: 1.7;
	margin-bottom: 1.5rem;
}

.cookie-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.cookie-btn {
	align-items: center;
	border: none;
	border-radius: 50px;
	cursor: pointer;
	display: flex;
	font-size: 1rem;
	font-weight: 500;
	gap: 0.5rem;
	padding: 0.8rem 1.8rem;
	transition: all 0.3s ease;
}

.btn {
	text-decoration: none;
}

.btn a {
	color: var(--txt-1);
}

.btn-primary {
	background: var(--gradient-primary);
	color: var(--txt-1);
	width: auto !important;
}

.btn-primary:hover {
	background-color: transparent !important;
	box-shadow: 0 5px 15px rgba(159, 61, 250, 0.4);
	transform: translateY(-3px);
}

.btn-secondary {
	background: transparent;
	border: 1px solid var(--border);
	color: var(--txt-1);
	position: relative;
	width: auto !important;
}

.btn-secondary:hover {
	background: rgba(255, 255, 255, 0.05);
	color: var(--text-primary);
}

.settings-panel {
	animation: fadeIn 0.4s ease-out;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 16px;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
	display: none;
	left: 50%;
	max-width: 700px;
	padding: 2rem;
	position: fixed;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 90%;
	z-index: 9999;
}

.settings-header {
	align-items: center;
	border-bottom: 1px solid var(--border);
	display: flex;
	justify-content: space-between;
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
}

.settings-title {
	background: var(--gradient-primary);
	background-clip: text;
	color: transparent;
	font-size: 1.8rem;
	-webkit-background-clip: text;
}

.close-btn {
	background: transparent;
	border: none;
	color: var(--txt-1);
	cursor: pointer;
	font-size: 1.5rem;
	transition: color 0.3s ease;
	width: auto !important;
}

.close-btn:hover {
	background-color: transparent !important;
	color: var(--text-primary);
}

.settings-content {
	max-height: 60vh;
	overflow-y: auto;
}

.cookie-category {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--border);
	border-radius: 12px;
	margin-bottom: 1.5rem;
	padding: 1.5rem;
}

.cookie-category-bottom,
.cookie-header-bottom {
	margin-bottom: 0px;
}

.cookie-header-bottom > div:nth-child(2) {
	align-items: center;
	display: flex;
	height: 50px;
}

.cookie-header-bottom > div:nth-child(2) > h2 {
	margin-bottom: 0rem;
	margin-block-end: 0px;
    margin-block-start: 0px;
}

.category-header {
	align-items: center;
	display: flex;
	justify-content: space-between;
	margin-bottom: 1rem;
}

.category-title {
	align-items: center;
	color: var(--txt-1);
	display: flex;
	font-size: 1.3rem;
	gap: 0.8rem;
}

.category-icon {
	border-radius: 8px;
	display: flex;
	font-size: 1.2rem;
	height: 40px !important;
	justify-content: center;
	padding: 5px;
	width: 40px !important;
}

.category-description {
	color: var(--txt-1);
	line-height: 1.7;
	margin-bottom: 1.2rem;
}

.toggle-container {
	align-items: center;
	display: flex;
	gap: 0.8rem;
}

.toggle-switch {
	display: inline-block;
	height: 30px;
	position: relative;
	top: 50%;
	width: 60px;
}

.toggle-switch input {
	height: 0;
	opacity: 0;
	width: 0;
}

.slider {
	background-color: var(--border-d);
	bottom: 0;
	cursor: pointer;
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
	transition: all 0.4s ease;
	border-radius: 34px;
}

.slider:before {
	background-color: white;
	bottom: 4px;
	content: "";
	height: 22px;
	left: 4px;
	position: absolute;
	transition: .4s;
	width: 22px;
	border-radius: 50%;
}

input:checked+.slider {
	background: var(--gradient-primary);
}

input:checked+.slider:before {
	transform: translateX(30px);
}

.disabled .slider {
	background-color: #475569;
	cursor: not-allowed;
}

.disabled .slider:before {
	background-color: #94a3b8;
}

.disabled input {
	cursor: not-allowed;
}

.settings-footer {
	border-top: 1px solid var(--border);
	display: flex;
	gap: 1rem;
	justify-content: flex-end;
	margin-top: 1.5rem;
	padding-top: 1.5rem;
}

.btn-save {
	background: var(--gradient-primary);
	border: none;
	border-radius: 50px;
	color: var(--txt-1);
	cursor: pointer;
	font-size: 1rem;
	font-weight: 500;
	padding: 0.8rem 1.8rem;
	transition: all 0.3s ease;
}

.btn-save:hover {
	box-shadow: 0 5px 15px rgba(159, 61, 250, 0.4);
	transform: translateY(-3px);
}

.overlay {
	backdrop-filter: blur(5px);
	background: rgba(0, 0, 0, 0.7);
	display: none;
	height: 100%;
	left: 0;
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 9998;
}

#settingsPannelOpener {
	color: var(--txt-2);
	cursor: pointer;
}

@keyframes slideUp {
	from {
		opacity: 0;
		transform: translate(-50%, 100%);
	}

	to {
		opacity: 1;
		transform: translate(-50%, 0);
	}
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translate(-50%, -45%);
	}

	to {
		opacity: 1;
		transform: translate(-50%, -50%);
	}
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 768px) {
	.cookie-banner {
		padding: 1.5rem;
	}

	.cookie-description {
		margin-bottom: 0px;
	}

	.settings-panel {
		padding: 1.5rem;
	}

	.cookie-title,
	.settings-title {
		font-size: 1.5rem;
	}

	.cookie-buttons {
		flex-direction: column;
	}

	.cookie-btn {
		justify-content: center;
		width: 100%;
	}

	.settings-footer {
		flex-direction: column;
	}

	.btn-save {
		width: 100%;
	}
}

@media (max-width: 540px) {
	footer {
		font-size: 0.9rem;
	}
}

@media (max-width: 480px) {
	.cookie-header {
		align-items: center;
		flex-direction: column;
		text-align: center;
	}

	.category-header {
		align-items: center;
		flex-direction: row;
		gap: 0.8rem;
	}

	.settings-panel {
		padding: 1rem;
		width: 95%;
	}

	.cookie-category {
		padding: 1rem;
	}
}

@media (max-width: 385px) {
	footer {
		font-size: 0.75rem;
	}
}