/* Rubiks pages, drawn over the game-menu background (see game_menu.css). */

.rubiks-panel {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    color: #e6dcc0;
    background: rgba(0, 0, 0, 0.65);
    border: 2px solid rgba(232, 154, 74, 0.6);
    border-radius: 12px;
    box-shadow: 2px 2px 0 #000;
}

.rubiks-panel-title {
    margin-bottom: 0.75rem;
    color: #f6e2b3;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-shadow: 2px 2px 0 #000;
}

/* Bootstrap tables on the dark panels. */
.rubiks-page .table {
    --bs-table-bg: transparent;
    --bs-table-color: #e6dcc0;
    --bs-table-striped-bg: rgba(246, 226, 179, 0.06);
    --bs-table-striped-color: #e6dcc0;
    --bs-table-hover-bg: rgba(232, 154, 74, 0.15);
    --bs-table-hover-color: #f6e2b3;
    --bs-table-border-color: rgba(232, 154, 74, 0.25);
    margin-bottom: 0;
}

/* Algorithm tables (4LLL and Ortega). */
.rubiks-algs td,
.rubiks-algs th {
    vertical-align: middle;
}

.rubiks-algs img {
    width: 100px;
    border-radius: 6px;
}

.rubiks-algs td:nth-child(2) {
    color: #f6e2b3;
    font-weight: 600;
}

.rubiks-algs td:nth-child(3) {
    font-family: SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.05rem;
}

.rubiks-algs .rubiks-algs-group th {
    --bs-table-bg: rgba(122, 63, 36, 0.85);
    --bs-table-color: #f6e2b3;
    border-bottom: 2px solid #e89a4a;
}

.rubiks-algs .rubiks-algs-group:not(:first-child) th {
    border-top: 1.5rem solid transparent;
    background-clip: padding-box;
}

.blue-text {
    color: #5aa9ff;
    font-weight: bold;
}

.red-text {
    color: #ff6a4d;
    font-weight: bold;
}

.orange-text {
    color: #ffb347;
    font-weight: bold;
}

/* Timer page. */
.login-status {
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 0.25rem 0.75rem;
    color: #f6e2b3;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 50px;
    cursor: pointer;
}

.login-status:hover {
    color: #e89a4a;
}

.rubiks-timer-panel {
    text-align: center;
}

.scramble {
    margin: 0 0 0.5rem;
    color: #f6e2b3;
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
}

.scramble:hover {
    color: #e89a4a;
}

.timer-display {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* The JS turns the time red while holding and green when ready, and clears it back to this. */
.timer-display p {
    display: inline-block;
    margin: 0;
    padding: 0;
    color: #f6e2b3;
    font-size: 10rem;
    font-weight: bold;
    line-height: 1.1;
    text-align: center;
    text-shadow: 4px 4px 0 #000;
    cursor: pointer;
}

.data-box {
    height: 40vh;
    min-height: 18rem;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #7a3f24 transparent;
}

.data-box::-webkit-scrollbar {
    width: 10px;
}

.data-box::-webkit-scrollbar-thumb {
    background-color: #7a3f24;
    border-radius: 5px;
}

.data-box::-webkit-scrollbar-track {
    background-color: transparent;
}

#timesTable td,
#timesTable th {
    font-size: 0.9rem;
}

#statisticsTable {
    width: 100%;
}

#statisticsTable td {
    padding: 0.2rem 0;
}

#statisticsTable td:last-child {
    color: #f6e2b3;
    font-family: SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: bold;
    text-align: right;
}

#statisticsTable .rubiks-stat-divider td {
    padding: 0;
    border-top: 1px solid rgba(232, 154, 74, 0.35);
}

.rubiks-chart {
    position: relative;
    height: 260px;
}

.bi-trash {
    color: rgb(214, 65, 53);
    font-size: 1em;
    cursor: pointer;
}

.bi-trash:hover {
    color: #f6e2b3;
}

.dnf-true {
    color: rgb(214, 65, 53);
}

.dnf-false {
    color: rgba(246, 226, 179, 0.35);
}

.dnf-true:hover,
.dnf-false:hover {
    color: #e89a4a;
    cursor: pointer;
}

/* DataTables paging on the dark panel. */
.rubiks-page .dt-paging .dt-paging-button,
.rubiks-page .dataTables_paginate .paginate_button,
.rubiks-page .page-link {
    color: #f6e2b3 !important;
    background: transparent !important;
    border-color: rgba(232, 154, 74, 0.4) !important;
}

.rubiks-page .active > .page-link,
.rubiks-page .page-link:hover {
    color: #2a1608 !important;
    background: #e89a4a !important;
}

.rubiks-page .disabled > .page-link {
    color: rgba(246, 226, 179, 0.35) !important;
}

@media (max-width: 576px) {
    .timer-display p {
        font-size: 5.5rem;
    }

    .scramble {
        font-size: 0.95rem;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .timer-display p {
        font-size: 8rem;
    }
}
