﻿/* reset all */

html {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

:root {
    font: 16px;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

a,
img {
    outline: none;
    border: none;
}

img {
    max-width: 100%;
    display: inline-block;
}


/* body set-up */

body {
    font-family: 'Roboto', sans-serif;
    font-size: .875rem;
    line-height: 1.7;
    color: #fff;
    background: #fff;
    font-weight: normal;
}


/* main style */

a {
    color: inherit;
    display: inline-block;
    text-decoration: none;
    white-space: nowrap;
}

u {
    text-decoration: underline;
}

a:hover,
a:focus {
    outline: none;
    text-decoration: underline;
}

p {
    margin: 0 0 .937rem;
    text-align: justify;
    position: relative;
}

section p:last-of-type {
    margin-bottom: 0;
letter-spacing: 0.22em;
}

p span,
li span {
    color: #8091A3;
}

h1 {
    display: block;
    font-size: 1.625rem;
    font-weight: 500;
    line-height: 1;
    margin: .937rem 0;
    letter-spacing: 0.3em
}

h1 span {
    font-size: 0.7em;
    font-weight: normal;
}

h2 {
    text-align: left;
    font-size: .875rem;
    font-weight: 400;
    margin: 0 0 .937rem;
    border-top: 1px solid #8091A3;
    border-bottom: 1px solid #8091A3;
    padding: .312rem 1.25rem;
    background: rgba(255, 255, 255, 0.25)
}

h3 {
    margin: 0 0 .625rem;
    font-size: .875rem;
}

ul {
    padding: 0;
    margin-bottom: .625rem;
    list-style: none;
}

ul li {
    padding-left: .937rem;
    margin-bottom: .625rem;
    word-spacing: .125rem;
    letter-spacing: 1px
}

ul li:before {
    content: "\2022"
        /* ❖ *  ● ■ ▪ ◆ ❖ ✔ » ▸ ▶ ► ➤ ➢ ➧ ➭ ➽ ➲ 》➠ ◢ ◥ ☛ */
    ;
    float: left;
    margin-left: -.937rem;
    font-size: 1.125rem;
    line-height: 1.4;
}


/* layout  */

#wrapper {
    display: block;
    max-width: 800px;
    margin: .625rem auto;
    padding: 1.875rem 1.875rem 1.25rem;
    border: 1px solid #000;
    background-color: #002346;
    background-image: url(../images/footer.png);
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: 100% 23.5%;
}

header {
    margin-bottom: 1.25rem;
}

header > a {
    display: block;
    margin: 0;
    width: 13.125rem;
    float: left;
}

header img {
    display: block;
    max-width: 100%;
}

header p:first-of-type {
    margin-bottom: 0;
    border-bottom: 1px solid #8091A3;
}

header p:last-of-type {
    margin-bottom: 0;
}

header p {
    padding: .187rem .5rem;
    line-height: 1.5
}

footer section:first-of-type,
h2,
header p,
article section {
    letter-spacing: 0.26em;
}

header section {
    border: 1px solid #8091A3;
    float: right;
    margin-top: .625rem;
}

article {
    border: 1px solid #8091A3;
    padding: 0 1.25rem;
}

article section,
article h2 {
    margin: 0 -1.25rem .937rem;
}

article section {
    border-bottom: 1px solid #8091A3;
    padding: .937rem 1.25rem;
}

article > img {
    display: block;
    margin: -3.125rem 0;
    z-index: -1;
}

/*--use clearfix when float get's overflowed--*/

.clearfix:after {
    content: ".";
    clear: both;
    display: block;
    visibility: hidden;
    height: 0px;
}


/*----------------- footer --------------------*/

footer {
    display: flex;
    border: 1px solid #8091A3;
}

#wrapper > h2 {
    margin-bottom: 0;
    border-bottom: 0;
}

footer section {
    flex: 1;
    padding: .937rem 1.25rem;
}

footer section + section {
    border-left: .062rem solid #8091A3;
    flex: 1.2;
    position: relative;
}

footer section + section > a {
    border: 1px solid #8091A3;
    position: absolute;
    width: 150px;
    right: .937rem;
    top: .937rem;
}

footer section + section > a img {
    display: block;
}

footer section + section a {
    color: #00FFFF;
    text-decoration: underline;
}

aside {
    padding: 3.75rem;
    text-align: center;
}

aside p {
    margin-bottom: 0;
    display: inline;
    padding: .187rem .5rem;
    border: 1px solid #8091A3;
    letter-spacing: 0.2em
}

footer section:last-of-type p,
article p {
    letter-spacing: 1px
}



@media only screen and (max-width: 799px) {
    #wrapper {
        margin: 0 auto;
        border: 0;
        padding: .625rem;
        background-image: none;
    }

    a {
        font-weight: 500;
    }

    h1 {
        line-height: 1.2;
    }

    header {
        margin-bottom: .625rem;
    }

    header > a {
        float: none;
        margin: 0 auto;
    }

    header section {
        float: none;
        text-align: center;
    }

    article {
        padding: .625rem;
    }

    article section {
        margin: 0 0 .625rem;
        padding: 0 0 .625rem;
    }

    p {
        text-align: left;
        letter-spacing: 0 !important;
    }

    h2 {
        padding: .312rem .625rem
    }

    article h2 {
        margin: 0 -.625rem .625rem;
        padding: .312rem .625rem;
    }

    footer {
        display: block;
    }

    footer section {
        padding: .625rem
    }

    footer section + section {
        border: 0;
    }

    aside {
        padding: .625rem
    }
}

@media only screen and (max-width:479px) {
    body {
        font-size: .812rem;
    }

    h1 {
        font-size: 1.125rem;
    }

    ul li:before {
        font-size: 1rem;
        line-height: 1.1;
    }

    footer section + section > a {
        position: static;
        margin-top: .625rem;
    }
}
