body {
    margin: 0 auto;
    font-family: CodePro;
    background-color: #00156a; /*#0035ba;*/
    background-image: url(img/bg.png);
    background-size: cover;
    background-position: bottom;
    background-attachment: fixed;
    background-repeat: no-repeat;
    text-shadow: 0px 3px #000044;
}

@font-face {
    font-family: "CodePro";
    src: url(Code-Pro.ttf) format("truetype");
}

.main-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding-left: 20px;
    font-size: 1.5rem;
    font-weight: bold;
}

img {
   max-width:80%;
   max-height:80%;
   min-width: 300px;
   min-height: 300px;
   width: auto;
   height: auto;
   margin: auto;
   position: relative;
   vertical-align: -40%;
}

.navlogo {
    position: relative;
    display: inline-block;
    width: 120px;
    height: 36px;
    min-width: 120px;
    min-height: 36px;
    background:url(img/moonkidlogotype-spritesheet.png) 0 0 no-repeat;
    background-size: 100% 200%;
}

.navlogo:hover {
    background:url(img/moonkidlogotype-spritesheet.png) 0 -36px no-repeat;
    background-size: 100% 200%;
}

.navtext {
    line-height: 1.6em;
}

.navtext a {
    color: #ff00f6;
    text-decoration: none;
}

.navtext a:hover {
    color: #ffffff;
    text-shadow: 0px 3px #ff00f6;
}

.container {
    height: 80vh; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.maintext {
    margin: auto;
    width: 600px;
    font-family: 'Overpass', sans-serif;
    background-color: rgba(0,21,106,0.5);
    padding: 20px;
    font-size: x-large;
    display: block;
    color: #ffffff;
}

.maintext a {
    color: #01fffc;
    text-shadow: 0px 3px #000044;   
    font-weight: bold;
    text-decoration: none;
}

.maintext a:hover {
    color: #ffffff;
    text-shadow: 0px 3px #ff00f6;
    font-weight: bold;
    text-decoration: none;
}

.grid {
    display: grid;
    grid-template-columns: 400px 400px;
    grid-gap: 20px 20px;
    padding: 20px;
    margin:auto;
    width: 840px;
    background-color: rgba(0,21,106,0.5);
}

.gridtext {
    background-color: transparent;
    width: 400px;
    height: 400px;
    padding: 0px;
    margin: auto;
}

.gridimg {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
    width: 400px;
    height: 400px;
    margin: 0px;
}

.grid img {
    max-width: 100%;
    max-height: 100%;
}

li {
    padding: 10px;
}

@media only screen and (min-aspect-ratio: 7/9) {
    .cycler {
      position:relative;
      height:400px;
      width:400px;
    }

    .cycler img {
      position:absolute;
      left:0;
      -webkit-transition: opacity 0.5s ease-in-out;
      -moz-transition: opacity 0.5s ease-in-out;
      -o-transition: opacity 0.5s ease-in-out;
      transition: opacity 0.5s ease-in-out;
    }
}

@media only screen and (max-aspect-ratio: 7/9) {
    .main-nav {
        padding: 50px;
        display: inline;
        font-size: 4.5rem;
        text-align: center;
    }

    .navlogo {
        position: static;
        display: inline-block;
        width: 360px;
        height: 108px;
        min-width: 360px;
        min-height: 108px;
        background:url(img/moonkidlogotype-spritesheet.png) 0 0 no-repeat;
        background-size: 100% 200%;
    }

    .navlogo:hover {
        position: static;
        display: inline-block;
        width: 360px;
        height: 108px;
        min-width: 360px;
        min-height: 108px;
        background:url(img/moonkidlogotype-spritesheet.png) 0 -108px no-repeat;
        background-size: 100% 200%;
    }

    img {
        position: absolute;
        margin-top: 0;
    }

    .container {
        height: 55vh; 
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .maintext {
        margin: auto;
        font-size: 5vw;
        width: 80%;
        padding: 20px 20px 20px 20px;
    }

    .grid {
    	display: block;
        grid-template-columns: 1fr;
        width: 80%;
        height: 100%;
    }

    .gridtext {
        background-color: transparent;
        width: 90%;
        font-size: 5vw;
        height: auto;
        margin: auto;
    }

    .gridimg {
        padding: auto;
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        margin: auto;
    }

    .grid img {
    	width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        min-width: 100px;
   		min-height: 100px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: static;
    }

    img.hideonmobile {
        display:none;
    }



}


.sticky {
  position: fixed;
  top: 0;
  width: 100%;
}

footer {
    color: #ffffff;
    padding: 20px;
    position: fixed;
    bottom: 0px;
    right: 0px;
}

@media only screen and (max-width: 1300px) {
    footer {
        color: #ffffff;
        padding: 20px;
        position: static;
        text-align: right;
        bottom: 0px;
        right: 0px;
    }
}
