:root {
    --theme-color: #40576D;
    --theme-color-dark: #354350;

    --transparent-white: rgba(255, 255, 255, 0.5);
    --transparent-theme-color: rgba(64, 87, 109, 0.9);

    --transparent-light-grey: rgba(180, 180, 180, 0.7);
    --dark-grey: rgba(60, 60, 60, 1);

    --border-radius: 7px;
}
@font-face {
    font-family: 'MagnoliaScript';
    src: url('MagnoliaScript.otf')
}

html, body {
    margin: 0;
    height: 100%;
}
body {
    background-color: var(--theme-color);
    background-image: url("background.webp");
    background-repeat: repeat;
    min-height: 100vh;

    margin: 0px;
    padding: 0px;

    max-width: 100%;
    overflow-x: hidden;
}

.banner {
    height: 80px;
    width: 100%;
    background-color: var(--transparent-theme-color);

    margin-top: auto;
    margin-bottom: 20px;

    border-bottom: solid;
    border-width: 2px;
    border-color: var(--transparent-white);   
}
.long-banner {
    margin-bottom: 76px;
}
.banner-text {
    float: right;
    margin-top: 20px;
    margin-right: 20px;
    font-size: 30px;

    color: white;
}
.banner-link {
    text-decoration: none;
    cursor: pointer;
    color: white;
}
.banner-img {
    margin-top: 5px; 
    margin-left: 5px; 
    height: 70px;
}
.footer {
    width: 100%;
    background-color: var(--transparent-theme-color);

    margin-top: auto;
    margin-bottom: 20px;

    border-top: solid;
    border-width: 2px;
    border-color: var(--transparent-white);   
}
.footer p {
    text-align: center;
    margin-top: 5px;
    margin-bottom: 0px;
}
.footer-link {
    color: white;
    text-decoration: none;
}
.footer-link:hover {
    text-decoration: underline;
}

.div-connexion {
    background-color: var(--transparent-white);
    border-radius: var(--border-radius);
    border: solid;
    border-width: 2px;
    border-color: var(--theme-color);

    padding: 20px;
    padding-top: 1px;

    margin-left: auto;
    margin-right: auto;
    margin-top: 5%;
    margin-bottom: 30px;
}
.div-big-card {
    background-color: var(--transparent-white);
    border-radius: var(--border-radius);
    border: solid;
    border-width: 2px;
    border-color: var(--theme-color);

    padding-left: 20px;
    padding-right: 20px;
    padding-top: 1px;
    padding-bottom: 5px;

    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
    height: fit-content;
}

