:root {
    --color-primary: #df212a;
    --color-secondary: #9c2129;
}

::selection      { background: var(--color-secondary); color: #fff; }
::-moz-selection { background: var(--color-secondary); color: #fff; }

::-webkit-scrollbar             { width: 1em; height: 1em;            }
::-webkit-scrollbar-track       { background: #ccc;                   } /* Track */
::-webkit-scrollbar-thumb       { background: var(--color-primary);   } /* Handle */
::-webkit-scrollbar-thumb:hover { background: var(--color-secondary); } /* Handle on hover */

body {
    font-family: 'Oswald', sans-serif;
    background: #ebebeb;
}

.color-theme {
    color: var(--color-primary);
}

.content {
    max-width: 800px;
    margin: 0 auto;
}

.header {
    align-items: flex-end;
    border-bottom: 1px solid var(--color-primary);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 10px 0;
    padding-bottom: 5px;
}

.header .title {
    font-size: 28px;
    font-weight: bold;
}

.form {
    border-bottom: 1px solid #444;
}

.results .table {
    border-color: #ccc;
}

.results .table > :not(:first-child) {
    border-top: 2px solid #ccc;
}

.results .table tbody > tr:last-child > td {
    border-bottom: 0;
}

/* Select2 */

.select2-selection {
    padding: .375rem .75rem;
}

.select2-container--default .select2-selection--multiple {
    padding-right: 52px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow,
.select2-container--default .select2-selection--multiple .select2-selection__arrow {
    align-items: center;
    background: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    display: flex;
    height: 100%;
    justify-content: center;
    top: 0;
    width: 40px;
    position: absolute;
    right: 0;
    cursor: pointer;
}

.select2-container--default .select2-selection__arrow:hover {
    background: var(--color-secondary);
}

.select2-container--default .select2-selection--single {
    border-color: transparent;
}

.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--multiple {
    border-color: var(--color-primary);
}

.select2-container--default .select2-selection--single .select2-selection__arrow .input-icon,
.select2-container--default .select2-selection--multiple .select2-selection__arrow .input-icon {
    color: #fff;
    transition: ease .3s;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow {
    border-bottom-color: var(--color-primary);
    border-right-color: var(--color-primary);
    border-top-color: var(--color-primary);
}

.select2-container--default.select2-container--open.select2-container--above .select2-selection--single .select2-selection__arrow,
.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple .select2-selection__arrow {
    border-top-right-radius: unset;
}

.select2-container--default.select2-container--open.select2-container--below .select2-selection--single .select2-selection__arrow,
.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple .select2-selection__arrow {
    border-bottom-right-radius: unset;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow .input-icon,
.select2-container--default.select2-container--open .select2-selection--multiple .select2-selection__arrow .input-icon {
    transform: rotate(.5turn);
}

.select2-container .select2-selection--single {
    height: unset;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 1.5;
    padding-left: unset;
    padding-right: unset;
}

.select2-selection .select2-selection__choice {
    margin: .15em .3em .15em 0 !important;
}

.select2-selection .select2-search .select2-search__field {
    font-family: 'Montserrat', sans-serif;
    height: 26px;
    line-height: 1.5;
    margin: 0 !important;
}

.select2-container--default .select2-results__group {
    padding-bottom: 3px;
}

.select2-container--default .select2-results__option {
    padding-bottom: 3px;
    padding-top: 3px;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: var(--color-primary);
}

.select2-dropdown {
    border-color: var(--color-primary);
}

.select2-dropdown .select2-search .select2-search__field:focus {
    outline: none;
}
