@font-face {
    font-family: "Raleway";
    src: url('../fonts/Raleway-VariableFont_wght.ttf') format("truetype");
}

body {
    height: calc(100vh - 60px);
}

.raleway {
    font-family: "Raleway", sans-serif;
}

.navbar-brand {
    padding-top: .75rem;
    padding-bottom: .75rem;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
}

.fw-semibold { font-weight: 600; }

.fp-info-cards > .card {
    max-width: 16rem;
}

.bg-custom-gray {
    background-color: rgb(58, 73, 72) !important;
}

.score-simple {
    font-size: 40vw;
    margin: 0;
    padding: 0;
    line-height: 1.2;
}
@media only screen and (orientation: landscape) {
    .score-simple {
        font-size: 45vh;
    }
}

.score {
    font-size: min(43vh, 28vw);
    margin: 0;
    padding: 0;
    line-height: 1;
}

.scoremanipulate.plus {
    position: absolute;
    right: 10px;
    top: 50%;
}

.scoremanipulate>svg {
    fill: rgba(255, 255, 255, 0.8);
}

.scoremanipulate.minus {
    position: absolute;
    left: 10px;
    top: 50%;
}

.progress {
    background-color: unset;
}

.number-button, #plusMinus {
    width: max(60px, 7vw);
    height: max(60px, 7vw);
    font-size: min(48px, 4vw);
    margin-bottom: 10px;
    line-height: 1;
}

/**
    Dark Mode
 */
html.dark-theme {
    background-color:  rgba(33, 37, 41, 1) !important;
}

.dark-theme body, html.dark-theme {
    background-color: rgb(44, 49, 54) !important;
}

.dark-theme main {
    background-color: rgb(44, 49, 54) !important;
    color: rgba(255, 255, 255, 0.8);
}

.dark-theme main a {
    color: rgb(74, 151, 255);
}

.dark-theme main a:hover {
    color: rgba(255, 255, 255, 1);
}

.dark-theme a.btn-dark {
    color: rgba(255, 255, 255, 0.8);
}

.dark-theme main li {
    background-color: rgb(44, 49, 54) !important;
    color: rgba(255, 255, 255, 0.8);
}

.dark-theme #toast, .dark-theme .toast-header {
    background-color: rgb(44, 49, 54) !important;
    color: rgba(255, 255, 255, 0.8);
}

.dark-theme .alert-danger {
    background-color:  rgb(33, 37, 41) !important;
    border-color: red;
    color: rgba(255, 255, 255, 0.8);;
}

.dark-theme .alert-danger svg {
    color: red;
}

.dark-theme .btn-primary {
    background-color: #084398;
    border-color: #084398;
}

.dark-theme .btn-primary:hover {
    background-color: #0a53be;
    border-color: #0a53be;
}

.dark-theme input, .dark-theme textarea {
    background-color: rgb(44, 49, 54) !important;
    color: rgba(255, 255, 255, 0.8);
}

.dark-theme input:disabled, .dark-theme textarea:disabled {
    background-color: rgb(95, 95, 96) !important;
    color: rgba(255, 255, 255, 0.6);
}

.dark-theme input:focus, .dark-theme textarea:focus {
    background-color: rgb(44, 49, 54) !important;
    color: rgba(255, 255, 255, 0.8);
}

.dark-theme .form-check-input {
    background-color: rgb(82, 92, 101) !important;
}

.dark-theme .alert-info, .dark-theme .alert-secondary {
    background-color: rgb(44, 49, 54) !important;
    color: rgba(255, 255, 255, 0.8);
    border: none;
}

.dark-theme .alert-secondary {
    background-color: rgb(59, 66, 73) !important;
}

.dark-theme .alert-info {
    background-color: rgb(43, 76, 110) !important;
}

.dark-theme .list-group-item {
/* background-color: rgb(44, 49, 54) !important;
    background-color: #055160 !important;
*/
    background-color: rgba(0, 0, 0, .25) !important;
    color: rgba(255, 255, 255, 0.8);
}

.dark-theme .list-group-item:hover {
    background-color: #3f3f3f !important;
    color: rgba(255, 255, 255, 1);
}

