/* font import */
/* @import url('https://fonts.googleapis.com/css?family=Rubik&display=swap'); */
/* fonts */
/* @font-face {
  font-family: 'Rubik Regular';
  src: url("./assets/fonts/Rubik-Regular.ttf") format("ttf"),
} */

/* variables */
:root {
	--primary: #ffc400;
	--secondary: #15774c;
	--text: #ffffff;
}

/* reset */
body,
p,
a,
ul,
li {
	margin: 0;
	padding: 0;
	text-decoration: none;
}

li {
	list-style-type: none;
}

/* base styles */
body {
	background: var(--secondary);
	overflow-x: hidden;
	font-family: "Rubik", sans-serif;
}

.button {
	background: none;
	border: 2px solid var(--primary);
	color: var(--primary);
	padding: 6px 12px;
	border-radius: 20px;
	text-transform: uppercase;
	box-shadow: 1px 2px 3px rgba(0, 0, 0, 0.6);
	display: inline-block;
	font-size: 1em;
	cursor: pointer;
}

.button:hover {
	color: #222;
	background: var(--primary);
}

input,
textarea {
	background: rgba(255, 255, 255, 0.05);
	padding: 10px 16px;
	border-radius: 20px;
	border: 2px solid #9893d8;
	color: var(--text);
	font-size: 1em;
}

h1,
h2,
h3,
h4 {
	color: var(--text);
	font-weight: normal;
	line-height: 1.4em;
}

p,
a,
li {
	color: var(--text);
	line-height: 1.4em;
	font-size: 1em;
}

h1,
h3 {
	font-size: 1.8em;
}

h2 {
	font-size: 1.6em;
}

h4 {
	font-size: 1.1em;
}

.leading {
	font-size: 1.1em;
	margin: 10px 0;
}

/* mobile styles */

#newsletter {
	display: none;
	background-color: var(--primary);
	padding: 20px;
	text-align: center;
}

#newsletter h4 {
	margin: 10px 0;
}

.grid {
	display: grid;
	grid-template-columns: repeat(8, 1fr);
	gap: 10px;
	box-sizing: border-box;
}

.site-nav {
	margin: 0 20px;
}

.site-nav img {
	grid-column: 1/4;
	grid-row: 1;
	padding-bottom: 10px;
	border-bottom: 3px solid var(--primary);
	display: inline-block;
	width: 260px;
}

.site-nav ul {
	display: none;
}

#welcome {
	padding: 0 20px 20px 20px;
}

.welcome-text {
	grid-column: 1/6;
}

.welcome-text a {
	margin: 20px 0;
}

.welcome-text a img {
	cursor: pointer;
	width: 200px;
	height: 113px;
}


.welcome-text a span.img-overlay {
	cursor: pointer;
	background: rgba(0, 0, 0, 0.2);
	display: none;
	height: 113px;
	width: 200px;
	position: relative;
	bottom: 113px;
	margin-bottom: -113px;
}

.welcome-text a:hover span.img-overlay {
	display: block;
}

.welcome-img {
	grid-column: 6/9;
}

.welcome-img img {
	width: 200%;
}

#youtube {
	display: none;
}

#youtube #player {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

#youtube .button {
	z-index: 999;
	position: absolute;
	bottom: 80px;
	right: 40px;
}

/* #youtube .video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
} */

#portfolio {
	background: url(assets/square_bg.png);
	background-size: cover;
	background-repeat: no-repeat;
	background-position: bottom;
	padding: 30px 20px;
}

#portfolio h3 {
	margin-bottom: 0;
	text-align: center;
}

.projects {
	margin: 20px 0;
}

.projects a {
	grid-column: 1/9;
	display: flex;
	margin: 20px 0;
}

.projects a * {
	margin: 0 20px;
	max-width: 40%;
	align-self: center;
}

.projects h4 {
	color: var(--text);
}

#news {
	padding: 30px 20px;
	/* background: #07083e; */
}

#news h3 {
	text-align: center;
}

#news ul {
	margin: 40px 0;
	display: flex;
	justify-content: center;
	margin: 40px auto;
}

#news li {
	padding: 10px;
	background: rgba(0, 0, 0, 0.2);
	grid-column: span 4;
	text-align: center;
}

#news img {
	height: 80px;
	margin: 10px auto;
}

#news p {
	text-align: center;
	margin: 0 20px;
}

#contact {
	padding: 30px 20px;

	background: rgba(0, 0, 0, 0.2);
}

