@font-face {
    font-family: 'ITC Avant Garde';
    src: url('../font/ITCAvantGardeStd_Bold.otf') format('opentype');
}

@font-face {
    font-family: 'Better With';
    src: url('../font/BetterWith-Regular.otf') format('opentype');
}
* {
    font-family: 'Better With', 'ITC Avant Garde', sans-serif;
}

html {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    background: rgba(185, 182, 182, 0.315) url("../img/ccc_bg_b.jpg") center top/cover no-repeat fixed;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.footer {
    width: 100%;
    color: #fff;
    text-align: center;
    padding: 5px 2px;
    font-size: 10px;
    text-shadow: 0 0 6px black;
    margin-top: 20px;
    white-space: normal;
    word-wrap: break-word;
    word-break: break-word;
    -webkit-text-size-adjust: none; /* Prevent iOS from auto-adjusting text size */
}

.footer a {
    color: #23b4ed;
}

.logo {
    text-align: center;
}

.logo img {
    width: 220px;
}
.header-text {
    text-align: center;
    background-image: url(../img/logo_e.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position-x: center;
    height: 120px;
    width: 100%;
    margin-bottom: 30px;
  }
.header-text-title {
    text-align: center;
    color: #ffffff;
    margin-bottom: 30px;
    font-size: 65px;
}

.container {
    padding: 20px;
    width: 100%;
    max-width: 100%;
    margin: auto;
    text-align: center;
    box-sizing: border-box;
    position: fixed;
    top: 230px;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.card-contain {
    min-width: 600px;
    margin: auto;
}

.card-contain-text {
    color: #fff;
    font-size: 16px;
}

.card-contain-text p {
    font-size: 18px;
}

input {
    padding: 10px 45px 10px 10px;
    border: 1px solid #848484;
    border-right: none;
    width: 100%;
    background: #f1f1f1;
    box-sizing: border-box;
    height: 40px;
    border-radius: 45px;
    font-size: 18px;
    max-width: 800px;
}



.card-scan {
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.input-wrapper {
    position: relative;
    max-width: 800px;
    width: 100%;
}

.card-scan-input{
    padding: 10px 110px 10px 10px;
    border: 1px solid #848484;
    width: 100%;
    background: #f1f1f1;
    box-sizing: border-box;
    height: 70px;
    border-radius: 45px;
    font-size: 18px;
}

.scan-card-act {
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    height: 70px;
    width: 117px;
    border-radius: 45px;
    background: url("../img/enter.png") center/cover no-repeat;
    border: none;
    color: transparent;
    font-size: 0;
    cursor: pointer;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.6);
    line-height: 35px;
    text-align: center;
}
*:focus {
    outline: none;
}

.att-email {
    height: 10px;
    margin-top: 20px;
    display: none;
  }

.email-button-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
}

.email-act {
    position: relative !important;
    transform: none !important;
    right: auto !important;
    top: auto !important;
}
.msg {
    color: #fff;
    height: 25px;
}


/* Adjust container position when att-email is visible on desktop */
@media (min-width: 1001px) {
    .container:has(.att-email[style*="display: block"]) {
        bottom: 17px;
    }
}

@media (max-width: 1000px) {
    body {
        background: rgba(185, 182, 182, 0.315) url("../img/ccc_mobile.jpg")  center top/cover no-repeat;
        display: block;

    }

    .footer {
        font-size: 8px !important; /* Force 8px font size on mobile */
        -webkit-text-size-adjust: none; /* Prevent iOS from auto-adjusting text size */
        position: fixed;
        bottom: 20px;
        left: 0;
        right: 0;
        margin-top: 0;
        padding: 5px 2px;
    }


    .header-text-title {
        display: none;
    }

    .header-text {
        display: none;
    }


    .container {
        padding: 15px;
        max-width: 500px;
        position: fixed;
        top: 40%;
        left: 0;
        right: 0;
    }

    .logo img {
        width: 110px;
    }

    .card-contain {
        min-width: 100% ;
        margin: 0px auto;
    }

    .card-contain-text {
        font-size: 14px;
    }

    .card-contain-text p {
        font-size: 14px;
        margin: 5px 0;
    }

    .scan-card {
        max-width: calc(100% - 100px);
        padding: 10px 20px 10px 10px;
        font-size: 14px;
    }


    .circle1, .circle2 {
        position: static;
        width: 135px;
        margin: 2px auto;
        display: block;
        left: 0;
        right: 0;
        top: 0;
    }

    .card-contain-text h2 {
        font-size: 18px;
    }


    .card-scan {
        padding: 0 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .input-wrapper {
        max-width: 100%;
    }

    .card-scan-input {
        padding-right: 100px;
        height: 50px;
    }

    .scan-card-act {
        right: 0px;
        width: 85px;
        height: 50px;
        font-size: 0;
        line-height: 32px;
        background: url("../img/enter.png") center/cover no-repeat;
    }
}
