@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;700&family=Slabo+27px&display=swap');

* {
	margin: 0;
	padding: 0;
	font-family: 'Slabo 27px', serif;
}

body {
	background-color: black;
}

.centre {
	text-align: center;
	margin: 0 auto;
}

.wrapper {
	position: static;
}

.no-overflow {
	overflow: hidden;
}

.white-text {
	color: white;
}

.centre-text {
	text-align: center;
}

.alternate-background {
	background-color: white;
	color: black;
}

.padding-large {
	padding: 16px 20px;
}

.padding {
	padding: 10px;
}

.alternate-background > *::selection, .alternate-background ::selection {
	background: #28231D;
}

.regular-weight {
	font-weight: normal;
}

.no-text-wrap {
	white-space: nowrap;
}

.title {
	font-size: 2em;
}

.text {
	font-size: 1.17em;
}

.full-height {
	height: 100vh;
}

main {
	height: auto;
}

.absolute-centre {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

#card {
	margin: 0;
	text-align: center;
	color: white;
	font-size: 4em;
	-webkit-animation: 2.5s ease-in-out 0s 1 slideInFromLeft;
	-moz-animation: 2.5s ease-in-out 0s 1 slideInFromLeft;
	-o-animation: 2.5s ease-in-out 0s 1 slideInFromLeft;
	animation: 2.5s ease-in-out 0s 1 slideInFromLeft;
}

#section1 {
    font-weight: 900;
    letter-spacing: 5px;
    font-family: 'IBM Plex Mono', monospace;
}

#section2 {
    font-weight: 300;
    font-family: 'IBM Plex Mono', monospace;
}

#information {
	position: absolute;
	bottom: 5px;
    width: 100%;
    font-weight: 500;
	-webkit-animation: 2.5s ease-in-out 0s 1 slideInFromBottom;
	-moz-animation: 2.5s ease-in-out 0s 1 slideInFromBottom;
	-o-animation: 2.5s ease-in-out 0s 1 slideInFromBottom;
	animation: 2.5s ease-in-out 0s 1 slideInFromBottom;
}

#information img {
	width: 40px;
}

#about-section {
	margin: 0 30px;
    padding: 25px 0 30px 0;
}

.flex {
	display: flex;
}

#about-section h1 {
    font-size: 3em;
    margin-right: 50px;
    letter-spacing: 2px;
}

#about-section p {
    font-size: 1.4em;
    margin-top: 10px;
    letter-spacing: .5px;
}

#links-section {
	padding-bottom: 10px;
}

#links-section a {
	text-decoration: none;
}

#links-section a div {
	background-repeat: no-repeat;
	background-size: cover;
	width: 20px;
	height: 20px;
}

#instagram {
	background-image: url('../resources/instagram-light.png');
}

#twitter {
	background-image: url('../resources/twitter-light.png');
}

#youtube {
	background-image: url('../resources/youtube-light.png');
}

#github {
	background-image: url('../resources/github-light.png');
}

#links-section div:hover {
    transform: scale(1.25);
	-webkit-transition: 0.5s ease-in-out;
	-moz-transition: 0.5s ease-in-out;
	-o-transition: 0.5s ease-in-out;
	transition: 0.5s ease-in-out;
}

#links-section div {
	display: inline-block;
	width: 20px;
	height: 20px;
    margin: 5px;
	-webkit-transition: 0.5s ease-in-out;
	-moz-transition: 0.5s ease-in-out;
	-o-transition: 0.5s ease-in-out;
	transition: 0.5s ease-in-out;
}

/* Form Styles */

input, textarea {
	border: 2px solid white;
	padding: 12px 16px;
	margin: 14px 0;
	color: white;
	display: block;
	background-color: black;
	font-size: 1.2em;
	-webkit-transition: 0.25s ease-in-out;
	-moz-transition: 0.25s ease-in-out;
	-o-transition: 0.25s ease-in-out;
	transition: 0.25s ease-in-out;
}

textarea {
	width: 350px;
	height: 150px;
	margin: 20px;
	resize: none;
}

.button {
	background-color: black;
	color: white;
	border: 2px solid black;
}

.button:hover {
	background-color: white;
	color: black;
}

