@import url("reset.css");

@font-face {
    font-family: 'Regular';
    font-style: normal;
    font-weight: normal;
    src: url("./font/UbuntuSans-Regular.otf");
}

@font-face {
    font-family: 'Italic';
    font-style: italic;
    font-weight: normal;
    src: url("./font/UbuntuSans-Italic.otf");
}

@font-face {
    font-family: 'Bold';
    font-style: normal;
    font-weight: bold;
    src: url("./font/UbuntuSans-SemiBold.otf");
}
/*
@font-face {
    font-family: 'Bold-Italic';
    font-style: italic;
    font-weight: bold;
    src: url("../fonts/UbuntuSans-SemiBoldItalic.otf");
}*/

html {
    scroll-padding-block-start: var(--nav_height);
}

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,
h5 a:link,
h5 a:visited,
h6 a:link,
h6 a:visited {
    color: var(--h_link);
}


h1 a:hover,
h2 a:hover,
h3 a:hover,
h4 a:hover,
h5 a:hover,
h6 a:hover,
h1 a:focus,
h2 a:focus,
h3 a:focus,
h4 a:focus,
h5 a:focus,
h6 a:focus
 {
    color: var(--nav_link_hover);
    text-decoration: underline;
}

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

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

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

h3 {
    font-size: 140%;
    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,
a:focus {
    color: var(--nav_link_hover);
    text-decoration: underline;
}

/*
h1 a:hover {
    background-color: inherit
}*/

.center {
    text-align: center;
}

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;
}

hr {
    border: 1px solid var(--text);
}

.post-info {
    text-align: center;
    margin: 1rem;
    padding: 1rem;
}

.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;
}
*/

blockquote {
    margin: 1rem;
    font-style: italic;
}

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

header {
    text-align: center;
}

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

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

header {
    position: relative;
}

.banner {
    max-height: 15rem;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.site_logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: auto;
    filter:
        drop-shadow(0 0 20px white);
    z-index: 1;
}


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;
}

.skip-link {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 1;
    background: #fff;
    z-index: -1;
}

.skip-link:focus {
    z-index: 2;
}

nav {
    position: sticky;
    top: 0;
    background: var(--nav);
    font-size: 1.2rem;
    overflow: auto;
    padding: 0;
    text-align: left;
    max-width: 100%;
    z-index: 1;
}

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

nav li {
    display: block;
    margin: 0.5em;
}

nav a:link,
nav a:visited {
    color: var(--h_link);
    display: inline-block;
    height: 100%;
    padding: 0.5rem 1.2rem;
}

/*nav .menu {
    line-height: var(--nav_height);
}*/

nav .menu-icon {
    color: var(--text);
    cursor: pointer;
    display: inline-block;
    float: right;
    padding: 2rem 1.5rem;
    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;
}

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;
}

/* keep only the active menu item visible when collapsed */
nav .menu li {
    display: none;
    /* hide all menu items by default */
}

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

nav .menu a:hover,
nav .menu a:focus {
    background: none;
}

nav .menu img {
    max-height: 40px;
}

/* 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 {
    align-items: stretch;
}

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

.years li a:hover,
.years li a:focus,{
    background: var(--nav_accent);
}

/*.bottom_footer nav {
}*/

.bottom_footer ul {
    font-size: 0.8rem;
    padding: 0;
    text-align: left;
    list-style: none;
    margin: 0 auto;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    overflow: auto;
}

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

/*
.bottom_footer a:link,
.bottom_footer a:visited {
    color: var(--text);
}

.bottom_footer a:hover {
    color: var(--nav_link_hover)
}*/

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

footer a img {
    text-align: center;
    height: 3em;
    margin: 2em 1em 1em 1em;
    border: 0px;
    filter: grayscale(100%);
}

footer a:hover img,
footer a:focus img {
    filter: none;
}

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

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

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

.hentry footer address {
    display: inline;
}


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

.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: var(--nav);
        font-size: 1.2rem;
        overflow: auto;
        line-height: calc(var(--nav_height) + 0.7rem);
        padding: 0;
        text-align: center;
        max-width: 100%;
        min-width: 800px;
        margin: 0;
    }

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

    nav li {
        float: left;
        display: inline;
        margin: 0;
        max-height: 100%;
    }

    nav .menu {
        clear: none;
        max-height: none;
        display: flex;
        justify-content: center;
        align-items: stretch;
    }

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

    nav .menu a:hover,
    nav .menu a:focus {
        background: var(--nav_accent);
        text-decoration: none;
    }

    nav .menu .float_right {
        float: right;
    }

    nav .menu-icon {
        display: none;
    }
/*
    nav a:link,
    nav a:visited {
        color: var(--text);
        display: inline-block;
        height: 50px;
        padding: 5px 1.5em;
        text-decoration: 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;
    }
}
