/* VARIABLES */

:root{
    --principal: #bb0c0c;
    --secundari: #0c5aa9;
    --texts: #747376;
    --buttons: #bb0c0c;
    --fosc: #16191c;
}

/* SYTLE */

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

p {
line-height: 1.3em;
}

.main-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
    margin-bottom: 30px;
}

/* Language Switcher */

#languageSwitcher {
    position: absolute;
    top: 20px;
    right: 15px;
}
button {
    margin-right: 5px;
    padding: 10px 10px;
    cursor: pointer;
    border: none;
    border-radius: 7px;
    background-color: var(--buttons);
    color: #fff;
}

    /* Styles for mobile devices */

    @media (max-width: 768px) {

        #languageSwitcher {
            top: 15px;
            right: 10px;
        }

        button {
            font-size: .7em;
            margin-right: 0px;
        }

    }

.activelang {
    background-color: var(--fosc);
    color: #fff;
}

/* Mockup */

#mockup {
    width: 100%;
    max-width: 450px;
    margin: 0px auto 0;
    display: block;
}

    /* Styles for mobile devices */

    @media (max-width: 768px) {
        #mockup{
            max-width: 260px;
            margin: 40px auto 0;
        }
    }

/* Projecte info */

h1#titol {
    margin-top: 10px;
    margin-bottom: 5px;
    text-align: center;
    font-size: 4em;
    color: var(--principal);
}

a#projecte_more,
a#autor_more {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #fff;
    border: none;
    border-radius: 7px;
    background-color: var(--buttons);
    transition: background-color 0.3s ease;
    font-weight: normal;
}

    /* Styles for mobile devices */

    @media (max-width: 768px) {
        h1#titol {
            font-size: 3em;
        }
    }

p.explain {
    text-align: center;
    max-width: 90%;
    margin: 0 auto 20px auto;
    font-size: 1.2em;
    color: var(--texts);
}

/* Grid */

h2{
    font-size: 2em;
    font-weight: normal;
    text-align: center;
    margin-bottom: 10px;
}

.grid-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-top: 40px;
    margin-bottom: 60px;
}

.grid-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0px;
}

.grid-cell {
    flex: 1;
    padding: 0px;
    box-sizing: border-box;
    cursor: pointer;
}

.grid-cell.extended {
    display: none;
}

.grid-cell img {
    width: 100%;
    height: auto;
    display: block;
}

/* Mode Col·laboratiu */

#collaboratiu {
    margin-bottom: 60px;
}
button#toggleExtended {
    width: 100%;
    height: auto;
    display: block;
    padding: 20px;
    font-size: 1.1em;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    margin-bottom: 120px;
}

p.detalls {
    text-align: center;
    max-width: 90%;
    margin: 25px auto 15px auto;
    font-size: 1em;
}
p.observacions {
    text-align: center;
    max-width: 90%;
    margin: 10px auto;
    font-size: .8em;
    color: var(--texts);
}
p.preu {
    margin: 20px 0 0 0;
    font-size: 50px;
    text-align: center;
    color: var(--principal);
}
p.buy {
    margin-top: 20px;
    background-color: var(--principal);
    font-weight: bold;
    text-align: center;
    border-radius: 7px;
    padding: 20px;
    font-size: 1.1em;
}
p.soldout {
    margin-top: 20px;
    color: var(--principal);
    font-weight: bold;
    text-align: center;
    font-size: 2em;
    padding: 10px 20px;
}
p.comingsoon {
    margin-top: 20px;
    color: var(--secundari);
    font-weight: bold;
    text-align: center;
    font-size: 2em;
    padding: 10px 20px;
}
p.buy a {
    text-decoration: none;
    color:#fff;
}

.close {
    color: #e30b0b;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
.image-container {
    text-align: center;
}

.main-image {
    width: 100%;
    max-width: 500px;
    margin-bottom: 10px;
}

.thumbnails {
    display: flex;
    justify-content: left;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
}

.thumbnail {
    width: 97px;
    cursor: pointer;
    margin: 0px;
    transition: transform 0.2s;
}

.thumbnail:hover {
    transform: scale(1.1);
}

/* Conjunts */

#conjunts{
    margin-bottom: 60px;
}
#img_conjunts {
    width: 100%;
    margin-bottom: 15px;
} 

/* El Projecte, l'autor */
.info-container {
    display: flex;
    flex-wrap: wrap;
    margin: 20px 0;
    gap: 20px;
}
.info-column {
    flex: 1;
    padding: 25px;
    box-sizing: border-box;
    background-color: #f7f7f7;
    border: 1px dashed #d2d2d2;
    color: var(--texts);
    border-radius: 15px;
}
.info-column h2 {
    font-size: 1.9em;
    margin: 0px;
    text-align: left;
    color: var(--principal);
}
.author-content {
    display: flex;
    /* align-items: center; */
}
.info-column a{
    text-decoration: none;
    color: var(--principal);
    font-weight: bold;
}
.author-photo {
    width: 130px;
    height: 130px;
    margin-right: 15px;
}
.author-text {
    flex: 1;
}
@media (max-width: 767px) {
    .info-column {
        flex: 0 0 100%;
    }
    .author-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .author-photo {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* Footer */

footer {
    width: CALC(100% - 80px);
    background-color: var(--principal);
    color: #fff;
    text-align: center;
    padding: 40px;
}
footer p {
    margin: 0;
    padding: 0;
    line-height: 1.5;
}
footer a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}
footer .social {
    margin: 100px auto 10px;
}
footer .social-icon {
    width: 50px; /* Adjust the size as needed */
    height: 50px; /* Adjust the size as needed */
    fill: white; /* This works if the SVG has fill properties that can be overridden */
    filter: brightness(0) invert(1); /* This will turn the icon white if the SVG is in black */
    margin: 0 10px; /* Space between icons */
}