/*:root {
/*    --dark: #69626D;
/*    --light: #BCAF9C;
/*    --text: #CBBEB3;
/*    --highlight: #E8C7DE;
/*    --lowlight: #D9BDC5;
/*}
 */

html {
    /* background-image: url("../assets/bg_tile.png");
    background-repeat: repeat; */
    background-color: #000;
}

:root {
    --dark: #1b1725ff;
    --dark-highlight: #534b62;
    --light: #a499b3;
    --dark-text: #d0bcd5;
    /* --link-text: #f8809e; */
    --link-text: #ff9bab;
    /* --dark-text: #E8C7DE; */
    /* --text: #F0F0C9; */
    --text: #ffffe5;
    --code-background: rgb(23, 16, 27);
    --highlight: #ffe23f;
    --undershadow-old: #7f7494;
    --undershadow: #57437e;
    --outline-red: #ff7e9f;
}

body {
    font-family: VictorMono, 'Courier New', Courier, monospace;
    /* font-size: 1.025em; */
    font-weight: bold;
    max-width: 1000px;
    padding: 10px 50px;
    margin: 10px auto 40px auto;
    display: block;
    color: var(--text);
    background-color: #000;
    min-height: 1000px;
    box-shadow: 7px 4px var(--undershadow);
    outline: 1px dotted;
}

h2,
h3 {
    text-decoration: underline;
    text-underline-position: under;
}

a h3 {
    text-decoration: none !important;
}

h2 {
    margin-top: 35px;
}

a {
    color: var(--link-text);
    text-decoration: none;

    &:hover {
        text-decoration: underline;
    }

    &:visited {
        color: var(--link-text);
    }
}

#header-div {
    border: 2px dashed var(--outline-red);
    padding: 0 20px;
    box-shadow: var(--undershadow) 6px 3px;
    margin-top: 20px;
}

nav {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: -25px;
}

nav>a>div {
    padding: 1em 2em;
    border: 2px dashed #fff;
    cursor: pointer;
    user-select: none;
    background-color: #000;

    &:hover {
        border: 2px solid #fff;
    }

    &:active {
        border: 2px dotted #fff;
    }
}

.float-right {
    float: right;
    margin: 0 0 1em 2.5em;
}

.jp {
    font-family: "Helvetica Neue",
        Arial,
        "Hiragino Kaku Gothic ProN",
        "Hiragino Sans",
        Meiryo,
        sans-serif;
}

#title {
    color: var(--text);
}

#articles-parent {
    position: relative;
}

#articles-panel {
    background-color: #000;
    position: absolute;
    top: 100%;
    margin-top: 30px;
    border-left: 1px solid var(--highlight);
    border-right: 1px solid var(--highlight);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 10;
    min-width: 100px;
    max-width: 250px;
    display: flow-root;
}

#articles-panel>div:nth-of-type(1) {
    max-width: 100%;
    height: 45px;
    color: #000;
    font-size: 2em;
    background: repeating-linear-gradient(-45deg,
            var(--highlight) 0 20px,
            black 20px 40px);
    max-width: max-content;
    overflow: hidden;
    white-space: nowrap;
    padding-left: 5px;
    user-select: none;
    position: relative;
}

#articles-panel>div:nth-of-type(1)::before {
    content: "";
    position: absolute;
    top: 60%;
    left: 0;
    width: 100%;
    height: 80%;
    background-color: var(--highlight);
    transform: translateY(-50%);
    z-index: 1;
}

#articles-panel>div:nth-of-type(1)>span {
    z-index: 2;
    position: relative;
}

#articles-panel>div:nth-of-type(2) {
    min-width: 100px;
    padding: 0 2em 1em 2em;
}

#articles-panel>div:nth-of-type(2)::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 10px;
    bottom: 0;
    background: repeating-linear-gradient(-45deg,
            var(--highlight) 0 20px,
            black 20px 40px);
    z-index: 1;
}

#articles-parent {
    display: none;
}

#articles-parent.active {
    display: block;
}

#articles-panel>h3 {
    margin-top: 0.5em;
}

hr {
    margin: 20px 0;
    color: var(--dark-highlight);
}

@font-face {
    font-family: VictorMono;
    src: url("../assets/VictorMono-Regular.ttf");
}

canvas {
    display: block;
}

ul.sidebar {
    margin-left: -20px;
}

#sidebar {
    float: right;
    margin-left: 30px;
    min-width: 150px;
}

.code {
    background-color: var(--code-background);
    outline: 1px solid;
    outline-color: var(--dark-highlight);
    border-radius: 4px;
    padding: 3px;
}

.button-link {
    background-color: var(--code-background);
    outline: 2px dotted var(--dark-highlight);
    border-radius: 4px;
    padding: 3px;
    display: inline-block;
    margin-top: 10px;
    text-decoration: none !important;

    &:hover {
        outline: 2px solid var(--dark-highlight);
    }
}
