* {
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}
b {
    font-weight: bold;
}
a[href] {
    color: #7e5deb;
    text-decoration: none;
}
a[href]:hover {
    text-decoration: underline;
}
h1, h2, h3 {
    margin-top: 0;
}

.reverse-seasons {
    position: absolute;
    right: 0;
    top: 0.5rem;
}
.season-link {
    top: 1rem;
    right: 9rem;
    position: absolute;
}

.overlay {
    position: fixed;
    text-align: center;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.7);
    display: none;
}
.overlay-box {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 9rem;
    width: 40rem;
    background: #7e5deb;
    color: rgba(255, 255, 255, 0.85);
    margin: auto;
}

.overlay-box td {
    padding: 1.5rem;
}
.overlay-button-container {
    text-align: center;
    margin-top: 1.25rem;
}
.overlay-button {
    display: inline-block;
    padding: 0.5rem;
    background: #6a4ec6;
    color: #fff;
    cursor: pointer;
    width: 150px;
    margin: 0.25rem 0.75rem;
}
.overlay-button:hover {
    text-decoration: none;
}
.overlay .message {
}

.header-spacer {
    height: 7.5rem;
    width: 100%;
}

h3 {
    font-weight: bold;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    font-size: 2rem;
    background-color: #7e5deb;
    color: #fff;

    z-index: 8888;
}
nav.menu {
    position: fixed;
    top: 4.3rem;
    left: 0;
    right: 0;
    padding: 0.5rem;
    background: #eee;
    z-index: 8888;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
header nav {
    font-size: 1.4rem;
    float: right;
    margin-top: -0.2rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.2);
}
header nav .fa {
    opacity: 0.5;
    cursor: pointer;
}
header nav .fa:hover {
    opacity: 1;
}

.main, .menu-inside, .header-inside, footer {
    max-width: 95%;
    width: 1000px;
    margin: auto;
    position: relative;
}
.header-inside a {
    color: #fff;
}
.header-inside a:hover {
    text-decoration: none;
}

footer {
    margin-top: 2rem;
    padding-top: 0.5rem;
    border-top: 1px solid #ccc;
    color: #999;
    text-align: right;
}

/** list tables **/
.list-table {
    border-collapse: collapse;
    width: 100%;
    text-align: left;
    margin-bottom: 1.5rem;
}
.list-table thead tr {
    border-bottom: 4px solid #ccc;
    background: #eee;
}
.list-table thead tr th {
    border-right: 1px solid #ccc;
}
.list-table thead tr th:last-child {
    border: 0;
}
.list-table tfoot tr {
    border-top: 4px solid #ccc;
    background: #eee;
    text-align: center;
    cursor: pointer;
    color: #999;
}
.list-table tfoot tr:hover {
    color: #000;
}
.list-table thead tr th {
    padding: 0.5rem 0.25rem 0.4rem 0.25rem;
}
.list-table th, .list-table td {
    padding: 0.25rem;
}
.list-table tbody tr:first-child td {
    padding-top: 0.4rem;
}

/** show list table specific **/
.list-table .unseen,
.list-table .last-seen,
.list-table .airdate {
    width: 120px;
}
.list-table .actions {
    width: 80px;
}
.list-table .actions {
    text-align: center;
}
.list-table .suggested-on {
    width: 200px;
}
.list-table .suggested-by {
    width: 200px;
}

.menu-inside > a {
    display: inline-block;
    margin-right: 0.5rem;
}
.menu-inside .menu-icon {
    display: none;
}

.list-table tbody tr:hover {
    outline: 1px solid rgba(0, 0, 0, 0.2);
}

/** episode list table specific **/
.episode-list th:nth-child(1),
.episode-list th:nth-child(3) {
    width: 120px;
}
.episode-list th:nth-child(4) {
    width: 150px;
}
.episode-list th:nth-child(5) {
    width: 75px;
}
.episode-list th:nth-child(5) .fa-check {
    color: #aaa;
}
.episode-list tr.seen td {
    opacity: 0.45;
}
.episode-list tr.seen td .fa-square {
    display: none;
}
.episode-list tr.seen td .fa-check-square {
    display: inline-block;
}
.episode-list tr td:last-child {
    opacity: 1;
}
.episode-seen {
    cursor: pointer;
    text-align: center;
}
.episode-seen .fa-square {
    color: #ccc;
}
.episode-seen .fa-check-square {
    color: #229922;
    display: none;
}
.list-table tr.future {
    background: #ddd;
    color: #999;
}
.list-table th.episode-seen {
    position: relative;
}

