html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    text-align: center;
}

.bg {
    width: 100%;
    min-height: 100vh;
    padding-bottom: 120px;

    background:
        linear-gradient(
            rgba(250,245,238,0.55),
            rgba(250,245,238,0.55)
        ),
        url("./background/background.png");

    background-size: 130%;
    background-position: right 67%;
    background-repeat: no-repeat;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

h1 {
    color: rgba(81, 87, 150, 0.756);
    font-size: 75px;
    font-family: "UoqMunThenKhung", serif;
    font-weight: 400;
    font-style: normal;
    margin-bottom: 8px;
}

h3 {
    color: rgba(114, 110, 26, 0.934);
    font-family: "Noto Serif TC", serif;
    font-size: 30px;
    margin-top: 0;
}

p {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    line-height: 1.8;
    word-break: break-all;
    font-family: "Shippori Mincho", serif;
}

h2 {
     font-family: "ZCOOL QingKe HuangYou", sans-serif;
     font-weight: 400;
     font-size: 20px;
     color: rgb(15, 59, 59);
     text-align: center;
}

.container {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    width: 95%;
    max-width: 1440px;
    margin-top: 120px;
    justify-content: center;
    box-sizing: border-box;
}

.btn {
    padding: 10px 25px;
    margin-top: 0;
    font-size: 20px;
    font-family: "UoqMunThenKhung", serif;
    background-color: #ffffff;
    color: #7d4b11;
    writing-mode: horizontal-tb;
    white-space: nowrap;
    border: none;
    border-radius: 12px;
    transition: 0.2s;
}

.btn:hover {
    background-color: #b5bac2;
    transform: translateY(-3px);
}

.card {
    margin-top: -55px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background-color: #d4a478;
    border-radius: 20px;
    flex: 1;
    min-width: 0;
    padding: 150px 15px;
    padding-top: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    line-height: 1.6;
    letter-spacing: 1px;
    box-sizing: border-box;
}

input {
    size: 45px;
}

#enterbtn {
   font-size: 15px; 
   background-color:#b89f9f;
   text-shadow: #ebd84f;
}

@media (max-width: 768px) {
    .bg {
        background-size: cover; 
        background-position: center;
        padding-bottom: 40px;
        justify-content: flex-start;
        padding-top: 30px;
    }

    h1 {
        font-size: 36px;
        margin-top: 10px;
        margin-bottom: 5px;
    }
    
    h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .container {
        flex-direction: column;
        align-items: center;
        margin-top: 10px; 
        gap: 35px;
    }

    .card {
        width: 100%;
        max-width: 280px;
        margin-top: 0px;
        padding: 40px 20px;
    }
}