:root {
    --footer-image-height: 60vh;
    --font-color: #ba0f0a;
    --main-menu-color: #b50d08;
    --scroll-fade-start: 94%;
}

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

html {
    font-family: "Special Elite", system-ui;
    font-weight: 400;
    font-style: normal;
    color: var(--font-color);
    line-height:  1.4;
    font-size: 20px;
    text-align: left;
}

html, body {
    width: 100%;
    height: 100%;
    background-color: #000;
    overflow: hidden;
    min-width: 375px;
}
header {
    padding-top: 20px;
    padding-bottom: 20px;
    text-align: center;
}
header img#logo-top {
    position: relative;
    height: auto;
    max-width: 94vw;
    max-height: 20vh;
    z-index: 9999;
}
footer {
    position: fixed;
    bottom: 1.5vh;
    z-index: 9999;
    text-align: center;
    width: 100%;
}
#main-menu-toggle {
    background-image: url('/img/icon-menu.png');
    background-size: cover;
    background-repeat: no-repeat;
    width: 64px;
    height: 64px;
    border: 0 none;
    cursor: pointer;
}
nav#main-menu {
    position: absolute;
    z-index: 100000;
    top: 2.5vh;
    left: 2.5vw;
}
#main-menu-items {
    list-style-type: none;
    margin: 0;
    padding: 6px 6px;
    border: 2px solid var(--main-menu-color);
    background-color: rgba(0, 0, 0, 0.65);
    box-shadow: 8px 8px 2px rgba(0, 0, 0, 0.75);
}
#main-menu-items li {
    padding: 0;
    margin: 0;
}
#main-menu-items li a,
#main-menu-items li a:hover,
#main-menu-items li a:focus {
    font-size: 24px;
    color: var(--main-menu-color);
    cursor: pointer;
    text-decoration: none;
}
main {
    text-align: center;
    position: relative;
    height: calc(99vh - var(--footer-image-height));
    z-index: 100;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0.5rem auto;
}

main #content {
    width: 100%;
    height: 100%;
}
img#bottom-bg {
    position: absolute;
    bottom: -10px;
    left: -4px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    object-position: center top;
}
#bottom-bg-container {
    position: absolute;
    left: 0;
    bottom: -10px;
    height: var(--footer-image-height);
    width: 100%;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
  
    background-image:
      linear-gradient(to right, #282828 1px, transparent 1px),
      linear-gradient(to bottom, #282828 1px, transparent 1px);
    background-size: 20px 20px;
  
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1), transparent 80%);
    mask-mode: alpha;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1), transparent 80%);
    -webkit-mask-mode: alpha;
}

.bg-overlay:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0,0,0, 0.20);
    z-index: -100;
}

#social-icons {
    width: 2.5rem;
    position: absolute;
    right: 0.75vw;
    bottom: 0.5vh;
    z-index: 9999;
}

.social-icon {
    display: inline-block;
    opacity: 85%;
    cursor: pointer;
}
.social-icon img {
    width: 100%;
    height: auto;
}
.social-icon:hover {
    opacity: 100%;
}

#homepage main,
#homepage main a, 
#homepage main a:hover, 
#homepage main a:visited, 
#homepage main a:focus {
    color: #dfdfdf;
    cursor: pointer;
    text-decoration: underline;
}

.play-button img {
    width: 2rem;
    vertical-align: bottom;
}

@media screen and (orientation: portrait) {
    :root {
        --footer-image-height: 40vh;
    }
}

@media screen and (max-width: 640px) {
    #main-menu-toggle {
        width: 44px;
        height: 44px;
    }
    #social-icons {
        width: 1.5rem;
        right: 0.25rem;
    }
}

.fade-bottom {
     -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,1) var(--scroll-fade-start), /* full opacity until near the end */
    rgba(0,0,0,0) 100% /* fade on last couple of pixels/line */
  );
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,1) var(--scroll-fade-start),
    rgba(0,0,0,0) 100%
  );
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
}

hr {
    border: 0 none;
    border-bottom: 1px solid #b90000;
    width: 32vw;
    margin: 1.5rem auto;
}

a, a:hover, a:visited, a:focus {
    color: #ba0f0a;
    cursor: pointer;
}

h1 { 
    font-size: 1.5rem;
}
footer {
    color: var(--font-color);
    font-size: 1.25rem;
}


