body {
    background-color: #212121;
    margin-bottom: 25px;
}

h2 {
    margin-top: 20px;
    color: #ededed;
}

.shadow-box {
    padding: 1.5em;
    font-size: 1.1em;
    border-radius: 6px;
    background-color: rgba(250, 250, 250, 0.1);
    color: #cdcdcd;
}

.shadow-box + .shadow-box {
    margin-top: 25px;
}

.rule-separator {
    display: flex;
    margin: 2em 0;
    justify-content: space-evenly;
    align-items: center;
}

.rule-separator:before,
.rule-separator:after {
    content: '';
    border-bottom: 1px solid #8c8b8b;
    width: 40%;
    height: 0;
}

.btn-group .btn {
    border-radius: 0;
    outline: none;
    box-shadow: unset;
    border-bottom: 2px solid transparent;
}

.btn-group .btn.active {
    border-bottom-color: unset; 
}

.list-group,
.player.card {
    color: #454545;
}

.dark-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 5, 30, 0.4);
}

.czar-note {
    margin: 1.5em 1em 0;
    font-size: 0.9em;
    color: #909090;
}

.game-section {
    padding: 10px 0 20px;
    border-bottom: 1px solid #ededed;
    margin-bottom: 10px;
}

.game-section:last-of-type {
    border-bottom: none;
}

.judge-timer,
.player-timer {
    display: none;
}

.judge-timer.text-danger,
.player-timer.text-danger {
    color: #f87c7c !important;
}

.winner-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    text-align: center;
}

.winner-card .card-title {
    margin-bottom: 0.6em;
}

.card.game-card {
    flex: none;
    margin: 24px 8px 0;
    width: 160px;
    height: 224px;
    border: 1px solid black;
    border-radius: 10px;
    background-color: white;
    color: black;
    font-size: 0.9em;
    position: relative;
}

.card.game-card .card-body {
    overflow-y: auto;
    padding: 1.25rem 1.1rem;
}

.card.game-card .card-title {
    margin-bottom: 1.25em;
}

.card.cah-black {
    background-color: black;
    color: white;
}

.card.cah-black .card-blank {
    display: inline-block;
    width: 60%;
    border-bottom: 1px solid white;
}

.card.game-card.selected {
    background-color: rgb(255, 253, 186);
}

.card-help {
    display: none;
    position: absolute;
    bottom: 5px;
    color: #ccc;
    right: 10px;
    font-size: 0.9em;
}

.card-help.visible {
    display: block;
}

.card-help > .number {
    background: #f5f5f5;
    width: 18px;
    height: 18px;
    display: inline-block;
    text-align: center;
    border-radius: 50%;
    color: #333;
    font-weight: bold;
    vertical-align: bottom;
}

.card-count {
    position: absolute;
    display: none;
    bottom: 5px;
    right: 10px;
    font-size: 1.2em;
    font-weight: bold;
}

.card-count.visible {
    display: block;
}

#winner_modal .card-blank {
    font-weight: bold;
    color: hsl(180, 60%, 26%);
    text-decoration: underline;
}

#winner_modal .modal-footer {
    padding-top: 0;
    border-top: none;
}

#chat_box {
    height: 200px;
    overflow-y: scroll;
    padding: 3px 6px;
    background-color: rgba(150, 150, 150, 0.05);
    margin: 6px 0;
    border-radius: 4px;
}

#chat_box p {
    margin-bottom: 0.25rem;
}

.player.card .badge {
    display: none;
}

.player.card.self .self-badge {
    display: block;
}

.player.card.judge .judge-badge {
    display: block;
}

.player.card.ready .ready-badge {
    display: block;
}

.player.disconnecting {
    border-style: dashed;
    color: #848484;
}

.player.disconnecting .disconnect-bubbles {
    display: inline-block;
}

.disconnect-bubbles {
    width: 35px;
    text-align: center;
    display: none;
    vertical-align: top;
    position: relative;
    top: -3px;
}
  
.disconnect-bubbles > div {
    width: 6px;
    height: 6px;
    background-color: rgba(13, 33, 63, 0.5);
  
    border-radius: 100%;
    display: inline-block;
    -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
    animation: sk-bouncedelay 1.4s infinite ease-in-out both;
}
  
.disconnect-bubbles .bounce1 {
    -webkit-animation-delay: -0.32s;
    animation-delay: -0.32s;
}

.disconnect-bubbles .bounce2 {
    -webkit-animation-delay: -0.16s;
    animation-delay: -0.16s;
}

@-webkit-keyframes sk-bouncedelay {
    0%, 80%, 100% { -webkit-transform: scale(0) }
    40% { -webkit-transform: scale(1.0) }
}

@keyframes sk-bouncedelay {
    0%, 80%, 100% { 
        -webkit-transform: scale(0);
        transform: scale(0);
    } 40% { 
        -webkit-transform: scale(1.0);
        transform: scale(1.0);
    }
}

@media only screen and (max-width: 768px) {
    .card.game-card {
        width: 35vw;
        height: 50vw;
    }
}
