* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: auto;
}

body {
    background-color: #000000 !important;
    color: #4c59d2;
    font-family: 'Fira Code', monospace;
    filter: contrast(1.16) brightness(1.09) saturate(1.4);

    text-shadow: 0 0 1px rgba(255, 255, 255, 0.4);
    font-size: 30px;
    height: 100vh;
    overflow: hidden;
}

/* universal vhs fx*/

body::before {
    content: "";
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(to bottom,
            rgba(255, 255, 255, 0.03) 0px,
            rgba(255, 255, 255, 0.03) 1px,
            rgba(0, 0, 0, 0.08) 2px,
            rgba(0, 0, 0, 0.08) 3px);
    z-index: 9998;
    mix-blend-mode: overlay;
}


.glitch::before {
    color: rgb(255, 30, 161);
    transform: translateX(-2px);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.5;
    animation: noise 0.3s infinite;
    z-index: 9999;

    /*vignette*/

    background: radial-gradient(ellipse at center,
            rgba(0, 0, 0, 0) 55%,
            rgba(0, 0, 0, 0.3) 75%,
            rgba(0, 0, 0, 0.6) 100%);

    filter: blur(3px);

    mix-blend-mode: multiply;
}


/* glitch effect*/
@keyframes tracking {
    0% {
        transform: translateY(0);
    }

    20% {
        transform: translateY(0.3px);
    }

    40% {
        transform: translateY(-0.2px);
    }

    60% {
        transform: translateY(0.5px);
    }

    80% {
        transform: translateY(-0.1px);
    }

    100% {
        transform: translateY(0);
    }
}





.container {
    display: flex;
    height: 100vh;
    padding: 12px;
    overflow-x: visible;
}

/* sidebar color bg etc*/

.sidebar {
    width: clamp(190px, 15%, 240px);
    background: hsl(245, 78%, 61%);
    color: #cd66ef;
    padding: 20px;
    flex-shrink: 0;
    min-width: 100px;

    overflow-wrap: break-word;
    word-break: break-word;
    overflow: hidden;
}

.terminal {
    font-family: "Fira Code", monospace;
    flex: 1;
    padding: 40px;
    background: transparent;
    color: #4c59d2;
    animation: tracking 0.25s infinite;
    overflow-y: auto;
    overflow-x: hidden;
    overflow-x: visible;
}

/* opacity for first input hint*/

#terminalInput {
    position: relative;
}

.hint {

    opacity: 0.6;
    pointer-events: none;
    color: #6573f4;
    font-style: italic;

}


/*cursor blink aspects*/
.cursor {
    display: inline-block;
    width: 10px;
    animation: blink 0.8s step-start 0s infinite;
}

@keyframes blink {
    5% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.socialLinks {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.socialLinks nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* social links glitch effect css*/


.glitch {
    color: #e8e8e8;
    font-family: 'Share Tech Mono', monospace;
    animation: tracking 0.3s infinite;
    filter: contrast(1.1) brightness(1.1);
    position: relative;

    font-weight: 300;
    letter-spacing: 0.15em;

    transform: scaleX(1.02);

    text-decoration: none;
    cursor: pointer;
}

/* link crt line fx when user cursor hovers*/
.glitch:hover {
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.6),
        -1px 0 rgba(255, 46, 137, 0.773),
        1px 0 #6573f4;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.6;
}

.glitch::before {
    color: rgb(250, 59, 126);
    transform: translateX(-1px);
}

.glitch::after {
    color: #3044fc;
    transform: translateX(1px);
}

@keyframes letter-spacingfx {
    0% {
        letter-spacing: 0.12em;
    }

    50% {
        letter-spacing: 0.18em;
    }

    100% {
        letter-spacing: 0.14em;
    }
}



@keyframes glitch {
    0% {
        transform: translateX(0);
    }

    10% {
        transform: translateX(-2px);
    }

    20% {
        transform: translateX(2px);
    }

    30% {
        transform: translateX(-4px);
    }

    40% {
        transform: translateX(4px);
    }

    50% {
        transform: translateX(-1px);
    }

    60% {
        transform: translateX(1px);
    }

    70% {
        transform: translateX(-3px);
    }

    80% {
        transform: translateX(3px);
    }

    100% {
        transform: translateX(0);
    }
}


/* archives word font*/
summary {
    font-family: 'VT323', monospace;
    display: inline-flex;
    list-style: none;
    position: relative;
    align-items: center;
}

/* makes all browsers use marker on sidebar*/
summary::-webkit-details-marker {
    display: none;
}

/* sidebar marker next to archives*/
summary::after {
    content: "▶";
    font-size: 0.8em;
    margin-left: 1.5ch;
    display: inline-block;
    transform: translateY(-1px);
}

details[open] summary::after {
    content: " ▼";
    font-size: 0.8em;
}

h1 {
    background-color: transparent;
    padding: 8px;
}

/* sidebar list text*/
.sidebar details ul li a {
    font-size: 20px;
    font-family: 'Fira Code', monospace;
    padding: 10px 0
}

.sidebar {
    width: 20%;
    max-width: 250px;
    min-width: 150px;
    flex-shrink: 0;
}


.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar a {
    color: inherit;
    text-decoration: none;
    display: block;
}

@media (max-width: 1000px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        max-width: none;
    }

    .terminal {
        width: 100%;
    }
}

