@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&family=Dancing+Script:wght@700&display=swap');

:root {
	/* General colors */
	--clr-bg1: #242018;
	--clr-bg2: #343432;
	--clr-bg3: #343432;

	--clr-brand: #c1df11;
	--clr-bg: #222;
	--clr-text: #eee;
	--clr-text-dark: #363333;

	--clr-button: #ff8800;
	--clr-button-hover: #ff9906;
}

/*
 * CSS Reset
 */

/* Box sizing rules */
*,
*::before,
*::after {
	box-sizing: border-box;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
	margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
	list-style: none;
}

/* Set core root defaults */
html:focus-within {
	scroll-behavior: smooth;
}

/* Set core body defaults */
body {
	min-height: 100vh;
	text-rendering: optimizeSpeed;
	line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
	text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
	max-width: 100%;
	display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
	font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
	html:focus-within {
	scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/*
 * Global styles
 */

* {
	user-select: none;
}

body {
	background: linear-gradient(45deg, var(--clr-bg1) 10%, var(--clr-bg2) 95%) fixed;
	background-size: 250%;
	color: var(--clr-text);
	font-family: "Roboto Condensed", sans-serif;
	font-size: 1.5rem;
	font-weight: 400;
	animation: bg-animation 20s infinite alternate;
}

@keyframes bg-animation {
	0% {
		background-position: bottom left;
	}
	100% {
		background-position: top right;
	}
}

.noise {
	position: fixed;
	width: 100%;
	height: 100%;
	z-index: -5;
	background: url(../img/noise.svg) repeat left top;
	mix-blend-mode: multiply;
}

#wrapper {
	padding-top: 1.5em;
	padding-inline: 2.5em;
	text-align: center;
}

#wrapper h1 {
	line-height: 1em;
}
#wrapper section {
	padding-block: 4em;
}

h1 {
	font-size: 4em;
	font-family: 'Dancing Script', cursive;
	font-weight: 700;
}

@media screen and (min-width: 1010px) {
	body {
		display: flex;
		align-items: center;
		justify-content: center;
	}

	#wrapper {
		display: inline-block;
		max-width: 1280px;
		background: var(--clr-bg3);
		border-radius: 1em;
		box-shadow: 0 0 3rem rgba(0, 0, 0, 0.6);
		margin: 3em;
	}

	h1 {
		font-size: 6em;
	}
}

.button {
	display: inline-block;
	background: var(--clr-button);
	border-radius: 0.2rem;
	box-shadow: 0 0 0.1rem 0.1rem rgba(0, 0, 0, 0.6);
	color: var(--clr-text);
	font-size: 1.5rem;
	font-weight: bold;
	font-variant: small-caps;
	padding: 0.5em 1em;
	transition: background 0.1s ease;
}
.button:hover {
	background: var(--clr-button-hover);
}

.buttonpad {
	display: inline-block;
	font-size: 1.5rem;
	font-weight: bold;
	font-variant: small-caps;
	padding: 0.5em 1em;
	visibility: hidden;
}

#runaway-btn {
	position: absolute;
}
