/* main.css     
 *    CSS for JSON project
 *    Date:         2020-08-04
 *    Last revised: 2020-08-04
 *    Description:  CSS for JSON project - styling
 *                  the output
 */    

* {
    box-sizing: border-box;
    content: '';
    clear: both;
    font-size: 20px;
    margin: 0;
}

body {
    background: #fbfbfb;
    color: #444;
    font-family: sans-serif;
    font-size: 1em;
    font-weight: 300;
}

header {
    margin: 0;
    width: 100%;
    height: 75px;
    padding: 20px 0 20px 100px;
    font-size: 2.5rem;
    background: #444;
    color: #fbfbfb;
    font-weight: 300;
}

h1,
h2,
h3 {
    font-weight: 200;
    margin: 10px 0;
    padding-left: 50px;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

.back {
    position: fixed;
    display: block;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    color: cornflowerblue;
    font-size: 4rem;
}

.back:hover {
    transition: .3s;
    color: orangered;
}

br {
    display: block;
    margin-top: 5px;
    line-height: 1em;
}

.center-text {
    padding: 0;
    text-align: center;
}

.container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    width: 95%;
    min-height: 600px;
    margin: 20px auto 75px auto;
    padding: 25px;
}

.container .ex {
    margin-top: 20px;
    width: 45%;
    margin-right: 15px;
    border: .5px solid #777;
}

.ex h1,
.ex h2,
.ex h3 {
    margin-top: 0;
    background: #fbfbfb;
    color: #444;
    border-bottom: .5px solid black;
}

.container .co {
    margin-top: 20px;
    width: 45%;
    border: .5px solid #777;
    background: #1e1e1e;
}

.co h1,
.co h2,
.co h3 {
    margin-top: 0;
    background: #fbfbfb;
    color: #444;
    border-bottom: .5px solid black;
}

a {
    text-decoration: none;
}

br {
    display: block;
}

p {
    max-width: 600px;
    margin: 15px auto;
    padding: 15px;
    font-size: 1.2rem;
}

.spacer {
    display: block;
    font-size: 1.5rem;
    margin: 15px 0 10px 0;
    border-bottom: .5px solid #bbb;
}

ul {
    margin-left: 100px;
    margin-top: 25px;
}

li {
    font-size: 1.2rem;
    line-height: 2.5rem;
}

li a {
    font-size: 1.3rem;
}

li a:hover {
    transition: .3s;
    color: indianred;
}