:root {
	--background-color: #11151a;
	--gridbg-color: #11151a;
	--navbar-color: #212325;
	--text-color: #efefef;
	--floating-butt: #ccc9c929;
	--red-color: #db0202a3;
	--float-butt-frame: #320078;
	--btn-bg-red: #cf304bb7;
	--btn-bg-red-hover: #a76b6b;
	--btn-bg-blue: #2673e6c0;
	--btn-bg-grey: #24292f;
	--btn-bg-grey-hover: #5b6875;
}

* {
	font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0 auto;
	padding: 0;
	padding-top: 60px;
	background-color: var(--background-color);
	color: var(--text-color);
}

h1 {
	font-style: normal;
	font-weight: 600;
	font-size: 3rem;
	margin: 0 auto;
	padding: 0 10px;
}
/* navbar */
header {
	margin: auto;
	padding: 0px;
	position: fixed;
	width: 100%;
	z-index: 1000;
	box-shadow: 0 2px 12px #0002;
}

#navbar {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	display: flex;
	align-items: center;
	justify-content: space-between;
	background-color: var(--navbar-color);
	margin: auto;
	padding: 4px;
	padding-left: 40px;
}

#navbar ul {
	list-style-type: none;
	display: flex;
	flex-direction: row;
	justify-content: flex-end;
	padding-right: 3rem;
}

#navbar ul li {
	padding-right: 1.5rem;
	text-transform: uppercase;
}

.nav-link {
	text-decoration: none;
	color: var(--text-color);
	transition: all 0.5s ease;
	border-bottom: 1px solid var(--text-color);
	padding-bottom: 10px;
	font-size: 1.2rem;
}
.nav-link:hover {
	border-bottom-width: 10px;
	padding-bottom: 0px;
	border-bottom-color: var(--red-color);
}
.nav-link.active {
	color: var(--red-color);
	border-bottom-color: var(--red-color);
	border-bottom-width: 10px;
	padding-bottom: 0px;
}
/* main */
main {
	padding-top: 3rem;
	text-align: center;
	margin: auto;
}
main:hover ~ #floating-butt {
	visibility: visible;
}
/* about */
#welcome-section {
	height: 100vh;
	text-align: center;
}

#welcome-section h1 {
	padding-top: 40vh;
}

#welcome-section > p {
	margin: 0;
	padding: 0;
	font-style: normal;
	font-size: 1.5rem;
	font-weight: 200;
}

/* my projects */
#projects {
	padding-top: 3rem;
	padding-bottom: 3rem;
}

.project-head {
	padding: 10px;
	max-width: 800px;
	text-align: center;
	margin: 0 auto;
}

.project-head h1 {
	font-weight: 400;
}

.project-grid-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	grid-gap: 1rem;
	width: 100%;
	max-width: 800px;
	margin: 0 auto;
	margin-bottom: 3rem;
}

@media (max-width: 320px) {
	.project-grid-container {
		grid-template-columns: 1fr;
	}
}

.project-tile {
	text-decoration: none;
	color: var(--text-color);
	transition: color 0.7s ease;
}

.project-img {
	width: 100%;
	object-fit: cover;
}

.project-grid {
	background-color: var(--gridbg-color);
	filter: saturate(0.8);
	transition: all 0.7s ease;
}
.project-grid:hover {
	filter: saturate(1.1);
	padding: 8px;
}
.project-grid:hover > .project-tile {
	color: var(--red-color);
}

.img-caption {
	padding: 8px;
	transition: padding 0.7s ease;
	font-size: 1.2rem;
	font-weight: 350;
}
.project-grid:hover .img-caption {
	padding: 0px;
}