.div-add-to-cart {
    padding-top: 25px;
    padding-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.div-add-to-cart p {
    text-align: center;
    padding-left: 25px;
    padding-right: 35px;
    font-size: 25px;
    width: 20px;
}
.div-add-to-cart button {
    margin-top: 23px;
    height: fit-content;
}

* {
    font-family: 'MagnoliaScript';
}
.text {
    color: black;
    font-size: 20px;
}
.centered {
    text-align: center;
}
.error-text {
    background-color: white;
    padding: 5px;

    color: #D7263D;
    font-weight: bold;
    text-align: center;
}
.message-text {
    background-color: white;
    padding: 5px;

    color: var(--theme-color-dark);
    font-weight: bold;
    text-align: center;

    margin-bottom: 20px;
}
.title {
    font-size: 22px;
}
.red-text {
    color: #BA1B1D;
}
.cyan {
    color: #008899;
}
.link {
    text-decoration: none;
    cursor: pointer;
    color: var(--theme-color-dark);
}
.signature-img {
    width: 100%;
    border-radius: var(--border-radius);
}

.button-column {
    width: 50px;
}
.text-column {
    width: 470px;
    text-align: left;
}

.card-container {
    min-height: calc(100vh - 144px);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.card {
    float: left;
    background-color: var(--transparent-white);

    border-radius: var(--border-radius);
    border: solid;
    border-width: 2px;
    border-color: var(--theme-color);
    cursor: pointer;

    padding: 5px;
    margin: 30px;
    width: 300px;
    height: 350px;
}
.card:hover {
    background-color: var(--transparent-theme-color);
    border-color: white;
}
.card:hover p {
    color: white;
}
.card:hover .card-fa {
    color: white;
}
.card-title {
    font-size: 30px;
    text-align: center;

    margin-top: 15px;
    margin-bottom: 15px;
}
.card-img {
    width: 250px;
    height: 250px;
    object-fit: cover;

    margin-left: 22.5px;
    margin-top: 2px;

    border-radius: var(--border-radius);
    border: solid;
    border-width: 2px;
    border-color: white;
}
.card-fa {
    font-size: 200px;
    color: var(--theme-color-dark);

    margin-left: 27px;
    margin-top: 26px;
}
.disabled-card {
    background-color: var(--transparent-light-grey);
}
.disabled-card p {
    color: var(--dark-grey);
}
.disabled-card .card-title {
    text-decoration: line-through;
}
.disabled-card .card-img {
    border-color: var(--dark-grey);
}

.category {
    width: 100%;
    margin-left: 50px;
}
.category-img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    float: left;

    border-radius: var(--border-radius);
    border: solid;
    border-width: 2px;
    border-color: var(--transparent-white);
    
    margin-bottom: 30px;
}
.category-title {
    float: left;

    margin-top: 20px;
    padding-left: 20px;
    padding-right: 30px;
    padding-top: 10px;
    padding-bottom: 10px;

    border-top-right-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
    background-color: var(--transparent-white);
}
.category-title-title {
    font-size: 60px;
}
.small-title {
    font-size: 30px;
}

.input {
    width: 300px;
    font-size: 18px;
    
    padding: 9px;
    margin-top: 2px;
    margin-bottom: 20px;

    box-shadow: none;
    border-radius: var(--border-radius);
    border-width: 2px;
}
.input::file-selector-button {
    width: 100px;
    
    padding: 9px;
    margin-top: 2px;
    margin-bottom: 20px;

    box-shadow: none;
    border-radius: var(--border-radius);
    border-width: 2px;
}
.input:focus {
    outline: none !important;
    border-color: var(--theme-color);
}
.textarea {
    width: 478px;
    height: 100px;
    max-width: 95%;
}
.checkbox {
    float: left;
    margin-right: 11px;
    margin-left: 11px;
    accent-color: var(--theme-color-dark);
    transform: scale(1.9);
}
.checkbox-label {
    float: left;

    font-size: 16px;
    margin-left: 5px;
    color: black;
}
.checkbox-br {
    line-height: 30px;
}
.input-label {
    display: inline-block;
    width: 100%;

    font-size: 18px;
    color: black;

    margin-left: 5px;
    padding-bottom: 6px;
}
.button {
    display: block;
    width: 322px;
    font-size: 18px;
    
    padding: 9px;
    margin-top: 10px;
    margin-bottom: 10px;

    box-shadow: none;
    border-radius: var(--border-radius);
    border: solid;
    border-width: 2px;
    border-color: var(--theme-color-dark);
    
    color: white;
    background-color: var(--theme-color-dark);

    text-align: left;
    text-decoration: none;
    cursor: pointer;
}
.button:hover {
    color: var(--theme-color-dark);
    background-color: white;
}
.small-button {
    display: block;
    float: left;
    
    padding-top: 4px;
    padding-bottom: 4px;
    margin-bottom: 20px;
    margin-right: 10px;
    width: 40px;

    box-shadow: none;
    border-radius: var(--border-radius);
    border: solid;
    border-width: 2px;
    border-color: var(--theme-color-dark);
    
    color: white;
    background-color: var(--theme-color-dark);

    font-size: 18px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.small-button:hover {
    color: var(--theme-color-dark);
    background-color: white;
}
.disabled-button {
    display: block;
    float: left;
    
    padding-top: 4px;
    padding-bottom: 4px;
    margin-bottom: 20px;
    margin-right: 10px;
    width: 40px;

    box-shadow: none;
    border-radius: var(--border-radius);
    border: solid;
    border-width: 2px;
    border-color: var(--transparent-light-grey);
    color: var(--dark-grey);
    background-color: var(--transparent-light-grey);

    font-size: 18px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.button-link {
    text-decoration: none;
}

@media screen and (max-width: 600px) {
    .hide_if_mobile {
        display: none;
    }
    
    .banner {
        padding-top: 1px;
    }
    .footer {
        height: 65px;
    }

    .category {
        margin-left: 0px;
    }
    .category-title {
        border-top-right-radius: 0;
        border-top-right-radius: 0;
        padding-top: 20px;
        padding-bottom: 20px;
    }
    .category-title-title {
        line-height: 50px;
    }
    .category-title-br {
        line-height: 4
    }
    .small-title {
        line-height: 26px;
    }

    .div-connexion {
        width: 500px;
    }
    .div-big-card {
        width: unset;
    }

    .textarea {
        width: 93%;
    }
}
@media screen and (min-width: 601px) {
    .banner-img {
        border-bottom-right-radius: var(--border-radius);
    }

    .main-card {
        width: 90% !important;
        max-width: 1000px;
    }
    .main-card img {
        width: 500px;
        margin-left: calc(50% - 250px);
    }

    .div-connexion {
        width: 500px;
    }
    .div-big-card {
        width: 500px;
    }
}