/*
Theme Name: Playtime Books
Author: Andrei Yagoubov
Author URI: https://andreiyagoubov.com/
Description: Theme designed for the Playtime Books store
Version: 0.1
Text Domain: playtime-books
*/

body {
    /*background-color:#eeeee2;*/
    background-color:white;
    /*font-family:griffith-gothic, sans-serif;*/
    font-family:'Work Sans';
    font-weight:100;
    margin:0;
    position:absolute;
    left:0;
    top:0;
    width:100%;
    /*scroll-behavior: smooth;*/
}

main {
    position:relative;
    top:60px;
    left:0;
    margin-bottom:90px;
    width:100%;
    text-align:center;
    transition:all 1.2s ease;
    opacity:1;
}

main.loading {
    opacity:0.3;
}

#item-container {
    margin:auto;
    text-align:center;
    display:inline-block;
    position:relative;
    width:1368px;
}

.item {
    position:relative;
    display:inline-block;
    width:300px;
    height:400px;
    margin:20px;
    cursor:pointer;
    border-style:solid;
    border-color:#dedede;
    border-width:1px;
    background-color:rgba(255,255,255,0.5);
    font-family:'Sawarabi Mincho';
    float:left;
}

.item:nth-child(11n+2) {
    margin-right:362px;
}

.item img {
    position:absolute;
    left:0;
    top:0;
    bottom:0;
    right:0;
    width:auto;
    height:auto;
    max-width:90%;
    max-height:95%;
    margin:auto;
}

.overlay {
    position:absolute;
    left:0;
    top:0;
    width:100%;
    height:100%;
    opacity:0;
    transition:opacity 0.7s ease;
    background-color:white;
}

.overlay:hover {
    opacity:0.9;
}

a.overlay {
    color:#232323;
}

.author {
    position: absolute;
    top: 30%;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.8em;
}

.title {
    position:absolute;
    top:35%;
    left:0;
    width:100%;
    text-align:center;
    font-weight:600;
}

.price {
    position:absolute;
    top:48%;
    left:0;
    width:100%;
    text-align:center;
}

.cart {
    position:absolute;
    bottom:40px;
    right:40px;
    height:50px;
    width:50px;
    background-color:#23ae87;
    border-radius:50px;
    transition:all 0.5s ease;
    cursor:pointer;
    opacity:0;
}

.item:hover .cart {
    opacity:1;
}

.cart:hover {
    bottom:30px;
    right:30px;
    height:70px;
    width:70px;
}

footer {
    position:relative;
    margin:0;
    left:0;
    margin-bottom:150px;
    height:70px;
    width:100%;
}

footer p {
    position:absolute;
    right:30px;
    left:30px;
    top:10px;
    text-align:right;
}
