@font-face {
    font-family: "Besley";
    src: url("/fonts/besley/Besley-Regular.ttf") format("truetype");
}

html, body
{
    font-family: "Besley", "calibri", "arial", "tahoma";
    color: #ffffff;
    background-color: #333333;
    background-image: url('/images/background.jpg');
    background-size: cover;
    background-position: 50% 50%;
    background-attachment: fixed;
    margin: 0;
    padding: 0 0 0 0;
    font-size: 1em;
    overflow-x: hidden;
}
main
{
    position: relative;
    max-width: 1400px;
    margin: auto;
    z-index: 0;
}

h2
{
    font-size: 1.2em;
    margin-bottom: 0;
}

.aiona
{
    position: fixed;
    bottom: 0;
    margin-left: -128px;
}

.credits
{
    position: fixed;
    bottom: 8px;
    margin-left: -128px;
    text-shadow: 1px 1px 4px #000000;
    padding: 2px 16px 2px 16px;
    font-size: 0.9rem;
    color: #ffffff;
    z-index: 3;
}
.credits a
{
    color: #ffffff;
}

.menubutton
{
    display: none;
}

.menu
{
    position: fixed;
    left: 0;
    right: 0;
    display: block;
    margin-top: 2rem;
    text-align: center;
    z-index: 3;
}
.menu li
{
    position: relative;
    display: inline-block;
    margin-right: 2rem;
}
.menu li a
{
    position: relative;
    z-index: 2;
    display: block;
    color: #ffffff;
    background-color: #EA586C;
    background-size: cover;
    background-position: 50% 50%;
    text-decoration: none;
    font-size: 1.4rem;
    padding: 0.4rem 1.2rem 0.4rem 1.2rem;
}
.menu li.selected a
{
    background-color: #FED67E;
}
.menu li a:hover,
.menu li a:active
{
    background-color: #24C9D2;
}
.menu li .bg
{
    position: absolute;
    display: block;
    left: -0.4rem;
    right: 0.4rem;
    top: 0;
    bottom: 0;
    z-index: 1;
    background-color: rgba(0,0,0,75%);
    transform: rotate(4deg);
}

.content
{
    position: relative;
    height: 100vh;
    padding-left: 38%;
}
.content img
{
    max-width: 100%;
    border: 4px solid #d1b399;
    box-sizing: border-box;
}
.content .block
{
    position: absolute;
    top: 256px;
}
.content .block .bg
{
    position: absolute;
    display: block;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 1;
    background-color: #d1b399;
    transform: rotate(-2deg);
}
.content .block .fg
{
    position: relative;
    display: block;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 2;
    background-color: #ffeecc;
    color: #333333;
    font-size: 1.4rem;
    padding: 2rem;
    z-index: 2;
    overflow-x: hidden;
    overflow-y: auto;
}
.content .block .fg a
{
    color: #654e44;
}

@media only screen and (max-width: 1400px) {
    html, body
    {
        max-height: 100vh;
    }

    .menubutton
    {
        display: block;
        background-color: #EA586C;
        color: #ffffff;
        border-radius: 50%;
        position: fixed;
        right: 1rem;
        top: 1rem;
        width: 4rem;
        height: 4rem;
        z-index: 11;
        text-align: center;
        box-sizing: border-box;
        padding-top: 1rem;
    }
    .menubutton:active
    {
        background-color: #ffffff;
        color: #EA586C;
    }

    .menu
    {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 10;
        margin: 0;
        padding: 6rem 1rem;
        background: rgba(0, 0, 0, 80%);
    }

    .menu li
    {
        display: block;
        margin-bottom: 1rem;
        width: 100%;
    }

    .menu li .bg
    {
        display: none;
    }

    .content .block
    {
        position: fixed;
        left: 1rem;
        right: 1rem;
        bottom: 2rem;
        top: auto;
    }
    .content .block .fg
    {
        font-size: 0.9rem;
        max-height: 45vh;
    }
    .aiona
    {
        max-height: 100%;
        left: -25%;
        right: 0;
    }
    .credits
    {
        margin-left: 0;
        left: 0;
        right: 0;
        text-align: center;
        font-size: 0.7rem;
        bottom: 0;
    }
}