* {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    word-wrap: break-word;
}

html, body {
    margin: 0;
    background: #333;
}

#cv {
    padding: 10px 10px 20px;
    background: #fff;
}

h1 {
    text-align: center;
    background: #333;
    margin: 0;
    padding: 1.2rem 0;
    color: #fff;
}

h2 {
    margin: 2rem 0 .7rem;
}

body > h2 {
    text-align: center;
    background: #333;
    margin: 0;
    padding: 0 0 1.2rem;
    color: #fff;
    font-weight: normal;
    font-size: 1.25rem;
}


.section:first-child h2 {
    margin-top: 0;
}

.item {
    margin-bottom: 4px;
}

.item > div {
    padding: 5px 0;
}

.item .description ul {
    padding: 0 0 0 25px;
    margin: 0 0 25px;
}

.item .description ul li {
    padding: 15px 0 0;
}

.period, .label {
    width: 8rem;
    float: left;
}

.section {
    position: relative;
}

.section img {
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    transition: width .5s, height .5s;
}

@media (max-width: 900px) {
    .section img {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 600px) {
    .section img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .section img {
        width: 50px;
        height: 50px;
    }
}

.name {
    font-weight: bold;
    margin-bottom: .3rem;
}

.name h3 {
    margin: -2px 0 -20px;
}

.name + p {
    margin-top: 0;
}

.name + p.description {
    margin-bottom: .8rem;
}

.description h4 {
    margin: 25px 0 0;
}

.info {
    width: 100%;
}

.period + .info, .label + .value {
    width: calc(100% - 8rem);
    float: left;
}

.label {
    font-weight: bold;
    margin: 0;
}

.space {
    height: 1.2rem;
}

.value {
    margin: 0;
}

.item:after, .info:after {
    content: "";
    display: table;
    clear: left;
}

p:first-child {
    margin-top: 0;
}

p:last-child {
    margin-bottom: 0;
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0 20px;
}

@media only print {
    h1 {
        background: #fff;
        color: #000;
    }

    a {
        color: #000;
        text-decoration: none;
    }

    .no-print {
        display: none
    }

    footer {
        background: #fff;
        color: #000;
        border-top: 1px solid #333;
    }
}

@media only screen {
    .no-screen {
        display: none
    }
}
