/* Oswald shared base */
.oswald-header,
h1, h2, h3 {
    font-family: "Oswald", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: italic;
}

.oswald-header { font-size: 2rem; }
h1 { font-size: 4rem; color: #f4f4f4; }
h2 { font-size: 3rem; color: #333; }
h3 { font-size: 2rem; color: red; }

p {
    font-size: 1.25rem;
    line-height: 1;
}

/* Body */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    background-color: transparent;
}

@keyframes scroll-bg {
    from { background-position: 0px 0px; }
    to   { background-position: 4800px 1200px; }
}

body::before {
    content: "";
    position: fixed;
    width: 300vw;
    height: 300vh;
    top: 50%;
    left: 50%;
    z-index: -1;
    transform: translate(-50%, -50%) rotate(-20deg);
    background-image: url(../Images/max-speed-tileable.png);
    background-size: 150px;
    background-repeat: repeat;
    background-position: 0 0;
    animation: scroll-bg 60s linear infinite;
    -webkit-animation: scroll-bg 60s linear infinite; /* Safari and Chrome */
}

/* Main & sections */
main {
    position: fixed;
    width: 100%;
    overflow: auto;
    background-color: #f4f4f4;
    top: 5rem;
    bottom: 3rem;
}

section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Homepage */
.homepage {
    position: fixed;
    top: 5rem;
    bottom: 3rem;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    /*-ms-overflow-style: none;
    scrollbar-width: none;*/
}

/*.homepage::-webkit-scrollbar { display: none; }*/

.homepage section {
    height: 101%;
    scroll-snap-align: start;
}

.homepage p {
    max-width: 60%;
    text-align: center;
}

.home-logo {
    max-width: 40%;
    height: auto;
    background-color: rgba(1,1,1,0.01);
}

.home-title {
    width: 80%;
    line-height: 5px;
    background-image: url(../Images/TitleBackground.png);
    background-size: 850px auto;
    background-repeat: no-repeat;
    background-position: left center;
    padding-left: 50px;
    padding-top: 40px;
    padding-bottom: 40px;
}

#home {
    background-color: transparent;
    background-image: url(../Images/Banner.png);
    background-size: cover;
    background-position: center;
}



/* Header & nav */
header {
    color: white;
    padding: .5rem .5rem .5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(0,0,0,0);
}

header .logo { 
    max-height: 4rem;
    vertical-align: middle;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul .right { margin-left: auto; }

nav ul li {
    display: inline-block;
    margin-right: 1rem;
    vertical-align: middle;
}

nav ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a:active { color: red; }
nav ul li a:hover { text-decoration: underline; }



/* Footer */
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    color: white;
    text-align: center;
}

footer p { font-size: 1rem; }



/* iFrame */
.game-list, .about-us {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}