



.compact {
    line-height: 1.1em;
}






.log {
    box-sizing: border-box;
    background-color: var(--ascent-color);
    border-radius: 1rem;
    border-right: solid 1px #222;
    /* padding:0.8rem 0 0 0.5rem; */
    padding: 0 0 0.2rem 0.5rem;
    margin:3.5rem auto;
    box-shadow: 3px 5px 19px -2px rgba(0,0,0,0.85);
    max-width: 960px;
    transition: all .4s ease-out;

    scroll-margin-top: 9rem; /* ! for anchor id link/jump */
}
/* .log:hover {
    box-shadow: 4px 4px 12px -2px rgba(255,255,255,0.75);
} */
.log:hover .log-body {
    background-color: #404040;
    border-top:solid 2px var(--ascent-color-invert);
    border-left:solid 2px var(--ascent-color-invert);
}


#navBar[data-reset] + .log {
    margin-top:10rem;
}


.log-header {
    /* margin: 0.3rem 0.8rem 0rem 1.3rem; */
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    /* font-family: 'Roboto', sans-serif; */
    cursor: pointer;
    /* -webkit-user-select: none;
    user-select: none; */
}
.log[data-always-visible] .log-header {
    cursor: default;
}

.log-date {
    font-size:1.1rem;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--ascent-color-invert);
    letter-spacing: 0.075em;
    white-space: nowrap;
    padding-right: 0.8rem;
}


.log-title {
    color: var(--ascent-color-invert);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    padding: 1.1rem 0 0 1.35rem;
    transition: all .4s;
}

.log-title .permalink {
    color: var(--ascent-color-invert);
    margin-left:0.4em;
    text-decoration: none;
    opacity: 0;
    transition: opacity .6s;
}
.log-header:hover .permalink {
    color: var(--ascent-color-invert);
    opacity: 0.7;
    background: none;
}

.log-title .permalink:hover {
    opacity: 1;
}

.log.minimized .permalink {
    display: none;
}

.log-body {
    font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";

    background-color: #333;
    line-height: 1.8;
    border-radius: 0.67rem 0 0.9rem 0.6rem;
    padding:0.5rem 1.3rem 1.5rem;
    border-top:solid 2px #66666600;
    border-left:solid 2px #66666600;
    transition: all 0.4s;
}

.log-body b,
.log-body em {
    color:#fdf4d8;
}

.log-body h3 {
    color:#fdf4d8;
    margin: 1.2em 0 0.3em 0;
    font-weight: 300;
    line-height: 1.3;
    letter-spacing: 0.03em;
}
.log-body > h3:first-child {
    margin-top: 0.3em;
}

.log-body p {
    margin: 0.4rem 0 1.2rem;
}

.log-body ul {
    margin-top: 0em;
}

.log-body p + ul {
    margin-top: -0.6em;
}

.log-body li {
    margin: 0 0 0.3rem;
    line-height: 1.6;
}


.log-body img {
    max-width: 94%;
    height: auto;
    /* margin: 0.5rem 0; */
    margin: 1rem 3%;
    border-radius: 0.5rem;

    box-shadow: 0px 0px 12px 0px #000;
    /* display: inline-block; */
}

.log-body a {
    font-weight: bold;
    transition: all 0.4s;
    padding:0 2px;
}

.log-footer {
    border-top: solid 1px #888;
    margin-top: 2em;
    padding-top: .3em;
    line-height: 1.4em;
    opacity: 0.8;
}



.log.minimized {
    margin: .5rem auto;
    opacity: 0.55;
    padding-top:0.25rem;
    transform: scale(0.85);
    transform-origin: right;
}
.log.minimized .log-title {
    font-size: 1.25rem;
    font-weight: 500;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    padding-top:0.5rem;
}
.log.minimized .log-body {
    display: none;
}




.imageBoxContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 4%;
    justify-content: space-around;
    margin: 1.3em 0;
    row-gap: 1.2em;
}

.imageBoxContainer.col1_mid > * {
    width: 80%;
    padding: 0;
    margin: 0;
}

