@font-face {
    font-family: 'Barlow';
    font-weight: 400;
    src: local('Barlow Regular'), local('Barlow-Regular'), url('../assets/fonts/Barlow-Regular.ttf') format('truetype');
}

:root {
    --main-bg-color: #1b1b1b;
    --color: #9c9c9c;
    --light-color: #d2d2d2;
    --dark-color: #424242;
    --selected-color: #00e5ff;
    --selected-light-color: #00c4ff;
}

body,
input {
    font-family: 'Barlow', sans-serif;
    height: 100%;
}

body,
input,
.header,
.content .content-title-container span {
    background-color: var(--main-bg-color);
}

body {
    margin: 0 10%;
}

.flex-start,
.flex-center,
.flex-end,
.flex-space-around,
.flex-space-between {
    display: flex;
    align-items: center;
}
.flex-space-around {
    justify-content: space-around;
}
.flex-space-between {
    justify-content: space-between;
}
.flex-start {
    justify-content: flex-start;
}
.flex-center {
    justify-content: center;
}
.flex-end {
    justify-content: flex-end;
}

.header,
.header .container {
    flex-wrap: wrap;
}

.header {
    width: 100%;
    padding: 10px 15px 10px 15px;
    z-index: 1;
    border-bottom: 1px solid var(--dark-color);
    position: fixed;
    top: 0;
    left: 0;
    box-shadow: 0 1px 5px #000000;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header .container {
    overflow: visible;
    opacity: 1;
    height: 75px;
    transition: opacity 0.5s ease-in, height 0.35s ease-out;
    padding: 5px 0;
}

.header .container.hidden {
    overflow: hidden;
    height: 0;
    opacity: 0;
    padding: 0;
    transition: opacity 0.5s ease-out, height 0.5s ease-out;
}

.header .container > * {
    flex: 1;
}

.header .search-bar-container,
.header .search-bar-container input {
    color: white;
}

.header .search-bar-container {
    background-color: black;
    border-radius: 40px;
    height: 34px;
    position: relative;
    flex: 1;
    margin-right: 20px;
}

.header .search-bar-container input:focus {
    border: none;
}

.header .search-bar-container .search-icon {
    height: 20px;
    position: absolute;
    left: 5px;
    background: transparent;
}

.header .search-bar-container #search-bar {
    background-color: transparent;
    margin-left: 40px;
    height: 100%;
    width: 100%;
    font-size: 18px;
    border: 0;
    outline: none;
}

.header .search-bar-container.firefox #search-bar {
    margin: 0 35px 0 40px;
}

.header .search-bar-container.firefox #cancel-icon {
    position: absolute;
    right: 15px;
    top: 12px;
    cursor: pointer;
}

input[type='search']::-webkit-search-cancel-button {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    padding-right: 15px;
    background: url('../assets/images/search-close.svg') no-repeat right center #000000;
    background-origin: content-box;
    cursor: pointer;
}

.header select {
    margin-left: 5px;
}

input:focus,
.select:focus {
    outline-width: 0;
}

.header .container .random-button {
    margin-top: 5px;
}

/* SELECT **/

.select {
    flex: 1;
    height: 30px;
    min-width: 160px;
    margin-left: 15px;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
}

#tag-select {
    z-index: 4;
}

.select .option {
    color: var(--color);
    padding: 0 30px 0 20px;
    min-height: 30px;
    display: flex;
    align-items: center;
    background: transparent;
    border-top: var(--main-bg-color) solid 1px;
    position: absolute;
    top: 0;
    width: 100%;
    pointer-events: none;
    order: 2;
    z-index: 1;
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
    cursor: pointer;
}

.select .option:hover {
    color: #fff;
}

