/*
Theme Name: Ugoku20
Theme URI: https://www.ugoku.nl/
Author: Sander de Jong
Author URI: https://www.ugoku.nl/
Description: The theme for Ugoku
Version: 2.6.6
License: Proprietary
*/

* {
    box-sizing: border-box;
}
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}
html {
    background: #ddd;
    overflow-y: scroll;
}

body {
    color: #000;
    display: flex;
    flex-direction: column;
    font: 1em/1.6 "Open Sans", sans-serif;
    min-height: 100vh;
}

.container {
    margin-left: auto;
    margin-right: auto;
    width: calc(100% - 2em);
}

.halfsies {
    align-items: center;
    display: grid;
    gap: 1em;
    grid-gap: 1em;
    grid-template-columns: 1fr 1fr;
}

header {
    background: #fff;
    box-shadow: 0 3px 6px rgba(0,0,0, 0.16), 0 3px 6px rgba(0,0,0, 0.23);
    font-size: 1.5rem;
    height: 102px;
    line-height: 102px;
    position: relative;
}
header nav {
    float: right;
    padding: 0 10px;
}
nav ul {
    list-style: none;
    margin: 0;
}
nav ul li {
    float: left;
}
header nav li {
    margin-left: 2em;
}
nav ul li:first-child {
    margin-left: 0;
}

#toggleMenu {
    cursor: pointer;
    display: none;
    float: right;
    height: 30px;
    margin: 14px;
    width: 28px;
}
#toggleMenu div {
    background: #000080;
    height: 5px;
    margin: 4px 0;
    width: 100%;

    transition: all 0.3s;
}
#toggleMenu.on :first-child {
    transform: rotate(45deg) translate(5px, 5px);
}
#toggleMenu.on :nth-child(2) {
    opacity: 0;
}
#toggleMenu.on :last-child {
    transform: rotate(-45deg) translate(7px, -8px);
}

main {
    background: rgba(255,255,255, 0.85);
    box-shadow: 0 10px 20px rgba(0,0,0, 0.19), 0  6px  6px rgba(0,0,0, 0.23);
    margin-bottom: 2rem;
    padding: 1em;
}

footer {
    background: #fff;
    color: #000;
    font-size: 0.8rem;
    margin-top: auto;
    padding: 0.5em 0;
}
footer nav {
    font-size: 1.5em;
}
footer nav li {
    margin-left: 1em;
}
footer nav img {
    height: 1em;
    width: 1em;
}
.copyright {
    text-align: right;
}

input, textarea {
    font-family: "Open Sans", Calibri, Tahoma, Verdana, sans-serif;
    background: #fff;
    border: 1px solid #AAA;
    color: #000;
    padding: 5px;
}

#logo {
    background: url('images/logo4x.png');
    background-size: 335px 100px;
    display: inline-block;
    height: 100px;
    text-indent: -999em;
    margin-top: 10px;
    width: 335px;
}

h1 {
    font-size: 2.25rem;
}

img {
    border: 0;
    max-width: 100%;
}
/********************************************************************/

a {
    color: hsl(201, 93%, 50%);
    text-decoration: underline;
    transition: all 0.2s linear;
}
a:hover {
    color: hsl(201, 93%, 25%);
    text-decoration: underline;
}
nav a {
    text-decoration: none;
}

ul {
    padding-left: 1em;
}

/* Websites - old */
ul#portfolio {
    list-style: none;
    margin: 0;
    padding: 0;
}
#portfolio li {
    float: left;
    width: 33%;
    margin: 1em 0 0;
    text-align: center;
    position: relative;
}
.website-title {
    opacity: 0;
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    background-color: rgba(0,0,0, 0.5);
    color: #FFF;
    text-align: center;
    padding: 5px;

    transition: opacity 0.1s linear;
}
#portfolio li a:hover .website-title {
    opacity: 1;
}


/* =WordPress Core
-------------------------------------------------------------- */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float:right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%; /* Image does not overflow the content area */
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 0.7rem;
    margin: 0;
    padding: 0 4px 5px;
}

.gallery figure {
    margin: 0 0 2em;
    text-align: center;
    vertical-align: top;
}
.gallery img {
    height: auto;
}

/* Instagram feed */
#sb_instagram.sbi_col_4 #sbi_images .sbi_item {
    width: auto !important; /* Override plugin style */
}
#sbi_images {
    display: grid;
    gap: 0.25em;
    grid-gap: 0.25em;
    grid-template-columns: repeat(6, 1fr);
}
#sbi_images figure, .sbi_photo {
    height: 100%;
}
@supports (object-fit: cover) {
    #sb_instagram .sbi_photo img {
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 1280px) {
    #sbi_images {
        grid-template-columns: repeat(4, 1fr);
    }
    #sbi_images > :nth-child(1n + 9) {
        display: none;
    }
}
@media (max-width: 640px) {
    #sbi_images {
        grid-template-columns: repeat(2, 1fr);
    }
    #sbi_images > :nth-child(1n + 5) {
        display: none;
    }
}



/***** MEDIA QUERIES *****/
@media screen and (min-width: 961px) {
    body {
        font-size: 1.1em;
    }
    .container {
        width: 960px;
    }
}

@media screen and (min-width: 1281px) {
    body {
        font-size: 1.25em;
    }
    .container {
        width: 1280px;
    }
}

@media screen and (max-width: 960px) {
    body, article, header, footer {
        width: 100%;
    }
    .menu, #footer { /*Check this*/
        width: 100%;
    }
    header {
        height: 60px;
        line-height: 60px;
    }
    #logo {
        background-size: 167px 50px;
        height: 50px;
        margin: 5px 0 0 5px;
        width: 167px;
    }
}

@media screen and (min-width: 601px) {
    .gallery figure {
        margin-left: auto;
        margin-right: auto;
    }
}

@media screen and (max-width: 720px) {
	#portfolio li {
		width: 50%;
	}
}
@media screen and (max-width: 640px) {
    #toggleMenu {
        display: inline-block;
    }
    #menu-nieuw {
        clear: both;
        display: none;
        float: none;
    }
    #menu-nieuw li {
        float: none;
    }
    #menu-nieuw a {
        text-align: center;
    }
    nav ul li {
        margin-left: 0;
    }
    footer li {
        margin-right: 1em;
    }
}
@media screen and (max-width: 400px) {
    #portfolio li {
        width: 100%;
    }
}
