@font-face {
    font-family: 'site title font';
    src: url('/fonts/Ceremonials.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
li,
img {
    margin: 0;
    padding: 0;
    list-style: none;
    max-width: 100%;
}

body {
    line-height: 2;
    display: flex;
    flex-direction: column;
    min-height: 100vh;

    font-family: 'EB Garamond', serif;
}

#old-paper-gallery-logo {
    position: fixed;
    top: 0;
    left: 0;
}

#old-paper-gallery-logo img {
    width: 100px;
}

header {
    background-color: #333;
    color: #fff;
    padding: 1em;
    text-align: center;
}

header h1 {
    text-align: center;
    color: #FFD700;
    font-weight: 100;
    font-size: 50px;
    font-family: 'site title font', cursive;
}

.main-container {
    position: relative;
    padding: 20px;
    flex: 1;
    overflow: hidden;
}

.main-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Utilisation de la variable CSS pour l'image de fond */
    background-image: var(--background-image);
    background-size: cover;
    background-position: center;
    transition: background-image 1s cubic-bezier(0, 0, 0.2, 1);
    /* Opacité appliquée uniquement au background */
    opacity: 0.5;
    z-index: -1;
}

.section-container {
    position: relative;
    z-index: 1;
    background-color: transparent;
    padding: 20px 10vw;
    text-align: justify;
    text-justify: auto;
}

img {
    border-radius: 20px;
}

a {
    color: #f5f5f5;

    text-decoration: none;
    transition: all 0.5s ease-in-out 0s;
}

a:hover {
    /* color: #82b9f7; */
    color: #FFD700;
}

.nav-selected {
    color: #FFD700;
    /* border-bottom: 1px solid #82b9f7; */
    border-bottom: 1px solid #FFD700;

    transition: border-bottom 0.3s ease-in-out;
}

h1 {
    text-align: left;
    margin-bottom: 20px;
}

input,
button {
    font-family: 'Lora', serif;
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 1em;
    transition: all 0.5s ease-in-out 0s;
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1.5em 2em;
    font-size: 12px;
}

#left-footer,
#right-footer {
    display: flex;
    flex-direction: column;
    align-content: space-between;
}

footer a {
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.5s ease-in-out 0s;
}

.product-button {
    margin-top: 10px;
}

.add-to-cart-button {
    padding: 5px 20px;
    background-color: #333;
    border: 1px solid #333;
    transition: all 0.5s ease-in-out 0s;
    cursor: pointer;
}

.add-to-cart-button:hover {
    background-color: #FFD700;
    color: black;
}

.products-list {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: center;
    margin-bottom: 5em;
    margin-top: 2em;
}

.product {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
    background: #d1d1d1c7;
    box-shadow: 5px 5px 10px grey;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    width: 250px;
}

.product img {
    width: auto;
    height: 250px;
    transition: all 1s ease-in-out 0s;
}

.product img:hover {
    /* opacity: 1; */
    transform: scale(1.1);
}

.prev-button {
    width: 250px;
    display: flex;
    align-items: center;
    transition: all 0.5s ease-in-out 0s;
}

#chevron-img {
    width: 15px;
    height: 15px;
    margin-right: 10px;
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    h1 {
        text-align: center;
    }

    .section-container {
        padding: 0;
    }

    .product {
        width: 100%
    }

    .product img {
        width: auto;
    }

    .main-container,
    #cart-items {
        padding: 0;
    }

    .section-container {
        padding: 20px;
    }
}