html {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    color: #fff;
    font-family: sans-serif;
	position: relative;	
	height: 100%;
	display: grid;
	grid-template-rows: 1fr auto;
    background-color:  #040A2E;

    background-image: url('bg.png');
    background-position: top center;
    background-size: 300%;
    background-repeat: no-repeat;
}

.scores-page {
    margin: 50px auto 40px auto;
    max-width: 700px;
    text-align: center;
}

.underline {
    text-decoration: underline;
}


.mode-link {
    font-weight: bold;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.13);
    color: #fff;
    text-decoration: none !important;
    padding: 10px 0px 10px 40px;
    font-weight: bold;
    background-position: 10px 50%;
    background-size: 20px;
    background-repeat: no-repeat;
    margin: 5px;
}

.mode-name {
    display: none;
}

.mode-link:hover, .mode-link:focus {
    background-color: rgba(255, 255, 255, 0.26);
}

.mode-link.active {
    background-color: rgba(255, 255, 255, 0.39);
}

.classic-mode-link {
    background-image: url('classic-mode.png');
}

.daily-mode-link {
    background-image: url('daily-mode.png');
}

.containment-mode-link {
    background-image: url('containment-mode.png');
}

.labyrinth-mode-link {
    background-image: url('labyrinth-mode.png');
}

.date-choices {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: fit-content;
    margin: 50px 20px;
}

.span-choices {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: fit-content;
    margin: 50px 20px;
}

.date-choice {
    font-size: 150%;
    font-weight: bold;
}

.date-link {
    color: #fff;
}

.page-choices {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: fit-content;
    margin: 50px 100px;
}

.page-link {
    color: #fff;
    font-size: 120%;
}

.score-table {
    margin: 50px auto;
    max-width: 500px;
}

.score-row {
    display: grid;
    grid-template-columns: 25% 30% 45%;
    justify-content: space-around;
}

.score-row.highlighted {
    background-color: rgba(255, 255, 255, 0.2);
}

.score-data {
    margin: 10px;
}

.score-data:nth-child(1) {
    text-align: right;
}
.score-data:nth-child(2) {
    text-align: center;
}
.score-data:nth-child(3) {
    text-align: left;
}

.score-row {
    font-size: 130%;
}

.no-scores-found {
    font-size: 130%;
    margin: 80px auto;
}

header {
    margin: 50px auto 0px auto;
    max-width: 800px;
    text-align: center;
}

header img {
    max-width: 60%;
}

main {
	/* font-family: $content-font; */
	margin: 0px auto;
    max-width: 700px;
    padding: 0px 20px;
}

main h1 {
    font-weight: normal;
    text-shadow: 0px 4px 0px rgba(0, 0, 0, 0.5);
    font-size: 150%;
    margin-bottom: 30px;
}

main h2 {
    font-weight: normal;
    text-shadow: 0px 4px 0px rgba(0, 0, 0, 0.5);
    font-size: 130%;
    margin-bottom: 30px;
}

#game {
    max-width: 230px;
    margin: auto;
}

canvas {
    max-width: 100%;
}

.slideshow {
    position: relative;
    margin-top: 30px;
}

.slideshow .slide {
    position: absolute;
    width: 100%;
    text-align: center;
    opacity: 0;
}

.slideshow .slide img {
    object-fit: contain;
}

.other-links {
    display: flex;
    flex-direction: column;
    
    align-items: center;
    justify-content: center;
    margin-top: 40px;
}

.other-links a {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 10px 10px 10px 50px;
    font-weight: bold;
    background-position: 15px 50%;
    background-size: 10%;
    background-repeat: no-repeat;
    margin: 15px auto;
}

.classic-link, .home-link {
    background-image: url('classic.png');
}

.discord-link {
    background-image: url('discord.png');
}

.scores-link {
    background-image: url('scores.png');
}

.presskit-link {
    background-image: url('presskit.png');
}

.discord-link, .scores-link, .presskit-link {
    width: 120px;
}

.other-links a.home-link {
    padding: 15px 15px 15px 60px;
    background-position: 15px 50%;
    background-size: 13%;
    font-size: 110%;
}

.other-links a:hover, .other-links a:focus {
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.3);
}

.other-links a small {
    font-weight: normal;
    font-size: 80%;
}

