.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    padding: 10px;
}

.modal-body {
    position: relative;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    padding: 1rem;
}

#resultModal {
    padding-left: 10px !important;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    border-top: 1px solid #f8e008;
    border-bottom-right-radius: 0.3rem;
    border-bottom-left-radius: 0.3rem;
}

.modal-header {
    justify-content: center;
    color: #fff;
    border-bottom: 1px solid #f8e008;
    text-align: center;
}

.modal-content {
    background-color: #5c0201;
    margin: 5% auto;
    border: 3px solid #f8e008;
    width: 100%;
    max-width: 650px;
}

.close-button {
    color: #f8e008;
    right: -14px;
    top: -29px;
    position: absolute;
    font-size: 40px;
    cursor: pointer;
}

.btn-color {
    background: #ff0000; color: white;
}

.mbody {
    background: #170000;
    border-top: 1px solid #9b0000;
    border-radius: 15px 15px 15px 15px;
}

.border-right-r {
    border-right: 1px solid #fdff35;
}

.border-bottom-b {
    border-bottom: 1px solid #fdff35;
}
.border-top {
    border-top: none;
}
.table-modal-header{
    padding: 8px;
    background: #9b0000;
    font-size: 19px;
    font-weight: 600;
}

th,
td {
    text-align: center;
    border-right: none;
    border-bottom: none;
}

.red-background {
    background: linear-gradient(to bottom, #9b0000, #ff0000, #9b0000);
}

.red-background-radius-top-left {
    border-top-left-radius: 12px;
}

.red-background-radius-top-right {
    border-top-right-radius: 12px;
}

table {
    border-spacing: 0;
    border-collapse: collapse;
}

.result,
.result a,
.result b {
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    font-size: 20px;
}

.table-modal-yellow {
    background-color: #994800;
}

.card-box {
    flex: 0 0 31.333%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0px 5px 5px 0;
    border-radius: 5px;
    font-size: 1.2rem;
    padding: 3px;
    box-sizing: border-box;
    color: #fff;
    background-size: cover;
    position: relative;
}


.card-img-top {
    width: 30px;
    height: 30px;
    right: -2px;
    bottom: -5px;
    position: absolute;

}

.card-title-m {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.number-result {
    font-size: 3rem;
    font-weight: bold;
    color: #fff;
}

.modal-trigger-button {
    background-color: transparent;
    color: inherit;
    border: none;
    font-size: 3rem;
    font-weight: bold;
}

.modal-trigger-button:hover,
.modal-trigger-button:focus {
    background-color: transparent;
    border: none;
    box-shadow: none;
    color: #ff0000;
}

.date-result {
    font: small-caption;
    font-style: italic;
    font-size: 1.3rem;
}

.d-result {
    font-size: 0.8rem;

}

.jam-tutup {
    color: red;
    font-weight: bold;
}

.jam-buka {
    color: green;
    font-weight: bold;
}

p {
    margin-top: 0;
    margin-bottom: 0;
}

.h12 {
    padding: 8px; background: #9b0000;
}

@media (min-width: 768px) {
    .modal-content {
        width: 60%;
    }
}

@media (min-width: 992px) {
    .modal-content {
        width: 50%;
    }
}

@media (min-width: 1200px) {
    .modal-content {
        width: 40%;
    }
}

@media (max-width: 768px) {

    .modal-header,
    .modal-footer,
    .modal-body {
        padding: 2px;
        font-size: larger;
    }

    .modal-footer .btn,
    .modal-header h5 {
        font-size: smaller;
    }

    .close-button {
        font-size: 30px;
        top: 5px;
    }

    table,
    th,
    td {
        font-size: 10px;
        font-weight: lighter;
    }

    .card-img-top {
        width: 35px;
        height: 35px;
        right: -4px;
        bottom: -7px;
    }

    .card-box {
        flex: 0 0 44.444%;
        margin: 0px 2px 5px 2px;
    }

    .table-modal-header {
       font-size: 12px;
    }

}

@media (max-width: 480px) {
    .card-box {
        font-size: 0.9rem;
    }

    .number-result {
        font-size: 2rem;
    }

    .card-img-top {
        width: 25px;
        height: 25px;
        margin: 1px;
    }

    .card-title-m {
        justify-content: center;
      	font-size: 0.7rem;
        font-weight: 700;
    }

    .d-result {
        font-size: 0.6em;
    }

    .date-result {
        font-size: 1.5em;
        font-style: italic;
    }

    .card-box {
        flex: 0 0 44.444%;
        margin: 0px 2px 5px 2px;
        border-radius: 5px;
    }

    .modal-footer .btn,
    .modal-header h5 {
        font-size: 14px;
    }

    .close-button {
        font-size: 30px;
        top: -20px;
        right: -13px;
    }

}

@media (max-width: 280px) {
    .modal-content {
        margin: 10% auto;

    }

    .card-box,
    .card-img-top,
    .card-title-m,
    .number-result,
    .date-result,
    .d-result {
        font-size: 1em;
    }

    .modal-header,
    .modal-footer,
    .modal-body {
        padding: 5px;
        font-size: medium;
    }

    .close-button {
        font-size: 28px;
        right: 10px;
    }

    table,
    th,
    td {
        font-size: 12px;
        font-weight: lighter;
    }

    .card-box {
        margin: 0px 2px 5px 2px;
    }

}