.imageBoxContainer.col1_small > * {
    width: 65%;
    padding: 0;
    margin: 0;
}

.imageBoxContainer.cols2 > * {
    width: 48%;
}
.imageBoxContainer.cols3 > * {
    width: 30%;
}

@media only screen and (max-width: 960px) {
    .imageBoxContainer {
        row-gap: 1.8em !important;
    }
    .imageBoxContainer > * {
        flex-basis: 90%;
    }
}


.imageBoxContainer > div {
    text-align: center;
    line-height: 1.3;
    font-style: italic;

}

.imageBoxContainer a.imageBox img {
    border: solid 4px #000000;
    filter: none;
    transition: border .3s, filter .3s;
    margin: 0;
    -webkit-user-select: none; /* Safari */
    user-select: none; /* Standard syntax */
}
a.imageBox:hover img,
.imageBoxContainer a:hover img {
    border: solid 4px var(--ascent-color-invert);
    filter: brightness(1.5);
}







a, a:link, a:visited {
    color:rgb(179, 212, 255);
}
a:not(.imageBox):hover {
    color: #333;
    background-color: rgb(179, 212, 255);
    text-decoration: none;
    border-radius: 0.2em;
}

a:focus {
    color:#fff;
}

a.imageBox {
    display: block;
    text-align: center;
    padding: 0;
}



iframe[src*="youtube.com"],
.log-body > video,
.log-body > p > video {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 75%;
    left: 12.5%;
    height: auto;
    box-shadow: 0px 0px 12px 0px #000;
    border-radius: 0.5rem;
}

.imageBoxContainer.cols2 iframe[src*="youtube.com"],
.imageBoxContainer.cols2 .log-body > video,
.imageBoxContainer.cols2 .log-body > p > video {
    width: 94%;
}

@media only screen and (max-width: 960px) {
    iframe[src*="youtube.com"],
    .log-body > video,
    .log-body > p > video {
        width: 100% !important;
        left: 0%;
    }
}


.imageBoxContainer iframe[src*="youtube.com"],
.imageBoxContainer .log-body > video,
.imageBoxContainer .log-body > p > video {
    left: auto;
    margin: 0.5rem 0;
}


.textCol2 {
    display: flex;
    flex-wrap: wrap;
    gap: 0 2em;
}

.textCol2 > * {
    flex: 1;
    min-width: 300px;
}









#header-content {
    display:flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.2rem 0.9rem;
    margin:0.5rem 0.2rem;
}
#header-content > div {
    white-space: nowrap;
    font-size: 1.05rem;
    /* font-weight: bold; */
    letter-spacing: -0.02em;
    color:#aaa;
    border-radius: 0.2rem;
    border: solid 1px #ffffff00;
    padding-right:.4rem;
    cursor: pointer;
    -webkit-user-select: none; /* Safari */
    user-select: none; /* Standard syntax */
}
#header-content > div a {
    text-decoration: none;
    color: #aaa;
    transition: color .4s;
}
#header-content > div a:hover {
    background: none;
    color: #eee;
}
#header-content > div a::before {
    content: ' ';
    width: 0.2rem;
    height: 0.2rem;
    display: inline-block;
    background-color: var(--ascent-color-invert);
    border: solid 0.3rem var(--ascent-color);
    border-radius: 1rem;
}
#header-content > div > div {
    width: 0.2rem;
    height: 0.2rem;
    display: inline-block;
    background-color: var(--ascent-color-invert);
    border: solid 0.3rem var(--ascent-color);
    border-radius: 1rem;
}
#header-content > div.selected {
    color: var(--ascent-color-invert);
    background-color: var(--ascent-color);
    border-radius: 1rem;
    border: solid 1px #ffffff55;

    animation-iteration-count: infinite;
    animation-direction:normal;
    animation-timing-function: ease;
    animation-duration: 3.9s;
    animation-name: blinking;
}
#header-content > div.selected a {
    color: var(--ascent-color-invert);
    background-color: var(--ascent-color);
    border-radius: 1rem;
}
@keyframes blinking {
    0% {opacity: 1;}
    8% {opacity: 0.5;}
    15%,23% {opacity: 0.85;}
    29% {opacity: 0.2;}
    40%,100% {opacity: 1;}
}

