@font-face {
	font-family: 'mydamnwriting';
	src: url('/assets/fonts/mydamnwriting.ttf');
}

@font-face {
	font-family: JetBrainsMono;
	src: url(/assets/fonts/jetbrains-mono-regular.woff2);
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
	background-image: url(/assets/images/backgound.png);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	background-attachment: fixed;
	font-family: JetbrainsMono;
	min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body > .d-flex {
    flex: 1;
    display: flex;
    flex-direction: column !important;
}

.content {
    flex: 1;
}

h1,
h2,
h3,
h4,
h5,
h6,
.mydamnwriting {
	font-family: mydamnwriting;
}

a {
	color: #fff;
}

.underlined {
	position: relative;
	display: inline-block;
	text-decoration: none;
}

.underlined::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -4px;
	height: 8px;
	background: url("/assets/images/text-underline.png") center/100% 100% no-repeat;
	pointer-events: none;
}

hr {
	border: none;
	height: 6px !important;
	opacity: 1;
	margin: 0 !important;
	background: url("/assets/images/text-underline.png") repeat-x center;
	background-size: auto 100%;
	margin: 2rem 0;
}

.btn-drawing {
	padding: 15px 25px 15px 25px;
	color: #fff;
	border-image-repeat: stretch;
	border-image-slice: 150 150 150 150 fill;
	border-image-source: url(/assets/images/button-border.png);
	border-image-width: 20px;
	transition: 0.3s;
}

.btn-drawing:hover,
.btn-drawing:focus {
	border-image-source: url(/assets/images/button-border-hover.png);
	color: #fff;
}

#btn-back-to-top {
	position: fixed;
	bottom: 20px;
	right: 20px;
	display: none;
}

.navbar {
	position: fixed;
	width: 100%;
	padding-bottom: 20px;
	background-image: url("/assets/images/navbar-border.png");
	background-repeat: repeat-x;
	background-position: left top;
	background-size: auto 100%;
	transition: height 0.5s ease;
}

.navbar-nav {
	gap: 10px;
}

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

.navbar-collapse.show {
    animation: fadeInMenu 250ms ease;
}

.navbar-collapse.collapsing {
    transition: none !important;
}

.navbar-collapse.show .yixboost-link {
    margin-bottom: 100vh;
}

.navbar-nav .nav-item .btn-drawing {
	padding-left: 30px;
	padding-right: 30px;
}

.yixboost-link {
	color: #fff;
}

.yixboost-link:hover,
.yixboost-link:focus {
	color: #ccc;
}

.content {
	width: 100%;
}

.section {
	width: calc(100% - 100px);
	margin: 50px auto;
	padding: 30px;
	color: #fff;
	border-image-repeat: stretch;
	border-image-slice: 130 130 130 130 fill;
	border-image-source: url('/assets/images/section-border.png');
	border-image-width: 20px;
	scroll-margin-top: 120px;
}

.section:first-child {
	margin-top: 100px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
	overflow: hidden;
}

.section .row {
	margin-top: 15px;
}

.about-section {
	background-image: url("/assets/images/hackclub-figure.png");
	background-repeat: no-repeat;
	background-position: calc(100% - 40px) bottom;
	background-size: clamp(180px, 18vw, 300px) auto;
}

.hackatime-section {
	background-image: url(/assets/images/hackatime-section-background.png);
	background-position: bottom;
	background-repeat: no-repeat;
}

.badges-section .container {
	margin-bottom: 20px;
}

.badges-section .container a {
	text-decoration: none;
}

.hackatime-stats-widget,
.hackatime-activity-widget {
	border-image-repeat: stretch;
	border-image-slice: 150 150 150 150 fill;
	border-image-source: url(/assets/images/card-border.png);
	border-image-width: 20px;
}

.hackatime-stats-widget {
	padding: 15px;
}

.hackatime-activity-widget {
	padding: 30px;
}

#hackatime-activity img,
.hackatime-stats-widget {
	width: 100%;
}

.project-info-section img {
	width: 400px;
	height: 300px;
	object-fit: cover;
	border-radius: 10px;
}

.container-sm hr {
	margin-top: 2px;
}

.col-left {
	margin-right: 20px;
}

