@import url(//fonts.googleapis.com/css?family=Open+Sans:300,400,600&subset=latin,latin-ext,cyrillic,cyrillic-ext,greek,greek-ext,vietnamese);
html {
    font: normal 13px/1.4 "Open Sans", "Helvetica Neue", Helvetica, sans-serif;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    color: #000;
}

body {
    background-image: url('../img/hatter.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

header {
    height: 30%;
    min-height: 8rem;
}
header h1 {
    text-align: center;
    font-size: 3rem;
    font-weight: bold;
    color: white;
}
nav {
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: flex-start;
    padding: .3rem;
    position: absolute;
    top: 5rem;
    left: 1rem;
    width: 9rem;
    bottom: 2rem;
}

main {
    position: absolute;
    top: 6rem;
    right: 1rem;
    bottom: 2rem;
    left: 11rem;
    padding: .3rem;
    background-color: rgba(255, 255, 255, 0.5);
    color: black;
    border-radius: 1rem;
    overflow: auto;
}
main h2 {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
}

main article {
    margin: 1rem;
}
main article h3:hover {
    cursor: pointer;
}
main article h3::before {
    content: "> ";
}
main article p {
    display: none;
    padding-left: .2rem;
    margin-top: .4rem;
    margin-left: 2rem;
}

footer {
    color: white;
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2rem;
    line-height: 2rem;
    text-align: right;
    font-size: .8rem;
    padding-right: .5rem;
}

@media (max-width: 800px) {
    nav {
        flex-direction: row;
        right: 1rem;
        width: auto;
    }
    main {
        top: 15rem;
        left: 1rem;
    }
    header h1 {
        font-size: 2rem;
    }
}