.container-custom {
    max-width: 1200px;
    margin: 0 auto;
}

.row {
    justify-content: center;
}

.col-6 {
    flex: 0 0 auto;
    width: calc(50% - 2.5px);
}

.col-6:not(:last-child) {
    margin-right: 5px;
}

body,
html {
    overflow-x: hidden;
}

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

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

.modal-content {
    background-color: #5c0201;
    margin: 50% 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;
    font-size: 17px;
}

.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: 17px;
}

.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;
  	min-width: 75px;
}

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

.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;
}

@media (max-width: 600px) {
    .modal-content {
        width: 100%;
        margin: 30% auto;
    }
}

@media (max-width: 480px) {
    button.prediction-item {
        margin: 2px;
        padding: 2px;
    }

    .prediction-text {
        font-size: calc(0.6rem + 0.7vw);    
    }

    .prediction-icon {
        height: 20px;
        width: 20px;
    }
}

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

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