* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: sans-serif;
    font-weight: bold;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    overflow-x: hidden;
}

.main {
    width: 100%;
    background: transparent;
    overflow-x: hidden;
    border-radius: 10px;
    box-shadow: inset -2px 2px 2px white;
}

.container {
    width: 100%;
    height: 90%;
    background: #4099C9;
    overflow-x: hidden;
    box-shadow: inset -2px 2px 2px white;
}

.title-h1 {
    display: block;
    justify-content: center;
    text-align: center;
    font-size: 3rem;
    font-weight: bold;
    padding-top: 10px;
}

.title-h1 span {
    background-color: white;
}

.title-h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    padding-top: 25px;
    color: white;
}

.price {
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.price span {
    font-size: 4rem;
    color: #26292E;
    font-weight: bold;
    line-height: 150%;
    letter-spacing: 0px;
    text-shadow: 0px 0px 0px #000000;
}

.main-user-info {
    display: flex;
    flex-wrap: wrap;
    max-width: 100%;
    font-size: larger;
    padding-right: 20rem;
    padding-left: 20rem;
    margin-left: auto;
    margin-right: auto;
}


.user-input-box {
    display: flex;
    flex-wrap: wrap;
    width: 50%;
    padding-bottom: 15px;
}

.user-input-box:nth-child(2n) {
    justify-content: end;
}

.user-input-box input {
    height: 50px;
    width: 95%;
    border-radius: 5px;
    outline: none;
    border: 1px solid grey;
    padding: 5px;
}

.user-input-box input::placeholder {
    font-size: x-large;
    font-weight: lighter;
    color: rgb(172, 170, 170);
}

.free-delivery {
    text-align: center;
    font-weight: bold;
    font-size: x-large;
}

.form-submit-btn {
    margin-top: 10px;
    padding-right: 8rem;
    padding-left: 8rem;
    max-width: 70%;
    margin-left: auto;
    margin-right: auto;
}

.form-submit-btn input {
    display: block;
    width: 100%;
    font-size: 35px;
    padding: 10px;
    border: none;
    border-radius: 5px;
    color: white;
    background: #C1131E;
    cursor: pointer;
}

.form-submit-btn input:hover {
    background: #a1101a;
    color: rgb(255, 255, 255);
}

/* Spinner intégré au texte */
input[type="submit"].loading {
    background-color: #aaa !important;
    /* gris */
    cursor: not-allowed;
    color: white;
    position: relative;
}

/* Petit cercle loader */
input[type="submit"].loading::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.img-fluid {
    width: 100%;
    position: relative;
    margin-bottom: -10px;
}

.img-7 {
    margin-top: 40px;
}

.delivery {
    height: 80px;
    width: 100%;
    text-align: center;
    font-size: 2rem;
    background-color: rgb(255, 224, 228);
    border-top: solid 5px rgb(248, 179, 190);
}

.request-btn {
    display: flex;
    justify-content: center;
}

button {
    display: flex;
    background-color: #C1131E;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    margin-left: 20%;
    margin-right: 20%;
    width: 70%;
    height: 45px;
}

button:hover {
    background-color: #a1101a;
    color: white;
}

.circle {
    display: inline-block;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: #4099C9;
    color: black;
    font-size: 24px;
    line-height: 10px;
    border-radius: 50%;
    margin: 0 10px;
}

.circle p {
    margin: 10px;
}

.request-btn-2 {
    display: flex;
    justify-content: center;
}

.request-btn-2 button {
    display: flex;
    background-color: #C1131E;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    margin-left: 20%;
    margin-right: 20%;
    width: 70%;
    height: 45px;
    border-radius: 10px;
}

#countdown {
    text-align: center;
    padding: 30px;
}

/* message de succès */
.alert {
    width: 40%;
    text-align: center;
    position: relative;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-bottom: 20px;
    margin: 0 auto 20px auto;
    background-color: #36675F;
    color: white;
}

.alert .text {
    padding-right: 30px;
}

.closebtn {
    padding-top: 0px;
    padding-left: 15px;
    color: white;
    font-weight: bold;
    float: left;
    font-size: 22px;
    line-height: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.closebtn:hover {
    color: #C1131E;
}

/* message d'erreur */
.alert2 {
    width: 40%;
    text-align: center;
    position: relative;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-bottom: 20px;
    margin: 0 auto 20px auto;
    background-color: #C1131E;
    color: white;
}

.alert2 .text2 {
    padding-right: 30px;
}

.closebtn2 {
    padding-top: 0px;
    padding-left: 15px;
    color: white;
    font-weight: bold;
    float: left;
    font-size: 22px;
    line-height: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.closebtn2:hover {
    color: #a1101a;
}

@media(min-width: 801px) {
    .container2 {
        padding-right: 180px;
        padding-left: 180px;
    }

    .container3 {
        padding-top: 6px;
        padding-right: 40px;
        padding-left: 40px;
    }

    .div-green {
        text-align: center;
        padding-top: 10px;
        padding-bottom: 10px;
        margin-top: 20px;
        margin-bottom: 20px;
        margin-left: 200px;
        margin-right: 200px;
        background-color: #4099C9;
    }
}

@media(max-width: 800px) {
    .main {
        min-width: 100px;
        overflow-x: hidden;
    }

    .title-h1 {
        display: block;
        justify-content: center;
        text-align: center;
    }

    .main-user-info {
        max-height: 380px;
        overflow: auto;
        padding-right: 0rem;
        padding-left: 0rem;
    }

    .main-user-info::-webkit-scrollbar {
        width: 0;
    }

    .user-input-box {
        padding-right: 20px;
        width: 100%;
    }

    .user-input-box:nth-child(2n) {
        justify-content: space-between;
    }

    .form-submit-btn {
        margin-top: 10px;
        padding-right: 0rem;
        padding-left: 0rem;
        max-width: 70%;
        margin-left: auto;
        margin-right: auto;
    }

    .img-fluid {
        width: 100%;
        height: auto;
        position: relative;
    }

    .img-7 {
        margin-top: 10px;
    }

    .request-btn {
        display: flex;
        justify-content: center;
    }

    .button-rqt {
        display: flex;
        background-color: #C1131E;
        justify-content: center;
        align-items: center;
        margin-top: 10px;
        width: 100%;
        height: 45px;
    }

    .div-green {
        text-align: center;
        padding-top: 10px;
        padding-bottom: 10px;
        margin-top: 20px;
        margin-bottom: 20px;
        background-color: #4099C9;
    }
}
