/* General Setting */
.bg-1 {
    background-image: url('../images/index/section-1-bg.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
    min-height: 100vh;
    display: grid;
    align-content: center;
}

.bg-2 {
    background-image: url('../images/index/section-2-bg.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
    min-height: 100vh;
    display: grid;
    align-content: center;
}

.title-wrapper {
    display: flex;
    justify-content: center;
}

button {
    background: transparent;
    border: none;
}

@media (max-width: 800px) {
    .bg-1 {
        background-image: url('../images/index/section-1-mob-bg.webp');
        background-size: cover;
        background-repeat: no-repeat;
        background-position: top center;
        min-height: 100vh;
        display: grid;
        align-content: center;
    }

    .bg-2 {
        background-image: url('../images/index/section-2-mob-bg.webp');
        background-size: cover;
        background-repeat: no-repeat;
        background-position: top center;
        min-height: 100vh;
        display: grid;
        align-content: center;
    }
}

/* ==================================================================== */
/* Section 1 */
.section-1-wrapper {
    display: grid;
    align-items: center;
    justify-content: center;
    padding: 10rem 15px 0;
    gap: 2rem;
}

.content-1 {
    display: grid;
    justify-content: center;
    align-items: center;
    justify-items: center;
    gap: 45px;
}

.content-2 {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 50px auto;
    width: 100%;
    max-width: 1000px;
    padding: 10rem 0;
}

.blue-bg-wrapper {
    position: relative;
    width: 100%;
    max-width: 1500px;
}

.blue-bg-border {
    background-color: #184998;
    border-radius: 15px;
    position: absolute;
    top: -20px;
    left: 20px;
    right: 20px;
    bottom: -20px;
    z-index: 1;
    border: 5px solid #FFBB00;
}

.blue-bg-border-2 {
    background-color: #184998;
    border-radius: 15px;
    position: absolute;
    top: 0px;
    left: -5px;
    right: -5px;
    bottom: 0px;
    z-index: 1;
    border: 5px solid #FFBB00;
}

.blue-bg {
    background-color: #184998;
    border-radius: 0px;
    position: relative;
    padding: 40px;
    z-index: 2;
    color: #FFFFFF;
    text-align: center;
    width: calc(100% - 129px);
    margin: auto;
}

.blue-bg img.title {
    margin-bottom: 20px;
    width: auto;
    max-width: 100%;
}

.blue-bg .text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (max-width: 800px) {
    .section-1-wrapper {
        padding: 25rem 15px 0;
    }

    .blue-bg {
        padding: 20px;
    }

    .blue-bg .text p {
        font-size: 14px;
    }

    .blue-bg {
        width: calc(100% - 89px);
    }

    .content-2 {
        padding: 10rem 0;
    }

    .content-1 {
        gap: 20px;
    }
}

@media(max-width: 600px) {

    .section-1-wrapper {
        padding: 15rem 15px 0;
    }

    .event-logo {
        height: calc(100% - 35%);
    }

    .blue-bg {
        width: calc(100% - 89px);
    }

    .content-1 {
        gap: 0px;
    }

    .content-2 {
        padding: 10rem 0 0;
    }
}

@media (max-width: 400px) {
    .section-1-wrapper {
        padding: 10rem 15px 0;
    }

    .event-logo {
        height: calc(100% - 45%);
    }
}

/* ==================================================================== */
/* Section 2 */
.snake {
    background-image: url('../images/index/snake.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top center;
    min-height: 100vh;
    display: grid;
    align-content: center;
}

.section-2-wrapper {
    display: grid;
    justify-content: center;
    justify-items: center;
}

.content-3 {
    display: grid;
    justify-content: center;
    justify-items: center;
    align-items: center;
    grid-template-columns: 1fr;
    gap: 5rem;
    padding: 10rem 0;
}

.content-3 .step-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    justify-content: center;
    align-items: start;
    justify-items: center;
    align-content: center;
    gap: 50px;
}

.content-3 .step-wrapper .container {
    display: grid;
    justify-content: center;
    justify-items: center;
    align-items: center;
    gap: 10px;
}

.content-3 .step-title {
    font-size: 18px;
    font-weight: 700;
}

.content-3 .step-text {
    text-align: center;
    font-size: 14px;
}

.content-4 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-items: center;
    padding: 10rem 0;
}

.content-4 .right {
    display: grid;
    justify-content: center;
    align-items: center;
    justify-items: center;
}

.content-4 .right .text {
    font-size: 18px;
    text-align: center;
    margin: 0 0 40px;
}

.content-5 .top {
    display: grid;
    justify-content: center;
    justify-items: center;
    gap: 20px;
    padding: 3rem 0;
}

.content-5 .bottom {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 0 0 5rem;
}

.content-5 .text {
    font-size: 26px;
    font-weight: 700;
}

.app-icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
}


@media (max-width: 1200px) {
    .content-3 .step-wrapper {
        grid-template-columns: 1fr 1fr;
    }

    .content-3 .step-wrapper {
        gap: 0;
    }

    .content-4 .reward {
        height: calc(100% - 10%);
    }
}

@media(max-width: 900px) {
    .content-4 {
        display: grid;
        grid-template-columns: 1fr;
        padding: 10rem 0;
        gap: 3rem;
    }
}

@media (max-width: 800px) {
    .content-3 {
        gap: 2rem;
        padding: 8rem 0 0;
    }

    .content-3 .title {
        height: calc(100% - 20%);
    }

    .content-3 .step-wrapper {
        gap: 20px;
    }

    .content-4 {
        display: grid;
        grid-template-columns: 1fr;
        padding: 10rem 0;
        gap: 3rem;
    }

    .content-5 .bottom {
        display: flex;
        flex-direction: column;
    }

    .content-5 .text {
        text-align: center;
        line-height: 1;
        padding: 10px 0;
    }

    .app-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }
}

@media(max-width: 600px) {

    .content-3 .step-wrapper {
        grid-template-columns: 1fr;
    }

    .content-4 .prize {
        height: 180px;
    }

    .content-4 .reward {
        height: calc(100% - 30%);
    }

    .content-4 {
        padding: 7rem 0;
        gap: 30px;
    }

    .content-5 .ready-huat {
        height: calc(100% - 20%);
    }

}

@media(max-width: 400px) {

    .content-4 {
        gap: 0;
    }

    .content-4 .prize {
        height: 160px;
    }

    .content-4 .grand-title {
        height: calc(100% - 30%);
    }

    .content-4 .reward {
        height: calc(100% - 40%);
    }

    .content-5 .ready-huat {
        height: calc(100% - 30%);
    }

}

@media(max-width: 370px) {

    .content-4 .prize {
        height: 130px;
    }

    .app-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        flex-direction: column;
    }
}