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

* {
    font-family: 'ITC Avant Garde', sans-serif;
}

body {
    background: rgba(185, 182, 182, 0.315) url("../img/hustle25.jpg") center/cover no-repeat;
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

.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;
}

.container {
    padding: 20px;
    width: 100%;
    max-width: 100%;
    margin: auto;
    text-align: center;
    flex: 1;
    box-sizing: border-box;
}

.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: 10px;
    font-size: 18px;
}



.card-scan-input{
    padding: 10px 45px 10px 10px;
    border: 1px solid #848484;
    border-right: none;
    float: left;
    max-width: 350px;
    background: #f1f1f1;
    box-sizing: border-box;
    height: 45px;
    border-radius: 10px;
    font-size: 18px;
}

.scan-card-act {
    margin-left: 10px;
    float: left;
    height: 45px;
    width: 90px;
    border-radius: 35px;
    background: #dd3e3d;
    border: none;
    color: #fff;
    font-size: 25px;
    cursor: pointer;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.6);
    line-height: 48px;
    text-align: center;
}

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

.msg {
    color: #fff;
    height: 25px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.item {
    width: 100%;
}

.circle1 {
    position: relative;
    left: -105px;
    top: -28px;
    width: 300px;
    max-width: 100%;
}

.circle2 {
    position: relative;
    right: -145px;
    top: 4px;
    width: 300px;
    max-width: 100%;
}

.circle-container-left {
    text-align: left;
}

.circle-container-right {
    text-align: right;
}

@media (max-width: 1000px) {
    .footer {
        font-size: 8px !important; /* Force 8px font size on mobile */
        -webkit-text-size-adjust: none; /* Prevent iOS from auto-adjusting text size */
    }
    .grid {
        grid-template-columns: 1fr;
        gap: 0px;
    }

    .container {
        padding: 15px;
        max-width: 500px;
    }

    .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;
    }

    /* Reorder grid items for mobile */
    .grid {
        display: flex;
        flex-direction: column;
    }

    .grid .item:nth-child(3) {
        order: 1;
    }

    .grid .item:nth-child(2) {
        order: 2;
    }

    .grid .item:nth-child(2) {
        order: 3;
    }

    .grid .item:nth-child(4) {
        order: 4;
    }

    .grid .item:nth-child(5) {
        order: 4;
    }

    .grid .item:nth-child(6) {
        order: 6;
    }

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