:root {
    --background : #CCE8FC;
    --text-color : #2C596C;
    --background2 : #B7D3E8;
    --background3 : #FEFEFE;
    --background4 : #CBE4F3;
    --font : "Abel";
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--background4);
}

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.header img {
    width: 75px;
}

.header__title {
    color: var(--text-color);
    text-align: center;
    font-family: var(--font);
    font-size: 64px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-transform: uppercase;
    margin-top: 20px;
    margin-bottom: 0;
}

.panier {
    margin-top: 40px;
    margin-left: 20px;
    margin-right: 20px;
}

.items {
    display: grid;
    grid-template-columns: 5% 10% 60% 25%;
}

.items--hidden {
    display: none;
}

.items__input {
    width: 60%;
    height: 70%;
    background-color: var(--text-color);
    text-align: center;
    box-shadow: 0px 0px 2px 3px rgba(0, 0, 0, 0.25) inset;
}

.items__times {
    color: #000000;
    text-align: center;
    font-family: var(--font);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-right: 20px;
    justify-self: left;
    align-self:center;
}

.items__name {
    color: #000000;
    font-family: var(--font);
    font-size: 23px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
}

.items__delete {
    width: 20px;
    height: 20px;
    margin-left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: left;
    align-self: center;
    cursor: pointer;
}

.items__price {
    color: #000000;
    font-family: var(--font);
    font-size: 23px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
    grid-column: 3;
    grid-row: 2;
    margin-top: 10px;
}

.items--margin {
    margin-top: 40px;
    margin-bottom: 0;
}

.total {
    margin-top: 40px;
    display: flex;
    flex-direction: row;
    justify-content: right;
}

.total__title {
    color: #000000;
    font-family: var(--font);
    font-size: 23px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
    text-align: right;
}

.total__title--price {
    text-align: right;
    margin-left: 20px;
}

.panier__flex {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-top: 40px;
}

.panier__flex--refresh {
    margin-top: 20px;
}

.panier__flex--refresh .panier__button {
    width: 200px;
    height: 30px;
}