#navBar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;

    margin: 0 auto 4rem;
    width:100vw;
    background-color: #404040;
    box-shadow: 3px 5px 19px -2px rgba(0,0,0,0.85);
    /* font-family: 'Roboto', sans-serif; */
    border-radius: 0 0 3rem 3rem;
    border: solid 1px #40404000;
    
    transition: all .6s ease-in-out;
}
#navBarContent {
    height: auto;
    height: calc-size(auto, size);
    transition: height 0.25s;
    overflow: hidden;
}

#navBarTitle {
    display: inline-block;
    font-size:1.4rem;
    line-height: 1.1;
    /* font-weight: bold; */
    color:#ccc;
    letter-spacing: 0.08em;
    text-shadow: 0 0 4px #555, 0 0 24px #bbb;
    cursor: pointer;
}


@media (max-width: 768px) and (orientation: portrait) {
    body.scrolledAwayFromTop #navBar {
        width: 90vw;
        top: 1.5rem;
        left: 5vw;
        border-radius: 3rem;
        border: solid 1px #888;
    }
    body.scrolledAwayFromTop #navBarContent {
        height: 0px;
    }

    body #navBarBgGradient {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 8rem;
        /* background: rgb(5,25,80); */
        background: linear-gradient(0deg, rgba(5, 25, 80, 0) 0%, rgba(21,21,21, 0.8) 70%);
        opacity: 0;
        transition: opacity 0.6s;
        z-index: 9;
    }

    body.scrolledAwayFromTop #navBarBgGradient {
        opacity: 1;
    }
}


/* Non-mobile screens with a height of at least 920px */
@media (min-width: 769px) and (min-height: 920px) {
    #navBar {
        /* this prevents top navBar from auto hide */
        top: 0 !important;
    }
}



/* this prevents body content from shifting to right when scrollbar shows/hides in modal view */
body {
    width: calc(100vw - 40px);
}

/* Styles for portrait mode on mobile */
@media (max-width: 768px) and (orientation: portrait) {
    body {
        background-color: #222;
        width: 98vw;
        margin:0rem 1vw;
    }

    .log {
        box-shadow: none;
    }
    .log-header {
        flex-direction: column-reverse;
        gap: 0rem;
    }

    .log-title {
        width:100%;
    }
}


.url1 {
    background-color: #333;
    border-radius: 0.5em;
    display: inline-block;
    padding:0.2em 0.5em !important;
    margin-left: 0.5em;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.78em;
    line-height: 1em;
    font-weight: normal !important;
    text-decoration: none;
    letter-spacing: -0.04em;
}
.url1 strong {
    letter-spacing: 0.01em;
}
.url1 .amp {
    color:#f85;
    font-weight:normal;
    font-size:1.5em;
    line-height:0.5em;
    padding: 0 0.1em;
}
.url1 .qm {
    color:#5f9;
    font-weight:normal;
    font-size:1.1em;
    line-height:0.5em;
    padding: 0 0.2em 0 0.05em;
}
.key {
    display: inline-block;
    min-width: 0.75em;
    background-color: #999;
    color: #333333;
    font-size: 0.92em;
    line-height: 0.8em;
    font-weight: bold;
    text-align: center;
    padding: 0 0.1em 0.05em;
    border: ridge 2px #cdc6b0;
    border-radius: 0.25em;
}


.nowrap {
    white-space: nowrap;
}





html[data-modal-active] body {
    overflow: hidden;
}



#imageModalContainer {
    display: none;
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    width: 100dvw;
    width: 100vw;
    height: 100dvh;
    height: 100vh;
    line-height: 1.3;
    background-color: rgba(0,0,0,0);
    transition: background-color .3s ease .3s, backdrop-filter .3s ease .3s, -webkit-backdrop-filter .3s ease .3s;
    -webkit-user-select: none; /* Safari */
    user-select: none; /* Standard syntax */
}