@keyframes slideshow-1 {
    0% { opacity: 0; }
    2.5% { opacity: 1; }
    12.5% { opacity: 1; }
    15% { opacity: 0; }
}
.slideshow-1 .slide:nth-child(1) { animation-delay: 4s; }
.slideshow-1 .slide:nth-child(2) { animation-delay: 8s; }
.slideshow-1 .slide:nth-child(3) { animation-delay: 12s; }
.slideshow-1 .slide:nth-child(4) { animation-delay: 16s; }
.slideshow-1 .slide:nth-child(5) { animation-delay: 20s; }
.slideshow-1 .slide:nth-child(6) { animation-delay: 24s; }
.slideshow-1 .slide:nth-child(7) { animation-delay: 28s; }

.slideshow-1 .slide {
    animation-name: slideshow-1;
    animation-duration: 32s;
    animation-iteration-count: infinite;
}
.slideshow-1 {
    height: 120px;
    margin-bottom: 20px;
}
.slideshow-1 img {
    max-height: 120px;
}

@keyframes slideshow-2 {
    0% { opacity: 0; }
    3.333% { opacity: 1; }
    33.33% { opacity: 1; }
    36.66% { opacity: 0; }
}
.slideshow-2 .slide:nth-child(2) { animation-delay: 8s; }
.slideshow-2 .slide:nth-child(3) { animation-delay: 16s; }

.slideshow-2 {
    height: 120px;
}
.slideshow-2 .slide {
    animation-name: slideshow-2;
    animation-duration: 24s;
    animation-iteration-count: infinite;
}

.store-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.store-links a {
    width: 180px;
    margin: 15px 20px;
}


.video-wrapper {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

a {
    color: #59f;
    text-decoration: none;
}

.quote a {
    color: #fff;
}

a:hover, a:focus {
    text-decoration: underline;
}

.content-wrapper {
	flex: 1 0 auto;
}

.centered {
	text-align: center;
}

img {
    max-width: 100%;
    height: auto;
}

h1 {
    text-align: center;
}

footer {
	grid-row-start: 2;
	grid-row-end: 3;
	color: #888;
	text-align: center;
	font-size: 14px;
	margin: 50px 20px;
}

footer p {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 0;
}

.image-gallery a {
    max-width: 30%;
    border: solid 1px rgba(255, 255, 255, 0.2);
}

.image-gallery a:hover, .image-gallery a:focus {
    border-color: rgba(255, 255, 255, 1.0);
}

@media screen and (min-width: 500px) {
    #game {
        max-width: 270px;
    }
    body {
        background-size: 150%;
    }
    header img {
        max-width: 45%;
    }
	footer {
		font-size: 16px;
    }
    .slideshow-1 {
        height: 160px;
    }
    .slideshow-1 img {
        max-height: 160px;
    }
    .slideshow-2 p {
        font-size: 110%;
    }
    .other-links a {
        padding: 15px 15px 15px 60px;
        background-position: 15px 50%;
        background-size: 13%;
        font-size: 110%;
    }
    .discord-link, .scores-link, .presskit-link {
        width: 150px;
    }
}

@media screen and (min-width: 750px) {
    .mode-name {
        display: inline;
    }
    .mode-link {
        padding-right: 10px;
    }
}

@media screen and (min-width: 1000px) {
    #game {
        max-width: 320px;
    }
    main p, main li {
        font-size: 120%;
    }
    main h1 {
        font-size: 200%;
    }
    main h2 {
        font-size: 180%;
    }
    footer .social-icon svg {
        width: 36px;
    }
	footer .social-icon {
		margin: 0 18px;
    }
    body {
        background-size: 100%;
    }
    header img {
        max-width: 50%;
    }
    .slideshow-1 {
        height: 180px;
    }
    .slideshow-2 {
        height: 180px;
    }
    .slideshow-1 img {
        max-height: 180px;
    }
    .slideshow-2 p {
        font-size: 140%;
    }
    .store-links a {
        width: 250px;
        margin: 40px;
    }
    .other-links a {
        padding: 20px 20px 20px 72px;
        background-position: 20px 50%;
        font-size: 130%;
        margin: 20px auto;
    }
    .discord-link, .scores-link, .presskit-link {
        width: 170px;
    }
}


@media screen and (min-width: 1400px) {
    body {
        background-size: 100%;
    }
    header img {
        max-width: 60%;
    }
    .slideshow-1 {
        height: 200px;
    }
    .slideshow-1 img {
        max-height: 200px;
    }
    .slideshow-2 p {
        font-size: 150%;
    } 
    #game {
        max-width: 380px;
    }
}