.card {
    width: 265px;
    height: 365.64px;
    border: 1px solid #ccc;
    border-radius: 8px;
    position: relative;
    flex: 0 0 auto;
}

.contain {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.card-contain {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.market-name {
    text-align: center;
    margin: 10px auto;
    width: 100%;
}

.info-icon {
    position: absolute;
    top: 10px;
    right: 15px;
    width: 17.61px;
    height: 17px;
    border-radius: 50%;
    /* background: #007bff;
    color: white; */
    text-align: center;
    cursor: pointer;
}

.images-box-togel {
    width: 160px;
    height: 103.06px;
    margin: 20px auto;
    background: #f0f0f0;
    overflow: hidden;
}

.images-box-togel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-box-togel {
    width: 237.81px;
    height: 63.75px;
    margin: 10px auto;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-align: center;
    line-height: 63.75px;
    color: #000;
    font-weight: 700;
    font-size: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.date-box {
    width: 237.81px;
    height: 21.61px;
    margin: 10px auto;
    text-align: center;
}

.buttonss button {
    width: 241.81px;
    height: 31.34px;
    margin: 5px auto;
    display: block;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-content1 {
    width: 436px;
    height: auto;
    background: white;
    margin: 292px auto;
    padding: 20px;
    position: relative;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal.show .modal-content1 {
    transform: translateY(0);
    opacity: 1;
}

.modal-body1 {
    display: flex;
}

.modal-images {
    width: 139.33px;
    height: 93.3px;
    background: #f0f0f0;
    overflow: hidden;
}

.modal-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    margin-left: 20px;
}

.close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    font-weight: 700;
    cursor: pointer;
    color: #333;
}

.close:hover {
    color: #000;
}

.card {
    width: 265px;
    height: 365.64px;
    border: 1px solid #cccccc;
    border-radius: 8px;
    position: relative;
    flex: 0 0 auto;
    background: linear-gradient(145deg, #f1e200, #c10000);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    color: rgb(255, 255, 255);
}

.card:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease;
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}


/* Base styles remain the same */

/* Tablet Responsive */
@media screen and (max-width: 1024px) {
    .contain {
        max-width: 768px;
    }
    
    .card {
        width: 220px;
        height: 320px;
    }

    .images-box-togel {
        width: 140px;
        height: 90px;
    }

    .result-box-togel {
        width: 200px;
        height: 55px;
    }

    .date-box {
        width: 200px;
        height: 20px;
    }

    .buttonss button {
        width: 200px;
        height: 28px;
        font-size: 14px;
    }
}

@media screen and (min-width: 1024px) {
    .contain {
        max-width: 768px;
    }
    
    .card {
        width: 220px;
        height: 320px;
    }

    .images-box-togel {
        width: 140px;
        height: 90px;
    }

    .result-box-togel {
        width: 200px;
        height: 55px;
    }

    .date-box {
        width: 200px;
        height: 20px;
    }

    .buttonss button {
        width: 200px;
        height: 28px;
        font-size: 14px;
    }
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .contain {
        padding: 10px;
    }

    .card-contain {
        gap: 10px;
    }
    
    .card {
        height: 280px;
    }

    .images-box-togel {
        width: 120px;
        height: 80px;
        margin: 10px auto;
    }

    /* .market-name {
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;

    } */

    .result-box-togel {
        width: 140px;
        height: 45px;
        line-height: 45px;
        font-size: 14px;
    }

    .date-box {
        width: 140px;
        height: 18px;
        font-size: 12px;
    }

    .buttonss button {
        width: 140px;
        height: 25px;
        font-size: 12px;
        margin: 3px auto;
    }

    .modal-content1 {
        width: 62%;
        height: auto;
        margin: 50% auto;
        padding: 15px;
    }

    .modal-body1 {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .modal-images {
        width: 100px;
        height: 70px;
    }

    .modal-info {
        margin-left: 0;
        text-align: center;
    }

    .modal-info h3 {
        font-size: 16px;
        margin: 5px 0;
    }

    .modal-info table {
        font-size: 14px;
    }
}
