* {
    box-sizing: border-box;
}

@media (min-width: 650px) {
    .two-columns {
        max-width: 50% !important;
    }
}

@media only screen and (min-width:601px) {
    #aside-and-content {
        position: relative;
        display: flex;
    }

    #sidebar-2,
    #sidebar-1 {
        width: 25%;
        min-width: 300px;
    }

    .order2 {
        order: 2;
    }
}

.sub-menu2 {
    display: none;
}

.sub-menu {
    /*display: none;*/
    list-style: none;
    padding: 0;
    margin: 0;
}

.sub-menu a {
    text-align: center !important;
    font-size: 18px !important;
}

#page {
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
    margin: 0;
}

#content {
    width: 100%;
    padding: 0 15px;
}

.ltr {
    direction: ltr;
}

.value,
pre {
    margin: 0 15px !important;
    display: inline-block;
    background: transparent;
    padding: 0;
    line-height: 2em;
    font-size: 17px;
    text-align: justify;
    max-width: 90%;
    text-wrap: wrap;
    white-space: pre-wrap;
    word-wrap: break-word;
}

dl {
    margin-bottom: 10px;
    display: block;
    /*display: flex;*/
}

dt {
    font-weight: bold;
    font-size: 22px;
    color: green;
    text-align: right !important;
    padding: 0px;
    min-width: 150px;
}

dt::after {
    content: ':';
}

dt,
dd {
    margin: 0;
    display: inline-block;
    /*display: inline;*/
}

.archive-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.archive-post {
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: flex-start;
    align-items: center;
    width: 310px;
    margin: 3px;
}

.archive-post-excerpt {
    text-align: justify;
    font-size: 18px;
    margin: 0 20px;
}

.archive-post a {
    text-decoration: none;
}

.archive-picture-cover {
    text-align: center;
    width: 220px;
    height: 220px;
    border-radius: 20px;
    border-width: 1px;
    border-color: transparent;
}

.archive-picture {
    margin: 10px;
    height: 200px;
    width: 200px;
    overflow: hidden;
}

.archive-title {
    text-align: center;
    font-weight: bold;
    font-size: 24px;
    margin: 10px auto;
}

.archive {
    padding: 5px;
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

img {
    object-position: center center;
    object-fit: contain;
}


.no-border {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.no-border:focus {
    border: none !important;
    box-shadow: none !important;
}

.custom-logo {
    max-width: 470px;
    max-height: 150px;
}

.page-header a,
.page-header a:link,
.page-header a:visited,
.page-header a:hover,
.page-header a:active {
    text-decoration: none;
    color: black;
}

.page-header a {
    font-size: 20px;
}

.page-header {
    /*padding: top right bottom left;*/
    padding: 10px;
    align-items: center;
    z-index: 10;
    position: relative;
    width: 100%;
}

.page-header {
    display: flex;
}

.d-none {
    display: none;
}

.nav-ul {
    flex-grow: 1;
    padding: 0px;
    min-height: 35px;
    margin: 0;
    display: block;
    text-align: center;
    font-weight: normal;
    /*background-color: lightgoldenrodyellow;*/
}

.nav-ul [aria-current="page"] {
    font-weight: bold;
}

.nav-ul a {
    font-size: 16px !important;
}

.nav-ul>li {

    position: relative;
    margin: 0;
    padding: 5px 15px;
    display: inline-block;
    transition: 0.2s;
}

.nav-ul li:hover {
    /*background-color: var(--black);
    border-radius:10px;*/
    text-decoration: underline;
}

@media only screen and (min-width: 981px) {
    #menu-label {
        display: none;
    }

    .nav-ul>li:hover ul,
    .nav-ul>li:active ul,
    .nav-ul>li:focus ul {
        display: inline-block;

    }

    .sub-menu {
        background-color: var(--color2);
        /*background-color: antiquewhite;*/
        z-index: 100;
        position: absolute;
        /*top: 100%;*/
        top: 90%;
        left: -100px;
        border-radius: 10px;
        box-shadow: rgba(149, 157, 165, .2) 0 8px 24px;
        list-style: none;
        margin: 0;
        padding: 0;
        width: 400px;
        /*display: inline-block;*/
        display: none;
    }

    .sub-menu li {
        display: block;
        width: auto;
        clear: both;
        text-align: center;
        padding: 7px;
    }
}

@media only screen and (max-width: 980px) {
    .sub-menu {
        display: none;
    }

    /*label*/
    #menu-label {
        box-sizing: border-box !important;
        z-index: 9;
        background: none transparent;
        border: 4px solid cornflowerblue;
        border-left: 0 solid transparent;
        border-right: 0 solid transparent;
        cursor: pointer;
        display: block;
        height: 24px;
        position: absolute;
        top: 18px;
        margin: 0 10px;
        /*left: 20px;*/
    }

    #menu-label,
    #menu-label::before,
    #menu-label::after {
        width: 24px;
        transition: all 0.2s;
    }

    #menu-label::before,
    #menu-label::after {
        background: cornflowerblue;
        content: "";
        height: 4px;
        left: 0;
        position: absolute;
        top: 6px;
        /*top: 50%;*/
    }

    #menu-label::after {
        opacity: 0;
        visibility: hidden;
        transform: rotate(90deg);
    }

    #menu-checkbox:checked+#menu-label {
        border: 4px solid silver;
        border-radius: 50%;
        top: 16px;
        min-height: 28px;
        min-width: 28px;
        transform: rotate(-135deg);

    }

    #menu-checkbox:checked+#menu-label::before {
        background: silver;
        top: 8px;
        left: 4px;
        width: 12px;
    }

    #menu-checkbox:checked+#menu-label::after {
        background: silver;
        opacity: 1;
        top: 8px;
        left: 4px;
        visibility: visible;
        width: 12px;
    }

    .nav-ul {
        display: none;
    }

    #menu-checkbox:checked~.nav-ul {
        z-index: 100;
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        position: absolute;
        top: 50px;
        /*width: 190px;*/
        width: 100%;
        height: calc(100vh - 60px);
        list-style: none;
        margin: 0px;
        text-align: justify;
        padding: 0;
        background-color: lightgray;
        /*min-height: 200px;*/
    }

    .nav-ul li {
        display: block;
    }
}

#totop {
    z-index: 20;
    bottom: 20px;
    left: 10px;
    margin: 5px;
    position: fixed;
    display: block;
    scale: 1.7;
    width: 20px;
}

img.aligncenter {
    margin-left: auto;
    margin-right: auto;
    display: block;
}

h2,
h3 {
    margin-top: 25px;
    margin-bottom: 15px;
}

.subterms {
    display: grid;
    /*display: flex;*/
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 20px auto;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), max-content));
    gap: 10px;
    row-gap: 12px;
    column-gap: 12px;
    max-width: 900px;    
}

.subterms li {    
    flex: 1 0 auto;
    min-width: 200px;
    line-height: 1;
    margin: 0;
    min-height: 40px;
    padding: 10px 16px;
    background-color: #e9ecef;
    border: 1px solid #e0e3e7;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    text-overflow: clip;
}

.subterms a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 18px;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
}

.subterms a::before {
    content: "» ";
}

.subterms li:hover {
    background-color:  #ced4da;
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    color: #1a73e8;
    border-color: #d0d7de;
}

.subterms li:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}