* {
    box-sizing: border-box;
}

html {
    font-size: 18px;
    scrollbar-gutter: stable;
}


body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

header h1,
header h2 {
    margin-bottom: 0.2rem;
}

nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

nav ol {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

nav ol,
nav li {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
nav,
main,
footer,
.commentbox,
#disqus_thread {
    width: 90%;
    max-width: 42rem;
    padding: 1rem;
}

main {
    line-height: 1.6rem;
}

main img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

main p > img,
main figure > img,
main .post-image {
    display: block;
    margin: 1rem auto;
}

.button-wall {
  display: flex ;
  flex-wrap: wrap ;
  margin: 2.5em ;
  gap: 0.35rem;    
  font-size: 0.0 ;
}



main ul,
main ol {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding-left: 2rem;
}

main li {
    margin: 0.0rem 0;
}

main li p {
    margin: 0;
}


#latest_posts {
    list-style-type: none;
    font-size: 1.2rem;
    padding: 0;
}

pre {
    overflow: scroll;
}

#pagination {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.pagectrl {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pagenext {
    margin-left: auto;
}

.pageprev {
    margin-right: 1rem;
}

.pagectrl p {
    margin: 0;
    background: none;
}

.pagectrl.pageprev a,
.pagectrl.pagenext a
{
    background: none;
    background-color: transparent;
}


footer {
    font-size: 0.8rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

footer p,
footer address,
footer aside {
    margin-inline: 0;
    margin: 0.1rem;
}

footer address {
    font-style: normal;
}

footer aside {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.lastupdate::after {
    content: " • ";
}

iframe {
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
}

.tagList {
    list-style-type: none;
    padding: 0.01rem;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.1rem;
}

.tagList li {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
}

.tagList a {
    font-size: 1.2rem;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.08em;
    text-decoration-thickness: 1px;
}

.tagList a:hover,
.tagList a:focus {
    background-color: #f5abb9;
    color: black;
    text-decoration: none;
}

.tagList aside {
    color: #666;
    font-size: 1rem;
    font-style: normal;
}

.tagged {
    margin-top: 3rem;
}

.tagged h2 {
    font-size: 2rem;
}

img[src*='berrysprite.png'] {
    float: right;
    padding-right: 1rem;
}

img[src*='berrysprite.png'] {
    float: right;
    padding-right: 1rem;
}








/* Dropdown */
/* Dropdown Button */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-details {
    position: relative;
}

.dropbtn {
    color: white;
    text-decoration: none;
    background-color: inherit;
    cursor: pointer;
    display: inline-block;
    padding: 0.2rem 0.4rem;
    font-size: 1.2rem;
    list-style: none;
}

.dropdown-details summary {
    list-style: none;
    cursor: pointer;
}

.dropdown-details summary::-webkit-details-marker {
    display: none;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #FFC259;
    min-width: 160px;
    margin: 0;
    padding: 0;
    list-style: none;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 5px;
    z-index: 1000;
}

/* show on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* keep visible when keyboard-focused or opened */
.dropdown:focus-within .dropdown-content,
.dropdown-details[open] .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f5abb9;
}

.dropdown:hover .dropbtn,
.dropdown:focus-within .dropbtn,
.dropdown-details[open] .dropbtn {
    background-color: #f5abb9;
}