* {
    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;
}

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

.item {
    margin-bottom: 4px;
}

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

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

.group {
    position: relative;
}

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

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

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

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

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

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

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

.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;
    }
}
