@import url("reset.css");

/* Body */
body {
    color: var(--text);
    font-family: 'Regular';
    font-size: large;
    line-height: 1.4;
    margin: 0;
    padding: 0;
    text-align: justify;
}

h1 a:link,
h1 a:visited,
h2 a:link,
h2 a:visited,
h3 a:link,
h3 a:visited,
h4 a:link,
h4 a:visited {
    color: var(--h_link);
}

h1 a:hover,
h2 a:hover,
h3 a:hover,
h4 a:hover {
    color: var(--h_link_hover);
    text-decoration: underline;
}

h1,
h2,
h3,
h4 {
    padding-top: 0.5em;
}

h1 {
    font-size: 300%;
    font-family: 'Bold';
}

h2 {
    font-size: 220%;
    font-family: 'Bold';
    text-align: center;
}

h3 {
    font-size: 160%;
    font-family: 'Bold';
}

h4 {
    font-size: 120%;
    font-family: 'Bold';
}

/* Anchors */
a {
    outline: 0;
}

a img {
    border: 0px;
    text-decoration: none;
}

a:link,
a:visited {
    color: var(--link);
    text-decoration: none;
}

a:hover,
a:active {
    color: var(--link);
    text-decoration: underline;
}

h1 a:hover {
    background-color: inherit
}

.center {
    text-align: center;
}

/* Paragraphs */
p {
    margin-top: 1em;
    margin-bottom: 1em;
}

strong,
b {
    font-weight: bold;
    font-size: 120%;
}

em,
i {
    font-style: italic;
}

/* Lists */
ul {
    list-style: outside disc;
    margin: 0 0 0 1.5em
}

ol {
    list-style: outside decimal;
    margin: 0 0 0 1.5em;
}

li {
    margin-top: 0em;
    margin-bottom: 0em;
}

/*.post-info {
    text-align: center;
    margin: 10px;
    padding: 5px;
}

.post-info p {
    margin-top: 1px;
    margin-bottom: 1px;
}

dl {
    margin: 0 0 1.5em 0;
}

dt {
    font-weight: bold;
}

dd {
    margin-left: 1.5em;
}*/

/* Quotes */
blockquote {
    margin: 20px;
    font-style: italic;
}

/* Tables */
table {
    margin: .5em auto 1.5em auto;
    width: 98%;
}

/* HTML5 tags */
header {
    text-align: center;
}

section,
footer,
aside,
article,
figure {
    display: block;
}

/***** Layout *****/
.body {
    margin: 0 auto;
    max-width: 800px;
}

#banner img {
    max-height: 15em;
    width: 100%;
    object-fit: cover;
    object-position: center;
}


img {
    max-width: 100%;
}

.img {
    margin-top: 1em;
}

.img_right {
    max-width: 100%;
}

.img_left {
    max-width: 100%;
    margin-top: 1em;
}

.right {
    text-align: right;
    margin-top: 1em;
}

.left {
    text-align: left;
}

/* Main Nav */
nav {
    position: sticky;
    top: 0;
    background: var(--nav);
    font-size: 1.2em;
    overflow: auto;
    line-height: 30px;
    padding: 0;
    text-align: left;
    max-width: 100%;
}

nav ul {
    list-style: none;
    margin: 0 auto;
    max-width: 100%;
}

nav li a .nav {
    display: block;
    text-decoration: none;
}

/* menu */

nav .menu {
    max-height: 0;
}

/* menu icon */

nav .menu-icon {
    color: var(--text);
    cursor: pointer;
    display: inline-block;
    float: right;
    padding: 28px 20px;
    position: relative;
    user-select: none;
}

nav .menu-icon .navicon {
    background: var(--text);
    display: block;
    height: 2px;
    position: relative;
    transition: .2s ease-out;
    width: 18px;
}

nav .menu-icon .navicon:before,
nav .menu-icon .navicon:after {
    background: var(--text);
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    transition: all .2s ease-out;
    width: 100%;
}

nav .menu-icon .navicon:before {
    top: 5px;
}

nav .menu-icon .navicon:after {
    top: -5px;
}

/* menu btn */

nav .menu-btn {
    display: none;
}

