@import url('https://fonts.googleapis.com/css2?family=Raleway&display=swap');

/*
    Root 
*/

:root {
    --red: #f0183c;
    --purple: #cd43e6;
    --blue: #596ee2;
    --lightblue: #79e0ff;
    --green: #16f086;
    --yellow: #ffdc17;
    --orange: #ff9d1c;
}

/* 
    Pre-Base 
*/

html,
body {
    background-color: #222;
    background-image: url('../images/background.jpg');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    color: #fff;
    margin: 0;
    height: 100%;
}

/* 
    Scrollbar 
*/

::-webkit-scrollbar {
    width: 1em;
    height: 0px;
}

::-webkit-scrollbar-track {
    background: #eee;
}

::-webkit-scrollbar-thumb {
    background: #555;
}

::-webkit-scrollbar-thumb:hover {
    background: #777;
}

/* 
    General 
*/

#main {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 150px 0;
}

h1 {
    margin: 0;
}

h2 {
    margin-bottom: 125px;
}

h1, h2 {
    font-family: Raleway, sans-serif;
    text-shadow: 2px 2px #222;
}

#grid {
    display: grid;
    grid-gap: 20px 20px;

    font-family: Raleway, sans-serif;
}

#grid>.item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    text-align: right;
    width: 180px;
    height: 180px;
    border: 1px solid #777;
    border-radius: 20px;

    background-color: #222;
}

/* next each other */
#grid>.item>.nxt-eo {
    width: 128px;
    display: flex;
    justify-content: space-between;
}

#grid>.item>div {
    font-weight: bold;
    font-size: 16px;
}

#grid span {
    font-size: 20px;
}

#grid p {
    margin-top: 0;
    margin-bottom: 0;
    width: 128px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

#grid p.sub {
    color: #ccc;
    font-size: 12px;
}

#grid p.main {
    font-size: 16px;
}

#grid a {
    text-decoration: none;
    color: inherit;
}

#grid img {
    margin: 16px 0;
}

.filters {
    grid-column: 1 / 8;

    display: flex;
    align-items: flex-end;
    justify-content: flex-end;

    width: 100%;
}

.form {
    display: flex;
    justify-content: space-between;

    position: relative;
    min-width: 200px;
    padding: 10px 20px;
    border: 1px solid #777;
    border-radius: 20px;
    margin-left: 20px;

    background-color: #222;
}

.form:hover {
    cursor: pointer;
}

.form>div {
    display: flex;
}

.form>div>p {
    margin-left: 10px;
    width: auto !important;
}

.dropdown {
    display: none !important;
    cursor: default;

    position: absolute;
    top: 0;
    left: 0;

    margin-top: 50px;
    width: calc(100% - 40px);
    border: 1px solid #777;
    border-radius: 20px;
    padding: 10px 20px;
    background-color: #222;
    z-index: 1;
}

.assign {
    font-weight: 400;
    transition: 0.1s all;
}

.assign:hover {
    color: #888;
    cursor: pointer;
}

.show {
    display: block !important;
}

.hide {
    display: none !important;
}

.cv-flip {
    transform: scaleY(-1) translateY(3px);
}

#filter-cv,
#sort-cv {
    transition: 0.2s transform;
}

/* Dropdowns */

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

ul li {
    padding: 15px;
    border-bottom: 1px solid #777;
    cursor: pointer;
    
    transition: 0.1s color;
}

ul li:hover {
    color: #888;
}

ul li:last-child {
    border: 0;
}

ul li:before {
    font-family: "Font Awesome 5 Free";
    font-weight: 400;
    margin-right: 10px;
}

#filter-dd ul li:before {
    content: '\f14a';
}

#filter-dd ul li.nd:before {
    content: '\f0c8' !important;
}

#sort-dd ul li:before {
    content: '\f058';
}

#sort-dd ul li.nd:before {
    content: '\f111' !important;
}

/* Media queries */

@media screen and (max-width: 1500px) {
    .filters {
        grid-column: 1 / 7;
    }
}

@media screen and (max-width: 1300px) {
    .filters {
        grid-column: 1 / 6;
    }
}

@media screen and (max-width: 1100px) {
    .filters {
        grid-column: 1 / 5;
    }
}

@media screen and (max-width: 900px) {
    .filters {
        grid-column: 1 / 4;
    }
}

@media screen and (max-width: 700px) {
    h1 {
        font-size: 1.5em;
    }

    h2 {
        font-size: 1em;
    }

    .filters {
        grid-column: 1 / 3;
    }

    .form {
        min-width: 140px;
        width: 140px;
        margin-left: 0;
    }

    .form:last-child {
        margin-left: 20px;
    }
}

@media screen and (max-width: 500px) {
    .filters {
        grid-column: 1 / 2;
        flex-direction: column;
    }

    .form:last-child {
        margin-left: 0;
        margin-top: 20px;
    }
}

/* Footer */

#content {
    min-height: 100%;
    /* equal to footer height */
    margin-bottom: -100px;
    overflow-x: hidden;
}

#footer,
#content:after {
    height: 100px;
}

#content:after {
    content: "";
    display: block;
}

#footer {
    background-color: #222;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.2em;
    font-family: Raleway, Arial, Helvetica, sans-serif;
    color: #aaa;
    padding: 0 15%;
    width: 70%;
}

#footer a {
    color: inherit;
    text-decoration: none;
}

#footer a:hover {
    color: #fff;
}

.disabled {
    cursor: not-allowed;
}

.disabled > a {
    pointer-events: none;
    color: #888;
}