/* colors */
:root {
    --bg: #fafafa;
    --bgalt: #f5f3e8;
    --text: #584d4a;
    --textalt: #cec9c3;
    --border: #b6ab9d;
    --accent: #527773;
    --primary: #a4cfb5;
    --secondary: #d8ebca;
    --highlight: #f2f7da;

    --fontsize-p: 8pt;

    --p-1: .2em;
    --p-2: .4em;
    --p-3: .6em;
    --p-4: .8em;
    --p-5: 1em;
}

/* main style */
* {
    box-sizing: border-box;
}

@font-face {
    font-family: dotted;
    src: url(https://file.garden/ZdkezegxzVCR-6D7/neocities/fonts/Minecart%20LCD.ttf);
}

::-webkit-scrollbar {
    width: 2px;
}

body::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 30%, rgba(0, 0, 0, 0.10) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 10;
    background-size: 200% 2px, 3px 200%;
    pointer-events: none;
    opacity: .4;
}

body {
    background: url(https://file.garden/ZdkezegxzVCR-6D7/neocities/backgrounds/city.png) no-repeat right bottom / contain fixed;
    font: normal 8pt/1.6 calibri;
    text-transform: lowercase;
    letter-spacing: .06em;
    color: var(--text);
    text-shadow: 0 0 1px var(--border);
}

#container {
    margin: 6em;
    max-width: 400px;
    z-index: 5;
    position: relative;
}

.flex-column {
    display: flex;
    flex-flow: column wrap;
    gap: var(--p-2);
}

/* footer */

footer {
    text-align: right;
    color: var(--textalt);
}

.row {
    gap: var(--p-3);
}

/* navigation */
nav {
    display: flex;
    flex-flow: row nowrap;
    gap: var(--p-3);
    position: relative;
}

.nav-item {
    display: flex;
    align-items: center;
    user-select: none;
}

.nav-item a {
    text-decoration: none;
    color: var(--text);
    font-size: 9pt;
    line-height: .86;
    background-image: linear-gradient(45deg, var(--secondary) 50%, transparent 50%);
    background-size: 250% 100%;
    background-position: right bottom;
    transition: background-position .3s ease;
}

.nav-item a:hover {
    text-decoration: none;
    background-position: left top;
    color: var(--accent);
}

nav hr {
    flex: 1 1 auto;
    border: 4px dotted var(--primary);
    border-width: 8px 0 0 0;
    margin: var(--p-3) 0;
}

nav span {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent 60%, white);
    pointer-events: none;
}

hr {
    border-top: 1px dotted var(--border);
    opacity: 1;
    margin-block: var(--p-2);
}

#fc2 {
    text-align: center;
}

/* headers */
header {

    margin-bottom: var(--p-3);

    #icon {
        background: url(https://file.garden/ZdkezegxzVCR-6D7/neocities/deco/IMG_6021.png) no-repeat center / contain;
        height: 100%;
        aspect-ratio: 1/1;
    }

    p {
        font-size: 20pt;
        font-family: dotted;
        color: var(--primary);
        writing-mode: vertical-rl; 
        transform: rotate(180deg);
        line-height: var(--p-4);
    }

    p::after {
        content: "";
        display: block;
        background: url(https://file.garden/ZdkezegxzVCR-6D7/neocities/deco/barcode.png) no-repeat center / contain;
        height: 100%;
        aspect-ratio: 1/1;
        rotate: 90deg;
    }

    .row {
        gap: 0;
    }

    .row .col:nth-child(2) {
        align-self: center;
        padding-left: var(--p-5);
        margin-left: var(--p-5);
    }
}

h1 {
    font-weight: 200;
    letter-spacing: var(--p-1);
    color: var(--primary);
    font-size: 14pt;
}

h3 {
    font-size: 14pt;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--bg);
}

h4 {
    font-weight: bold;
    border-left: 6px solid var(--primary);
    padding-left: var(--p-2);
    color: inherit;
    font-size: 10pt;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-family: monospace;
}

h5 {
    text-transform: uppercase;
    font-size: var(--fontsize-p);
    margin: 0;
    display: inline;
}

h5::before {
    content: "✱";
    padding-right: var(--p-1);
    color: var(--accent);
}

h1, h2, h3, h4, h5 {
    margin-bottom: 0;
}

/* text */

p {
    margin: 0;
    text-align: justify;
    line-height: 1.4;
}

.hl {
    background: var(--highlight);
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--accent);
}

