body{
    font-family: sans;
    line-height: 1.2rem;
    padding: 1.5rem;
    background: url('/static/img/bg.jpg');
}

article{
    //background: #fbd6ea;
    //background: rgba(251, 214, 234, 0.8);
    background: rgba(234, 234, 234, 0.84);
    padding: 1.5rem;
}

h1, h2, h3, h4, h5, h6{ 
    margin-bottom: 3rem;
    font-weight: bold;
}

header a, header a:visited{
    color: black;
    text-decoration: none;
}

h1, h2{ 
    font-size: larger;
}

h1 img{
    width: 100%;
}

p{
    padding-bottom: 2em;
    line-height: 1.3em;
    font-size: 1.1em;
}

nav{
    padding-top: 1rem;
    padding-bottom: 1rem;
}

nav a, nav a:visited{
    color: black;
    text-decoration: none;
}

nav li
{
    display: inline;
    font-weight: bold;
    list-style-type: none;
    padding-right: 20px;
    background: rgba(234, 234, 234, 0.84);
    padding: 1.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    text-transform: uppercase;
}

nav li:hover{
    background: rgba(214, 214, 214, 0.84);
}

#price{
    font-size: larger;
    float: right;
    color: #555;
    font-style: italic;
}

#container{
    max-width: 45rem;
    margin: auto auto;
}

#details{
    float: right;
}

#view{
    float: left;
    width: 300px;
    margin-right: 1.5rem;
    margin-bottom: .75rem;
}

#details-table{
    width: 100%;
    clear: both;
    margin-top: 1.5rem;
}

#details-table table td{
    padding-right: 1.5rem;
    padding-bottom: 1.5rem;
}

#details-table h3{
    margin-bottom: 0.75rem;
    font-style: italic;
}

.color{
    display: inline-block;
    font-size: 8px;
    width: 3rem;
    height: 3rem;
}

#addnew{
    width: 50%;
}

input, label{
    width: 100%;
    clear: both;
    display: block;
}
label{
    margin-top: 1.5rem;
}

form td{
    padding-left: 2.5rem;
}


@media screen and (max-width: 767px){
    #details, #view{
        width:90%;
        margin: auto auto;
    }
    #view{
        padding: 1.5rem;
    }
    h1, h2, h3, h4, h5, h6{
        margin-bottom: 1.5rem;
        padding-top: 1.5rem;
    }
    .cat{
        max-width:90%;
        margin: auto auto;
    }
}

.cat{
    clear: none;
    max-width: 28%;
    padding: .75rem;
    display: inline-block;
}
.cat img{
    max-width: 100%;
}

.cat h3, .cat h4{
    padding: 0;
    margin: 0;
    position: relative;
    top: -100px;
    background: rgba(234, 234, 234, 0.84);
    color: #555;
    font-style: italic;
    text-align: right;
}

.cat h4{
    font-weight: normal;
}
