@font-face {
    font-family: "MilkyNice";
    src: url("MilkyNice_Clean.ttf");
   }

html, body
{
    overflow-x: hidden;
    max-width: 100%;
}

body
{
    font-family: MilkyNice;
    color: white;
    text-shadow:
    -1px -1px 0px #000,
     0px -1px 0px #000,
     1px -1px 0px #000,
    -1px  0px 0px #000,
     1px  0px 0px #000,
    -1px  2px 0px #000,
     0px  2px 0px #000,
     1px  2px 0px #000;
     
    margin: 0;
    padding: 0;
    
    background-color: #ffffff;
    min-height: 100vh;

    display: flex;
    flex-direction: column;
}

#logo-offset
{
    padding-top: 100vh; /* Offsets the content while the page is loading */
}

header, footer
{
    width: 100%;
    padding: 10px;
    background-color: #0993BD;
    border-top: 4px solid #6bdcff;
    border-bottom: 4px solid #003D4F;
    margin: 0px;
    font-size: 42px;
    color: white;
    white-space: nowrap;
    max-width: 100vw;
    overflow-x: hidden;
}

header
{
    position: fixed;
    top: 0px;
    padding-left: 150px;
    z-index: 1;
}

header a
{
    margin-right: 20px;
}

#logo
{
    position: fixed;
    top : 100px;
    left: 20%;
    z-index: 1;
}

#logo-small
{
    position: fixed;
    top : 8px;
    left: 8px;
    max-height: 64px;
    z-index: 1;
}

video
{
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: -10;
    opacity: 0.6;
}

.chapter
{
    background-color: #5F65C0d0;
    min-height: 200px;
    margin-left: 5%;
    margin-right: 5%;
    margin-top: 0;
    margin-bottom: 5vh;
    padding: 25px;
    border-top: 4px solid #7F85E0;
    border-left: 4px solid #7F85E0;
    border-bottom: 4px solid #3F45A0;
    border-right: 4px solid #3F45A0;
    border-radius: 50px;
}

.flex-div
{
    display: flex;
    flex-direction: row;
}

.text-block
{
    font-size: 1.25em;
    padding: 20px;
    flex: 1 1 auto;
    text-align: justify;
}

.text-block p
{
    margin:0;
}

#trailer-div
{
    flex: 1 1 auto;
    width: min(560px, 75vw);
    height: min(315px, 42vw);
}

iframe
{
    border-radius: 20px;
    width: min(560px, 75vw);
    height: min(315px, 42vw);
    margin: auto;
}

.pmk-video
{
    width: min(320px, 40vw);
    height: min(180px, 22vw);
    margin: auto;
}

#badges-holder
{
    width: 100%;
    margin: 20px;
    text-align: center;
}

.badge
{
    display: inline-block;
    margin: auto;
    text-decoration: none;
    padding: 8px;
}

.badge img
{
    height: 60px;
}

h1
{
    font-size: 2.5em;
    margin-top: 0;
}

.button-sprite
{
    height: 80px;
    width: 400px;
    max-width: 100%;
    border-image: url(img/button.png) 100 fill / 30px / 0px;
    display: block;
    line-height: 80px;
    text-align: center;
    font-size: 1.5em;
    margin: 10px;
}

.button-sprite span
{
    display: inline-block;
    vertical-align: middle;
    line-height: normal;
}

.button-sprite img
{
    position: absolute;
    margin: 10px;
    width: 60px;
    height: 60px;
}

#discord-button-text
{
    padding-left: 80px;
}

a
{
    text-decoration: none;
    color: white;
}

#content
{
    flex: 1 0 auto;
    margin-top: 100px;
}

footer a
{
    margin-left: 40px;
}

#merch-img
{
    width: min(400px, 75vw);
    height: min(300px, 56vw);
    flex: 0 1 auto;
    border-radius: 16px;
    cursor: zoom-in;
}

#community-img
{
    width: min(300px, 75vw);
    height: min(400px, 100vw);
    flex: 0 1 auto;
    border-radius: 20px;
}

details
{
    margin-top: 10px;
}

details ul
{
    margin: 2px;
}

summary
{
    font-size: 1.25em;
}

summary span, li span, .grey-text
{
    font-size: 0.6em;
    color: #ccc;
}

.img-galery
{
    text-align: center;
    margin-top: 20px;
}

.img-galery img
{
    display: inline-block;
    max-width: 90%;
    width: 500px;
}

#latest-versions
{
    display: block;
    margin-bottom: 32px;
}

#latest-versions a
{
    display: inline-block;
    width: 64px;
    margin: 0 16px;
}

#latest-versions div
{
    width: 100%;
    white-space: nowrap;
    text-align: center;
    margin: 0;
}

#latest-versions img
{
    width: 50%;
    margin: 0 25%;
}

#earthkwak-link
{
    position: fixed;
    top : 12px;
    right: 32px;
    margin: 0;
    padding: 0;
}

#earthkwak-link img
{
    max-height: 56px;
}

@media only screen and (max-width: 1000px)
{
	header, footer
	{
		font-size: 22px;
	}

    header
    {
        padding-left: 100px;
    }

    #logo-small
    {
        height: 36px;
    }

    iframe
    {
        display: block;
        margin: auto;
    }

    #trailer-text
    {
        width: 95%;
    }
    
    .text-block
    {
        font-size: 1em;
        padding-left: 0;
        padding-right: 0;
        width: 100%;
    }

    .button-sprite
    {
        font-size: 1.25em;
    }

    #content
    {
        margin-top: 70px;
    }

    .flex-div
    {
        flex-direction: column;
    }

    #earthkwak-link
    {
        position: fixed;
        top : 8px;
        right: 12px;
        margin: 0;
        padding: 0;
    }

    #earthkwak-link img
    {
        max-height: 40px;
    }
}
