.history-container {
    padding: 20px;
    box-sizing: border-box;
    border-radius: 10px;
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

.history-container .header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.content-container ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 550px;
    overflow-y: auto;
    padding-bottom: 15px;
}

.content-container li {
    display: flex;
    padding: 10px 30px;
    background-color: white;
    flex-direction: column;
    box-sizing: border-box;
    gap: 10px;
    border: 1px solid var(--color-first);
    border-radius: 10px;
}

.content-container li span,
.content-container li p {
    font-size: 1rem;
}

.space-between-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.text-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;

}

.text-item .s-title-item {
    width: 40%;
}

.content-container ul span {
    font-weight: bold;
}

.s-title {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    color: white;
}
.white-background{
    background-color: white;
}

.s-status {
    font-size: 1.5rem !important;
}

.s-time {
    color: var(--color-second);
}

.lose-background {
    background-color: var(--color-lose)
}

.waiting-background {
    background-color: var(--color-waiting)
}

.win-background {
    background-color: var(--color-win)
}
.text-green {
    color: var(--color-green)
}
.text-green-2{
    color: #228B22;
}
.text-red {
    color: var(--color-contact-header)
}


.loading-icon {
    width: 100%;
    display: flex;
    justify-content: center;

}

.loading-icon img {
    width: 20px;
    animation: rotateAnimation 2s infinite linear;
}
.s-status-title{
    color: #000;
    font-weight: unset;
}
.history-status{
    border-radius: 15px;
    border: 1px solid;
    padding: 0 20px;
}
.history-title{
    padding-left:  0 !important;
}
.history-title div{
    background-color: var(--color-base-color);
}
@keyframes rotateAnimation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }

}

@media only screen and (max-width: 768px) {

    /* For mobile phones: */
    .history-container {
        padding: 20px;
        border-radius: 0;
        width: 100%;
        height: 100%;
        min-height: 80%;
    }

    .content-container ul {
        display: flex;
        flex-direction: column;
        
        gap: 10px;
        max-height: 600px;
        overflow-y: auto;
        padding-bottom: 15px;
    }
    .s-time,.s-status,.s-status-title{
        font-size: 1rem !important;
    }
}

@media (max-height: 668px) {
    .content-container ul {
        max-height: 460px;
    }
}