* {
	margin: 0;
	padding: 0;
	font-family: sans-serif;
}

body {
	position: absolute;
	min-height: 100%;
	width: 100%;
	background: #1e1e1e;
}

#bg {
	top: 0;
	position: absolute;
	width: 100%;
	height: 100%;
	background: linear-gradient(60deg, hsl(125, 37%, 74%), hsla(160, 56%, 41%, 0.5));
	z-index: -1;
}

nav a[href="/contact"] {
	border: 2px solid hsl(0, 0%, 93%, 0.15);
	box-shadow: 4px 4px 4px hsl(0, 0%, 0%, 0.25);
	background: hsl(0, 0%, 93%, 0.05);
	padding: 7.5px;
}

h1 {
	text-align: center;
	margin: calc(1em + 42px + 4rem) auto;
	margin-bottom: 4rem;
}

h1, h2, h3, p, ul, label, a, input, textarea {
	color: #fff;
}

p {
	text-align: center;
	margin-bottom: 2rem;
}

form {
	display: flex;
	flex-direction: column;
	margin: auto;
	margin-bottom: 2rem;
	width: 50%;
	background: hsl(0, 0%, 93%, 0.05);
	padding: 1rem;
	border: 2px solid hsl(0, 0%, 93%, 0.15);
	border-radius: 15px;
}

#fields {
	flex-wrap: wrap;
	display: flex;
	flex-direction: row;
	justify-content: space-around;
}

label, input {
	display: block;
}

label {
	margin-bottom: 1rem;
}

input, textarea {
	background: hsl(0, 0%, 93%, 0.05);
	padding: .2rem;
	border: 2px solid hsl(0, 0%, 93%, 0.15);
	box-shadow: 2px 2px 2px hsl(0, 0%, 0%, 0.25);
	border-radius: 5px;
	outline: none;
	margin-bottom: 2rem;
}

input:focus, textarea:focus {
	box-shadow: 2px 2px 2px hsl(0, 0%, 0%, 0.25) inset;
}

textarea {
	resize: none;
	height: 10rem;
}

button {
	padding: .5rem 2rem;
	color: #fff;
	margin: auto;
	width: max-content;
	background: hsl(0, 0%, 93%, 0.05);
	border: 2px solid hsl(0, 0%, 93%, 0.15);
	box-shadow: 4px 4px 4px hsl(0, 0%, 0%, 0.25);
	border-radius: 10px;
  transition: box-shadow 0.3s ease;
}

button:hover {
	box-shadow: 2px 2px 2px hsl(0, 0%, 0%, 0.25);
}

button:focus {
	box-shadow: 2px 2px 2px hsl(0, 0%, 0%, 0.25) inset;
}

#info {
	margin: auto;
	width: 50%;
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	justify-content: space-around;
}

#info * {
	margin-bottom: 1rem;
}

*::placeholder {
	color: hsl(0, 0%, 100%, 0.5);
}

#success {
	max-width: calc(100vw - 6rem);
	overflow-wrap: break-word;
	position: absolute;
	padding: .5rem 2rem;
	color: #fff;
	top: calc(60px + 2rem);
	left: 50%;
	transform: translateX(-50%);
	width: max-content;
	background: hsla(135, 100%, 50%, 0.25);
	border: 2px solid hsla(135, 100%, 50%, 0.15);
	box-shadow: 4px 4px 4px hsl(0, 0%, 0%, 0.25);
	border-radius: 10px;
	animation: success-msg 1s 4s forwards;
}

#error {
	max-width: calc(100vw - 6rem);
	overflow-wrap: break-word;
	position: absolute;
	padding: .5rem 2rem;
	color: #fff;
	top: calc(60px + 2rem);
	left: 50%;
	transform: translateX(-50%);
	width: max-content;
	background: hsla(0, 100%, 50%, 0.25);
	border: 2px solid hsla(0, 100%, 50%, 0.15);
	box-shadow: 4px 4px 4px hsl(0, 0%, 0%, 0.25);
	border-radius: 10px;
}

@keyframes success-msg {
	0% {
		top: calc(60px + 2rem);
	}

	100% {
		top: -100px;
	}
}

@media (max-width: 1200px) {
	form, #info {
		width: calc(100% - 10rem);
	}
}

@media (max-width: 750px) {
	form, #info {
		width: calc(100% - 4rem);
	}
}