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

:root {
	font-size: 18px;
}

body {
	margin: 0;
	--color-text: #fff;
	--color-bg: #c2c6c9;
	--color-link: #f9e3c3;
	--color-link-hover: #f9e3c3;
	--color-menu: #f9e3c3;
	--fontsize-menu: 20px;
	font-family: 'League Gothic', sans-serif;
	color: var(--color-text);
	background-color: var(--color-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
	background: url(img/background.jpg);
}
.maddox {
	font-size: 1.5em;
	--color-text: #f9e3c3;
}
.title {
	position: fixed;
	bottom: 0;
	right: 0;

    left: 0;
    text-align: center;
}
.maddox .title {
	position: relative;
}
/* Page Loader */
.js .loading::before,
.js .loading::after {
    content: '';
    position: fixed;
    z-index: 1000;
}

.js .loading::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
}

.js .loading::after {
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
    border-radius: 50%;
    opacity: 0.4;
    background: var(--color-link);
    animation: loaderAnim 0.7s linear infinite alternate forwards;

}

@keyframes loaderAnim {
    to {
        opacity: 1;
        transform: scale3d(0.5, 0.5, 1);
    }
}

.hidden {
	opacity: 0;
	position: absolute;
	pointer-events: none;
	z-index: -1;
}

a {
	text-decoration: none;
	color: var(--color-link);
	outline: none;
	border-bottom: 2px solid;
	transition: border-color 0.1s;
}

a:hover,
a:focus {
	color: var(--color-link-hover);
	outline: none;
	border-color: transparent;
}

main {
	padding: 3rem 5vw;
	position: relative;
	z-index: 1000;
}
.paragraph {
	margin-bottom: 1em;
}
.title {
	font-size: 1rem;
	margin: 0 0 1rem;
	font-weight: normal;
}

.links {
	display: inline;
}

.demos {
	margin: 1rem 0;
}

.demo--current,
.demo--current:hover {
	border-color: transparent;
}

.text--menu {
	border: none;
	color: var(--color-link);
	margin: 1rem 0;
}

.credits a {
	color: currentColor;
}

.menu {
	width: 100%;  
	display:  block;
}
.menu span{
	margin-right: .2em;
}
.menu__item {
    border: none;
    transition: none;
    cursor: pointer;
    position: relative;
}

.menu__text {
	font-size: var(--fontsize-menu);
	fill: var(--color-menu);
    display: block;
    font-family: var(--font-menu);
	font-weight: 700;
    position: absolute;
    height: 120%;
    width: 100%;
    pointer-events: none;
}

.menu__text text {
	transform-origin: 50% 50%;
	transform-box: view-box;
}

.menu__text text:nth-child(2) { 
	opacity: 0;
}
.menu_wrapper{
	display: none;
}
.mobile_message {
	font-size: 3em;
	color: var(--color-link);
}
@media screen and (min-width: 53em) {
	main {
		position: fixed;
		z-index: 100;
		top: 0;
		left: 0;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		height: 100vh;
	}

	.maddox main {
		position: relative;
		height: auto;
	}
.mobile_message {
	display: none;
}
.StoryTime {
	width: 70%;
}
.maddox .title {
	position: fixed;
	left: 0px;
	right: auto;
}
.maddox .links {
	left: 0px;
}
.menu {
	width: 100%;
	min-height: 400px;    
	display: flex;
    font-size: 60px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    color: var(--color-link);
}
.menu span{
	margin-right: .2em;
}
.menu__item {
    border: none;
    transition: none;
    cursor: pointer;
    position: relative;
}

.menu__text {
	font-size: var(--fontsize-menu);
	fill: var(--color-menu);
    display: block;
    font-family: var(--font-menu);
	font-weight: 700;
    position: absolute;
    height: 120%;
    width: 100%;
    pointer-events: none;
}
.menu_wrapper{
	display: grid;
	grid-template-columns: repeat(5, auto);
	width: 100%;
}
	.title {
		grid-area: title;
		margin: 0;
	}
	.demos {
		margin: 0;
		grid-area: demos;
		display: flex;
		flex-direction: column;
	}
	.demo, .links a {
		margin-bottom: 0.5rem;
	}
	.links {
		display: flex;
		flex-direction: column;
		position: absolute;
		top: 0%;
		padding: 1em;
	}
	.text--menu {
		grid-area: text-menu;
		margin: 0;
	}
	.text--subscribe {
		grid-area: text-subscribe;
		justify-self: end;
	}
	.menu {
		grid-area: menu;
	}
}