.outlink {
    color: var(--text);
    text-decoration: 1px underline var(--primary);
}

.outlink::after {
    content: "";
    display: inline-block;
    background: url(https://file.garden/ZdkezegxzVCR-6D7/neocities/deco/External%20link.png) no-repeat center / contain;
    aspect-ratio: 1/1;
    width: 10px;
    top: 1px;
    position: relative;
}

ul {
    list-style-type: '+ ';
    padding-left: 1em;
    margin: 0;
    line-height: 1.4;
    color: var(--textalt)
}

li {
    padding: 0;
    margin: 0;
}

details {
    position: relative;
    display: flex;
    flex-flow: column nowrap;
    list-style: none;
    padding-bottom: .5em;
    bottom: var(--p-2);
    top: var(--p-4);

    ::marker {
        color: var(--accent);
    }

    div {
        display: flex;
        flex-flow: row nowrap;
        align-items: baseline;
        border-left: 4px solid var(--text);
        margin-left: 6px;
        height: 100%;
        margin-top: -2px;
        margin-bottom: -.4em;
        padding-bottom: .4em;
    }

    div::before{
        content: "";
        width: 6px;
        aspect-ratio: 1/1;
        border: 2px solid var(--text);
        display: inline-flex;
        border-radius: 40%;
        z-index: 2;
        position: absolute;
        bottom: -4px;
        left: 5px;
    }

    hr {
        width: 10%;
        margin: 0;
        border-top: 2px solid var(--text);
    }

    p {
        text-align: left;
        position: relative;
        bottom: -1px;
    }

    span {
        content: "";
        width: 6px;
        height: 6px;
        aspect-ratio: 1/1;
        border: 2px solid var(--text);
        display: inline-flex;
        border-radius: 40%;
        z-index: 2;
        margin-right: var(--p-2);
        position: relative;
        bottom: -2px;
    };
}

details > summary {
    font-weight: bold;
    list-style: none;
    cursor: default;
    position: relative;
    user-select: none;
    
    &::after {
        content: "";
        background: var(--text);
        border: 2px solid var(--bg);
        outline: 2px solid var(--text);
        border-radius: var(--p-2);
        color: #fff;
        float: left;
        width: 16px;
        aspect-ratio: 1/1;
        margin-right: var(--p-2);
        z-index: 5;
        position: relative;
    }
}

blockquote {
    border-left: 4px solid var(--primary);
    padding-inline: var(--p-2);
    text-align: justify;
    margin: 0;
    background:var(--bgalt);
}

/* buttons */

button {
    background: var(--primary);
    color: var(--bg);
    text-decoration: none;
    padding: 0 var(--p-3);
    border: 0;
    border-radius: 2em;
}

button:hover {
    background: var(--accent);
    color: var(--secondary);
    text-decoration: none;
    padding: 0 var(--p-3);
    border: 0;
    border-radius: 2em;
}

/* images */

img {
    max-width: 100%;
}

#intro {
    background: url(https://file.garden/ZdkezegxzVCR-6D7/neocities/deco/Illustration8.png) no-repeat right bottom / 60%;
    padding-right: 4em;
    text-shadow: 2px 0 var(--bg), -2px 0 var(--bg), 0 2px var(--bg), 0 -2px var(--bg),
    1px 1px var(--bg), -1px -1px var(--bg), 1px -1px var(--bg), -1px 1px var(--bg);
}

#lines {
    background: url(https://file.garden/ZdkezegxzVCR-6D7/neocities/backgrounds/lines.png) no-repeat center / contain;
    position: absolute;
    height: 100vh;
    width: 100%;
    left: -40%;
    top: -40%; 
    filter: contrast(0);
    opacity: .1;
    z-index: -1;
}

.flex-item {
    display: flex;
    flex-flow: column nowrap;
    flex: 1;
}

/* main content */
#content {

    .row { 
        gap: 0;
        box-shadow: 0 0 4px var(--border);

        #bg {
            background: linear-gradient(var(--primary) 20%, var(--secondary) 60%), url(https://i.pinimg.com/736x/7d/46/fd/7d46fda6943c79d15194944a0d9506dc.jpg) repeat center bottom / cover;
            background-blend-mode: lighten;
            box-shadow: 0 0 20px inset var(--bg);

            .card {
                width: 130px;
                padding-right: 4em;
                background: linear-gradient(to right, var(--bg) 40%, transparent);

                p {
                    padding-left: 2em;
                    text-align: left;
                    overflow: hidden;
                    position: relative;

                    span {
                        position: absolute;
                        font-size: 40pt;
                        color: var(--textalt);
                        left: -20%;
                        bottom: -100%;
                        z-index: 0;
                        opacity: .4;
                    }
                }

                img:nth-child(1) {
                    filter: opacity(80%);
                }

                img:nth-child(7) {
                    filter: sepia(40%) hue-rotate(40deg) grayscale(40%);
                }
            }
        }
    }

    #contact {

        display: flex;
        flex-flow: column wrap;
        background: var(--bgalt) url(https://file.garden/ZdkezegxzVCR-6D7/neocities/deco/Illustration.png) no-repeat left bottom / contain;

        p {
            word-break: break-all;
            text-align: right;
        }
    }

    #log {
        flex: 1 1 0;
        overflow-y: auto;
        background: var(--secondary);
        padding: 0 var(--p-2) var(--p-2) var(--p-2);

        .marquee {
            height: 14pt;
            }

            .marquee span {
            line-height: 8pt;
            animation: scroll-left 3s linear infinite;
            }
    }
}

