
@import url('../fonts/assistant.css');

:root {
    --font-mono: monospace;
    --margin: 75px;
}
    
body {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    text-rendering: geometricPrecision;
    font-family: "Assistant", sans-serif;
    color: #222;
    background: #f5f5f5;
}

a {
    color: green;
}

.page {
    display: flex;
    flex-direction: row;
    /*! max-width: 1250px; */
    gap: 0px;
    /*! background: rgba(92, 255, 0, 0.0175); */
}

.sidebar:hover {
}

.details {
        border-collapse: collapse;
        font-size: 11px;
        word-spacing: -3px;

        caption {
            font-size: 16px;
            font-weight: 800;
            text-align: left;
            border-bottom: 1px solid #ccc;
            background: rgba(0,0,0,0.045);
            position: relative;
            
            .internal {
                display: flex;
                flex-direction: row;
            }

            .home {
                text-decoration: none;
                  color: inherit;
                  width: 100%;
                  align-content: center;
                
                display: flex;
                flex-direction: column;
                gap: 0px;
                border-left: 5px solid rgba(0,0,0,0.15);
                            span {
                    padding: 4px 10px;
                }
                
                .sub {
                    font-size: 11px;
                    font-weight: normal;
                    border-top: 1px solid #ccc;
                    background: ;
                }
}
            
            a {
                color: #000;
            }
            
            a.about-link {
                font-size: 10px;
                  text-align: right;
                  font-weight: 500;
                border-left: 1px solid #ccc;
                align-content: center;
                /*! align-self: stretch; */
                padding: 20px;
                /*! opacity: 0.65; */
            }
}

        & td {
         padding: 5px 15px;
            
            a {
                /*! font-family: monospace; */
                font-weight: bold;
                text-decoration: none;
            }
}
        
        & tr {
            border-bottom: 1px solid #ccc;

        }

        & th {
            padding: 5px 20px;
            border-right: 1px solid #ccc;
            background: rgba(0,0,0,0.05);
            text-align: left;
            padding-left: 15px;
        }
        letter-spacing: 0.5px;
    }


