body {
    min-height: 611px;
    padding: 0px;
    margin: 0px;
    overflow-x: hidden;
}
body * {
    font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
}
h1 {
    margin-bottom: 0;
}

.cpv-row.current-match mark {
    border: 0.2em;
    border-color: #F78154;
    border-style: solid;
}

.logo {
    height: 50px;
    padding: 5px 10px;
    margin: 0;
    border: 0;
    background-color: black;
}
.main-content {
    padding: 20px;
}
#logo {
    float: left;
    width: 230px;
}
#cpv-presentation {
    -ms-flex-preferred-size: 60%;
    flex-basis: 60%;
    min-height: 300px;
    max-height: 500px;
    width: 100%;
    border-top: 1px;
    border-top-style: solid;
    border-bottom: 1px;
    border-bottom-style: solid;
    overflow: auto;
}
#cpv-selected {
    -ms-flex-preferred-size: 40%;
    flex-basis: 40%;
    padding-left: 0.5em;
    min-height: 300px;
    width: 100%;
    border-top: 1px;
    border-top-style: solid;
    border-bottom: 1px;
    border-bottom-style: solid;
}
#cpv-search { 
    padding: 10px 0;
    margin: 10px 0;
    min-width: 22em;
    border-top: 1px;
    border-top-style: solid;
}

button {
    padding: 3px;
    margin: 0;
    border: 0;
    box-shadow: none;
    border-radius: 0px;
}
button.highlight {
    background-color: #5fad56;
    color: white;
}

button.selected, .cpv-row.selected button {
    background-color: #47687f;
    color: #e3e3e3;
}
.cpv-row:nth-child(odd) {
    background-color: #e3e3e3;
}
.cpv-row.cpv-row.nonexistant {
    background-color: #fc5050;
}
.cpv-row {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: row;
        flex-direction: row;
    -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
    -ms-flex-pack: justify;
        justify-content: space-between;
    padding:0;
    margin:0;
    -ms-flex-align: start;
        align-items: flex-start;
}

.cpv-row .cpv-code {
    padding: 0.2rem;
    margin: 0;
    -ms-flex-preferred-size: 15%;
        flex-basis: 15%;
    text-align: end;
}
.cpv-row .cpv-text {
    padding: 0.2rem;
    padding-left: 1rem;
    margin:0;
    min-width: 5em;
    -ms-flex-preferred-size: 80%;
        flex-basis: 80%;
}
.cpv-row button {
    padding: 0.2rem;
    -ms-flex-preferred-size: 5%;
        flex-basis: 5%;
    min-width: 3em;
    -ms-flex-item-align: stretch;
        align-self: stretch;
}
.cpv-row.selected button {
    border-bottom: 0.1rem;
    border-bottom-style: solid;
    border-bottom-color: white;
}
.cpv-row.cpv-division {
    position: sticky;
    top: 0;
    background-color:#333333;
    color: #FFFFFF;
    min-height: 2.5rem;
}
.cpv-row.cpv-division .cpv-text {
    padding-left: 0.2rem;
}
.code-paging {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: center;
        justify-content: center;
}
#states {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: baseline;
        align-items: baseline;
}
#search-state {
    -ms-flex-preferred-size: 60%;
        flex-basis: 60%;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: baseline;
        align-items: baseline;
    width: 100%;
}
#copy-state {
    -ms-flex-preferred-size: 40%;
        flex-basis: 40%;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: baseline;
        align-items: baseline;
    width: 100%;
}
#highlight-nav {
    margin-left: 0.5em;
    text-align: end;
}

.code-paging button {
    -ms-flex-item-align: stretch;
        align-self: stretch;
    width: 10%;
    background-color: #5fad56;
    font-weight: bold;
    color: white;
    border-right: 0.1rem;
    border-right-style: solid;
    border-right-color: white;
}


@media (max-width: 950px) {
    #cpv-selector {
        display: -ms-flexbox;
        display: flex;
        -ms-flex-direction: column;
            flex-direction: column;
    }
    #states {
        display: -ms-flexbox;
        display: flex;
        -ms-flex-direction: column;
            flex-direction: column;
    }
    .main-content {
        padding: 0.1em;
    }
    #cpv-selected {
        border-top: 0px;
    }
}
@media (min-width: 950px) {
    #cpv-selector {
        display: -ms-flexbox;
        display: flex;
        -ms-flex-direction: row;
            flex-direction: row;
        -ms-flex-wrap: nowrap;
            flex-wrap: nowrap;
    }
    #cpv-presentation {
        width: 100%;
        max-width: 800px;
        border-left: 1px;
        border-left-style: solid;
    }
    #cpv-selected {
        width: 100%;
        max-width: 600px;
        border-left: 1px;
        border-left-style: solid;
        border-right: 1px;
        border-right-style: solid;
    }
    #search-state {
        max-width: 800px;
    }
    #copy-state {
        max-width: 600px;
        padding-left: 5px;
    }
}