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

html {
    background: #28282b;
}

.colors {
    --color-text: #fff;
    --color-link: #ede94a;
    --color-link-hover: #fff;
}

body {
    font-family: 'Nunito', monospace;
    color: var(--color-text);
    min-height: 100vh;
}

.js body {
    opacity: 0;
    transition: opacity 0.3s;
}

.js body {
    transition: background-color 0.3s, opacity 0.3s;
}

.js body.render {
    opacity: 1;
}

/* Page Loader */
.js .loading::before {
    content: '';
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.js .loading::after {
    content: '';
    box-shadow: 20px 0 0, -20px 0 0;
    position: fixed;
    z-index: 10000;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    pointer-events: none;
    border-radius: 50%;
    background: var(--color-text);
    animation: loaderAnim 1s ease-in-out infinite alternate forwards;
}

@keyframes loaderAnim {
    0% {
        box-shadow: 20px 0 0 var(--color-text), -20px 0 0 transparent;
        background: transparent;
    }
    50% {
        box-shadow: 20px 0 0 transparent, -20px 0 0 transparent;
        background: var(--color-text);
    }
    100% {
        box-shadow: 20px 0 0 transparent, -20px 0 0 var(--color-text);
        background: transparent;
    }
}

a {
    text-decoration: none;
    color: var(--color-link);
    outline: none;
}

a:hover,
a:focus {
    color: var(--color-link-hover);
}

.hidden {
    position: absolute;
    overflow: hidden;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Icons */
.icon {
    display: block;
    width: 1.5em;
    height: 1.5em;
    margin: 0 auto;
    fill: currentColor;
}

main {
    position: relative;
    width: 100%;
}



.content {
    position: relative;

    justify-content: center;
    align-content: center;

    overflow: hidden;

    margin: 0 auto;
}

.content--fixed {
    padding: 1.5em;
}

.content--layout {
    grid-template-columns: 100%;
    padding: 3em 0;
}

.content--fixed a {
    pointer-events: auto;
}

.info {
    color: var(--color-link-hover);
    margin: 0 0 0 1.25em;
}


/* Common styles for the words */
.word {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
    cursor: default;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}

@media screen and (min-width: 50em) {
    .demos {
        align-self: end;
        justify-self: end;
        display: flex;
    }
    .demo {
        display: block;
        border: 2px solid;
        width: 12px;
        height: 12px;
        border-radius: 2px;
        margin: 0 10px 0 0;
    }
    a.demo--current {
        background: currentColor;
    }
    .demo span {
        position: absolute;
        display: none;
        right: 100%;
        top: -0.35em;
        margin: 0 1em 0 0;
    }
    .demo--current span {
        display: block;
    }
}

@media screen and (max-width: 50em) {
    html, body {
        overflow-x: hidden;
        width: 100vw;
        height: 100%;
    }
    .content {
        height: auto;
        min-height: 0;
    }
    .content--layout {
        overflow: visible;
    }
    .demo-magneto .content--layout {
        padding: 1em 0 0 0;
    }
    .content--fixed {
        display: block;
        z-index: 1000;
        position: relative;
        padding: 0.85em;
    }
    .deco {
        display: none;
    }
    .word.word--magneto {
        font-size: 3em;
    }
    .word.word--kidnap {
        font-size: 3.5em;
    }
    .word.word--redraw {
        font-size: 5em;
    }
    .word.word--swing {
        font-size: 4.5em;
    }
}



.word--crossword {
	font-size: 10vh;
	font-family: 'Barrio', serif;
	font-weight: 400;
	text-transform: uppercase;
	color: #fff;
	line-height: 0.9;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, 0.65em);
	justify-self: center;
}

.word--crossword span {
	text-align: center;
	display: block;
}

.word__cross {
	pointer-events: none;
	color: #ede94a;
}

.word__cross span {
	opacity: 0;

}