@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@700&family=Ubuntu:wght@300;400;500&display=swap');

:root {
	--text: rgb(244, 244, 244);
	--background: rgb(22, 22, 22);
	--primary: rgb(218, 237, 110);
	--primary-a: rgba(218, 237, 110, 0.2);
	--primary-a2: rgba(218, 237, 110, 0);
	--secondary: rgb(0, 0, 0);
	--secondary-a: rgba(0, 0, 0, 0.5);
	--accent: rgb(255, 255, 255);
	--accent-a: rgba(255, 255, 255, 0.15);
	--accent-a2: rgba(255, 255, 255, 0.3);
	--primary-l: hsl(69, 78%, 68%);

	--s: 14px;
	--p: 16px;
	--h: 18px;
}

html,
body {
	position: relative;
	width: 100%;
	height: 100%;
	scroll-behavior: smooth;
}

body {
	background-color: var(--background);
	margin: 0;
	box-sizing: border-box;
	font-family: 'Ubuntu', sans-serif;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
}

a {
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}

.link {
	font-size: var(--s);
	box-shadow: 0 0.5px 0 var(--accent);
	padding-bottom: 3px;
	font-weight: 400;
	transition: box-shadow ease 0.2s;
}

.link:hover {
	box-shadow: 0 2px 0 var(--primary);
	color: var(--primary);
}





/* navbar */

h1 {
	color: var(--primary);
	font-family: 'Space Grotesk', sans-serif;
	text-align: center;
}

h1.sparkle-heading {
	position: relative;
	display: inline-block;
}

.sparkle {
	position: absolute;
	top: var(--sparkle-translate-y, 0);
	left: var(--sparkle-translate-x, 0);
	width: var(--sparkle-size);
	height: var(--sparkle-size);
	border-radius: 50%;
	background-color: var(--primary);
	opacity: var(--sparkle-opacity, 0);
	pointer-events: none;
	transform-origin: center;
	animation: sparkleAnim 2s infinite;
	animation-delay: var(--sparkle-animation-delay, 0s);
}

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

h2 {
	color: var(--text);
	font-family: 'Ubuntu', sans-serif;
	font-weight: 500;
	font-size: var(--h);
	margin: 0;
	cursor: pointer;
	text-align: left;
}

h2:hover {
	color: var(--primary);
}

p {
	color: var(--text);
	font-size: var(--p);
	font-family: 'Ubuntu', sans-serif;
	font-weight: 400;
	line-height: 1.5;
}

.btn {
	padding: 10px 15px;
	border: 1px solid var(--accent-a2);
	background-color: var(--accent-a);
	border-radius: 8px;
	color: var(--text);
	transition: all cubic-bezier(0.075, 0.82, 0.165, 1) 0.2s;
	font-size: var(--p);
	font-weight: 500;
}

.btn:hover {
	background-color: var(--accent);
	color: var(--background);
}


nav {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	box-sizing: border-box;
	margin-bottom: 2em;
}

#logo {
	width: 150px;
	height: 28px;
}

.logo-link {
	transition: all 0.2s ease;
}

.logo-link:hover {
	opacity: 60%;
}


.menu-right {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-end;
	gap: 15px;
}

.note {
	font-size: var(--s);
	padding: 10px;
	border-radius: 20px;
	background-color: var(--primary);
	color: var(--background);
	box-shadow: 0 0 0 5px var(--primary-a);
	animation: alert 2s infinite linear;
}

@keyframes alert {
	0% {box-shadow: 0 0 0 0px var(--primary-a);}
	80% {box-shadow: 0 0 0 8px var(--primary-a), 0 0 0 5px var(--primary-a);}
	100% {box-shadow: 0 0 0 8px var(--primary-a2), 0 0 0 10px var(--primary-a2);}
}



/* main content */

.main-content {
	display: flex;
	flex-direction: row;
	width: 100%;
	justify-content: space-between;
	align-items: flex-start;
	box-sizing: border-box;
	gap: 20px;
}

.main-content > main {
	width: 85%;
}

.main-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(348px, 1fr));
	gap: 15px;
	max-height: 70vh;
	overflow-y: scroll;
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.main-grid::-webkit-scrollbar {
	display: none;
}

@media screen and (max-width: 1345px) {
	.main-grid {
		grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	}
}

@media screen and (max-width: 1261px) {
	.main-grid {
		grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	}
}

@media screen and (max-width: 926px) {
	.main-grid {
		grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	}
}

@media screen and (max-width: 846px) {
	.main-grid {
		grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	}
}

@media screen and (max-width: 600px) {
	.main-grid {
		grid-template-columns: repeat(auto-fit, minmax(320px, 320px));
		justify-content: center;
	}
}

.website-card {
	padding: 10px;
	border: 3px solid var(--accent-a);
	border-radius: 10px;
	background-color: var(--secondary);
	box-sizing: content-box;
	transition: all cubic-bezier(0.075, 0.82, 0.165, 1) 0.2s;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}

.website-card:hover {
	background-color: var(--background);
}


.website-card:hover > .card-info > h2 {
	color: var(--primary);
}


.card-info {
	display: flex;
	flex-direction: row;
	width: 100%;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	margin-top: auto;
}

.website-image {
	border-radius: 5px;
	width: 100%;
	max-width: 100%;
	height: 200px;
	object-fit: cover;
}