.sidebar {
    --padding: 20px;
    width: 100%;
    width: 370px;
    height: 100vh;
    position: sticky;
    /*! overflow-y: scroll; */
    top: 0;
    display: block;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    max-height: 100vh;
    overflow: scroll;
    overflow: hidden;
    scrollbar-gutter: stable;
    scrollbar-color: #ccc transparent;

    &:hover {
        overflow-y: scroll;
    }
    
    .about {
        display: flex;
        flex-direction: column;
        gap: 3px;
        position: sticky;
        top: 15px;
        backdrop-filter: blur(30px);
        margin: 15px var(--padding);
        z-index: 9999999;
                    border: 1px solid #ccc;
        border-bottom: 0px;
        font-family: monospace;
        
        border-left-width: 1px;
    }

    .about .name {
        font-size: 20px;
        font-weight: bold;
        text-decoration: none;
        color: initial;
        padding-bottom: 0;
        margin-bottom: 0;
        display: none;
    }

   

    a {
        text-decoration: none;
    }

    
    }

    .articles {
        padding: 0px var(--padding);
        display: flex;
        flex-direction: column;
        gap: 0px;
        margin-left: -1px;
    }

    footer {
        padding: 15px var(--padding);
        font-size: 11px;
        position: relative;
        margin-top: auto;
        padding-top: 120px;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    details {
        display: block;
        border: 1px solid transparent;
        --padding-d: 10px;
        /*! overflow: hidden; */
        margin-bottom: -2px;
        
        summary {
            cursor: pointer;
            /*! width: 100%; */
            /*! padding: 2px var(--padding-d); */
            border-bottom: 1px solid transparent;
            /*! font-family: monospace; */
        }

        &[open] {
            margin-bottom: 10px;
            margin-top: 0px;

            summary {
                /*! background: rgba(0,0,0,0.075); */
/*                 font-weight: bold; */
                /*! border-color: #ccc; */
            }
            
            ul {
                border-left: 6px solid #ccc;
                /*! margin-left: 10px; */
                display: flex;
                flex-direction: column;
                gap: 0px;
                line-height: 1.4;
                margin-top: 0px;
                margin-bottom: 5px;
                margin-bottom: 0px;
                font-size: 13px;
                padding-left: 0px;
                list-style: none;
/*                 padding-left: 10px */
                /*! margin-left: -1px; */
            }

            ul li {
                /*! border-top: 1px solid rgba(0,0,0,0.065); */
                position: relative;
                a {
/*                  position: relative; */
                    padding: 3px 10px;
                    display: block;
                    margin-left: 0px;
                    display: inline-block;
                    border: 1px solid transparent;
                   
                }
        }

    }

    .up-current {
/*         font-weight: bold; */
        text-decoration: none;
        position: relative;
        background: #00800012;
        border: 1px solid #00800012 !important;
        
    }

    .up-current::before {
        content: " ";
        transition: all 0.2s;
        background: #fff;
        margin-left: -16px;
        font-weight: bold;
        text-decoration: none !important;
        position: absolute;
        /*! opacity: 0; */
        margin-top: 0px;
        top: -1px;
        align-self: center;
        display: block;
        width: 5px;
        background: green;
        height: calc(100% + 2px);
    }
}

main {
    flex: 2;
    margin: 35px 40px;
    /* min-width: 300px; */
    /* text-align: justify; */
    /* letter-spacing: -0.15px; */
    /*! background: rgba(0, 0, 0, 0.035); */
    max-width: 670px;
    height: unset;
      align-self: flex-start;  
    
    & .post {
        border: 1px solid #ccc;
        background: #fff;
        padding: 28px 40px;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    
    & h1 {
        font-size: 42px;
    }
    
    & p:first-of-type {
        font-weight: bold;
        margin: 0;
    }

    blockquote {
        border-left: 10px solid #000;
        padding: 1px 15px;
        margin-left: 15px;
        background: rgba(0,0,0,0.05);
        border: 1px solid #ccc;
        border-left: 10px solid #000;
        font-size: 12px;
    }

    .right {
        float: right;
        max-width: 250px;
        padding-left: 10px;
    }

    .left {
        float: left;
        max-width: 250px;
        padding-right: 15px;
    }
    
    .warning {
        padding: 20px 35px;
        background: #000;
        color: #fff;
        border: 7px solid #9b1515;
        border-bottom-color: rgb(155, 21, 21);
        border-left-width: 7px;
        border-left-style: solid;
        border-left-color: rgb(155, 21, 21);
        border-left: 10px solid red;
        border-bottom-color: red;
        display: block;
    }

    pre {
        background: #000;
        padding: 25px;
        color: #fff;
    }

    img {
        width: 100%;
    }

    & ul, & ol {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
     & .post-title {
         font-size: 14px;
         font-weight: bold;
         margin-bottom: -6px
    }
    
    & .post-meta {
       margin-top: 15px;
      display: flex;
      flex-direction: row;
      gap: 20px;        
      border: 1px solid #ccc;
      padding-bottom: 10px;
      position: sticky;
        padding: 0px 15px;
        bottom: 0;
        font-family: monospace;
        letter-spacing: 0;
        font-size: 11px;
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        
        & {
          backdrop-filter: blur(5px);
        }
        
        & .date {
            /*! border-left: 1px solid #ccc; */
            /*! border-right: 1px solid #ccc; */
            text-align: center;
            padding: 5px 20px;
        }
        
        & :nth-child(2) {
            border-left: 1px solid #ccc;
            /*! border-right: 1px solid #ccc; */
            padding: 5px 25px;
/*             flex: 1; */
            text-align: center;
            flex: 1;
        }
        
        & a {
            color: #000;
            text-decoration: none;
            /*! flex: 3; */
            text-align: center;
            

        }
    }


    table {
        border-radius: 5px;
        font-weight: normal;
        white-space: nowrap;
        width: 100%;
        border: 1px solid #ccc;
        padding: 0;
        border-collapse: collapse;
    
        td, th {
            text-align: center;
            padding: 8px;
            border: none;
        }
    
        td {
            border-bottom: none;
            border-radius: 3px;
            border: none;
        }
    
        thead th {
            color: #fff;
            background: #000;
            border-right: 1px solid #444;
        }
    
        tr:nth-child(even) {
            background: rgba(0,0,0,0.2);
        }
    }

    margin-bottom: 140px;
}

up-progress-bar {
    background-color: green;
}

@media (max-width: 900px) {
    :root {
        --margin: 25px;
    }

    .page {
        flex-direction: column-reverse;
    }

    main {
        width: unset;
        padding: 10px 25px;
        margin: 20px 10px;
        align-self: center;
    }

    .sidebar {
        width: 100%;
        padding: 0px;
        margin: 0px;
        height: fit-content;
        overflow: visible;
        min-width: 100%;
        --padding: 30px;
     
        &:hover {
            overflow: visible;
        }
    }
}  