/** list table filterable **/
.list-table th.filterable {
    cursor: pointer;
    position: relative;
}
.list-table th.filterable .fa {
    color: #bbb;
    position: absolute;
    right: 0.35rem;
    top: 0.25rem;
}
.list-table th.filterable .fa-caret-down {
    /*right: 0.85rem;*/
    top: 0.75rem;
}
.list-table th[data-filterable-filtered='ASC'] .fa-caret-up {
    color: #555;
}
.list-table th[data-filterable-filtered='DESC'] .fa-caret-down {
    color: #555;
}

.dv-form-row {
    line-height: 3rem;
}
.dv-form-element {
    border: 1px solid #bb9aeb;
}
.form-info-row {
    padding-left: 0.25rem;
    padding-bottom: 0.25rem;
}

.flex-parent {
    display: flex;
}
.flex-parent-wrap {
    flex-wrap: wrap;
}
.flex-child-1 {
    flex: 1;
}
.flex-child-2 {
    flex: 2;
}
.flex-child-3 {
    flex: 3;
}
.flex-child-4 {
    flex: 4;
}

.show-container {
    border: 1px solid red;
}
.show-box {
    width: 25%;
    float: left;
    border: 1px solid green;
}

.dv-notification {
    margin-bottom: 1rem;
    padding: 0.5rem;
}
.dv-form-button {
    cursor: pointer;
    background: #7e5deb;
    color: #fff;
}
.dv-form-element, .dv-form-button {
    line-height: 1.6rem;
}
.dv-form-button:hover {
    text-decoration: none;
}

.external-link:after {
    content: ',';
}
.external-link:last-child:after {
    content: '';
}
.serier-add-show {
    margin-top: 0.25rem;
    cursor: pointer;
    opacity: 0.3;
    color: #fff;
}
.serier-add-show:hover {
    opacity: 1;
}

.date-part {
    display: inline-block;
    text-align: center;
}
.date-part-1 {
    width: 2.6rem;
}
.date-part-2 {
    width: 1.5rem;
}
.date-part-3 {
    width: 1.5rem;
}

.external-show-image {
    max-height: 50px;
}
.external-show-no-image {
    display: inline-block;
    width: 35px;
    height: 50px;
    margin: 2px 0;
    padding-top: 15px;
    background: lightgrey;
    color: #aaa;
}


@media screen and (max-width: 800px) {
    .overlay-box {
        width: 90%;
    }
    html {
        font-size: 14px;
    }
    .reverse-seasons {
        top: 3.25rem;
    }
    .season-link {
        display: none;
    }
    .menu-inside .menu-icon {
        display: inline-block;
    }
    .menu-inside .menu-text {
        display: none;
    }
    .header-spacer {
        height: 5.5rem;
    }

    nav.menu {
        top: 0.7rem;
        left: 13rem;
        background: none;
        border: none;
    }
    nav.menu .menu-inside > a {
        float: right;
    }
    nav.menu .menu-inside .menu-icon {
        color: #fff;
        font-size: 12px;
        margin: 0.15rem;
    }

    .list-table.episode-list td:nth-child(1),
    .list-table.episode-list th:nth-child(1),
    .list-table .unseen {
        width: 75px;
    }
    .mobile-hidden,
    .list-table .actions .header-title {
        display: none;
    }
    .list-table .episode-seen,
    .list-table .actions {
        width: 30px !important;
    }
    .list-table.episode-list td:nth-child(4),
    .list-table.episode-list th:nth-child(4) {
        display: none;
    }
    .menu-item-home {
        display: none !important;
    }
    .main, .overlay {
        line-height: 1.6rem;
    }
    .list-table {
        line-height: 2rem;
    }
    .list-table th.filterable .fa-caret-up {
        top: 0.7rem;
    }
    .list-table th.filterable .fa-caret-down {
        top: 1.2rem;
    }
    .list-table td {
        vertical-align: top;
    }
    .list-table tbody tr {
        border-bottom: 1px solid #eee;
    }
    .show-add-table td {
        vertical-align: middle;
    }
    .show-add-table tr > *:nth-child(2),
    .show-add-table tr > *:nth-child(4),
    .show-add-table tr > *:nth-child(6) {
        display: none;
    }
}
