body{

    background:#111;

    color:#eee;

    font-family:Georgia, serif;

    padding:40px;

}



h1{

    text-align:center;

    font-size:50px;

    letter-spacing:5px;

    margin-bottom:60px;

}



h2{

    font-size:30px;

    margin-top:50px;

    margin-bottom:20px;

    border-bottom:1px solid #444;

    padding-bottom:10px;

}



/* GALLERY */

.gallery,
.adoptGallery{

    display:flex;

    gap:25px;

    overflow-x:auto;

    padding:20px 10px 35px;

    scroll-behavior:smooth;

}



.gallery::-webkit-scrollbar,
.adoptGallery::-webkit-scrollbar{

    height:10px;

}



.gallery::-webkit-scrollbar-thumb,
.adoptGallery::-webkit-scrollbar-thumb{

    background:#555;

    border-radius:20px;

}



/* ADOPT CARDS */

.artCard{

    flex:0 0 auto;

    width:280px;

    height:380px;

    background:#1c1c1c;

    border-radius:15px;

    overflow:hidden;

    border:1px solid #333;

    box-shadow:0 10px 25px rgba(0,0,0,.5);

    cursor:pointer;

    transition:.3s;

}



.artCard:hover{

    transform:translateY(-8px);

    border-color:#a97cff;

}



.artCard img{

    width:100%;

    height:100%;

    object-fit:cover;

    display:block;

}



/* SOLD */

.sold .artCard{

    opacity:.65;

}



.sold .artCard:hover{

    opacity:1;

}



/* POPUP OVERLAY */

.imageOverlay{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.85);

    display:flex;

    justify-content:center;

    align-items:center;

    z-index:999;

}



/* POPUP BOX */

.adoptPopupBox{

    width:900px;

    max-width:90%;

    background:#111;

    border:1px solid #444;

    border-radius:15px;

    padding:30px;

    display:flex;

    gap:35px;

    position:relative;

    box-shadow:0 0 40px black;

}



.adoptPopupBox img{

    width:400px;

    max-height:600px;

    object-fit:contain;

    border-radius:15px;

}



/* POPUP TEXT */

.popupInfo{

    flex:1;

}



.popupInfo h2{

    margin-top:0;

}



/* CLOSE ARROW */

.closePopup{

    position:absolute;

    top:15px;

    right:20px;

    background:none;

    border:none;

    color:#eee;

    font-size:30px;

    cursor:pointer;

}



.closePopup:hover{

    color:#a97cff;

}



/* INPUTS */

.popupInfo input{

    width:100%;

    box-sizing:border-box;

    background:#1c1c1c;

    border:1px solid #444;

    color:#eee;

    padding:12px;

    margin-top:10px;

    border-radius:10px;

    font-family:Georgia, serif;

}



/* BUTTONS */

.popupInfo button{

    margin-top:15px;

    padding:12px 20px;

    background:#111;

    border:1px solid #444;

    color:#eee;

    border-radius:20px;

    font-family:Georgia, serif;

    cursor:pointer;

    transition:.3s;

}



.popupInfo button:hover{

    border-color:#a97cff;

    color:#a97cff;

}



/* LABELS */

.badge{

    display:inline-block;

    border:1px solid #444;

    border-radius:20px;

    padding:5px 12px;

    font-size:13px;

    margin-bottom:10px;

}



/* BACK BUTTON */

.backBar{

    position:fixed;

    top:20px;

    left:20px;

    padding:10px 18px;

    background:#111;

    border:1px solid #444;

    border-radius:20px;

    z-index:100;

    box-shadow:0 5px 15px rgba(0,0,0,.4);

}



.backBar a{

    color:#eee;

    text-decoration:none;

    letter-spacing:1px;

    transition:.3s;

}



.backBar a:hover{

    color:#a97cff;

}



/* MOBILE */

@media(max-width:800px){

    body{

        padding:20px;

    }


    .adoptPopupBox{

        flex-direction:column;

        max-height:90vh;

        overflow:auto;

    }


    .adoptPopupBox img{

        width:100%;

    }


    .artCard{

        width:240px;

        height:320px;

    }

}