:root {
	--purple: #743ad5;
	--pink: #d53a9d;
	--dark: rgba(54, 54, 54, 1);
	--darker: #222222;
}
* {
	margin: 0;
	padding: 0;
	color: white;
	font-family: "Roboto";
}

body {
	background: var(--darker);
}

header {
	display: flex;
	background: var(--dark);
	color: var(--darker);
	width: 50vw;
	float: left;
	transform: translateX(50%);
	z-index: 10;
	border-width: 0 0.25vmax;
	border-radius: 1vmax;
	margin-top: 2vmin;
	margin-bottom: 2vmin;
}

/* buttons of header */
.button {
	display: flex;
	flex: auto;
	border: none;
	color: white;
	text-align: center;
	align-items: center;
	text-decoration: none;
	cursor: pointer;
	justify-content: center;
	padding: 4vmin 3vmax;
	min-height: 100%;
	border-style: solid;
	border-color: rgba(54, 54, 54, 0);
	border-width: 0px 0.25vmax;
	font-size: 2vmax;
}

/* animating borders of buttons on hover */
.button-right:hover {
	animation-name: flash_border;
	animation-duration: 4s;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
}

.button-center:hover {
	animation-name: flash_border;
	animation-duration: 4s;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
}

.button-left:hover {
	animation-name: flash_border;
	animation-duration: 3.5s;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
}

/* different animations for side buttons */
.button-right {
	border-top-right-radius: 1vmax;
	border-bottom-right-radius: 1vmax;
	border-color: rgba(0, 0, 0, 0);
}

.button-left {
	border-top-left-radius: 1vmax;
	border-bottom-left-radius: 1vmax;
	border-color: rgba(0, 0, 0, 0);
}

@keyframes flash_border {
	0% {
		border-color: rgba(54, 54, 54, 0);
	}
	25% {
		border-left-color: var(--pink);
		border-right-color: var(--purple);
	}
	50% {
		border-color: rgba(54, 54, 54, 0);
	}

	75% {
		border-right-color: var(--pink);
		border-left-color: var(--purple);
	}

	100% {
		border-color: rgba(54, 54, 54, 0);
	}
}

/* text in hero */
h1 {
	font-size: 4vmax;
}

/* logo div (located in top left corner) */
.logo {
	display: inline-flex;
	position: absolute;
	left: 0;
	transform: translate(5vmin, 2vmin);
}

/* logo svg */
.logo img {
	height: 11vh;
	/* reverse transition */
	transition: transform 1s ease-in-out;
}

/* animating logo */
.logo img:hover {
	transform: rotate(360deg);
}

main {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}
/* hero section quite empty :(  */
.hero {
	display: flex;
	height: 82vh;
	width: 98vw;
	background: var(--purple);
	background: linear-gradient(to right, var(--pink), var(--purple));
	margin: 3vmin 1vmax;
	border-radius: 2vmax;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}

.hero a img {
	height: 40vh;
	border-radius: 2vmax;
}

/* side bar text */
h3 {
	font-size: 2vmax;
}

/* see layout in readme.md */
.card {
	display: inline-flex;
	margin-bottom: 5vmin;
}

/* see layout in readme.md */
.sidebar {
	margin-left: 2.5vmax;
	margin-right: 2vmax;
	width: 18vw;
	flex-shrink: 0;
	display: flex;
	text-align: center;
	align-self: stretch;
	justify-content: center;
	border-style: solid;
	border-width: 0px 1vmax;
	border-left-color: var(--pink);
	border-right-color: var(--purple);
	align-self: stretch;
	border-radius: 2vmax;
	padding: 1vmin 1vmax;
}

/* see layout in readme.md */
.content {
	flex-wrap: wrap;
	display: inline-flex;
	align-items: flex-start;
	align-self: center;
	width: 76vw;
	padding-right: 1vmax;
	flex-shrink: 0.5;
	max-width: 100%;
	align-content: center;
	justify-content: space-between;
	flex-shrink: 0;
	flex-flow: row wrap;
	gap: 4vmin;
}

