.bid-game-board {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    margin: auto;
}
.bid-game-board figure {
    margin: 0;
}
#bid-header-logo {
    width: 100%;
    margin-bottom: 36px;
}

.bid-game-mypoint {
    width: 100%;
    max-width: 785px;
    box-sizing: border-box;
    background-color: #f4f4f4;
    padding: 16px 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.bid-game-mypoint .title {
    font-size: 16px;
    font-weight: 400;
    color: #222222;
}
.bid-game-mypoint .point {
    font-size: 28px;
    font-weight: bold;
    color: #222222;
}

.bid-area {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 785px;
    width: 100%;
}
.bid-area .bid-manual-area {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 27px;
    width: 100%;
}
.bid-area .bid-range-area {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.bid-area .bid-input-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}
.bid-range-area .bid-input-container {
    grid-template-columns: 1fr 0.05fr 1fr;
}
.bid-range-area .bid-input-connect {
    width: 100%;
    text-align: center;
    line-height: 40px;
    color: #999999;
}
.bid-area .add-new-bid-input {
    width: 35px;
    height: 35px;
    background-color: black;
    color: white;
    border: none;
    border-radius: 50%; /* hình tròn */
    font-size: 35px;
    font-weight: 200;
    line-height: 35px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    padding: 0 0 4px 0;
}
.bid-input-wrapper {
    position: relative;
}
.bid-input-wrapper input {
    width: 100%;
    border: 1px solid #999999;
    padding: 20px 42px !important;
    height: 50px !important;
    box-sizing: border-box;
    text-align: center;
    font-size: 16px !important;
    transition: text-align 0.3s;
    color: #222222;
}
.bid-input-wrapper input::placeholder {
    text-transform: uppercase;
}
.bid-input-wrapper input:focus,
.bid-input-wrapper input:not(:placeholder-shown) {
    text-align: right;
}
.bid-input-wrapper .currency {
    position: absolute;
    top: 50%;
    left: 30px;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.bid-input-wrapper input:focus + .currency,
.bid-input-wrapper input:not(:placeholder-shown) + .currency {
    opacity: 1;
}
.bid-area .bid-btn-confirm {
    width: 100%;
    background-color: black;
    color: white;
    margin: 20px 0 46px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 500;
}

.how-to-use {
    margin-top: 20px;
}

.how-to-use,
.bid-history,
.bid-attention {
    width: 100%;
    max-width: 785px;
}

.how-to-use .title,
.bid-history .title,
.bid-attention .title {
    font-size: 30px;
    font-weight: bold;
    color: #222222;
    margin: 0;
}

.how-to-use strong {
    font-size: 16px;
    font-weight: 600;
    color: #222222;
    margin-bottom: 12px;
}

.how-to-use .content,
.bid-history .content,
.bid-attention .content {
    font-size: 16px;
    font-weight: 300;
    color: #333333;
    line-height: 1.6;
}
.how-to-use-content-container {
    justify-content: space-between;
    gap: 40px;
    font-size: 16px;
    font-weight: 300;
    color: #333333;
    line-height: 1.6;
}
.how-to-use-content-container,
.bid-history-content,
.bid-attention-content {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 60px;
    padding-inline-start: 26px;
    padding-top: 20px;
}
.bid-attention-content {
    gap: 0px;
    flex-direction: column;
}
.how-to-use ul,
.bid-history ul,
.bid-attention ul {
    margin-bottom: 0;
}

.bid-line-horizontal {
    background-color: #f4f4f4;
    width: 100%;
    max-width: 785px;
    height: 6px;
    margin: 30px 0;
}

/* Popup modal */
.bid-game-popup-container .modal-inner-wrap {
    max-width: 500px;
}
.bid-game-popup-container #popup_message_notice,
.bid-game-popup-container #popup_message_confirm {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
}
.bid-game-popup-container #popup_message_confirm button {
    font-size: 16px;
    font-weight: 500;
}
#popup_message_confirm .bid-action {
    margin-top: 36px;
    width: 100%;
    padding: 0 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
#popup_message_confirm .bid-loading {
    margin: 36px auto 0;
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 4px solid #ccc;
    border-top-color: #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.only-mobile {
    display: none;
}
/* Responsive */
@media (max-width: 768px) {
    .only-mobile {
        display: unset;
    }
    .view-collapse {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    #bid-header-logo {
        margin-bottom: 20px;
    }
    .bid-input-wrapper input {
        padding: 14px 12px !important;
        height: 40px !important;
        font-size: 10px !important;
    }
    .bid-input-wrapper input::placeholder {
        text-transform: none;
    }
    .bid-input-wrapper .currency {
        left: 5px;
        top: 46%;
    }
    .how-to-use {
        margin-top: 0px;
    }
    .how-to-use-content-container {
        flex-direction: column;
        gap: 16px;
    }
    .how-to-use .title,
    .bid-history .title,
    .bid-attention .title {
        font-size: 18px;
    }
    .how-to-use strong {
        font-size: 13px;
        margin-bottom: 4px;
    }
    .how-to-use-content-container {
        font-size: 13px;
    }
    .how-to-use .content,
    .bid-history .content,
    .bid-attention .content {
        font-size: 13px;
    }
    .how-to-use-content-container,
    .bid-history-content,
    .bid-attention-content {
        padding-inline-start: 22px;
        padding-top: 14px;
        transition: max-height 0.3s ease, padding 0.3s ease;
        overflow: hidden;
        max-height: 1000px;
    }
    .how-to-use-content-container.opened,
    .bid-history-content.opened,
    .bid-attention-content.opened {
        max-height: 0px;
        padding-top: 0px;
    }
    .only-mobile.rotated {
        transform: rotate(180deg);
    }
    .bid-area .bid-btn-confirm {
        margin: 10px 0 24px;
        padding: 12px 32px;
        font-size: 14px;
    }
    .bid-range-area .bid-input-container {
        gap: 6px;
    }
    .bid-area .add-new-bid-input {
        width: 25px;
        height: 25px;
        font-size: 25px;
        line-height: 25px;
        margin-top: 10px;
        padding: 0 0 4px 0;
    }
    .bid-line-horizontal {
        width: 100vw;
    }
    .bid-game-mypoint {
        padding: 14px 24px;
    }
    .bid-game-mypoint .title {
        font-size: 11px;
    }
    .bid-game-mypoint .point {
        font-size: 23px;
    }
    .bid-game-popup-container .modal-inner-wrap {
        width: 85%;
    }
    .bid-game-popup-container #popup_message_notice,
    .bid-game-popup-container #popup_message_confirm {
        font-size: 18px;
    }
}