@media screen and (max-width: 950px) {
	.website-image {
		height: auto;
	}
}

.img-big {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 600px;
	border-radius: 10px;
	overflow: auto;
}

.outbound-cont {
	display: flex;
	flex-direction: row;
	justify-content: flex-end;
	align-items: center;
	gap: 10px;
}

.outbound {
	background-color: var(--accent-a);
	border-radius: 5px;
	transition: all cubic-bezier(0.075, 0.82, 0.165, 1) 0.2s;
	display: flex;
	flex-direction: row;
	gap: 5px;
	align-items: center;
	padding: 5px 10px;
	color: var(--text);
	font-size: var(--p);
}

@media screen and (max-width: 900px) {
	.outbound svg {
		width: 25px;
		height: 24px;
	}
}

.outbound:hover {
	background-color: var(--primary);
	color: var(--background);
}

.outbound:hover > svg > path {
	stroke: var(--background);
}

.site-link {
	margin-left: auto;
}

.empty-code {
	border: 1px dashed var(--accent-a2);
	background-color: var(--secondary);
}

.empty-code:hover {
	background-color: var(--accent);
	color: var(--background);
}


/* sidebar */

aside {
	width: 15%;
	background-color: var(--secondary-a);
	padding: 10px;
	border-radius: 10px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	gap: 10px;
	min-width: 200px;
	position: sticky;
	top: 1rem;

	max-height: 68vh;
	overflow-y: scroll;
	-ms-overflow-style: none;
	scrollbar-width: none;
}

aside::-webkit-scrollbar {
	display: none;
}

.option {
	background-color: var(--secondary-a);
	border-radius: 5px;
	width: 100%;
	padding: 15px 20px;
	border: none;
	color: var(--text);
	font-size: var(--p);
	font-family: 'Ubuntu', sans-serif;
	text-align: left;
	position: relative;
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
	gap: 10px;
	font-weight: 500;
	cursor: pointer;
	transition: all ease 0.2s;
	box-sizing: border-box;
}

.option::before {
	content: '';
	height: 15px;
	width: 15px;
	border-radius: 15px;
	background-color: var(--background);
	display: block;
}

.option.active {
	background-color: var(--primary);
	color: var(--background);
}

.option:hover {
	background-color: var(--accent-a);
}

.option.active:hover {
	background-color: var(--primary-l);
}

.show {
	display: flex !important;
}





/* modal */

.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9999;
	opacity: 1;
	transition: all ease 0.3s;
	visibility: visible;
}

.modal-overlay[aria-hidden='true'] {
	opacity: 0;
	visibility: hidden;
}

.modal {
	display: flex;
	flex-direction: column;
	background-color: var(--background);
	border-radius: 20px;
	padding: 20px;
	gap: 20px;
	border: 3px solid var(--accent-a2);
	max-width: 80%;
	max-height: 80%;
	align-items: center;
}


.modal-nav-button {
	background-color: var(--accent-a);
	border-radius: 5px;
	transition: all cubic-bezier(0.075, 0.82, 0.165, 1) 0.2s;
	display: flex;
	flex-direction: row;
	align-items: center;
	height: 30px;
	color: var(--text);
	font-size: var(--p);
	width: auto;
	border: none;
	align-self: flex-end;
	cursor: pointer;
	max-width: 50px;
}

.modal-nav-button:hover {
	background-color: var(--primary);
	color: var(--background);
}


.modal-nav {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
}

.modal-nav-button:hover > path {
	stroke: var(--background);
}




/* loading spinner */
.loading-spinner {
	display: inline-block;
	width: 2rem;
	height: 2rem;
	margin: 2rem;
	border-radius: 50%;
	border: 0.3rem solid var(--primary);
	transform: translate(50%);
	animation: 1s ripple ease-out infinite;
}

@keyframes ripple {
	from {
		transform: scale(0);
		opacity: 1;
	}

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



/* scroll to top */
.back-to-top-btn {
	position: fixed;
	bottom: 20px;
	right: 20px;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	background-color: var(--background);
	padding: 10px;
	transition: all cubic-bezier(0.075, 0.82, 0.165, 1) 0.2s;
}

.back-to-top-btn:hover {
	background-color: var(--secondary);
}




/* footer */

.footer-content > * {
	font-size: var(--s);
	font-weight: 300;
}

.footer-content {
	width: 100%;
	border-top: 1px solid var(--accent-a);
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	justify-content: space-between;
	flex-wrap: wrap;
}

.footer-col1 {
	width: 15%; line-height: 1.5;
}




/* responsive */

#logoMobile {
	display: none;
	width: 28px;
	height: 28px;
}

@media screen and (max-width: 660px) {
	aside {
		position: fixed;
		bottom: 0;
		top: auto;
		width: 100%;
		box-sizing: border-box;
		background-color: var(--secondary);
		border-radius: 0;
		overflow-y: scroll;
		max-height: 100vh;
	}

	.option:not(.active) {
		display: none;
	}

	.main-content > main {
		width: 100%;
	}

	.main-content {
		justify-content: center;
		position: relative;
	}

	#logoMobile {
		display: block;
	}

	#logo {
		display: none;
	}

	.modal {
		width: 80%;
	}

	.footer-col1 {
		width: 100%;
	}

	.footer-content {
		margin-bottom: 5em;
		flex-direction: column;
	}

	.note {
		display: none;
	}
	
}