#contact h3,
#contact p {
	margin-bottom: 0;
	text-align: center;
}

#contact form {
	width: 80%;
	max-width: 400px;
	margin: 20px auto;
	text-align: center;
}

#contact input,
#contact textarea {
	width: 100%;
	margin: 10px 0;
}

#contact textarea {
	max-width: 100%;
	height: 200px;
}

#contact .button {
	margin-top: 10px;
}

#contact .leading {
	font-size: 0.5em;
}

footer {
	padding: 30px 20px;
	/* background-image: url(assets/qb-logo-footer.png); */
	/* background-size: auto; */
	/* background-repeat: no-repeat; */
	/* background-position: bottom right; */
}

footer .logo {
	grid-column: 1/7;
	grid-row: 1;
}

footer .legal {
	grid-column: 2/9;
	grid-row: 2;
	font-size: 0.8em;
}

footer .copyright {
	grid-column: 2/9;
	grid-row: 3;
	font-size: 0.7em;
}

footer .social {
	grid-column: 7/9;
	grid-row: 1;
	display: flex;
	justify-content: flex-end;
}

footer li {
	margin: 0 6px;
}

footer .social img {
	width: 40px;
}

footer .logo img {
	width: 200px;
}

/* small tablet styles */
@media screen and (min-width: 620px) {
	.welcome-text {
		grid-column: 1/5;
	}

	.welcome-img {
		grid-column: 5/9;
	}

	.welcome-img img {
		width: 100%;
	}

	.welcome-text a img {
		width: 300px;
		height: 169px;
	}


	.welcome-text a span.img-overlay {
		height: 169px;
		width: 300px;
		bottom: 169px;
		margin-bottom: -169px;
	}

	.projects {
		margin-top: 40px;
	}

	.projects a {
		grid-column: span 4;
		display: block;
		margin: 20px 0;
	}

	/* .projects a:last-child {
    grid-column: 3/7;
  } */

	.projects a * {
		margin: 10px;
		max-width: 60%;
		margin: 10px 20%;
	}

	.projects h4 {
		text-align: center;
	}

	#news {
		padding: 30px 100px;
	}

	footer {
		background-size: 20%;
	}
}

/* large tablet & laptop styles */
@media screen and (min-width: 960px) {
	body {
		font-size: 18px;
	}

	h4 {
		font-size: 1.2em;
	}

	.grid {
		max-width: 1060px;
		margin: 0 auto;
		width: 100%;
	}

	.leading {
		margin: 20px 0;
	}

	.site-nav {
		padding: 0 20px;
	}

	.site-nav a {
		grid-column: 1/3;
	}

	.site-nav ul {
		display: flex;
		grid-column: 6/9;
		justify-content: flex-end;
		align-self: center;
	}

	.site-nav li {
		margin-left: 20px;
	}

	.welcome-text {
		grid-column: 1/5;
		align-self: center;
	}

	#welcome {
		padding-bottom: 40px;
	}

	.projects a:nth-child(1) {
		grid-column: 2/4;
	}

	.projects a:nth-child(2) {
		grid-column: 4/6;
		padding-top: 140px;
	}

	.projects a:nth-child(3) {
		grid-column: 6/8;
	}

	.projects a:nth-child(4) {
		grid-column: 2/4;
		margin-top: -100px;
	}

	.projects a:nth-child(5) {
		grid-column: 6/8;
		margin-top: -100px;
	}

	.projects a * {
		max-width: 80%;
		margin: 30px 10%;
	}

	#news {
		padding: 30px 20px;
	}

	#news li {
		grid-column: span 2;
	}

	#news p {
		max-width: 600px;
		margin: 40px auto;
	}

	footer {
		background-size: 20%;
		padding: 40px 20px;
	}
}

/* desktop styles */
@media screen and (min-width: 1200px) {
	body {
		font-size: 20px;
	}

	.site-nav {
		padding: 0;
	}

	#welcome,
	#portfolio,
	#news,
	#contact {
		padding: 90px 0;
	}

	.leading {
		margin: 20px 0;
	}

	.projects a:nth-child(1) {
		grid-column: 1/3;
	}

	.projects a:nth-child(2) {
		grid-column: 4/6;
		padding-top: 140px;
	}

	.projects a:nth-child(3) {
		grid-column: 7/9;
	}

	.projects a * {
		max-width: 100%;
		margin: 30px 0%;
	}

	footer {
		padding: 80px 0;
		background-size: 30%;
	}
}