.widget {
	padding: 30px;
	margin: 10px;
	border-image-repeat: stretch;
	border-image-slice: 150 150 150 150 fill;
	border-image-source: var(--widget-border-image);
	border-image-width: 20px;
}

.widget .badge {
	background-color: #9a00bca8;
	padding: 7px 10px 7px 10px;
	border-radius: 6px;
	transition: background-color 0.7s ease, color 0.7s ease;
}

#animated-music-icon {
	margin: 30px !important;
	width: 24px;
	height: 24px;
	object-fit: contain;
}

.card {
	margin: 30px;
	overflow: hidden;
	background-color: transparent;
	border-image-repeat: stretch;
	border-image-slice: 150 150 150 150 fill;
	border-image-source: url(/assets/images/card-border.png);
	border-image-width: 20px;
	transition: margin 0.2s;
}

.card:hover {
    margin-top: 20px;
	margin-bottom: 40px;
}

.card-img-top {
	min-height: 200px;
	width: calc(100% - 60px);
	object-fit: cover;
	border: 2px dotted white;
	z-index: 0;
	margin: 30px;
}

.card-title {
	margin: -30px 20px 0px 20px;
}

.card-text {
	margin: 0px 20px 20px 20px;
}

.card-buttons {
	margin: 0px 20px 10px 20px;
}

.social-link {
	text-decoration: none;
}

.social-link:hover {
	color: #dddddd;
}

footer {
	flex-shrink: 0;
	color: #ffffff;
	margin-top: 10px;
}

footer .text-body {
	color: var(--bs-white) !important;
}

#hackatime-activity {
	border-radius: 10px;
}

/* Shimmer effect */
.shimmer {
	color: rgba(255, 255, 255, 0.1);
	background: -webkit-gradient(linear, left top, right top, from(#2d70ff), to(#2d70ff), color-stop(0.5, #fff));
	background: -moz-gradient(linear, left top, right top, from(#2d70ff), to(#2d70ff), color-stop(0.5, #fff));
	background: gradient(linear, left top, right top, from(#2d70ff), to(#2d70ff), color-stop(0.5, #fff));
	-webkit-background-size: 125px 100%;
	-moz-background-size: 125px 100%;
	background-size: 125px 100%;
	-webkit-background-clip: text;
	-moz-background-clip: text;
	background-clip: text;
	-webkit-animation-name: shimmer;
	-moz-animation-name: shimmer;
	animation-name: shimmer;
	-webkit-animation-duration: 2s;
	-moz-animation-duration: 2s;
	animation-duration: 2s;
	-webkit-animation-iteration-count: infinite;
	-moz-animation-iteration-count: infinite;
	animation-iteration-count: infinite;
}

@-moz-keyframes shimmer {
	0% {
		background-position: top left;
	}

	100% {
		background-position: top right;
	}
}

@-webkit-keyframes shimmer {
	0% {
		background-position: top left;
	}

	100% {
		background-position: top right;
	}
}

@-o-keyframes shimmer {
	0% {
		background-position: top left;
	}

	100% {
		background-position: top right;
	}
}

@keyframes shimmer {
	0% {
		background-position: top left;
	}

	100% {
		background-position: top right;
	}
}

.project-swiper .swiper-slide {
	width: 320px;
}

.project-swiper .card {
	width: 100% !important;
}

/* Mobile devices */
@media (max-width: 768px) {
	#navbar-links {
		margin-top: 10px;
	}

	.about-section {
		background-image: none;
	}

	.about-section .row .col-right {
		text-align: center;
	}

	.about-section .row .col-right .row .col-auto {
		width: 100%;
		margin: 10px auto;
		padding: 15px 25px 15px 25px;
		border-image-repeat: stretch;
		border-image-slice: 150 150 150 150 fill;
		border-image-source: url(/assets/images/button-border.png);
		border-image-width: 20px;
		transition: 0.3s;
		-webkit-filter: invert(25%);
		filter: invert(25%);
	}

	.about-section .row .col-right .row .col-auto a {
		color: var(--bs-white);
	}

	.about-section .row .col-right .text-first {
		min-height: 3em;
		margin-bottom: -5px;
	}

	.section {
		width: calc(100% - 40px);
		margin: 20px auto;
	}

	.about-section {
		margin-top: 70px;
	}
}