:root{
    --background:            #1d1f21;
    --backgroundHighlight:   #222;
    --backgroundLight:       #333;
    --backgroundLighter:     #444;
    --backgroundLightest:    #555;
    --lighttext:             #888;
    --normaltext:            #c9cacc;
    --textdecor:             #2bbc8a;
    --h1text:                white;
    --time:                    #7e7e7e
}

html {
    border-top: 2px solid var(--normaltext);
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    height: 100%;
}

body {
    color: var(--normaltext);
    background-color: var(--background);
    font-family: sans-serif;
    /* font-family: "Menlo", "Meslo LG", monospace; */
    font-weight: 400;
    line-height: 1.725;
    text-rendering: geometricPrecision;
    min-height: 100%;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    overflow-wrap: break-word;
    word-wrap: break-word;
    -ms-word-break: break-all;
    word-break: break-word;
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    -webkit-hyphens: auto;
    hyphens: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

time{
    font-size: 16px;
    color: var(--time);
    vertical-align: baseline;
}

h1 {
    font-size: 25px;
    text-align: center;
    color: var(--h1text);
}

h2 {
    font-size: 20px;
    color: var(--normaltext);
    font-weight: bold;
    margin-bottom: -5px;
}

a {
    color: var(--normaltext);
    text-decoration: underline;
    text-decoration-color: var(--textdecor);
    text-underline-offset: 5px;
}

figure{
    text-align: center;
}

figure img{
    width: 550px;
}

a:hover {
    color: var(--textdecor);
}

select{
    color: var(--background);
    font-size: 16px;
    margin-left: 10px;
    background-color: var(--normaltext);
    padding: 2px;
    border-radius: 5px;
}

button{
    color: var(--background);
    font-size: 16px;
    background-color: var(--normaltext);
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
    border-radius: 5px;
}

input{
    background-color: var(--normaltext);
    color: var(--background);
}

textarea{
    background-color: var(--normaltext);
    color: var(--background);
}

.article p{
    font-size: 16px;
    text-align: justify;
}

.bodyContainer {
    width: 650px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    flex: 1 0 auto;
}

.index_text{
    font-size: 22px;
    text-align: center;
    color: var(--normaltext);
    margin-bottom: 40px;
}

.description {
    font-size: 21px;
    margin-left: auto;
    margin-right: auto;
    color: var(--normaltext);
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.aboutContent{
    text-align: justify;
}

.hrcls{
    margin-top: 30px;
}

.childlist{
    text-align: center;
    font-size: 21px;
    list-style-type:none;
    display: grid;
    gap: 15px;
    margin-left: -30px;
    margin-top: 30px;
}

.childlist li{
    margin-top: 30px;
}

.childlist div {
    border-radius: 50px;
    padding-top: 10px;
    padding-bottom: 15px;
    margin-bottom: 45px;
}

.childlist figure img:hover {
    margin-top: -15px;
    margin-bottom: 15px;
}

.topsection{
    color: var(--normaltext);
    width: 650px;
    font-size: 18px;
    margin-left: auto;
    margin-right: auto;
    text-align:justify;
    margin-top: 30px;
}

.NavigList{
    display: flex;
    flex-direction:row-reverse;
    justify-items: center;
    justify-content: start;
    background-color: var(--backgroundLight);
    margin-bottom: 20px;
    padding: 3px;
}

.NavigItem{
    margin-left: 10px;
    background-color: var(--backgroundHighlight);
    border:1px solid var(--normaltext);
    padding-left: 4px;
    padding-right: 4px;
    padding-bottom: 2px;
}
.NavigItem a:hover {
    color: var(--textdecor);
}

.cheatSheetContainer{
    display: flex;
    flex-wrap: wrap;
    flex-direction:row;
}

.cheatSheetContainer table {
    margin-left: auto;
    margin-right: auto;
    display: block;
    text-align: left;
    margin-top: 15px;
    margin-bottom: 15px;
    font-size: 16px;
}

.cheatSheetContainer th {
    border-radius: 30px 30px 0 0;
    background-color: var(--backgroundLightest);
    text-align: center;
    padding: 8px;
    font-weight: bold;
    font-size: 18px;
}

.cheatSheetContainer td {
    background-color: var(--backgroundLighter);
    text-align: left;
    padding: 8px;
}

blockquote{
    margin-left: -1px;
    text-align: justify;
    font-style: italic;
    padding-left: 8px;
    border-left: 1px solid var(--normaltext);
}

summary{
    font-style: bold;
    font-size: 18px;
    text-decoration: underline;
    text-underline-offset: 6px;
    margin-bottom: 10px;
}

footer {
    width: 100%;
    background-color: var(--backgroundLight);
    margin-top: auto;
}

code{
    text-align: left;
    display: block;
    margin-top: 10px;
    font-size: 16px;
    padding-left: 10px;
    background-color: var(--backgroundLight);
    font-style: italic;
    font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

canvas{
    width: 97%;
}


#searchBox {
    text-align: center;
    font-size: 20px;
    border-radius: 10px;
}

.logs{
    margin-top: 30px;
}

.logs ol {
    list-style: none;
    display: flex;
    flex-direction: column-reverse;
    margin-left: -50px;
}

.logs li {
    margin-bottom: 25px;
}

.logs p {
    margin-left: 25px;
}

.logs summary {
    font-size: 16px;
    color: var(--normaltext);
    background-color:var(--backgroundLight);
    border-radius: 8px;
    list-style: none;
    padding-left: 20px;
    padding-top: 8px;
    padding-bottom: 8px;
    text-decoration: none;
    border: 1px solid var(--normaltext);
}

.logs summary:hover {
    background-color: var(--backgroundLighter);
}

.logs summary ins {
    text-decoration: underline;
    font-size: 18px;
    text-decoration-color: var(--normaltext);
    text-underline-offset: 6px;
}

.logs summary p {
    margin-left: 10px;
}

.logs p{
    text-align: justify;
    padding-left: 10px;
    padding-bottom: 5px;
    margin-left: -4px;
}

.logs ins {
    color: var(--h1text);
}

.pixelart img{
    width: 240px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.pixelart {
    text-align: center;
    font-size: 20px;
}

.pixelart figure {
    margin-bottom: 50px;
}

.link_dump {
    font-size: 16px;
    color: var(--normaltext);
    margin-top: 50px;
    text-align: center;
}

.link_dump ol {
    list-style: none;
}

.link_dump div{
    margin-bottom: 25px;
    border: 1px solid var(--normaltext);
    padding: 10px;
    background-color: var(--backgroundLight);
    border-radius: 15px;
}
.link_dump div:hover{
    background-color: var(--backgroundLighter);
}

.link_dump a {
    font-size: 18px;
    color: var(--normaltext);
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-color: var(--textdecor);
}

.link_dump a:hover {
    color: var(--textdecor);
}

.link_dump img {
    width: 22px;
    vertical-align: -5px;
}

.link_dump i {
    color: var(--lighttext);
}

.quizContainer{
    text-align: left;
}


.EnigmaSection{
    border: 3px solid var(--backgroundLight);
    background-color: var(--backgroundHighlight);
    padding: 10px;
    margin-bottom: 20px;
}

.EnigmaQuestionTitle{
    font-size: large;
}

.EnigmaQuestion {
    font-size: large;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.EnigmaQDescription{
}

.EnigmaAnswerGrid{
 display: flex;
 flex-direction: column;
}

.EnigmaAnswer{
 display: block;
 margin-left: auto;
 margin-right: auto;
 font-size: large;
}

.EnigmaAnswerButton{
    display: block;
    margin-top: 10px;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
}

.EnigmaImage{
 display: block;
 width: 90%;
 margin-left: auto;
 margin-right: auto;
 margin-bottom: 20px;
}

#answer {
    visibility: hidden;
}

#quiz {
    visibility: hidden;
}

#show_answer {
    visibility: hidden;
}

#logsCount{
    font-size: 16px;
}