/* project detail */
#project-detail {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 20px;
	max-width: 800px;
	margin: 0 auto;
}
#project-detail h1 {
	/* font-size: 2.5rem; */
	/* font-weight: 600; */
	margin-top: 3rem;
	padding: 0;
}
#project-detail img {
	max-width: 100%;
	height: auto;
	margin: 20px 0;
}
#project-detail p {
	font-size: 1.2rem;
	/* font-weight: 300;
	line-height: 1.5;
	text-align: justify;
	margin: 0;
	padding: 0; */
}
.project-header-wrapper {
  position: sticky;
  top: 70px;
  z-index: 10;
  background: var(--background-color);
  transition: opacity 0.4s;
	/* display: flex; */
  align-items: center;
  justify-content: center;
  min-height: 320px;
  margin-top: calc(40vh - 240px);
	margin-bottom: calc(40vh);
}
.project-header-img {
  width: 100%;
  max-width: 1024px;
	z-index: 10;
  margin: 0 auto 16px auto;
  display: block;
  border-radius: 20px;
}
#ghub-button {
	padding: 16px;
}
.project-slider {
  margin: 20px auto 24px auto;
	/* min-height: 480px; */
	height: 480px;
	max-height: 480px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
	background-color: var(--gridbg-color);
	border-radius: 12px;
	/* box-shadow: 0 2px 12px #0002; */
	z-index: 10;
  text-align: center;
}
.project-slider img {
  width: auto;
  /* max-width: 240px; */
	max-height: 480px;
	z-index: 10;
  border-radius: 12px;
  box-shadow: 0 2px 12px #0002;
}
.github-readme {
  /* background: #f6f8fae5; */
  border-radius: 8px;
  padding: 16px;
  margin: 24px 0;
  overflow-x: auto;
  font-size: 0.97em;
	box-shadow: 0 2px 12px #0002;
}
.github-readme .md-body {
  /* color: #222; */
	/* color: var(--text-color); */
	text-align: left;
  margin: 0;
  padding: 0;
}

/* contact */
#contact {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 180px 0;
	min-height: 300px;
	background-color: var(--navbar-color);
}

#contact > div {
	display: flex;
	flex-direction: row;
	width: 100%;
	justify-content: space-around;
	max-width: 800px;
	margin: 0 auto;
	flex-wrap: wrap;
}

#contact > div > a {
	text-decoration: none;
	display: flex;
	flex-direction: row;
	justify-content: center;
	padding: 10px;
}
#contact > div > a:hover > .contact-tag {
	color: brown;
	padding-left: 5px;
}

.contact-tag {
	font-size: 1.5rem;
	font-weight: 400;
	color: var(--text-color);
	display: flex;
	flex-direction: column;
	justify-content: center;
	transition: all 0.5s ease;
}

/* footer */
footer {
	display: flex;
	align-items: flex-end;
	background-color: brown;
	color: var(--text-color);
	padding: 50px 20px;
	text-align: center;
}
footer:hover + #floating-butt {
	visibility: visible;
}
.footer-left {
	text-align: start;
	padding: 10px;
	padding-left: 3.2rem;
	width: 100%;
	display: inline-block;
}
.footer-right {
	display: flex;
	text-align: end;
	padding: 10px;
	padding-right: 3.2rem;
	width: 100%;
	display: inline-block;
	align-items: flex-end;
}
.footer-link {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.1rem;
  opacity: 0.9;
  transition: opacity .2s;
}
.footer-link:hover {
  opacity: 1;
  text-decoration: underline;
}


/*floating button*/
#floating-butt {
	z-index: 2;
	position: fixed;
	background-color: var(--floating-butt);
	color: var(--navbar-color);
	border-radius: 60%;
	bottom: 0;
	right: 0;
	padding: 10px;
	margin: 10px;
	cursor: pointer;
	font-weight: bolder;
	font-size: 1.1rem;
	width: 1.2rem;
	height: 1.2rem;
	text-align: center;
	border: 1px solid var(--float-butt-frame);
	visibility: hidden;
	transition: all 0.5s ease;
	/* padding-right: 1.5rem; */
	margin-right: 1.5rem;
	margin-bottom: 1.5rem;
}
#floating-butt:hover {
	border: 2px solid var(--float-butt-frame);
	background-color: var(--text-color);
	font-size: 1.2rem;
	visibility: visible;
}
#floating-butt:active {
	background-color: var(--navbar-color);
}

