@font-face {
    font-family: ubuntu;
    src: url(../font/Ubuntu-Medium.ttf);
}

@font-face {
    font-weight: bold;
    font-family: ubuntu;
    src: url(../font/Ubuntu-Bold.ttf);
}

html {
    height: 100%;
    font-size: 17px;
    font-family: ubuntu;
}

body {
    background-color: #aaa;
    margin: 0;
    padding: 2.25rem .25rem 2.25rem .25rem;
    text-align: center;
}

a {
    color: #f00;
}

h1 {
    font-weight: normal;
    font-size: 1.1rem;
}

header {
    background: #fff;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1;
    box-shadow: inset #aaa 0 -.025rem .15rem;
}

header img {
    display: none;
}

h1 strong {
    color: #f00;
    font-weight: bold;
}

main,
article,
aside {
    margin: .25rem 0;
    padding: 0;
    text-align: center;
    display: inline-block;
    vertical-align: top;
    width: 100%;
}

main {
    color: #000;
}

article {
    color: #000;
}

aside {
    color: #fff;
    text-align: right;
}

main section {
    /*display: inline-block;*/
    text-align: left;
    /*width: 20rem;*/
    max-width: 100%;
    vertical-align: top;
    margin: .25rem;
}

section div {
    /*padding: 0 0 0 1.25rem;*/
    padding-left: 1.25rem;
}

section div h1,
section div p {
    /*margin: 0 0 0 -1.25rem;
        padding: 0 0 0 1.25rem;*/
    margin-left: -1.25rem;
    padding-left: 1.25rem;
}

section div div h1,
section div div p {
    /*margin: 0 0 0 -2.5rem;
        padding: 0 0 0 2.5rem;*/
    margin-left: -2.5rem;
    padding-left: 2.5rem;
}

section div div div h1,
section div div div p {
    /*margin: 0 0 0 -3.75rem;
        padding: 0 0 0 3.75rem;*/
    margin-left: -3.75rem;
    padding-left: 3.75rem;
}

section div div div div h1,
section div div div div p {
    /*margin: 0 0 0 -5rem;
        padding: 0 0 0 5rem;*/
    margin-left: -5rem;
    padding-left: 5rem;
}

section div div div div div h1,
section div div div div div p {
    /*margin: 0 0 0 -6.25rem;
        padding: 0 0 0 6.25rem;*/
    margin-left: -6.25rem;
    padding-left: 6.25rem;
}

section div h1 {
    font-size: 1rem;
}

article section {
    /*display: inline-block;*/
    text-align: left;
    /*width: 20rem;*/
    max-width: 100%;
    vertical-align: top;
    margin: .25rem;
}

aside section {
    background-color: #f00;
    /*display: inline-block;*/
    text-align: right;
    /*width: 20rem;*/
    max-width: 100%;
    vertical-align: top;
    margin: .25rem;
}

section.code {
    background-color: #000;
    text-align: left;
}

section.code p {
    color: #0f0;
    font-family: monospace;
}

main p,
article p,
aside p {
    padding: .5rem;
    margin: 0;
    line-height: 1.3;
    font-size: .95rem;
    word-wrap: break-word;
}

main section:not(.code) p:nth-child(odd),
article section:not(.code) p:nth-child(odd) {
    background-color: #ccc;
}

main section:not(.code) p:nth-child(even),
article section:not(.code) p:nth-child(even) {
    background-color: #ddd;
}

main strong,
article strong,
aside strong {
    display: block;
}

main h1,
article h1,
aside h1 {
    color: #f00;
    background: rgba(250, 250, 250, 1.5);
    padding: .25rem .5rem;
    margin: 0;
}

form {
    padding: 0;
    max-width: 25rem;
    margin: 0 .5rem 0 .5rem;
    width: 100%;
    color: #000;
    max-height: 2.25rem;
    text-align: right;
    float: right;
}

form input {
    box-shadow: inset #ccc 0 0 .15rem, inset 0 -.25rem 0 #f00;
    display: inline-block;
    margin: .25rem auto;
    padding: .5rem;
    width: 60%;
    border: 0;
    background: #fff;
    line-height: 1.1;
    font-family: ubuntu;
}

form input[type="submit"] {
    box-shadow: none;
    display: inline-block;
    width: 30%;
    max-width: 9rem;
    border: 0;
    background: #f00;
    font-weight: bold;
    line-height: 1.1;
    cursor: pointer;
    color: #fff;
    letter-spacing: .3em;
}

label {
    cursor: pointer;
    display: inline-block;
    width: 93%;
    text-align: left;
}

label:first-letter {
    color: #f00;
}

footer {
    background: #fff;
    box-shadow: inset #aaa 0 .025rem .15rem;
    position: fixed;
    bottom: 0;
    text-align: left;
    left: 0;
    width: 100%;
    z-index: 1;
    max-height: 2.25rem;
}

footer a {
    text-decoration: none;
}

footer h1 {
    padding: 0 .5rem;
    line-height: 1;
    white-space: nowrap;
    font-size: 1rem;
}

footer img {
    display: inline-block;
    margin: .5rem .5rem .25rem .5rem;
    max-width: 7.25rem;
    float: right;
}

 ::selection {
    background: #f00;
    color: #fff;
}

@media(min-width:600px) {
    body {
        text-align: left;
    }
    form {
        max-width: 70%;
    }
    header img {
        display: inline-block;
        margin: .5rem .5rem .25rem .5rem;
        max-width: 7.25rem;
    }
    main {
        width: 37%;
    }
    article {
        width: 32.25%;
        width: calc(33% - .25rem);
    }
    aside {
        width: 29.25%;
        width: calc(30% - .25rem);
    }
}