.footerContainer {
    width: 100%;
    background-color: var(--backgroundLight);
}

.footer {
    margin-left: auto;
    margin-right: auto;
    width: 650px;
    display: flex;
    flex-flow: row;
    flex-wrap: nowrap;
    justify-content: space-around;
    height: 40px;
    align-items: center;
    margin-top: 30px;
    padding-top: 10px;
}

.footer a {
    text-decoration: none;
    color: var(--textdecor);
}

.footer_text {
    margin-left: auto;
    margin-right: auto;
    flex-wrap: nowrap;
    font-size: 15px;
    display: flex;
    flex-flow: row;
    flex-wrap: nowrap;
    justify-content: center;
    color: var(--normaltext);
    width: 650px;
    height: 40px;
    align-items: center;
    margin-bottom: 15px;
    padding-top: 8px;
}


#cc {
    width: 40px;
    display: flex;
}

#meengi {
    width: 40px;
    margin-top: 10px;
    margin-left: 3px;
}

#git {
    width: 36px;
    margin-top: 10px;
    margin-left: 10px;
}

#neo {
    width: 47px;
    margin-top: 12px;
    margin-left: 12px;
}

#masto {
    width: 36px;
    margin-top: 12px;
    margin-left: 12px;
}

#c {
    display: block;
    width: 500px;
    height: 500px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
    margin-top: 10px;
}