nav .menu-btn:checked~.menu {
    max-height: 100dvh;
}

nav .menu-btn:checked~.menu-icon .navicon {
    background: transparent;
}

nav .menu-btn:checked~.menu-icon .navicon:before {
    transform: rotate(-45deg);
}

nav .menu-btn:checked~.menu-icon .navicon:after {
    transform: rotate(45deg);
}

nav .menu-btn:checked~.menu-icon:not(.steps) .navicon:before,
nav .menu-btn:checked~.menu-icon:not(.steps) .navicon:after {
    top: 0;
}

nav a:link,
nav a:visited {
    color: var(--link);
    display: inline-block;
    height: 100%;
    padding: 5px 1.5em;
    text-decoration: none;
}


/* keep only the active menu item visible when collapsed */
nav .menu li {
    margin-top: 0.5em;
    margin-bottom: 1em;
    display: none;
    /* hide all menu items by default */
}

nav .menu li.active {
    display: block;
    text-align: left;
    /* keep the active one visible */
}

/* when the menu is open, show all items again */
nav .menu-btn:checked~.menu li {
    display: block;
}

.years ul {
    list-style: none;
    margin: 0 auto;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    overflow: auto;
}

.years li {
    float: left;
    display: inline;
    margin: 0;
    overflow: auto;
}

.years a:hover {
    background-color: var(--nav_accent);
}

.years a:link,
.years a:visited {
    color: var(--text);
}


.feed {
    text-align: center;
    margin: 1em;
}

.kofi {
    text-align: center;
    margin: 2em 1em 1em 1em;
}

/* gallery */
.pic-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    justify-content: center;
    align-content: flex-start;
    align-items: flex-start;
    line-height: 1.0;
    margin-bottom: 1em;
}

.pic-box {
    max-width: 300px;
    text-align: left;
}

.pic-gallery img {
    display: block;
    max-width: 300px;
    max-height: 300px;
    width: auto;
    height: auto;
}

/* .pic-text {
    width: 300px;
    padding: 20px;
} */

@media (min-width: 800px) {
    nav {
        background-color: var(--nav);
        font-size: 1.2em;
        overflow: auto;
        line-height: 50px;
        padding: 0;
        text-align: center;
        max-width: 100%;
        min-width: 800px;
        margin: 0;
    }

    nav ul {
        list-style: none;
        margin: 0 auto;
        max-width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
    }

    nav li {
        float: left;
        display: inline;
        margin: 0;
    }

    nav .menu {
        display: flex;
        justify-content: center;
    }

    nav .menu li {
        float: left;
        display: block;
        margin: 0;
    }

    nav .menu .float_right {
        float: right;
    }

    nav a:link,
    nav a:visited {
        color: var(--text);
        display: inline-block;
        height: 50px;
        padding: 5px 1.5em;
        text-decoration: none;
    }

    nav a:hover,
    nav a:active,
    nav .active a:link,
    nav .active a:visited {
        background-color: var(--nav_accent);
        color: var(--nav_link_hover);
    }

    nav .menu {
        clear: none;
        max-height: none;
    }

    nav .menu-icon {
        display: none;
    }

    .pic-gallery {
        gap: 2em;
        margin-bottom: 2em;
    }

    .img_right {
        float: right;
        margin: 1em 2em 2em 1em;
        width: 15em;
    }

    .img_left {
        float: left;
        margin: 1em 2em 2em 1em;
        width: 15em;
    }
}


/*
	Body
*****************/
#content {
    margin-bottom: 2em;
    overflow: hidden;
    padding: 20px 20px;
    max-width: 760px;
}

/* Footer */
#contentinfo {
    padding-bottom: 2em;
    text-align: center;
}

.hentry .post-info * {
    font-style: normal;
}

/* Content */
.hentry footer {
    margin-bottom: 2em;
}

.hentry footer address {
    display: inline;
}

/*
.logos {
    max-width: 200px;
    max-height: 200px;
    float: right;
    padding: 20px;
}*/

/*.project-grid {
}
*/
/*
.project-card {
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    padding: 20px;
    margin: 12px;
}

.project-card:after {
    content: "";
    clear: both;
    display: table;
}

.project-text {
    padding: 12px;
}*/