/* see layout in readme.md */
.pad {
	display: flex;
	align-items: center;
	justify-content: stretch;
	flex-basis: 45%;
	min-width: 200px;
	max-width: 100%;
	min-height: 20vh;
	background-color: var(--purple);
	flex-wrap: wrap;
	border-radius: 2vmax;
	padding: 2vmax;
	flex-grow: 2;
}

/* projects pads */
.my-projects-pad {
	background: var(--pink);
	background-size: 4vmax 6vmin;
	transition: background-position 10s linear;
}

/* animating projects bg */
.my-projects-pad:hover {
	background-position: 100%;
	transition: background-position 10s linear;
}

/* pseudoelement with name of the project */
.my-projects-pad::after {
	float: left;
	align-items: center;
	position: relative;
	font-size: 5vmin;
	text-align: center;
	padding: 2vmin 2vmax;
	background-color: #363636;
	min-width: 20vw;
	border-radius: 2vmax;
	justify-content: center;
}

/* calculator project */
#fitness-lind {
	min-width: 100%;
	min-height: 40vh;
	background-image: url(../img/logo-no-background.png);
	background-size: 7vmax;
}

/* pseudoelement with name of the project */
#fitness-lind::after {
	content: "Fitness LIND";
}

/* beach project */
#chefs-choice {
	background-color: #fec2a0;
	background-image: url(../img/chefs-choice.png);
	background-size: 7vmax;
}

/* pseudoelement with name of the project */
#chefs-choice::after {
	content: "Chef's Choice";
}

/* saturn project */
#bgr {
	background-image: url(../img/BGR.png);
}

/* pseudoelement with name of the project */
#bgr::after {
	content: "Better GitHub Readme";
}

/* avocado project */
#avocado {
	background-image: url(../img/avocado.svg);
}

/* pseudoelement with name of the project */
#avocado:after {
	content: "Avocado";
}

.contact-me-pad {
	min-height: 20vh;
	flex-basis: 31%;
	background-position: center;
	transition: box-shadow 0.2s linear;
	background-repeat: no-repeat;
	background-size: fit-contetnt;
}

/* show shadow on contact me pads on hover */
.contact-me-pad:hover {
	box-shadow: 0px 0px 1vmax var(--pink);
	transition: box-shadow 0.2s linear;
}

/* setting bg images */
.github {
	background-image: url(../img/github-logo.svg);
}

.telegram {
	background-image: url(../img/telegram-logo.svg);
}

.twitter {
	background-image: url(../img/meow-logo.svg); /* rename because adblock blocking "twitter" in name of file xd */
}

/* reverse colors on my-projects sidebar borders */
#my-projects .sidebar {
	border-right-color: var(--pink);
	border-left-color: var(--purple);
}

/* responsive layout */
@media screen and (max-width: 950px) {
	.logo {
		display: none;
	}
	header {
		width: 80vw;
		transform: translateX(10vmax);
		border-width: 0px 0.5vmax;
		border-radius: 0.5vmax;
	}

	.button {
		border-width: 0px 0.5vmax;
	}

	.button-right {
		border-top-right-radius: 0.4vmax;
		border-bottom-right-radius: 0.4vmax;
		border-color: rgba(0, 0, 0, 0);
	}

	.button-left {
		border-top-left-radius: 0.4vmax;
		border-bottom-left-radius: 0.4vmax;
		border-color: rgba(0, 0, 0, 0);
	}

	.contact-me-pad {
		min-height: 10vh;
	}
}

@media screen and (max-width: 650px) {
	.sidebar {
		display: none;
	}
	.content {
		width: 98vw;
		margin: 0;
	}
}

@media screen and (max-width: 520px) {
	.logo {
		display: none;
	}

	header {
		width: 90vw;
		transform: translateX(5vmax);
		border-width: 0px 0.5vmax;
		border-radius: 0.5vmax;
	}

	.button {
		border-width: 0px 0.5vmax;
		font-size: 2vmax;
	}

	.button-right {
		border-top-right-radius: 0.5vmax;
		border-bottom-right-radius: 0.5vmax;
		border-color: rgba(0, 0, 0, 0);
	}

	.button-left {
		border-top-left-radius: 0.5vmax;
		border-bottom-left-radius: 0.5vmax;
		border-color: rgba(0, 0, 0, 0);
	}
}
