@import "variables.css";

* {
	box-sizing: border-box;
}

html {
	background: var(--secondary-color);
}

html,
body {
	font-family: "Inter", sans-serif;
}

body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	color: var(--tertiary-color);
	margin-top: 2rem;
	margin-bottom: 1rem;
}

main {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: left;
	max-width: 600px;
	height: fit-content;
}

main .greeting {
	font-size: 2rem;
	font-weight: 900;
	margin-bottom: 0rem;
	color: var(--tertiary-color);
}

h1 {
	font-size: 3.5rem;
	font-weight: 900;
	margin-bottom: 1rem;
	color: var(--primary-color);
	font-family: "Inter", sans-serif;
}
main p {
	font-size: 1rem;
	font-weight: 400;
	margin-bottom: 1rem;
	color: var(--tertiary-color);
	line-height: 1.25rem;
}

div.socials {
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
	width: 100%;
	height: max-content;
	flex-wrap: wrap;
	gap: 0.5rem 0.5rem;
}

div.socials a {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	width: max-content;
	height: 40px;
	border: var(--primary-color) 1px solid;
	background: var(--secondary-color);
	color: var(--primary-color);
	text-decoration: none;
	padding: 0 1rem;
	gap: 0 0.5rem;
	flex: 1;
}

div.socials a:hover {
	background: var(--primary-color);
	color: var(--secondary-color);
}

/* grid version (2 per row) */
div.projects-carousel {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: repeat(2, 1fr);
	gap: 1rem;
	margin-top: 1rem;
}

div.projects-carousel div.project {
	display: flex;
	flex-direction: column;
	justify-content: left;
	align-items: left;
	width: 100%;
	height: 300px;
	background: var(--secondary-color);
	border: var(--quaternary-color) 1px solid;
	box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.05);
	padding: 1rem;
	gap: 0.5rem;
}

div.projects-carousel div.project img {
	width: 100%;
	height: 100px;
	object-fit: cover;
}

div.projects-carousel div.project h3 {
	font-size: 1.5rem;
	font-weight: 900;
	color: var(--tertiary-color);
}

div.projects-carousel div.project p {
	font-size: 1rem;
	font-weight: 400;
	color: var(--tertiary-color);
	line-height: 1.25rem;
}

/* button */
div.projects-carousel div.project a {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	min-height: 40px;
	border: var(--primary-color) 1px solid;
	color: var(--primary-color);
	text-decoration: none;
	padding: 0 1rem;
	gap: 0 0.5rem;
	margin-top: auto;
}

div.projects-carousel div.project a:hover {
	background: var(--primary-color);
	color: var(--secondary-color);
}

/* footer */
footer {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: left;
	width: 100%;
	height: max-content;

	padding-top: 1rem;
}

.lanyard {
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
	width: 100%;
	height: max-content;
	gap: 0.5rem;
	background-color: var(--secondary-color);
	color: var(--tertiary-color);
	border: var(--quaternary-color) 1px solid;
	box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.05);
	padding: 1rem;

}


.lanyard__info {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: flex-start;
	width: 100%;
	height: max-content;
	gap: 0.2rem;
}

.lanyard__info__name {
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
	width: max-content;
	height: max-content;
	gap: 0.5rem;
}

.lanyard__info__status {
	font-size: 0.8rem;
	font-weight: 400;
}

.lanyard .lanyard__avatar img {
	width: 40px;
	height: 40px;
}

.lanyard__info__game {
	font-size: 0.9rem;
	font-weight: 400;
	color: #53555c;
}

.lanyard .discord-icon {
	margin-left: auto;
}

.lanyard .discord-icon i {
	font-size: 2rem;
	color: #5865f2;
}

b {
	font-weight: 600;
}

a {
	cursor: pointer;
	user-select: none;
	-webkit-user-select: none;
}

div.copy {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    width: 100%;
    height: 100%;
    padding-top: 1rem;
	text-align: center;
}

div.copy p {
	font-size: 0.8rem;
	font-weight: 400;
	color: var(--tertiary-color);
	margin-top: 1rem;
}

/* same styling as fontawesome icons */
img.icon {
	width: 1em;
	height: 1em;
	vertical-align: -0.125em;
}

/* media queries */
/* mobile */
@media (max-width: 600px) {
	body {
		padding: 1rem 1rem;
	}
	div.projects-carousel {
		grid-template-columns: repeat(1, 1fr);
		grid-template-rows: repeat(4, 1fr);
	}
}

/* tablet */
@media (min-width: 601px) and (max-width: 900px) {
	body {
		padding: 2rem 1rem;
	}
	div.projects-carousel {
		grid-template-columns: repeat(2, 1fr);
		grid-template-rows: repeat(2, 1fr);
	}
}

/* desktop */
@media (min-height: 1001px) {
	html {
		background-attachment: fixed;
	}
}

.flag {
	width: 70px;
}

.flag:hover {
	cursor: pointer;
}