/* audio stuff for song*/
.audioCard {
    display: flex;
    align-items: center;
    width: 600px;
    height: 100px;
    gap: 15px;
}

/* album cover stays square */
.albumCover {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    position: relative;
}

.albumCover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*view image*/
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
}

.modal img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 6px;
}

/*cursor pointer on album cover*/
.thumbnail {
    cursor: pointer;

}

/* rectangle around audio player*/
.audioRectangle {
    background: #c489ff;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid #3c38ff;
    width: fit-content;
}

/* audio title formatting*/
.audioNames {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.songTitle {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #ffffff;
}

/* images for gallery */
.galleryImages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    text-align: center;
    margin: 50px;

}

.galleryThumbnail {
    width: 300px;
    height: 350px;
    object-fit: cover;
    cursor: pointer;
}

.galleryImage1Rectangle {
    background: #9aa6f0;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid #ffffff;
    width: fit-content;
    margin: auto;
}

.galleryImageTitle1 {
    margin: 10px 0 0 0;
    font-size: 16px;
    color: #ffffff;
}

.galleryImage2Rectangle {
    background: #7785e1;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid #ffffff;
    width: fit-content;
    margin: auto;
}

.galleryImageTitle2 {
    margin: 10px 0 0 0;
    font-size: 16px;
    color: #ffffff;
}

.galleryImage3Rectangle {
    background: #5b6ac9;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid #ffffff;
    width: fit-content;
    margin: auto;
}

.galleryImageTitle3 {
    margin: 10px 0 0 0;
    font-size: 16px;
    color: #ffffff;
}

.galleryImage4Rectangle {
    background: #7785e1;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid #ffffff;
    width: fit-content;
    margin: auto;
}

.galleryImageTitle4 {
    margin: 10px 0 0 0;
    font-size: 16px;
    color: #ffffff;
}

.galleryImage5Rectangle {
    background: #5b6ac9;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid #ffffff;
    width: fit-content;
    margin: auto;
}

.galleryImageTitle5 {
    margin: 10px 0 0 0;
    font-size: 16px;
    color: #ffffff;
}

.galleryImage6Rectangle {
    background: #665bc9;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid #ffffff;
    width: fit-content;
    margin: auto;
}

.galleryImageTitle6 {
    margin: 10px 0 0 0;
    font-size: 16px;
    color: #ffffff;
}

.galleryImage7Rectangle {
    background: #5b6ac9;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid #ffffff;
    width: fit-content;
    margin: auto;
}

.galleryImageTitle7 {
    margin: 10px 0 0 0;
    font-size: 16px;
    color: #ffffff;
}

.galleryImage8Rectangle {
    background: #665bc9;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid #ffffff;
    width: fit-content;
    margin: auto;
}

.galleryImageTitle8 {
    margin: 10px 0 0 0;
    font-size: 16px;
    color: #ffffff;
}

.galleryImage9Rectangle {
    background: #6f53cb;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid #ffffff;
    width: fit-content;
    margin: auto;
}

.galleryImageTitle9 {
    margin: 10px 0 0 0;
    font-size: 14px;
    color: #ffffff;
}

.hiddenWording {
    margin-top: 200px;
    text-align: center;
    color: rgb(229, 87, 16);
}

.keywordEnter {
    margin: auto;
    display: flex;
    justify-content: center;

}

.keywordEnter input {
    background: transparent;
    border: 1px solid #9a9a9a;
    border-radius: 4px;

    color: rgb(229, 87, 16);
    outline: none;

    padding: 4px 8px;
    width: 180px;

    text-align: center;
}

.secretRectangle {
    background: #8754d3;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid #ffffff;
    width: fit-content;

    position: fixed;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.secretTitle {
    font: 'VT323', monospace;
    margin: 0 0 5px 0;
    font-style: italic;
    color: #ffffff;
    font-size: 20px;
    text-align: center;
}