body{
    margin: 0;
}
footer{
    text-align: center;
    padding-top: 8px;
    height: 138px;
    background-color: #000000;
}
#layout-content{
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    padding: 5px 25px;
    max-width: 1170px;

    margin-left: auto;
    margin-right: auto;
    min-height: 90vh;
}

.img-cover {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.header {
    font-size: 22px;
}
.header li {
    padding: 0;
    margin: 0.5em;
}
h1 {
    font-size: 38px;
    margin: 28px;
    text-align: center;
    text-transform: uppercase;
}
img.logo{
    height: 44px;
    width: inherit;
}
h1 a{
    text-decoration: none;
    color: #000000;
}
a, h1{
    font-family: 'Oswald', sans-serif;
}
nav {
    text-align: center;
    border-top: 3px solid #000;
    border-bottom: 3px solid #000;
}
nav ul {
    padding: 0;
    list-style-type: none;
    overflow: hidden;
}
nav ul li {
    display: inline;
    text-align: center;
    padding: 16px;
    text-decoration: none;
}
nav ul li a:link {
    text-decoration: none;
}
nav ul li a {
    display: inline-block;
    transition: color 0.5s ease;
    color: #000000;
}
nav ul li a:first-letter {
    text-transform: uppercase;
}
nav ul li a:hover {
    color: #777777;
}

.pagination {
    list-style: none;
}
.pagination ul{
    margin: 0;
    padding: 0;
}
.pagination .active{
    cursor: default;
    background-color: #f1a84e;
}
.pagination .disabled{
    cursor: default;
    background-color: #fff;
}
.pagination li {
    background-color: #ddd;
    padding: 8px;
    margin: 0px;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    display: inline-block;
}

.category{
    margin: 2px;
    padding: 2px 5px;
    background-color: #f1a84e;
    color: #fff;
    font-size: 12px;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    text-decoration: none;
}
.tag {
    margin: 2px;
    padding: 2px 5px;
    background-color: #0d4b6c;
    color: #fff;
    font-size: 12px;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
}
.gallery {
    display: block;
    font-size: 0;
    margin: 15px auto 15px;
    max-width: 1050px;
    text-align: center;
    flex-flow: row wrap;
    align-items: stretch;
}

figure {
    border: 1px solid #eee;
    display: inline-block;
    margin: 0 15px 15px auto;
    vertical-align: top;
    width: 31%;
    min-width: 250px;
}
figure.active {
    background-color: #4CAF50;
}

section.ad {
    max-height: 400px;
    border-bottom: 2px dotted;
    border-top: 2px dotted;
    margin: 8px;
    padding: 3px;
}
figure.ad {
    min-height: 380px;
    max-height: 520px;
    overflow: hidden;
}

.info404 {
    text-align: center;
}

h3 {
    margin: 5px 0;
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    line-height: 37px;
    font-weight: 400;
}
figure h3 a{
    text-decoration: none;
    color: #000000;
}
figure h2 a{
    font-size: 26px;
    text-decoration: none;
    color: #000000;
}
figure p {
    margin: 5px 0 0 0 ;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 27px;
    font-weight: 300;
}
figure img {
    width: 100%;
}
figcaption {
    color: #000000;
    border: 1px solid #eee;
    border-top: none;

    border-radius: 0 0 2px 2px;
    font-size: 16px;

    padding: 5px;
    text-align: left;
}

article{
    width: 100%;
    max-width: 800px;
    margin: auto;
}
article img {
    border: 2px solid #ddd;
    border-radius: 2%;

    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 550px;
}

header {
    background: black;
    height: 53px;
}
header form {
    float: right;
    max-width: 300px;
    width: 100%;
}
header .search-wrapper{
    max-width: 1170px;
    margin-left: auto;
    margin-right: auto;
}
header input[type=text] {
    width: 100%;
    max-width: 200px;
    padding: 8px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
header input[type=submit] {
    width: 100%;
    max-width: 80px;
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    margin: 8px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
header input[type=submit]:hover {
    background-color: #45a049;
}

.clearfix:after {
    content: " "; /* Older browser do not support empty content */
    visibility: hidden;
    display: block;
    height: 0;
    clear: both;
}

.calendar{
    padding: 4px;
    cursor: default;
    text-align: center;
    margin: auto;
    max-width: 650px;
    min-width: 600px;
}
.calendar-info{
    margin: 20px auto;
    max-width: 210px;
    list-style: none;
    padding-left: 0;
}
.calendar thead{
    background-color: rgb(238,238,238);
}
.calendar th{
    font-weight: normal;
    width: 34px;
    height: 34px;
}
.calendar table{
    width: 100%;
    box-shadow: 0 0 5px #cacaca;
    border: 1px solid #cacaca;
    border-collapse: collapse;
}
.calendar td {
    border: 1px solid #cacaca;
    width: 34px;
    height: 37px;
    margin: 0;
    padding: 0;
}


.square {
    width: 10px;
    height: 10px;
    display: inline-block;
}

.first-half{
    font-weight: bold;
    background-image: linear-gradient(-45deg, white, white 50%,hsla(0,0%,100%,0) 50%,hsla(0,0%,100%,0));
}
.none{
    font-weight: bold;
    background-image: linear-gradient(0deg, white, white 100%,hsla(0,0%,100%,0) 100%,hsla(0,0%,100%,0));
}
.second-half{
    font-weight: bold;
    background-image: linear-gradient(135deg, white, white 50%,hsla(0,0%,100%,0) 50%,hsla(0,0%,100%,0));
}

.subcategory a {
    width: 100%;
    display: inline-block;
    text-align: center;
}