.dark-theme table {
    color: rgba(255, 255, 255, 0.8);
}

.dark-theme tr.table-success td {
    color: rgba(255, 255, 255, 0.8);
    background-color: rgb(8, 80, 15) !important;
}

/**
    Sidebar
 */
.dark-theme nav {
    background-color:  rgb(33, 37, 41) !important;
}

.dark-theme nav span {
    color: rgba(255, 255, 255, 0.8);
}

.dark-theme nav hr {
    color: rgba(255, 255, 255, 0.8);
}

.dark-theme nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.dark-theme nav .nav-link.active {
    background-color: #191c1e;
}

.dark-theme nav a:hover {
    background-color: #3f3f3f;
    border-radius: 0.25rem;
}

.dark-theme nav li:hover a {
    color: rgba(255, 255, 255, 1);
}

.dark-theme nav .li-collapse:hover {
    background-color: unset;
}

.dark-theme .input-group-text {
    background-color: unset;
    color: rgba(255, 255, 255, 1);
    border: 0;
}

.dark-theme .modal .modal-content {
    background-color: rgb(44, 49, 54) !important;
    color: rgba(255, 255, 255, 0.8);
}

.dark-theme .modal .btn-close {
    background-color: rgba(255, 255, 255, 0.8);
}


/**
    Search box
 */
.dark-theme #searchResults span {
    background-color: rgb(44, 49, 54) !important;
    color: rgba(255, 255, 255, 0.8);
}

.dark-theme #searchResults svg {
    fill: rgba(255, 255, 255, 0.8);
}

.dark-theme #searchResults button:hover {
    background-color: #3f3f3f !important;
}

.dark-theme #searchResults button:hover svg {
    fill: rgba(255, 255, 255, 1);
}

.dark-theme {
    scrollbar-color: rgb(37, 37, 37) rgb(44, 49, 54);
}

/**
    Nav pills
 */
.dark-theme .nav-pills button.nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.dark-theme .nav-pills .nav-link.active {
    background-color: #191c1e !important;
}

.dark-theme .nav-pills button.nav-link:hover {
    background-color: #3f3f3f !important;
}

/* Offcanvas */
.offcanvas {
    background-color:  rgba(33, 37, 41, 1) !important;
    color: rgba(255, 255, 255, 0.8);
}

.offcanvas-top {
    height: unset;
}

.offcanvas-body {
    padding-top: 0;
}

.offcanvas .btn-close {
    background-color: rgba(255, 255, 255, 0.9);
    opacity: 0.9;
}

.nav-pills button.nav-link:hover {
    background-color: lightgray !important;
}

.bi {
    vertical-align: -.125em;
    pointer-events: none;
    fill: currentColor;
}

.svg-equal-fontsize {
    line-height: 1;
    height: 1em;
    width: 1em;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e")
}

.dark-theme .active-card {
    background-color: #0d6efd;
}

.card-header {
    z-index: 100;
    font-size: 30px;
}

.card-header>svg {
    display: none;
}
.card-header.active-card>svg {
    display: inline;
}
.card-header.active-card>svg.dice-icon {
    display: none;
}

.form-select {
    color: white;
    background-color: rgba(0, 0, 0, 0) !important;
    border: unset;
    font-size: 20px;
    text-align: center;
    background-size: 32px 24px;
}

option {
    background-color: black;
}

.playerselector {
    height: min(43vh, 28vw)
}

.playerselector.playerselector-tall {
    height: min(60vh, 50vw);
}

.playerselector .list-group-item {
    border-radius: 0;
}

.break-score {
    height: 200px;
    width: 250px;
    position: fixed;
    top: 125px;
    left: calc(50vw - 125px);
    border-radius: 5px;
}

.random-player {
    height: 200px;
    width: auto;
    position: fixed;
    top: 125px;
    left: calc(50vw - 125px);
    border-radius: 5px;
}

#currentBreak {
    font-size: 100px;
}

.breaks {
    font-size: 30px;
}

.cursor-pointer {
    cursor: pointer;
}

.cursor-grap {
    cursor: grab;
}

.bg-teal {
    background-color: rgb(0, 150, 136) !important;
}
