﻿@charset "utf-8";

/* Standard */
:root {
    font-size: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
}

img {
    max-width: 100%;
    display: inline-block;
    border: 0;
    outline: 0;
}

/* body set-up */
body {
    font-family: 'Arial', sans-serif;
    font-size: 0.875rem;
    line-height: 1.4;
    color: #000;
    background: #fff;
    font-weight: normal;
}

/* main style */
a {
    color: white;
    display: inline-block;
    text-decoration: none;
    border: 0;
    outline: 0;
}

a:hover,
a:focus {
    outline: none;
    text-decoration: underline;
}

p {
    margin: 0 0 0.625rem;
}

h1 {
    color: white;
    display: block;
    font-size: 1.375rem;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 0.9375rem;
    margin-top: 0.9375rem;
    text-align: center;
}

h3 {
    text-align: left;
    font-size: 1rem;
    line-height: 1;
    color: white;
    margin: 0 0 0.625rem;
}

ul {
    padding: 0;
    margin-bottom: 0.625rem;
    list-style: none;
}

ul li {
    padding-left: 2.8125rem;
}

ul li:before {
    content: "";
    float: left;
    position: relative;
    width: 4px;
    height: 4px;
    border-radius: 8px;
    background: white;
    margin-left: -15px;
    top: 6px;
}

span {
    color: #FFB51D;
    font-weight: bold;
}

/* layout  */
#wrapper {
    max-width: 43.75rem;
    margin: 0.625rem auto;
    padding: 0.9375rem;
    border: 0.1875rem solid #AAA;
    background: #F11923;
    color: white;
}

article aside {
    margin-left: -0.9375rem;
    margin-right: -0.9375rem;
}

article nav {
    padding: 0 0.9375rem;
}

/* content */
header {
    margin-left: -0.9375rem;
    margin-top: -0.9375rem;
    margin-right: -0.9375rem;
}

header a {
    display: block;
    text-align: center;
}

header img {
    margin-bottom: 0.625rem;
}


/* footer */

footer {
    background: white;
    margin: 0 -0.9375rem -0.9375rem;
    color: black;
    padding: 0.9375rem;
    font-size: 0.8125rem;
    display: flex;
    justify-content: space-between;
}

footer p:last-child {
    margin-bottom: 0;
}

footer aside {
    width: 60%;
}

footer section {
    width: 40%;
    text-align: center;
}

footer a {
    color: #009EE0;
}

@media only screen and (max-width:43.6875rem) {
    #wrapper {
        margin: 0 auto;
        border: 0;
        padding: 0.625rem;
    }

    a {
        font-size: 1rem;
    }

    article aside {
        margin-left: -0.625rem;
        margin-right: -0.625rem;
    }

    article nav {
        padding: 0 0.625rem;
    }

    footer {
        margin: 0 -0.625rem -0.625rem;
    }

    h1 {
        font-size: 1.1875rem;
    }

    h3 {
        font-size: 0.875rem;
    }

    footer {
        display: block;
    }

    footer aside {
        width: 100%;
    }

    footer section {
        width: 100%;
        text-align: center;
    }

    article > p:nth-of-type(4) a,
    footer > aside > p a {
        white-space: normal;
        display: inline;

    }
    
    footer > aside {
        margin: 0 0 1.25rem;
    }

}

@media only screen and (max-width:29.937rem) {
    body {
        font-size: 0.8125rem;
    }

    h1 {
        font-size: 1.125rem;
    }

    footer aside {
        width: 100%;

    }

    footer section {
        width: 100%;
        text-align: center;
    }

    ul li {
        padding-left: .937rem;
    }

    ul li:before {
        margin-left: -.937rem;
    }

}