#imageModalContainer.show {
    display: block;
    background-color: rgba(0,0,0,0.5);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}




#imageModalContainer .modalImgBox {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    /* transition: all .4s cubic-bezier(.57,0,.25,1.25); */
    transition: all .4s ease-out;
}

#imageModalContainer.show .modalImgBox {
    padding: 40px;
}
/* Styles for portrait mode on mobile */
@media (max-width: 768px) and (orientation: portrait) {
    #imageModalContainer.show .modalImgBox {
        padding: 0;
    }
}


#imageModalContainer .modalImgBox img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* transition: all .4s; */
    -webkit-user-select: none; /* Safari */
    user-select: none; /* Standard syntax */
}

#imageModalContainer.show .modalImgBox img {
    filter: drop-shadow(0 0 0.1em white)  drop-shadow(0 0 0.6em #ccc);
}

#imageModalContainer .modalImgBox span {
    text-align: center;
    font-style: italic;
    opacity: 0;
    padding-top:0.2em;
    transition: opacity 0.4s ease 0s;
}
#imageModalContainer:not(.show) .modalImgBox span {
    display: none;
}
#imageModalContainer.show .modalImgBox span.hasContent {
    opacity: 1;
}

/* Close Button */
#imageModalContainer .btnClose,
#imageModalContainer .btnLeft,
#imageModalContainer .btnRight,
#imageModalContainer .btnOpenTab {
  position: absolute;
  z-index: 101;
  top: 20px;
  right: 35px;
  color: black;
  background-color: rgb(217, 163, 118);
  font-size: 40px;
  font-weight: bold;
  line-height: 1em;
  width: 1em;
  border-radius: 1em;
  text-align: center;
  cursor: pointer;
  -webkit-user-select: none; /* Safari */
  user-select: none; /* Standard syntax */
  opacity: 0;
  filter: drop-shadow(0 0 0.1em black) drop-shadow(0 0 0.1em black) drop-shadow(0 0 0.1em black);  
  transition: opacity .5s ease .1s, background-color .5s ease .1s;
}

#imageModalContainer .btnClose {
    background-color: rgb(255, 135, 37);
}

#imageModalContainer .btnLeft {
    top: calc(50% - 1em);
    left: 0.4em;
    right: auto;
}
#imageModalContainer .btnRight {
    top: calc(50% - 1em);
    left: auto;
    right: 0.4em;
}
#imageModalContainer .btnOpenTab {
    top: calc(20px + 1em + 20px);
    left: auto;
    right: 35px;
}
/* Styles for portrait mode on mobile */
@media (max-width: 768px) and (orientation: portrait) {
    #imageModalContainer .btnLeft {
        top: 20px;
        left: 10px;
    }
    #imageModalContainer .btnRight {
        top: 20px;
        left: calc(10px + 1em + 10px);
    }
}


html[data-modal-active] #imageModalContainer.show[data-multi-images] .btnLeft,
html[data-modal-active] #imageModalContainer.show[data-multi-images] .btnRight {
    background-color: rgb(65, 51, 41);
    opacity: 1;
    cursor: default;
}

html[data-modal-active] #imageModalContainer.show .btnClose,
html[data-modal-active] #imageModalContainer.show .btnOpenTab,
html[data-modal-active] #imageModalContainer.show[data-multi-images] .btnLeft:not(.disabled),
html[data-modal-active] #imageModalContainer.show[data-multi-images] .btnRight:not(.disabled) {
    background-color: rgb(217, 163, 118);
    opacity: 1;
    cursor: pointer;
}

#imageModalContainer:not([data-multi-images]) .btnLeft,
#imageModalContainer:not([data-multi-images]) .btnRight {
    pointer-events: none;
    cursor: default;
}

#imageModalContainer .btnOpenTab svg {
    width: 0.5em;
    height: 0.5em;
    padding-bottom: 0.1em;
}