.loading-spinner {
  width: 44px;
  height: 44px;
  margin: 60px auto;
  border: 5px solid #eee;
  border-top: 5px solid #222;
  border-radius: 50%;
  animation: spin 1.1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}

/* Buttons */
.btn-blue {
  display: inline-block;
	width: 140px;
  padding: 0.7em 2.2em;
  font-size: 1.1rem;
  font-weight: 500;
  background: var(--btn-bg-blue);
  color: var(--text-color);
  border: none;
  border-radius: 16px;
  text-align: center;
  text-decoration: none;
  transition: background 0.18s, box-shadow 0.18s;
  cursor: pointer;
  box-shadow: 0 2px 14px 0 rgb(0 0 0 / 7%);
}
.btn-blue:hover,
.btn-blue:focus {
  background: var(--float-butt-frame);
  color: var(--text-color);
  box-shadow: 0 4px 20px 0 rgb(0 0 0 / 10%);
  text-decoration: none;
  outline: none;
}
.btn-grey {
  display: inline-block;
	width: 140px;
  padding: 0.7em 2.2em;
  font-size: 1.1rem;
  font-weight: 500;
  background: var(--btn-bg-grey);
  color: var(--text-color);
  border: none;
  border-radius: 16px;
  text-align: center;
  text-decoration: none;
  transition: background 0.18s, box-shadow 0.18s;
  cursor: pointer;
  box-shadow: 0 2px 14px 0 rgb(0 0 0 / 7%);
}
.btn-grey:hover,
.btn-grey:focus {
  background: var(--btn-bg-grey-hover);
  color: var(--text-color);
  box-shadow: 0 4px 20px 0 rgb(0 0 0 / 10%);
  text-decoration: none;
  outline: none;
}
.btn-red {
  display: inline-block;
	width: 140px;
  padding: 0.7em 2.2em;
  font-size: 1.1rem;
  font-weight: 500;
  background: var(--red-color);
  color: var(--text-color);
  border: none;
  border-radius: 16px;
  text-align: center;
  text-decoration: none;
  transition: background 0.18s, box-shadow 0.18s;
  cursor: pointer;
  box-shadow: 0 2px 14px 0 rgb(0 0 0 / 7%);
}
.btn-red:hover,
.btn-red:focus {
  background: var(--btn-bg-red-hover);
  color: var(--text-color);
  box-shadow: 0 4px 20px 0 rgb(0 0 0 / 10%);
  text-decoration: none;
  outline: none;
}
.btn-red span {
	margin: 0;
	padding: 0;
	font-size: 0.8rem;
	font-weight: 300;
}

/* download table */
#downloads {
	margin: 0 auto;
	padding: 20px;
	max-width: 800px;
	min-height: 32rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	background-color: var(--gridbg-color);
	border-radius: 12px;
}
@media (max-height: 640px) {
	#downloads {
		min-height: 20rem;
	}
}
.download-table {
  display: flex;
	/* margin-left: auto;
	margin-right: auto; */
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  margin-top: 10px;
	box-shadow: 0 2px 12px #0002;
}
.download-row {
  display: flex;
  align-items: center;
	justify-content: center;
  gap: 16px;
}
.download-row span {
  min-width: 130px;
  font-weight: 500;
  color: #fff;
  font-size: 1rem;
}
/* .btn-rounded-repo {
  padding: 8px 18px;
  border-radius: 18px;
  background: #24292f;
  color: #fff;
  border: none;
  margin-right: 4px;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: 0.15s;
  box-shadow: 0 1px 8px 0 #0003;
}
.btn-rounded-repo:hover {
  background: #4078c0;
  color: #fff;
} */
