body {
    font-family: Calibri, sans-serif;
    font-size: 15px;
    line-height: 1.2rem;
    background: #68dce0;
    color: #222548;
}

h1, h2, h3, h4 {
    font-size: 14px;
    letter-spacing: 1px;
}

h1 {
    border-bottom: 2px dotted #9c7969;
}

h2 {
    border-bottom: 2px dotted #9c7969;
    margin-top: 2rem;
}

hr {
    border: none;
    height: 1px;
    background: #9c7969;
    margin: 14px 0;
    display: block;
}

.post img {
    width:  400px;
    height: auto;
}

.wrapper {
    /*width: 889px;
    width:1100px;
    width:60%;*/
    
    max-width: 1160px;
    width: 1160px;
    margin: auto;
}



.header {
    position: relative;
    width: 889px;
    height: 165px;
}

.header2 {
    width: 100%;
    
}

.character {
    z-index: 10;
    position: absolute;
    right: -14px;
    top: -3px;
    pointer-events: none;
}

.site-title {
    letter-spacing: 2px;
    margin-top: 48px;
    font-size: 30px;
}

.site-title a {
    color: #8a6a5f;
    text-decoration: none;
}

.site-subtitle {
    font-size: 15px;
    height: 22px;
    margin-top: -4px;
    color: #6893a4;
    letter-spacing: 1px;
}

.menu ul {
    margin:  0;
    padding:  0;
}

.menu li {
    display: inline-block;
    margin-right: 1px;
    position: relative;
}

.menu {
    text-transform: lowercase;
    margin-top: 24px;
    margin-left: 6px;
    z-index: 5;
    position: relative;
}

.menu a {
    text-decoration: none;
    color: #e4dabf;
    width: 128px;
    height: 39px;
    line-height: 45px;
    text-align: center;
    display: inline-block;
    background-image: url('img/button-inactive.png');
    letter-spacing: 1px;
}

.menu a.active {
    color: #2B345B;
    background-image: url('img/button-active.png');
}

.menu a:hover {
    text-decoration: underline;
}

a.disabled {
    cursor: default;
    opacity: 0.3;
}

a.disabled:hover {
    text-decoration: none;
    background: transparent;
    cursor: default;
}


.main {
    display: flex;
    border: 1px solid #9c816a;
    border-radius: 3px;
    box-sizing: border-box;
    z-index: 2;
    position: relative;
    background-color: #b29f90;
    margin-top: 1px;
    min-width:350px;
    
}

.main::before {
    display: block;
    content: " ";
    height: 3px;
    width: 100%;
    position: absolute;
    margin-top: -3px;
}
.content {
    padding: 12px 24px;
    flex-grow: 1;
    max-width: 1660px;
    margin: 1rem;
    background: #e4dabf;
    border: 1px solid #9c816a;
    border-radius: 3px;
    min-height: 900px;
}

.content img {
    max-width: 100%;
}

code {
    background: #dbe1b6;
    padding: 2px 4px;
    border-radius: 4px;
}

pre {
    background: #dbe1b6;
    padding: 2px 4px;
    border-radius: 4px;
    white-space: break-spaces;
}

.sidebar {
    padding: 12px;
    font-size: 13px;
    color: #2e241c;
    min-width: 150px;
    /*width: 150px;*/
    width: 160px;
    min-height: 640px;
    padding-left: 0;
}

.post h2 a {
    color:  inherit;
    text-decoration: none;
}

.page {
    background: transparent;
}

ul.checklist {
    padding: 0 1rem;
    margin: 0;
    margin-bottom: 2rem;
}

.sidebar a {
    color: inherit;
    text-decoration: none;
}

.sidebar a:hover {
    text-decoration: underline;
}

.page img {
    max-width: 100%;
}

.back-to-home {
    margin: 2rem 0;
    display: block;
    text-align: center;
}

.content img + img {
    margin-top: 6px;
}


iframe {
    border: none;
    height: 100%;
    width: 100%;
}

html, body {
    scrollbar-width: thin; 
    scrollbar-color: #9c7969 #2c3e50;
}

/* WebKit-based browsers (Chrome, Safari, newer Edge) */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #2c3e50;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: #6fa3a9;
    border-radius: 10px;
    border: 3px solid #2c3e50;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #d9e2c6;
}

body.sidebar {
    background-color: #b29f90;
    padding: 0;
    margin: 0;
}

body.header {
    background-color: transparent;
    padding: 0;
    margin: 0;
}

body.header {
    overflow: hidden;
}


body.header2 {
    background-color: transparent;
    padding: 0;
    margin: 0;
}

body.header2 {
    overflow: hidden;
}

iframe[name=header] {
    height: 313px;
    width: 910px;
    margin-bottom: -6px;
    z-index: 3;
    position: relative;
}

iframe[name=header2] {
    /*height: 313px;*/
    margin-bottom: -8px;
    width: 100%;
    z-index: 3;
}

.width-50 {
    width: 50%;
}

.border {
    border: 1px solid #6893a4;
}

.border-0 {
    border: none;
}

.content a {
    color: #346d84;
}

th {
    background: #90b291;
}

th, td {
    padding: 3px 6px;
    border: 1px solid #364974;
    vertical-align: top;
}

table.border-0 th, table.border-0 td {
    border: 0;
}

table td img {

  min-width: 48px; 
  height: auto;
}


/***
EZ Gallery by netfriend - https://netfriend.neocities.org/ez-gallery/
Released under the Unlicense - https://unlicense.org/
***/

.ezgallery.montage { 
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.ezgallery.montage img {
  flex: auto;
  margin: 0 5px 5px 0;
  object-fit: contain;
  object-position: bottom;
}

.ezgallery.horizontal { 
  display: grid;
  grid-gap: 5px;
  gap: 5px;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  grid-auto-rows: minmax(100px, auto);
}

.ezgallery.horizontal a {
  text-align: center;
}

.ezgallery.horizontal img {
  text-align: center;
  vertical-align: middle;
  margin: 0 5px 5px 0;
  max-width: 100px;
  max-height: 100px;
  object-fit: contain;
  object-position: bottom;
}




@media (max-width: 1180px) {
    .wrapper
    {
        max-width: 900px;
        width: 900px;

    }

}




@media (max-width: 900px) {
    .wrapper
    {
        max-width: 100%;
        width: 100%;
        flex:auto;
        
    }


    .main{flex-direction:column;}

    .sidebar{
    width: 100%;
    padding: 12px;
    font-size: 13px;
    color: #2e241c;
    min-width: 150px;
    min-height: 640px;
    }
/*
    iframe[name=header2] {
    height: 200px;

}
*/
}

@media  (max-width:690px)
{
    iframe[name=header2] {
    height: 200px;
    margin-bottom: -20px;


}

}

@media (max-width:429px)
{
    iframe[name=header2] {
    height: 240px;
    margin-bottom: -20px;


}

}

