:root {
    --watch-list-color-a: var(--overlay-compliment-green);
    --watch-list-color-b: var(--dark-bg);
}

.watch-list {background-color: var(--watch-list-color-a)}

.watch-list header {
    color: var(--watch-list-color-b);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.watch-list > * {
    max-width: 62.5em;
    margin: auto;
}

.watch-list h2, .watch-list h4 {margin: 0}

.watch-list-empty, .watch-info-container {display: none}
.visible {display: block}

.watch-list-empty {color: var(--watch-list-color-b)}

.watch-container > div, .watch-info-container div {
    margin: 0 0 1em 0;
    border: 0.15em solid var(--watch-list-color-b);
    border-radius: 0.4em;
    padding: 1em;
    color: var(--watch-list-color-b);
    transition: 0.1s;
}

    .watch-container > div:hover, .watch-container > div:hover .user-history-table {
        background-color: var(--watch-list-color-b);
        color: var(--watch-list-color-a);
        cursor: pointer;
    }
    .watch-container > div:hover .stats-title-box div, .watch-container > div:hover .user-history-table tr:first-child td:first-child {
        background-color: var(--watch-list-color-a);
        color: var(--watch-list-color-b);
    }
    .watch-container > div:hover .user-history-table, .watch-container > div:hover .watch-list-stats {
        border-color: var(--watch-list-color-a);
    }
    .watch-container > div:hover .stats-title-box {
        border-top: 1px solid var(--watch-list-color-a);
        border-right: 1px solid var(--watch-list-color-a);
        border-left: 1px solid var(--watch-list-color-a);
    }
    .watch-container > div:hover table.user-history-table .user-history-table-th-cell,
    .watch-container > div:hover table.user-history-table .user-history-table-td-cell {
        color: var(--watch-list-color-a);
    }


.watch, .watch-info-div, .watch-div-stats {
    display: flex;
    justify-content: space-between;
    transition: 0.1s;
}

.watch section, .watch-info-div section {flex: 2}

.watch section:nth-child(2), .watch-info-div section:nth-child(2),
.watch section:last-child, .watch-info-div section:last-child {
    flex: 1;
    padding-left: 0.2em;
}

.r {text-align: right}

.watch section h2, .watch section h4 {display: block}

.watch-container.info div section span {font-size: 0.8em}

.watch-list-data {
    height: 0;
    overflow: hidden;
    transition: 0.2s;
}

.dedicated-graph-container {
    position: relative;
    margin: auto;
    height: 37.5em;
    width: 60.5em;
}

.watch-list-stats {
    display: flex;
    border-left: 1px solid var(--watch-list-color-b);
    border-right: 1px solid var(--watch-list-color-b);
    border-bottom: 1px solid var(--watch-list-color-b);
    border-bottom-left-radius: 0.5em;
    border-bottom-right-radius: 0.5em;
    padding: 0.5em;
}

.watch-list-stats section {flex: 1}

.stats-title-box {
    border-top: 1px solid var(--watch-list-color-b);
    border-left: 1px solid var(--watch-list-color-b);
    border-right: 1px solid var(--watch-list-color-b);
    border-top-left-radius: 0.5em;
    border-top-right-radius: 0.5em;
}
    .stats-title-box div, .user-history-table tr:first-child td:first-child {
        display: inline-block;
        color: var(--watch-list-color-a);
        background-color: var(--watch-list-color-b);
        padding: 0.5em;
        font-size: 1em;
        font-weight: bold;
        border-bottom-right-radius: 0.5em;
        border-top-left-radius: 0.5em;
    }

table.user-history-table {
    margin-top: 1em;
    border: 1px solid var(--watch-list-color-b);
    color: var(--watch-list-color-b);
    font-size: 1em;
    border-radius: 0.5em;
    padding: 0;
    border-spacing: unset;
    transition: 0.2s;
}
    .user-history-table th:first-child, .user-history-table td:first-child,
    .user-history-table th:nth-child(2), .user-history-table td:nth-child(2),
    .user-history-table th:nth-child(3), .user-history-table td:nth-child(3),
    .user-history-table th:last-child, .user-history-table td:last-child {
        width: auto;
    }

    .user-history-table td, .user-history-table th {
        border: none;
        padding: 0.5em;
    }

    .user-history-table tr:first-child td:first-child {
        padding: 0.5em;
    }

    table.user-history-table .user-history-table-th .user-history-table-th-cell,
    table.user-history-table .user-history-table-td-cell {
        color: var(--watch-list-color-b);
    }

.bottom-row-div, .controls {
    display: flex;
    justify-content: space-between;
}

    .bottom-row-div > div {flex: 1}
    .bottom-row-div > div:first-child {margin-right: 0.25em}
    .bottom-row-div > div:last-child {margin-left: 0.25em}

.controls {width: 100%}

@media only screen and (max-width: 69em) {
    .dedicated-graph-container {
        width: 99%;
        height: 28em;
    }
}
@media only screen and (max-width: 50em) {
    .dedicated-graph-container {height: 20em}
    .bottom-row-div {
        display: inline-block;
        width: 100%;
    }
    .bottom-row-div > div:first-child {margin: 0.5em 0 0 0}
    .bottom-row-div > div:last-child {margin: 0.5em 0 0 0}
}

.watch-dialog-overlay {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top:0;
    left:0;
    background-color: rgba(42,42,42,0.5);
    z-index: 999;
}

.watch-dialog {
    position: absolute;
    height: auto;
    width: 50%;
    top: 33%;
    left: 25%;
    background-color: var(--watch-list-color-b);
    color: var(--watch-list-color-a);
    border-radius: 1em;
}

.prompt {display: block}

.watch-option-btn {
    position: relative;
    display: block;
    color: white;
    text-decoration: none;
    margin: 0.5em 0.1em;
    border: 2px solid var(--overlay-compliment-gold);
    border-radius: 5px;
    padding: 1em 1.5em;
    text-transform: uppercase;
    overflow: hidden;
    transition: 0.5s all ease;
    background: transparent;
    cursor: pointer;
    z-index: 1;
}
    .watch-option-btn::before {
        background: var(--overlay-color);
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        transition: all 0.2s ease;
        z-index: -1;
    }

.wlb1:hover {
    color: var(--overlay-compliment-green);
    border-color: transparent;
    z-index: 200;
}
.wlb1::before {
    width: 100%;
    height: 0;
}
.wlb1:hover::before {height: 100%}

.wlb2 {border-color: var(--overlay-color)}
    .wlb2::before {background: var(--overlay-compliment-gold)}
    .wlb2:hover {
        color: var(--dark-bg);
        border-color: transparent;
    }
    .wlb2::before{
        width: 0;
        height: 100%;
    }
    .wlb2:hover::before{
        width: 100%;
    }

.confirm {border-color: var(--overlay-compliment-pink)}
    .confirm:hover {color:#fff}
    .confirm::before {background: var(--overlay-compliment-pink)}

.watch-dialog {
    padding: 1em;
}
.add-input {
    border:2px solid var(--watch-list-color-a);
    border-radius: 3px;
    color: var(--watch-list-color-a);
    background-color: transparent;
    padding: 7px;
    font-size: 1em;
    width: 100%;
    margin: 1em 0;
}