button {
	border: 2px solid white;
	margin: 5px auto;
	font-size: 1.2em;
	background-color: white;
	color: black;
	width: 80px;
	height: 35px;
	cursor: pointer;
	-webkit-transition: 0.25s ease-in-out;
	-moz-transition: 0.25s ease-in-out;
	-o-transition: 0.25s ease-in-out;
	transition: 0.25s ease-in-out;
}

button:hover {
	background-color: black;
	color: white;
}

input:hover, input:focus, textarea:hover, textarea:focus {
	background-color: white;
	color: black;
	-webkit-transition: 0.25s ease-in-out;
	-moz-transition: 0.25s ease-in-out;
	-o-transition: 0.25s ease-in-out;
	transition: 0.25s ease-in-out;
}

textarea:focus {
	outline: none;
}


input:hover::placeholder, input:focus::placeholder, textarea:hover::placeholder, textarea:focus::placeholder {
	color: black;
}


input:focus {
	outline: none;
}

::placeholder {
	color: white;
}

/* Text Highlighting */

::selection {
	background: #ffffff;
}

input:hover::selection, input:focus::selection, textarea:hover::selection, textarea:focus::selection {
	background: #28231D;
}

/* Device Optimisations */

@media (max-width:  1000px) {
	#card {
		font-size: 3.25em;
	}
}

@media (max-width: 800px) {
	#card {
		font-size: 3em;
    }
    
    .flex {
		flex-direction: column;
	}
	
	#about-section h1 {
		font-size: 2.75em;
		letter-spacing: 1.5px;
	}
}

@media (max-width: 600px) {
	#card {
		font-size: 2.5em;
	}

	#about-section h1 {
		font-size: 2.3em;
	}
}

@media (max-width: 500px) {
	.title {
		font-size: 1.7em;
	}

	.text {
		font-size: 1em;
	}

	button {
		font-size: 1em;
		width: 70px;
		height: 30px;
	}
}

@media (max-width: 400px) {
	#card {
		font-size: 2em;
	}
	
	#about-section {
		margin: 0 20px;
	}

	.title {
		font-size: 1.5em;
	}

	.text {
		font-size: 0.8em;
	}

	button {
		font-size: 0.8em;
		width: 60px;
		height: 25px;
	}
}

@media (max-height: 500px) {
	#card {
		font-size: 2em;
	}
	
	#information img {
		width: 25px;
	}
	
	#about-section {
		margin: 0 25px;
        padding: 20px 0 25px 0;
	}
		
	#about-section div p {
		font-size: 1.2em;
		margin-top: 7px;
	}
}

@media (max-height: 250px) {
	#card {
		font-size: 1.5em;
	}
	
	#information {
		bottom: 2.5px;
	}
	
	#information img {
		width: 20px;
	}
	
	#about-section {
		margin: 0 20px;
		padding: 15px 0 20px 0;
	}
	
	#about-section h1 {
		font-size: 2.25em;
	}
	
	#about-section div p {
		font-size: 1em;
	}
}

@media (max-height: 200px) {
	#card {
		font-size: 1em;
	}
	
	#information {
		bottom: 1px;
	}
	
	#information img {
		width: 15px;
	}
}

@media (max-height: 100px) {
	#card {
		font-size: 0.75em;
	}
		
	#information img {
		width: 10px;
	}
}

@keyframes slideInFromLeft {
  0% {
    transform: translate(-200%, -50%);
  }
  100% {
    transform: translate(-50%, -50%);
  }
}

@keyframes slideInFromBottom {
    0% {
      transform: translateY(200%);
      opacity: 0;
    }
    40% {
        opacity: 0;
    }
    50% {
        opacity: 0;
    }
    60% {
        opacity: 100;
    }
    100% {
      transform: translateY(0);
    }
}

/* Dark Mode Compatibility */

@media (prefers-color-scheme: dark) {
    .alternate-background {
		background-color: #212527;
		color: white;
	}

	.alternate-background > *::selection, .alternate-background ::selection {
		background: #ffffff;
	}

	#instagram {
		background-image: url('../resources/instagram-dark.png');
	}

	#twitter {
		background-image: url('../resources/twitter-dark.png');
	}

	#youtube {
		background-image: url('../resources/youtube-dark.png');
	}

	#github {
		background-image: url('../resources/github-dark.png');
	}

	.button {
		background-color: white;
		border-color: white;
		color: black;
	}

	.button:hover {
		background-color: rgba(0, 0, 0, 0);
		color: white;
	}
}
