﻿:root{
    --tiles-max-width: 70rem;
    --forms-max-width: 48rem;

    --login-form-max-width:35rem;
    --cell-validate-max-width: 40rem;
    
    --font-size-xm-caption:33px;
    --font-size-sm-caption:35px;
    --font-size-md-caption:40px;
    --font-size-lg-caption:55px;
}


html, body {
    height: 100%;
    /*min-height: 100vh;*/
    /*padding-top: 5px;
    margin-left: 10px;
    margin-right: 10px;*/
}

.overlay {
    position: absolute;
    z-index: 9999;
    top: 50%;
    left: 50%;
    opacity: 0.8;
    background: #6e6e6e;
    transform: translate(-50%, -50%);
}

.mycontainer {
    display: grid;
    place-items: center;
    font-family: "League Spartan", system-ui, sans-serif;
    font-size: 1.1rem;
    line-height: 1.2;
}

.tiles {max-width: var(--tiles-max-width);}

.forms {width:var(--forms-max-width)}
.forms > .login-form {width:var(--login-form-max-width)}
.forms > .cell-validate-form {width:var(--cell-validate-max-width)}

.tiles > * + *,
.forms > * + * {
    margin-top: var(--flow-space, 1.25em);
}

.tiles .card:hover {
    box-shadow: 10px 15px 20px silver !important;
 }

.tiles .card:active {
    box-shadow: 10px 15px 20px black !important;
}

.tiles .row { 
    justify-content: center;
    flex-direction: row;
    row-gap:2rem;
}

.tiles a,
.forms a{
    text-decoration: none !important;
}

.tiles div.action {
    cursor:pointer;
}

.caption {
    /*margin-top: 15px;*/
    text-align: center;
    font-family: Asap, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 30px;
    padding-top:1rem!important;
}


/*XS*/
@media(max-width:575.98px) {
    .caption {font-size: var(--font-size-xm-caption)}

    .tiles {width: 100%;padding: 5px;}
    .tiles .row {row-gap: 0.7rem;}

    .forms {width: 100%;padding: 5px;}
    .forms > .login-form {width:100%;}
    .forms > .cell-validate-form {width:100%}

    #fixed.debug:after {content :'XS'}

    .card-body { padding:.5rem .5rem!important;} /*override bootstrap*/
}

/*SM*/
@media (min-width: 576px) and (max-width:767.98px) {
    .caption {font-size: var(--font-size-sm-caption)}

    .forms {width: 100%;padding: 5px;}
    .forms > .login-form {width:100%;}
    .forms > .cell-validate-form {width:100%}

    #fixed.debug:after {content :'SM'}

    .card-body {padding:.5rem .5rem!important;} /*override bootstrap*/
}
/*MD*/
@media(min-width: 768px) and (max-width:991.98px) {
    .caption {font-size: var(--font-size-md-caption)}

    #fixed.debug:after {content :'MD'}
}
/*LG and more*/
@media(min-width: 992px){
    .caption {font-size: var(--font-size-lg-caption)}

    #fixed.debug:after {content :'LG'}
}

/* Les boutons Home, MyOrder, Pass, Customer, Logout */
#actions td > div {
    padding-top: 5px;
}

.title {
    font-family: Asap, "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #757575;
    margin-top: 10px;
    margin-bottom: 5px;
}

.title h3 {
        font-weight: 700;
        font-size: 20px;
        line-height: 20px;
        margin: 0px;
        color: #000;
        text-transform: uppercase;
    }

.title p {
        margin-top: 10px;
        font-weight: 300;
    }

.qrcode {
    width: 150px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    margin-bottom: 20px;
}

.font-size {
    position: fixed;
    bottom: 0px;
    right: 10px;
    width: 70px;
}

.font-size i {
        cursor: pointer;
        padding: 5px;
        font-size: 25px;
    }

#summary {
    color: #777;
}

.totalPrice {
    background: #9e9e9e;
    color: white;
    padding: 5px;
    margin-top: 5px;
}

.invalid {
    border-color: rgb(250, 61, 86);
    background-image: url("data:image/svg+xml,%3Csvg width='30px' height='30px' viewBox='0 0 30 30' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg transform='translate%28-128.000000, -59.000000%29' fill='%23F44336'%3E%3Cpolygon points='157.848404 61.9920213 145.980053 73.8603723 157.848404 85.7287234 154.856383 88.7207447 142.988032 76.8523936 131.119681 88.7207447 128.12766 85.7287234 139.996011 73.8603723 128.12766 61.9920213 131.119681 59 142.988032 70.8683511 154.856383 59'%3E%3C/polygon%3E%3C/g%3E%3C/g%3E%3C/svg%3E%0A");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 0.75rem;
}

.address-table {
    font-family: arial, sans-serif;
    border-collapse: collapse;
    width: 100%;
    background-color: white;
    box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

.address-table td, .address-table th {
        border: 1px solid #dddddd;
        text-align: left;
        padding: 8px;
    }

.address-table tr:hover {
        background-color: #F5F5F5;
    }

input#name {
    text-transform: capitalize;
}


.w-1-rem {
    width: 1rem !important;
}


.btn {
    font-size: 1.07143rem;
    line-height: 1.4;
    padding-left: 1.5rem;
    padding-bottom: 1rem;
    padding-top: 1rem;
    padding-right: 1.5rem;
    margin-top: 1.5rem;
}

.btn.language {
    padding-top: .5rem;
    padding-bottom: .5rem;
}


#fixed {
    position:fixed; bottom:0px; right:0px;  
    padding:5px;margin:5px;
}

#fixed.debug {
    font-weight:bold;
    font-family:Asap, Verdana;
    font-size:16px;
    color:white;
    border-radius:50%;
    background-color:dimgrey;
}