.redirect {
    background: var(--bg);
    padding: var(--p-1) var(--p-4) var(--p-1) var(--p-2) ;
    border-radius: var(--p-5);
    border: 1px solid var(--border);
    display: inline-block;

    a {
        position: relative;
        right: -10%;
        background: var(--secondary);
        border-radius: 50%;
        padding: var(--p-1);
        text-decoration: none;
        border: 1px solid var(--primary);
        color: var(--bg);
    }

    a:hover {
        color: var(--accent);
    }
}

#contact p {
    line-height: 1.2;
}

.card {
    border-radius: 0;
    color: inherit;
    border: 0;
    border-color: var(--border);
    background: var(--bgalt);
    padding: var(--p-2);
}

.bg {
    padding: var(--p-3);
    background: var(--bgalt);
    border: 1px solid var(--border)
}

.bg-alt {
    padding: var(--p-2);
    background: var(--bgalt);
    border: 1px dotted var(--border);
    line-height: 1.2;
    border-radius: var(--p-2);
}

.wrapper {
    border-width: 7px;
    border-style: solid;
    border-image: url("https://file.garden/ZdkezegxzVCR-6D7/neocities/backgrounds/8xftJ3v.gif") 7 fill round;
}

.bg-dark {
    padding: var(--p-2);
    background: var(--bgdark)!important;
    border: 1px dotted var(--border);
}

textarea {
    border: 1px solid var(--text);
}

#links {
    display: flex;
    flex-flow: column nowrap;
}

#links div {
    line-height: 1.4;
    margin-bottom: var(--p-2);
    padding-bottom: var(--p-2);
}

#links div:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.list {
    line-height: 1;
}

#stamps img {
    height: 40px;
    object-fit: contain;
}

.divider {
    display: flex;
    align-items:center;
    font-size: 6pt;
    gap: var(--p-1);
    color: var(--secondary);
    width: 60%;
    margin-inline: auto;

    hr {
        flex: 1 1 auto;
        border-top: 1px dotted var(--border);
        margin: 0;
    }

    img {
        width: 14px;
        filter: grayscale(60%) brightness(110%);
    }
}

#btn {
    display: flex;
    gap: var(--p-3);
    max-height: 30px;
}

#btn img {
    max-width: 100%;
}

.gelatine:not(:active) {
    animation: gelatine .5s normal;
}

.gelatine:active:after {
    animation: gelatine .5s normal;
}

@keyframes gelatine {
from, to { transform: scale(1, 1); }
25% { transform: scale(0.9, 1.1); }
50% { transform: scale(1.1, 0.9); }
75% { transform: scale(0.95, 1.05); }
}

.marquee {
    height: 8pt;
    overflow: hidden;
    position: relative;
    }

    .marquee span {
    position: absolute;
    width: 100%;
    height: 100%;
    margin: 0;
    line-height: 8pt;
    text-align: center;
    transform: translateX(100%);
    animation: scroll-left 4s linear infinite;
    }

    .marquee span > img {
        max-height: 100%;
    }

    @keyframes scroll-left {
    0% {
        -moz-transform: translateX(100%);
        -webkit-transform: translateX(100%);
        transform: translateX(100%);
    }
    100% {
        -moz-transform: translateX(-100%);
        -webkit-transform: translateX(-100%);
        transform: translateX(-100%);
    }
}