.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal h1,
.modal h2,
.modal h3,
.modal h4,
.h5,
.modal h6 {
    text-align: center;
    color: #fff;
}

#notif-header {
    color: #fff;
    text-align: center;
}

.modal h6 {
    text-align: center;
    color: #f8e008;
}

.modal-content {
    background-color: #5c0201;
    margin: 20% auto;
    padding: 20px;
    border: 3px solid #f8e008;
    width: 30%;
    box-sizing: border-box;
}

.close-button,
.close-button1 {
    color: #f8e008;
    right: 1px;
    top: -20px;
    position: absolute;
    font-size: 40px;
    cursor: pointer;
}

.modal-header,
.modal-footer {
    padding: 2px 16px;
    background-color: #000000;
    color: rgb(233, 199, 9);
    border: 1px solid red;
    border-radius: 8px;
    justify-content: center;
    text-align: center;
}

.modal-body {
    padding: 10px 0;
}

.grid-container-bolak-balik {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
}

.grid-item {
    background-color: #5c0201;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    font-weight: bold;
}

.grid-item.title {
    color: rgb(255, 255, 255);
    border: 1px solid red;
    border-radius: 8px;
    justify-content: center;
}

.grid-item.times {
    grid-column: span 2;
}

.grid-item.big {
    grid-column: span 2;
}

.grid-item.bolak-balik {
    grid-column: 1 / -1;
    text-align: center;
    font-weight: bold;
    background-color: black;
}

.grid-container {
    display: grid;
    grid-template-columns: auto auto auto;
    grid-gap: 10px;
    background-color: #5c0201;
    margin-bottom: 10px;
}

.grid-container>div {
    text-align: center;
    padding: 5px 0;
    font-size: 15px;
}

.item1 {
    grid-row-end: span 5;
    background-color: #000000;
    color: rgb(255, 255, 255);
    border: 1px solid red;
    border-radius: 8px;
    font-weight: bold;
}

.item2 {
    background-color: #000000;
    color: rgb(255, 255, 255);
    border: 1px solid red;
    border-radius: 8px;
    font-weight: bold;
}

.item1 p {
    margin: 10px 0;
    font-size: 15px;
}

.logo-pasaran {
    width: 50px;
    height: 50px;
    margin: 0 auto;
    display: block;
}

button.prediction-item {
    color: white;
    background-image: linear-gradient(to bottom, red, #630c0c);
    border-radius: 5px;
    white-space: nowrap;
    justify-content: start;
    display: flex;
    max-width: 40%;
    margin: 4px;
    padding: 2px;
    border: none;
}

.prediction-text {
    color: white;
    font-size: calc(0.9rem + 0.5vw);   
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    margin-left: 10px;
}

.prediction-icon {
    height: 33px;
    width: 33px;
    border-radius: 50%;
    vertical-align: bottom;
    object-fit: cover;
    text-align: center;
}

.grid-result-header {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    color: white;
    border: 1px solid red;
    border-radius: 8px;
    justify-content: center;
    text-align: center;
    background-color: black;
}

.grid-result-header-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.grid-container-result {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    color: white;
    border: 1px solid red;
    border-radius: 8px;
    justify-content: center;
    text-align: center;
    background-color: black;
}

.grid-container-result-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.result-title {
    color: white;
    font-weight: 400;
    grid-column: 1 / span 3;
    border-bottom: 1px solid #bbb;
    margin-left: 10px;
    margin-right: 10px;
    font-size: 20pt;
    font-style: italic;
}

.prize1 {
    color: yellow;
    font-weight: bold;
    font-size: 18pt;
}

.prize2,
.prize3 {
    color: white;
    font-weight: bold;
    font-size: 18pt;
}

.toto {
    color: white;
    font-weight: bold;
    font-size: 20pt;
}

.card-box {
    flex: 0 0 28%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 5px;
    border-radius: 5px;
    background-image: linear-gradient(to bottom, #d5090a, #670105);
    padding: 3px;
    box-sizing: border-box;
}

.card-img-top {
    width: 50%;
    height: auto;
    margin-bottom: 5px;
}

.card-box span {
    display: block;
    color: rgb(255, 255, 255);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .card-box {
        font-size: calc(0.9rem + 0.5vw);
    }

}

@media (max-width: 480px) {
    .card-box {
        font-size: 12px;
        min-height: 90px;
    }

}

.card-box a,
.card-box a:visited,
.card-box a:hover,
.card-box a:active,
.card-box a:focus {
    text-decoration: none;
}

.home {
    display: none;
}