html {
     margin: 0;
    padding: 0;
}

#titletext {
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	text-align: center;
	height: 40px;
}

#titletext h1 {
	text-shadow: 0px 1px 1px #4d4d4d;
	color: rgba(255,255,255,0.8);
	font: 1.8em 'Georgia';
	text-transform: uppercase;
	line-height: 0.1;
	padding: none;
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: 100%;
    position: absolute;
    top: 50px;

    display: grid;
    grid-template-columns: auto auto auto auto auto;
    grid-gap: 33px 0px;
    justify-content: space-around;
    overflow: hidden; /* Prevents images from overflowing */
}

li { 
    position: relative;
    margin: 12px;
}

body {
    font-size: 100%;
    margin: 0;
    padding: 0;
    background: url("../images/bg_texture___wood_by_nortago.jpg") top left repeat;
}

#bookcase {}

.books {
    border-top:10px solid rgba(55,55,55,0.2);
    border-bottom:2px solid rgba(255,255,255,0.2);
    height:300px;
    width: 100%;
    z-index: -100;
}

.booksfirst {
    border-top:40px solid rgba(55,55,55,0.2);
    z-index: -100;
}

.bookslast {
    border-top:1px solid rgba(82,38,44,0.8);
    height:80px;
    background-color: rgba(55,55,55,0.1);
    z-index: -100;
}

#1 {position: relative; top: 0; left: 0;}
#2 {position: relative; top: 130px; left: 0;}
#3 {position: relative; top: 260px; left: 0;}

/* Image fix: Prevent overflow and make sure images fit properly */
body > ul > li > a > img {
    width: 100%;
    height: auto;
    object-fit: cover; /* Ensures images cover their container without stretching */
}

.auctioncover img:after {
    content: ' ';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    background: -moz-linear-gradient(top,  rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 47%, rgba(0,0,0,0) 73%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0.35)), color-stop(47%,rgba(0,0,0,0.15)), color-stop(73%,rgba(0,0,0,0)));
    background: -webkit-linear-gradient(top,  rgba(0,0,0,0.35) 0%,rgba(0,0,0,0.15) 47%,rgba(0,0,0,0) 73%);
    background: -o-linear-gradient(top,  rgba(0,0,0,0.35) 0%,rgba(0,0,0,0.15) 47%,rgba(0,0,0,0) 73%);
    background: -ms-linear-gradient(top,  rgba(0,0,0,0.35) 0%,rgba(0,0,0,0.15) 47%,rgba(0,0,0,0) 73%);
    background: linear-gradient(to bottom,  rgba(0,0,0,0.35) 0%,rgba(0,0,0,0.15) 47%,rgba(0,0,0,0) 73%);
    z-index: 200;
}

.auctioncover {
    background: -moz-linear-gradient(top,  rgba(255,255,255,1) 0%, rgba(255,255,255,0.7) 8%, rgba(255,255,255,0) 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,1)), color-stop(8%,rgba(255,255,255,0.7)), color-stop(100%,rgba(255,255,255,0)));
    background: -webkit-linear-gradient(top,  rgba(255,255,255,1) 0%,rgba(255,255,255,0.7) 8%,rgba(255,255,255,0) 100%);
    background: -o-linear-gradient(top,  rgba(255,255,255,1) 0%,rgba(255,255,255,0.7) 8%,rgba(255,255,255,0) 100%);
    background: -ms-linear-gradient(top,  rgba(255,255,255,1) 0%,rgba(255,255,255,0.7) 8%,rgba(255,255,255,0) 100%);
    background: linear-gradient(to bottom,  rgba(255,255,255,1) 0%,rgba(255,255,255,0.7) 8%,rgba(255,255,255,0) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#00ffffff',GradientType=0 );
    z-index: 200;
}

.auctioncover2 {
    -webkit-box-shadow: 4px 0px 8px 0px rgba(5, 5, 5, 0.5), inset 0px 0px 80px 0px rgba(0,0,0,0.17);
    -moz-box-shadow:  4px 0px 8px 0px rgba(5, 5, 5, 0.5), inset 0px 0px 80px 0px rgba(0,0,0,0.17);
    box-shadow: 4px 0px 8px 0px rgba(5, 5, 5, 0.5), inset 0px 0px 80px 0px rgba(0,0,0,0.17);
}

.books {
    background: -moz-linear-gradient(top,  rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.23) 47%, rgba(0,0,0,0) 73%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0.65)), color-stop(47%,rgba(0,0,0,0.23)), color-stop(73%,rgba(0,0,0,0)));
    background: -webkit-linear-gradient(top,  rgba(0,0,0,0.65) 0%,rgba(0,0,0,0.23) 47%,rgba(0,0,0,0) 73%);
    background: -o-linear-gradient(top,  rgba(0,0,0,0.65) 0%,rgba(0,0,0,0.23) 47%,rgba(0,0,0,0) 73%);
    background: -ms-linear-gradient(top,  rgba(0,0,0,0.65) 0%,rgba(0,0,0,0.23) 47%,rgba(0,0,0,0) 73%);
    background: linear-gradient(to bottom,  rgba(0,0,0,0.65) 0%,rgba(0,0,0,0.23) 47%,rgba(0,0,0,0) 73%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a6000000', endColorstr='#00000000',GradientType=0 );
}

.ribbon_right {
	position: absolute;
    top: 0;
    right: 0px;
}

.ribbon_left {
	position: relative;
	margin-bottom: 80px;
	margin-right: -60px;
}

@media only screen and (max-width:800px) {
    ul {
        grid-template-columns: auto auto auto auto;
        grid-gap: 105px 0px;
    }

    body > ul > li > a > img {
        width: 130px;
    }
}

@media only screen and (max-width:500px) {
    ul {
        grid-template-columns: auto auto;
        grid-gap: 105px 0px;
    }

    body > ul > li > a > img {
        width: 130px;
    }
}