#webring{
    width: 55px;
    margin-top: 12px;
    margin-left: 12px;
    display: block;
}

@media screen and (max-width: 650px) {
    .footer {
        width: 97%;
        margin-left: auto;
        margin-right: auto;
    }
    .footer_text {
        width: 97%;
        margin-left: auto;
        margin-right: auto;
    }
    .bodyContainer {
        width: 95%;
        margin-left: auto;
        margin-right: auto;
        overflow: visible;
    }
    .childlist{
        display:block;
        margin-left: 8px;
    }
    .NavigList{
        flex-direction: column-reverse;
    }
    figure img {
        width: 100%;
    }
    .link_dump li{
        display: block;
        margin-left: -40px;

    }

}

/* ————————————————————–
  Tree core styles
*/
.tree-container {
    background: linear-gradient(145deg, var(--backgroundLight), var(--background));
    border: 1px solid var(--backgroundHighlight);
    border-radius: 20px;
    padding: 25px 30px;
    margin-top: 30px;
    box-shadow: inset 0 0 25px var(--background);
}

.tree {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tree a {
    font-size: 18px;
    text-decoration: none;
}

.tree input {
    position: absolute;
    clip: rect(0, 0, 0, 0);
}

.tree input~ul {
    display: none;
}

.tree input:checked~ul {
    display: block;
}

.TreeTopLevel{
    background-color: transparent;
}

.tree li {
    line-height: 1.4;
    position: relative;
    padding: 0 0 1em 1.75em;
    list-style: none;
}

.tree ul li {
    padding: 0.8em 0 0.2em 1.75em;
    list-style: none;
    margin-left: 0;
}

.tree>li:last-child {
    padding-bottom: 0;
    list-style: none;
}

.tree_label {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    border-radius: 10px;
    background: var(--backgroundHighlight);
    border: 1px solid var(--backgroundLightest);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

label.tree_label:hover {
    border-color: var(--textdecor);
    background: var(--backgroundLighter);
    transform: translateX(4px);
    color: var(--textdecor);
}

label.tree_label:before {
    background: var(--backgroundLightest);
    color: var(--textdecor);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4em;
    height: 1.4em;
    border-radius: 8px;
    content: '+';
    font-weight: bold;
    transition: transform 0.2s ease, background 0.2s ease;
}

:checked~label.tree_label:before {
    content: '–';
    transform: rotate(180deg);
}

.tree li:before {
    position: absolute;
    top: 0;
    bottom: -0.2em;
    left: 0.55em;
    display: block;
    width: 0;
    border-left: 2px dashed var(--backgroundLightest);
    content: "";
}

.tree_label:after {
    position: absolute;
    top: 1em;
    left: -0.55em;
    display: block;
    height: 0;
    width: 0.8em;
    border-bottom: 2px dashed var(--backgroundLightest);
    content: '';
}

label.tree_label:after {
    border-bottom: 0;
}

:checked~label.tree_label:after {
    border: 0;
}

.tree li:last-child:before {
    height: 1em;
    bottom: auto;
}

.tree>li:last-child:before {
    display: none;
}
