@import url("../_fonts/rodin/font.css");

body.nierish-body
{
    font-family: 'Rodin', monospace;
    /*
    background-color: #090909;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cg fill='%23383838' fill-opacity='0.4'%3E%3Cpath fill-rule='evenodd' d='M0 0h4v4H0V0zm4 4h4v4H4V4z'/%3E%3C/g%3E%3C/svg%3E");
    */
    background-color: #c5c3aa;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cg fill='%23c0bea5' fill-opacity='0.4'%3E%3Cpath fill-rule='evenodd' d='M0 0h4v4H0V0zm4 4h4v4H4V4z'/%3E%3C/g%3E%3C/svg%3E");
    color: #eee;

    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

main.nierish-main
{
    flex: 1 0 auto;
}

/* The respective title. It is being animated with Javascript. */
#nierish-title
{
    font-family: 'Rodin', monospace;
    text-transform: uppercase;

    color: #222;
    text-shadow: 4px 4px 1px rgba(37, 37, 37, .3);
}

/* Styling the headings. */
.nierish-heading
{
    font-family: 'Rodin', monospace;
    text-transform: uppercase;

    color: #222;
    text-shadow: 4px 4px 1px rgba(37, 37, 37, .3);

    opacity: 0;
    animation: nierish-anim-fadeInUp .5s ease-in .6s forwards;
}

/* Takes care of the lines between elements. */
.nierish-hr-left
{
    border: none;
    height: 28px;
    background-image: url("../_assets/nierish-hr.png");
    margin-left: 0;

    animation: nierish-anim-widthToMax .75s ease-out forwards;
}

.nierish-hr-right
{
    border: none;
    height: 28px;
    background-image: url("../_assets/nierish-hr.png");
    margin-right: 0;

    animation: nierish-anim-widthToMax .75s ease-out forwards;
}

@keyframes nierish-anim-widthToMax
{
    0% { width: 0; }
    100% { width: 100%; }
}

/* A utility class for elements to stay at the bottom of the page.
   Needs flex layout to be used. */
.nierish-stay-at-bottom
{
    overflow: hidden;
    display: flex;
}

/* The navigation. */
.nierish-nav > ul
{
    list-style-type: none;
    padding: 0;
    margin: 18px 0;
    overflow: hidden;
}

.nierish-nav > ul li
{
    float: left;
}

.nierish-nav > ul li div
{
    padding: 3px 0;

    border-top: solid transparent;
    border-bottom: solid transparent;

    opacity: 0;
    animation: nierish-anim-navigationWrapperIn .5s ease-out .5s forwards;
}

@keyframes nierish-anim-navigationWrapperIn
{
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.nierish-nav > ul li div a, .nierish-nav > ul li div a:visited
{
    color: #222;
    background-color: rgba(37, 37, 37, .2);

    font-size: 14pt;
    font-weight: bold;
    text-align: left;
    text-decoration: none;
    text-transform: uppercase;

    padding: 4px;
    margin: 0 5px;
    display: block;
    overflow: hidden;
    white-space: nowrap;

    width: 0;
    animation: nierish-anim-navigationIn .5s ease-out .5s forwards;
}

@keyframes nierish-anim-navigationIn
{
    0% { width: 0; }
    100% { width: 180px; }
} 

.nierish-nav > ul li div a:hover, .nierish-nav > ul li div a:active
{
    background-color: rgba(68, 68, 68, .8);
    color: #ddd;
}

.nierish-nav > ul li div:hover, .nierish-nav > ul li div:active
{
    border-top: solid rgba(68, 68, 68, .8);
    border-bottom: solid rgba(68, 68, 68, .8);
}

/* The main container. */
.nierish-section
{
    color: #222;
    /*background-color: #D9D3BB;*/
    background-color: #d9d3bb;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cg fill='%23ccc6af' fill-opacity='0.4'%3E%3Cpath fill-rule='evenodd' d='M0 0h4v4H0V0zm4 4h4v4H4V4z'/%3E%3C/g%3E%3C/svg%3E");

    box-shadow: 3px 3px 1px rgba(37, 37, 37, .3);

    border-left: 8px double #222;

    padding: 3px 10px 17px;
    margin: 5px 25px 5px;

    opacity: 0;
    animation: nierish-anim-fadeInUp .5s ease-in .6s forwards;
}

.nierish-section a
{
    color: #444;
    font-style: italic;
}

@keyframes nierish-anim-fadeInUp
{
    from
    {
        opacity: 0;
        transform: translate3d(0, 25px, 0);
    }

    to
    {
        opacity: 1;
        transform: none;
    }
}

/* Media stuff. */
.nierish-media
{
    margin: 12px;
}

.nierish-media-link
{
    text-decoration: none;
}

.nierish-button-wrapper
{
    padding: 3px 0;
    margin: 5px 25px 5px;
    display: inline-block;

    border-top: solid transparent;
    border-bottom: solid transparent;

    opacity: 0;
    animation: nierish-anim-buttonWrapperIn .5s ease-out .9s forwards;
}

@keyframes nierish-anim-buttonWrapperIn
{
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.nierish-button-wrapper:hover
{
    border-top: solid rgba(68, 68, 68, .8);
    border-bottom: solid rgba(68, 68, 68, .8);
}

/* Formular elements. */
.nierish-button
{
    color: #222;
    background-color: rgba(37, 37, 37, .2);

    font-family: 'Rodin', monospace;
    font-size: 14pt;
    font-weight: bold;
    text-align: left;
    text-decoration: none;

    border: none;
    padding: 4px;
    margin: 0 5px;
    display: block;
    overflow: hidden;
    white-space: nowrap;

    width: 0;
    animation: nierish-anim-buttonsIn .5s ease-out .9s forwards;
}

.nierish-button:hover
{
    cursor: pointer;

    background-color: rgba(68, 68, 68, .8);
    color: #ddd;
}

@keyframes nierish-anim-buttonsIn
{
    0% { width: 0; }
    100% { width: 360px; }
} 