.panier__flex--refresh .panier__pay {
    color: #FEFEFE;
    text-align: center;
    font-family: var(--font);
    font-size: 23px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.panier__button {
    display: flex;
    width: 316px;
    height: 62px;
    padding: 7px 10px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background-color: #29556F;
    list-style: none;
    cursor: pointer;
}

.panier__button:hover {
    background-color: #000000;
}

.panier__button:active {
    background-color: #FFFFFF;
    border: 3px solid #29556F;
}

.panier__button:active .panier__pay {
    color: #000000;
}

.panier__flex a {
    text-decoration: none;
}

.panier__pay {
    color: #FEFEFE;
    text-align: center;
    font-family: var(--font);
    font-size: 32px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.panier__warning {
    margin-top: 20px;
    margin-bottom: 40px;
    display: flex;
    flex-direction: row;
    justify-content: right;
}

.warning__txt {
    color: #000000;
    text-align: right;
    font-family: var(--font);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
}

footer {
    background-color: #000000;
    display: grid;
    grid-template-columns: 50% 50%;
}

.footerl img {
    width: 66px;
    margin-top: 20px;
}

footer a {
    text-decoration: none;
    color: #FFF;
}

.footer__txt {
    color: #FFF;
    font-family: Handjet;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-top: 20px;
}

.footerl {
    display: flex;
    flex-direction: column;
    text-align: left;
    margin-left: 20px;
    margin-bottom: 20px;
}

.footerr {
    display: flex;
    flex-direction: column;
    text-align: right;
    margin-right: 20px;
}

.nopanier {
    margin-top: 80px;
    color: var(--text-color);
    text-align: center;
    font-family: var(--font);
    font-size: 48px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-transform: uppercase;
    margin-bottom: 0;
}

.panier__or {
    color: #000000;
    font-family: var(--font);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.panier__flex--margin {
    margin-top: 20px;
}

.panier__pay img {
    margin-left: 10px;
}

@media (min-width: 1200px) {
    .header {
        margin-top: 40px;
    }
    
    .header img {
        width: 150px;
    }
    
    .header__title {
        font-size: 90px;
        margin-top: 40px;
    }
    
    .panier {
        margin-top: 80px;
        margin-left: 40px;
        margin-right: 40px;
    }

    .items {
        grid-template-columns: 5% 10% 60% 25%;
    }
    
    .items__input {
        width: 40px;
        height: 64px;
        box-shadow: 0px 0px 4px 6px rgba(0, 0, 0, 0.25) inset;
    }
    
    .items__times {
        font-size: 23px;
        margin-right: 40px;
    }
    
    .items__name {
        font-size: 32px;
    }
    
    .items__delete {
        width: 40px;
        height: 40px;
        margin-left: 50%;
    }

    .items__delete img {
        width: 40px;
        height: 40px;
    }
    
    .items__price {
        font-size: 32px;
        margin-top: 20px;
    }
    
    .items--margin {
        margin-top: 80px;
    }
    
    .total {
        margin-top: 80px;
    }
    
    .total__title {
        font-size: 32px;
    }
    
    .total__title--price {
        margin-left: 40px;
    }
    
    .panier__flex {
        margin-top: 80px;
    }
    
    .panier__flex--refresh {
        margin-top: 40px;
    }
    
    .panier__flex--refresh .panier__button {
        width: 400px;
        height: 60px;
    }
    
    .panier__flex--refresh .panier__pay {
        font-size: 32px;
    }
    
    .panier__button {
        width: 632px;
        height: 124px;
        padding: 14px 20px;
        gap: 20px;
    }
    
    .panier__button:active {
        border: 6px solid #29556F;
    }
    
    .panier__pay {
        font-size: 48px;
    }
    
    .panier__warning {
        margin-top: 40px;
        margin-bottom: 80px;
    }
    
    .warning__txt {
        font-size: 32px;
    }
    
    .footerl img {
        width: 132px;
        margin-top: 40px;
    }
    
    .footer__txt {
        font-size: 40px;
        margin-top: 40px;
    }
    
    .footerl {
        margin-left: 40px;
        margin-bottom: 40px;
    }
    
    .footerr {
        margin-right: 40px;
    }
    
    .nopanier {
        margin-top: 160px;
        font-size: 64px;
    }
    
    .panier__or {
        font-size: 32px;
    }
    
    .panier__flex--margin {
        margin-top: 40px;
    }
    
    .panier__pay img {
        margin-left: 20px;
        height: 52px;
    } 
}

@media (max-width: 300px) {
    .header {
        margin-top: 10px;
    }
    
    .header img {
        width: 38px;
    }
    
    .header__title {
        font-size: 48px;
        margin-top: 10px;
    }
    
    .panier {
        margin-top: 20px;
        margin-left: 10px;
        margin-right: 10px;
    }

    .items {
        grid-template-columns: 5% 10% 60% 25%;
    }
    
    .items__input {
        box-shadow: 0px 0px 1px 2px rgba(0, 0, 0, 0.25) inset;
        width: 10px;
        height: 15px;
        align-self: center;
    }
    
    .items__times {
        font-size: 16px;
        margin-right: 10px;
        margin-left: 40%;
    }
    
    .items__name {
        font-size: 16px;
    }
    
    .items__delete {
        width: 10px;
        height: 10px;
        margin-left: 50%;
    }

    .items__delete img {
        width: 10px;
        height: 10px;
    }
    
    .items__price {
        font-size: 16px;
        margin-top: 5px;
    }
    
    .items--margin {
        margin-top: 20px;
    }
    
    .total {
        margin-top: 20px;
    }
    
    .total__title {
        font-size: 16px;
    }
    
    .total__title--price {
        margin-left: 10px;
    }
    
    .panier__flex {
        margin-top: 20px;
    }
    
    .panier__flex--refresh {
        margin-top: 10px;
    }
    
    .panier__flex--refresh .panier__button {
        width: 100px;
        height: 15px;
    }
    
    .panier__flex--refresh .panier__pay {
        font-size: 16px;
    }
    
    .panier__button {
        width: 158px;
        height: 31px;
        padding: 4px 5px;
        gap: 5px;
    }
    
    .panier__button:active {
        border: 2px solid #29556F;
    }
    
    .panier__pay {
        font-size: 23px;
    }
    
    .panier__warning {
        margin-top: 10px;
        margin-bottom: 20px;
    }
    
    .warning__txt {
        font-size: 16px;
    }
    
    .footerl img {
        width: 33px;
        margin-top: 10px;
    }
    
    .footer__txt {
        font-size: 10px;
        margin-top: 10px;
    }
    
    .footerl {
        margin-left: 10px;
        margin-bottom: 10px;
    }
    
    .footerr {
        margin-right: 10px;
    }
    
    .nopanier {
        margin-top: 40px;
        font-size: 32px;
    }
    
    .panier__or {
        font-size: 16px;
    }
    
    .panier__flex--margin {
        margin-top: 10px;
    }
    
    .panier__pay img {
        margin-left: 5px;
        height: 13px;
    } 
}