:root {
    /* FONTES */
    --titulo-fonte: 'Raleway', sans-serif;

    /* CORES */
    --pagina-inicial-borda: #f3f3f3;
        
        /* area quadros */
        --pagina-inicial-fundo: #ffffff; 
        --borda-quadro: black;
}


body {
    margin: 0;
    padding: 0;
    font-family: var(--titulo-fonte);
    background-color: var(--pagina-inicial-borda);
    box-shadow: inset 0px 0px 45px -2px rgba(0,0,0,0.78);
    min-height: 100vh;
}

h1 {
    margin: 0;
}

p {
    margin: 0;
}

a {
    padding: 0;
    margin: 0;
    text-decoration: 0;
}

#structure {
    height: calc(100% - 40px);
    width: calc(100% - 80px);
    margin: 20px;
    background-color: var(--pagina-inicial-fundo);
    padding: 30px 20px;
    box-shadow: 0px 0px 15px 0px rgba(0,0,0,0.25);
}

#paintings {
    display: flex;
    flex-wrap: wrap;
    margin: 0 0 50px 0;
    column-gap: 20px;
    row-gap: 60px;
    justify-content: center;
    flex-flow: row wrap;
}

.painting-item {
    position: relative;
    margin: 0 0 20px 0;
    cursor: pointer;
    border-radius: 8px;
    height: 300px;
    width: 23%;
    
}

.painting-item img {
    object-fit: cover;
    max-width: 100%;
    max-height: 100%;
}

.painting-link {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    pointer-events: none;
    color: transparent;
}

.painting-img-container {
    width: 100%;
    height: calc(100% - 28px);
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.painting-img-container > img {
    border-style: solid;
    border-width: 2px;
    border-radius: 8px;
    border-color: transparent;
    box-sizing: border-box;
    box-shadow: 2px 2px 7px 0px #00000070;
}

.painting-img-container img:hover {
    border-color: var(--borda-quadro);
    cursor: pointer;
}

.painting-info {
    position: absolute;
    bottom: 0;
    left: 0;
    display: inline-flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 5px;

}

.painting-availability {
    /* position: absolute; */
    /* top: 10px; */
    /* left: 10px; */
    border-radius: 5px;
    padding: 4px;
    font-size: 0.5rem;
    width: fit-content;
    /* position: absolute; */
    /* text-overflow: ellipsis; */
    white-space: nowrap;
    /* overflow: hidden; */
}

.onsale {
    /* background-color: rgba(0, 193, 13, 0.408);
    color: rgba(255, 255, 255, 0.565); */
    background-color: rgb(93 187 91);
    color: rgb(41 41 41);
}

/* .onsale:hover{
    background-color: rgb(0, 147, 10);
    color: rgb(255, 255, 255);
} */

.sold {
    background-color: rgb(211 97 97);
    /* background-color: rgba(254, 0, 0, 0.353); */
    color: rgba(254, 254, 254, 0.531);
}

/* .sold:hover {
    background-color: rgb(196, 0, 0);
    color: rgb(254, 254, 254);
} */
.pcollection {
    background-color: rgb(237 237 60);
    color: rgb(0 0 0);
    /* background-color: rgba(254, 254, 0, 0.353); */
    /* color: rgba(42, 42, 42, 0.675); */
}

/* .pcollection:hover {
    background-color: rgb(217, 199, 0);
    color: rgb(0, 0, 0);
} */

.painting-description {
    font-size: 0.8rem;
    font-weight: bold;
    font-style: italic;
    color: rgb(78, 78, 78);
    /* width: 100%; */
    /* position: absolute; */
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    /* bottom: 0; */
    /* text-align: center;*/
}



/* tablet */
@media only screen and (max-width: 1150px) and (min-width: 601px){
    
}

/* celular */
@media only screen and (max-width: 600px){
    
    #structure {
        width: calc(100% - 40px);
        margin: 10px;
        padding: 10px;
    }
    
    #paintings {
        row-gap: 30px;
    }
    .painting-item {
        position: relative;
        margin: 0;
        cursor: pointer;
        border-radius: 8px;
        height: auto;
        width: 40%;
        min-height: 150px;
    }


}