/****************************************************
Table of contents:
*****************************************************
1. Body
2. Sections
3. Headings
4. Lists
5. Links
6. Other media
*****************************************************/

/* Body 
*****************************************************/
body {
    max-width: 800px;
    font-family: calibri, Verdana, sans-serif;
    font-size: 100%;
    font-size-adjust: .46;
    text-align: justify;
    color: black;
    background-color: lavender;
    padding: 0;
    margin: 0 auto;
    border-radius: 10px;
}

#main {
    background-color: white;
    margin: 0 auto;
    padding: 0;
    border-radius: 5px;
}

/* Sections
*****************************************************/
section {
    margin: 2%;
}

article {
    margin: 1ex 0 0;
    width: 98%;
    display: inline-block;
    padding: 1ex;
    background: LightCyan;
    border-radius: 5px;
}

article ul {
    float: left;
    margin-left: 1em;
}

article img {
    float: left;
    vertical-align: text-bottom;
    height: 6em;
}

article ul li:first-child {
    font-size: 110%;
    font-weight: bold;
}

section p {
    padding-top: 1ex;
}

section > img {
    float: right;
    padding: 2ex;
    width: 35%;
}

/* Headings 
*****************************************************/
header {
    font-size: 120%;
    padding: 1ex 0 2ex 23%;
    background-repeat: no-repeat;
    background-size: 20% auto;
    background-position: 1% 50%;
    background-image: url('feder.jpg');
}

nav, footer {
    color: white;
    background-color: black;
    font-size: 110%;
    padding: 0 1ex 0 1ex;
}

footer {
    border-radius: 0 0 5px 5px;
}

footer p {
    padding: 1ex 1em 1ex 2.5em;
    background-repeat: no-repeat;
    background-size: 1.5em auto;
    background-position: 1ex 50%;
    background-image: url('vi.jpg');
}

h1, h2, h3 {
    color: darkblue;
    page-break-after: avoid;
    text-align: left;
}

h1 {
    font-size: 150%;
}

h2 {
    font-size: 125%;
}

section h2 {
    padding: 1ex 0 0.5ex 0;
}

/* Lists
*****************************************************/
li {
    text-align: left;
}

section > ul {
    list-style-type: square;
    margin: 0 1ex 0 1em;
}

article ul {
    list-style-type: none;
}

section > ul > li {
    margin-bottom: 0.5ex;
}

/* Links 
*****************************************************/
a {
    text-decoration: none;
    word-wrap: break-word;
}
a:link {
    color: blue;
}
a:visited {
    color: darkblue;
}
a:hover {
    color: lightblue;
}

nav a {
    text-decoration: none;
    word-wrap: break-word;
}
nav a:link, nav a:visited {
    color: white;
}
nav a:hover {
    color: lightblue;
}

nav ul {
    display: inline-block;
}

nav li {
    float: left;
    margin: 1ex 1em 1ex 0;
}


@media only screen and (max-width: 550px) {
/****************************************************/
body, article, footer {
    border-radius: 0;
}

article img {
    display: none;
}

header {
    font-size: 100%;
    padding: 11ex 1ex 1ex 1ex;
    background-size: auto 10ex;
    background-position: 0.5ex 0.5ex;
}

p {
    text-align: left;
}
/****************************************************/
}

