* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    background-color: white;
}

body {
    font-family: sans-serif;
    padding: 0;
    margin: 2em auto;
    max-width: 18em;
}

@media screen and (min-height: 35em) {
    body {
        margin: 0;
        position: absolute;
        left: 50%;
        top: 45%;
        -webkit-transform: translate(-50%, -50%);
        -moz-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
        -o-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
    }
}

@media screen and (min-width: 35em) {
    body {
        max-width: 25em;
    }
}

.siteslogan {
    font-family: "Exo 2";
    font-size: 100%;
    text-align: right;
    font-weight: 200;
    margin-top: 1em;
}

@media screen and (min-width: 35em) {
    .siteslogan { font-size: 125%;}
}


footer {
    text-align: center;
    font-weight: bold;
    color: #ccc;
    font-family: sans-serif;
    margin-top: 3em;
    font-size: 90%;
}

@media screen and (min-width: 35em) {
    footer { font-size: 100%; }
}

.msg {
    margin-top: 3em;
    font-size: 14px;
    position: relative;
}

@media screen and (min-width: 35em) {
    .msg {
        font-size: 16px;
    }
}

.msg h2 {
    color: #555;
    font-size: 2em;
}
.msg p {
    color: #888;
    line-height: 1.5;
}
.msg a {
    color:#b02800;
}

.msg [class*='code-']:after {
    color: #ddd;
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
    top: -0.5em;
    left: 0.25em;
}
.msg .code-404:after {
    content: "404";
}

a {
    margin: -0.5em;
    padding: 0.5em;
    border-radius: 10px/20px;
    text-decoration: none;
    -webkit-transition: all 0.5s 0s ease-in-out;
    -moz-transition: all 0.5s 0s ease-in-out;
    -ms-transition: all 0.5s 0s ease-in-out;
    -o-transition: all 0.5s 0s ease-in-out;
    transition: all 0.5s 0s ease-in-out;
}

a:hover {
    background: rgb(230,230,230);
    background: rgba(222,222,222,0.7);
}

footer a {
    color: #aaa;
    background: none;
}

footer a:hover {
    color: #b02800;

}

.faded {
    opacity: 0.5;
}

.fadein {
    opacity: 0;
    -webkit-transition: opacity 1s 0.5s ease-in-out;
    -moz-transition: opacity 1s 0.5s ease-in-out;
    -ms-transition: opacity 1s 0.5s ease-in-out;
    -o-transition: opacity 1s 0.5s ease-in-out;
    transition: opacity 1s 0.5s ease-in-out
}
