/* Poppins Import via Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* CSS Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

:root {
    --back-info-color: #000000;
    --important-info-color: #F0F429;
    --header-background-color: #2B2728;
}

/*

CSS  

*/

h1, h2, h3, h5, h6 {
    margin-top: 1rem;
}

#info {
    background-color: var(--back-info-color);
    color: #ffffff;
    padding: 1rem;
    text-align: center;
    font-weight: 800;
    font-size: 16px;
}

#info a {
    color: var(--important-info-color);
}

header {
    display: flex;
    vertical-align: middle;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem 1rem 2rem;
    gap: 1rem;
    background-color: var(--header-background-color);
}

header img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

header nav ul {
    display: flex;
    list-style: none;
    margin-left: auto;
    gap: 1rem;
}

header nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 400;
}

#presentation {
    background-image: url('../assets/pizza_background.gif');
    background-size: cover;
    background-position: bottom;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;

    border-bottom-left-radius: 5%;
    border-bottom-right-radius: 5%;
}

#presentation img {
    width: 80vw;
}

body {
    background: #000;
    color: white;
}

body.loaded {
	background: url('../assets/texture.webp') no-repeat center center fixed; 
	background-size: cover;
}

main {
    padding: 2rem 2rem 0rem 2rem;
}

#formules, #pizzas {
    margin-bottom: 2rem;
}

#contenu-formules {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.formule {
    padding: 1rem;
    text-transform: uppercase;
    border-radius: 10px;
    text-align: center;
    flex-grow: 1;
}

.formule .container .pizza-details h5 img {
    width: 1rem;
    vertical-align: middle;
}

.formule h5 {
    padding: 0;
    margin: 0;
    text-transform: uppercase;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    display: block;
    animation: animPrices 2s infinite;
}

.formule-bleue {
    background-color: #1E4D98;
}

.formule-blanche {
    background-color: #ffffff;
    color: #000000;
}

.formule-rouge {
    background-color: #DB0000;
}

.pizzas-table {
    max-width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    min-width: 100%;
}

.pizzas-table th, .pizzas-table td {
    padding: .5rem;
    border-bottom: 1px solid #ffffff;
}

.pizza-row td:not(:first-child) {
    text-align: center;
}

.can {
    font-size: 0.75rem;
}

.can img {
    width: 0.75rem;
    margin-right: 0.5rem;
}

.red {
    color: red;
    font-weight: 800;
}

#pizza-xxl {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

#pizza-xxl div p {
    width: 50vw;
}

#pizza-xxl-img {
    width: 50%;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

#desserts {
    display: flex;
    gap: 1rem;
    justify-content: space-around;
    width: 50%;
    margin: 0 auto;
}

#desserts > div {
    text-align: center;
}

#desserts > div > img {
    width: 100%;
    border-radius: 10px;
}

#snapchat {
    margin-top: 2rem;
}

#snapchat > #bandeau {
    background-color: var(--important-info-color);
    color: #000000;
    padding: 1rem;
    font-weight: 800;
}

#snapchat-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

footer {
    background-color: var(--header-background-color);
    color: #ffffff;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10rem;
}

footer img {
    height: 2rem;
}

footer div {
    display: flex;
    gap: 1rem;
    justify-content: left;
    align-items: start;
}

footer div nav {
    display: flex;
    flex-direction: column;
    vertical-align: left;
}

footer a {
    color: #ffffff;
    text-decoration: none;
}

#qrcode {
    display: block;
}

/**

RESPONSIVE

**/

@media screen and (max-width: 768px) {
    header {
        display: none;
    }

    #presentation {
        height: 20vh;
    }

    #pizza-xxl-img {
        width: 100%;
    }

    .pizzas-table {
        font-size: 0.75rem;
    }

    .pizzas-table td {
        padding: 1rem 0 1rem 0;
    }

    #pizza-xxl {
        flex-direction: column;
        display: block;
    }

    #pizza-xxl div p {
        width: 100%;
    }

    #desserts {
        width: 100%;
    }

    #snapchat-container div img {
        height: 3rem;
        margin-top: 1rem;
    }

    #qrcode {
        display: none;
    }

    main {
        padding: .5rem;
    }

    footer {
        flex-direction: column;
        gap: 1rem;
    }

    footer img {
        height: 1.5rem;
    }

    #contenu-formules {
        gap: 0.5rem;
    }

    .formule {
        display: flex;
        text-align: left;
        font-size: 75%;
        padding: 0.5rem;
        justify-content: space-between;
    }

    .formule h4 {
        margin-top: 0;
    }

    .container {
        display: flex;
        flex-direction: row-reverse;
        align-items: center;
        gap: 1rem;
    }

    .container .price {
        font-size: 1.5rem;
        animation: animPrices 1s infinite;
    }

    .container .pizza-details {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .container .pizza-details h5 {
        text-transform: capitalize;
        font-weight: 300;
    }

    .container .pizza-details h5 img {
        width: .5rem;
        vertical-align: middle;
    }
}

/**

ANIMATIONS

**/

@keyframes animPrices {
    0% {
        -webkit-transform: scale(1);
        -ms-transform: scale(1);
        transform: scale(1);
    }
    50% {
        -webkit-transform: scale(1.1);
        -ms-transform: scale(1.1);
        transform: scale(1.1);
    }
    100% {
        -webkit-transform: scale(1);
        -ms-transform: scale(1);
        transform: scale(1);
    }
}






@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }
}
