/* General Body Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: #ffffff;
    color: #333;
    overflow-x: hidden;
}

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

h1, h2, h3 {
    margin-top: 0;
}

a {
    color: #333;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
}

/* Header */
header {
    background-color: #f8f9fa;
    padding: 0.8rem 0;
    border-bottom: 1px solid #dee2e6;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-bar input {
    background-color: #fff;
    border: 1px solid #ccc;
    color: #333;
    padding: 8px;
    border-radius: 5px;
}

.login-btn {
    background-color: #333;
    color: #fff;
}

.game_start_button {
    position: absolute;
    top: 50%;
    left: 40%;
    transform: translate(-50%, -50%);
}

.game_rules {
    background-image: url('../images/game_rule.svg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 300px;
    padding: 100px 0;
    text-align: left;
    color: #fff;
    background-color: #f8f9fa; /* Fallback */
}

/* Hero Section */
.hero {
    /*background: url('../images/car.png') no-repeat center center/cover;*/
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 400px;
    padding: 100px 0;
    text-align: left;
    color: #fff;
    background-color: #f8f9fa; /* Fallback */
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero .hero_desc {
    font-size: 28px
}

.second_banner {
    /*background: url('../images/car.png') no-repeat center center/cover;*/
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 400px;
    padding: 100px 0;
    text-align: left;
    color: #fff;
    background-color: #f8f9fa; /* Fallback */
}

.second_banner .second_banner_desc {
    font-size: 32px;
}

.second_banner_img {
    width:400px;
    height:240px;
}

.banner-recommend{
    background:url('../images/recommend_bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width:720px;
    height:240px;
}

.banner-game-result-recommend{
    background:url('../images/recommend_bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width:720px;
    height:240px;
}

.banner-free-game{
    background:url('../images/free_game_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width:400px;
    height:240px;
}

.item_bg {
    background: url('../images/item_bg.png') no-repeat center center/cover;
}
.tag_popular_bg {
    background: url('../images/tag_popular_bg.png') no-repeat center center/cover;
}
.tag_new_bg {
    background: url('../images/tag_new_bg.png') no-repeat center center/cover;
}
.bg_profile_item {
    background: rgba(242, 90, 157, 0.1);
}
.text_profile_item {
    background: #F84AD8;
}
.page_title {
   color:#F84AD8 !important;
   font-weight: bold;
}

.game_size {
    width: 800px;
    height: 600px;
}

.countdown {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    width: 35rem;
    display: flex;
    justify-content: space-around;
    margin: 10px 0;
    flex-wrap: wrap;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px;
}

.value {
    font-size: 3.5rem;
    font-weight: 700;
    color: #D63F72;
    line-height: 1;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.label {
    font-size: 1rem;
    color: #D63F72;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/*for other page*/
.detail-countdown {
    width: 15rem;
    display: flex;
    justify-content: space-around;
    margin: 8px 0;
    flex-wrap: wrap;
}
.detail-time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 8px;
}

.detail-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #D63F72;
    line-height: 1;
    margin-bottom: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.detail-label {
    font-size: 0.5rem;
    color: #D63F72;
    text-transform: uppercase;
    letter-spacing: 1px;
}
/*for other page*/

.play_label {
    margin-top: 6px;
    margin-bottom: 6px;
    font-weight: 700;
    /*font-size: 1.5rem;*/
    color: #D63F72;
    letter-spacing: 1px;
}

.home_play_label {
    margin-top: 6px;
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 1.8rem;
    color: #D63F72;
    letter-spacing: 1px;
}

.cta-btn {
    background-color: #333;
    color: #fff;
    font-size: 1.2rem;
    padding: 15px 30px;
}

/* General Section Styles */
section {
    padding: 4rem 0;
}

section h2 {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: #6c757d;
    margin-bottom: 3rem;
}

/* Prizes Section */
.prize-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.prize-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    text-align: left;
    padding-bottom: 1.5rem;
    border: 1px solid #eee;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 100%;
}

.prize-card img {
    width: 100%;
    /*height: 300px;*/
    object-fit: cover;
}

.prize-card h3 {
    margin-bottom: 0.5rem;
    font-size: 20px;
}

.prize-info {
    display: flex;
    justify-content: space-between;
    padding: 0 1rem 1rem;
    color: #6c757d;
    align-items: end;
}

.prize-info span:first-child {
    color: #333;
    font-weight: bold;
}

.prize-card button {
    background-color: #555;
    color: #fff;
    width: 80%;
}

.prize-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/**New Style**/
.box_40 {
    height: 249px;
    margin: 51px 0 0 80px;
}

.box_29 {
    /*width: 556px;*/
    height: 194px;
    background: url(/website/images/how_to_play_bg.png) -1px
    0px no-repeat;
    background-size: 557px 194px;
    margin: 133px 0 0 32px;
}

.box_31 {
    box-shadow: 0px 8px 50px 0px rgba(0, 0, 0, 0.68);
    height: 322px;
    /*width: 580px;*/
    margin: 51px 221px 0 75px;
}

.group_18 {
    border-radius: 24px;
    background-image: url(/website/images/game_sample.png);
    /*width: 580px;*/
    height: 322px;
    border: 2px solid rgba(255, 255, 255, 0.34);
}

.flex-col {
    display: flex;
    flex-direction: column;
}
.flex-row {
    display: flex;
    flex-direction: row;
}
/**New Style**/


/* Winners Section */
.winners .container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.winner-card {
    display: flex;
    gap: 2rem;
    background-color: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.winner-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.winner-card.reverse {
    flex-direction: row-reverse;
}

.winner-card.reverse .winner-info {
    text-align: right;
}

.winner-card img {
    width: 50vw;
    max-width: 600px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.winner-info h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
}

.winner-info p {
    margin: 0.5rem 0;
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Process Section */
.process-steps {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 1rem;
    text-align: center;
    align-items: center;
}

.step {
    grid-column: span 1;
}

.step-arrow {
    grid-column: span 1;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #6c757d;
    font-size: 1.5rem;
    margin: 0 0.5rem;
}

.step-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    /* Placeholder style */
    background-color: #e9ecef;
    color: #495057;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.step h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.step p {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Reviews Section */
.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.review-card {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.stars {
    display: flex;
    gap: 0.25rem;
}

.stars i {
    font-size: 0.875rem;
}

.reviewer {
    text-align: right;
    margin-top: 1rem;
    font-style: italic;
    color: #6c757d;
}

/* Footer */
footer {
    background-color: #f8f9fa;
    color: #6c757d;
}
.footer-main {
    padding: 3rem 0;
    border-top: 1px solid #dee2e6;
}
.footer-links {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
}

.link-group p {
    margin: 0 0 0.5rem 0;
    font-weight: bold;
    color: #fff;
}
.link-group span {
    font-size: 0.9rem;
}

.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid #dee2e6;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-media a {
    margin-left: 1rem;
}

/* Responsive */
@media (max-width: 992px) {
    .prize-grid, .review-grid, .footer-links {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .process-steps {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .step-arrow {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }
    .winner-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    .winner-info h3 {
        font-size: 1.3rem;
    }
    .winner-info p {
        font-size: 1rem;
    }
}

@media (max-width: 960px) {
    .banner-free-game{
        width:720px;
        height:140px;
    }
}

@media (max-width: 768px) {

    .game_size {
        width: 400px;
        height: 300px;
    }

    header .container {
        flex-direction: column;
        gap: 1rem;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .winner-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1.5rem;
    }
    .winner-card.reverse {
        flex-direction: column;
    }
    .winner-info h3 {
        font-size: 1.2rem;
    }
    .winner-info p {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {

    .game_size {
        width: 320px;
        height: 240px;
    }

    .banner-recommend{
        width:auto;
        height: 120px;
        /*flex:1 1 0%;*/
    }

    .banner-game-result-recommend{
        width:auto;
        height:118px;
    }

    .banner-free-game{
        width:auto;
        height:120px;
    }

    .countdown {
        background: rgba(255, 255, 255, 0.85);
        border-radius: 20px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
        width: 22rem;
        display: flex;
        justify-content: space-around;
        margin: 10px 0;
        flex-wrap: wrap;
    }

    .time-unit {
        min-width: 3rem;
    }

    .value {
        font-size: 2.5rem;
    }

    .label {
        font-size: 0.7rem;
    }

    /*for other page*/
    .detail-countdown {
        width: 12rem;
        display: flex;
        justify-content: space-around;
        margin: 4px 0;
        flex-wrap: wrap;
    }

    .detail-time-unit {
        min-width: 1.5rem;
    }

    .detail-value {
        font-size: 1.25rem;
    }

    .detail-label {
        font-size: 0.35rem;
    }
    /*for other page*/


    .play_label {
        margin-top: 3px;
        margin-bottom: 3px;
        /*font-size: 1.0rem;*/
        font-weight: 700;
        color: #D63F72;
        letter-spacing: 1px;
    }

    .home_play_label {
        margin-top: 3px;
        margin-bottom: 3px;
        font-size: 1.5rem;
        font-weight: 700;
        color: #D63F72;
        letter-spacing: 1px;
    }



    .game_start_button {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .game_rules {
        background-image: url('../images/game_rule.svg');
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        max-height: 100px;
        padding: 100px 0;
        text-align: left;
        color: #fff;
        background-color: #f8f9fa; /* Fallback */
    }

    .hero {
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        max-height:400px;
        padding: 60px 0;
        text-align: left;
        color: #fff;
        background-color: #f8f9fa; /* Fallback */
    }


    .second_banner {
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        max-height: 100px;
        padding: 50px 0;
        text-align: left;
        color: #fff;
        background-color: #f8f9fa; /* Fallback */
    }

    .second_banner .second_banner_desc {
        font-size: 16px;
    }

    .second_banner_img {
        width:200px;
        height:120px;
    }

    header {
        background-color: #f8f9fa;
        padding: 0.4rem 0;
        border-bottom: 1px solid #dee2e6;
    }

    .container {
        width: 95%;
    }

    .hero .hero_desc {
        font-size: 18px
    }

    .hero h1 {
        font-size: 1.4rem;
    }
    .header-right {
        flex-direction: column;
        width: 100%;
    }
    .search-bar input {
        width: calc(100% - 18px);
    }
    .footer-bottom .container {
        flex-direction: column;
        gap: 1rem;
    }
    .winner-card {
        padding: 1rem;
        gap: 1rem;
    }
    .winner-info h3 {
        font-size: 1.1rem;
    }
    .winner-info p {
        font-size: 0.9rem;
    }

    .prize-card h3 {
        margin-bottom: 0.3rem;
        font-size: 16px;
    }
} 