.select:focus .option:last-child {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.select:focus .option {
    position: relative;
    pointer-events: all;
    background: #0f0f0f;
    text-transform: capitalize;
}

.select input {
    opacity: 0;
    position: absolute;
    left: -99999px;
}

.select input:checked + label {
    order: 1;
    z-index: 2;
    background: #000;
    border-top: none;
    position: relative;
    border-radius: 4px;
    text-transform: capitalize;
}

.select:focus input:checked + label {
    background: #000;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.select input:checked + label:after {
    content: url('../assets/images/select-arrow.svg');
    position: absolute;
    right: 15px;
    top: 2px;
    pointer-events: none;
    z-index: 3;
}

.select input:checked + label:after {
    transition: all 0.5s ease 0s;
}

.select:focus input:checked + label:after {
    transform: rotate(180deg);
    top: 5px;
}

.select input:checked + label:before {
    position: absolute;
    right: 0;
    height: 30px;
    width: 40px;
    content: '';
    background: #000;
}

/** CONTENT **/

.content {
    margin-top: 80px;
    color: white;
}

.content .content-container.hidden {
    margin-bottom: 25px;
}

.content .content-title-container {
    color: var(--color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.content .content-title-container span {
    text-transform: uppercase;
    font-size: 18px;
    font-weight: bold;
    padding: 0 10px;
    position: relative;
}

.content .content-title-container .line {
    color: var(--color);
    line-height: 0.1em;
    border-bottom: 1px solid var(--dark-color);
    flex: 1;
}

.content .content-title-container .content-title {
    padding-right: 0;
}

.content .content-title-container .content-title,
.collapse-icon {
    cursor: pointer;
}

.collapse-icon {
    transform: rotate(180deg);
    transition: transform 0.5s ease 0s;
}

.collapse-icon.rotate {
    transform: rotate(0deg);
}

.favourite-container {
    margin-bottom: 40px;
}

.content .voice-container {
    margin: 5px 0;
    flex-direction: column;
    position: relative;
}

.content .voice-container .voice-image-container {
    background: var(--light-color);
    border-radius: 50%;
    overflow: hidden;
}
.content .voice-container.selected .voice-image-container {
    background: linear-gradient(45deg, var(--selected-color), var(--selected-light-color));
}

.fav-icon-container {
    transition: opacity 0.25s ease-in-out;
}

.content .voice-container .fav-icon-container {
    position: absolute;
    top: 0;
    right: 15%;
    height: 30px;
    width: 30px;
    background: var(--light-color);
    border-radius: 50%;
    opacity: 0;
}

.icon-container .icon {
    background-color: var(--color);
    cursor: pointer;
}

#filter-icon,
#random-icon,
#sort-icon {
    width: 32px;
    height: 32px;
}

#filter-icon {
    -webkit-mask: url('../assets/images/filter.svg') no-repeat center;
    mask: url('../assets/images/filter.svg') no-repeat center;
}

#sort-icon {
    -webkit-mask: url('../assets/images/order.svg') no-repeat center;
    mask: url('../assets/images/order.svg') no-repeat center;
}

#random-icon {
    -webkit-mask: url('../assets/images/button-random.svg') no-repeat center;
    mask: url('../assets/images/button-random.svg') no-repeat center;
}

#fav-icon {
    width: 15px;
    height: 15px;
    -webkit-mask: url('../assets/images/voice-favourite-off.svg') no-repeat center;
    mask: url('../assets/images/voice-favourite-off.svg') no-repeat center;
}

#menu-icon {
    width: 30px;
    height: 30px;
    -webkit-mask: url('../assets/images/list.svg') no-repeat center;
    mask: url('../assets/images/list.svg') no-repeat center;
}

.content .voice-container .voice-image-container.hovered,
.content .voice-container .fav-icon-container.hovered {
    background-color: white;
}

.content .voice-container .fav-icon-container.hovered {
    opacity: 1;
}

.icon-container,
.voice-image-container {
    cursor: pointer;
}

.icon-container .icon {
    transition: transform 0.25s ease-in-out;
}

.icon-container .icon.selected {
    background-color: var(--selected-color);
}

.icon-container .icon:hover:not(.fav-icon),
.icon-container .icon:active:not(.fav-icon),
.icon-container.selected .icon:not(.fav-icon) {
    background-color: var(--selected-color);
}

.icon-container .icon.reverse {
    transform: scaleY(-1);
}

.content .voice-container .voice-label {
    margin-top: 5px;
    font-weight: bold;
    font-size: 14px;
    color: var(--light-color);
}
.content .voice-container.selected .voice-label {
    color: var(--selected-color);
}

.row > * {
    padding: 0;
}

/* smartphones, touchscreens */
@media (hover: none) and (pointer: coarse) {
    .content .voice-container .fav-icon-container {
        opacity: 1;
    }
}

@media (min-width: 1200px) {
    body,
    .header {
        margin: 0 20%;
    }

    .header,
    .header .container {
        flex-wrap: nowrap;
    }

    .header {
        width: 60%;
        padding: 5px;
        height: 50px;
        border: none;
        box-shadow: none;
    }

    .header .container {
        justify-content: flex-end;
        padding: 0;
        overflow: hidden;
        height: auto;
        transition: none;
    }

    .header .container > *,
    .select {
        flex: 0;
    }

    .header .container.hidden {
        height: auto;
        transition: none;
        opacity: 1;
        overflow: visible;
    }

    .header .sort-selector {
        margin: 0 30px;
    }

    .header .menu-icon-container {
        display: none;
    }

    .header .search-bar-container {
        min-width: 250px;
        flex: 0;
        margin-right: 0;
    }

    .header .container .random-button {
        margin-top: 0;
    }

    .content {
        padding: 20px;
        width: 90%;
        margin-top: 75px;
    }

    .content .content-title-container {
        justify-content: flex-start;
    }

    .content .content-title-container .pre-line {
        flex: 0;
    }

    .content .content-title-container .content-title {
        padding-right: 10px;
        cursor: auto;
    }

    .content .content-title-container .collapse-icon {
        visibility: hidden;
        width: 0;
        padding: 0;
    }

    .content .voice-container .fav-icon-container {
        right: 25px;
    }

    .col-xl-2 {
        flex: 0 0 auto;
        width: 25%;
    }

    #sort-icon {
        width: 30px;
        height: 30px;
    }
    #sort-icon {
        width: 20px;
        height: 20px;
    }
}

@media (min-width: 1400px) {
    .col-xl-2 {
        flex: 0 0 auto;
        width: 16.6666666667%;
    }
}

/* 768px */
