:root {

    --accent: #ff8c00;
    --accent2: #ffb347;
    --bg: #050505;
    --panel: #121212;
    --panel2: #1c1c1c;
    --text: #f4f4f4;
    --muted: #aaaaaa;
    --border: #333;
    --shadow:
        0 0 15px rgba(255, 140, 0, .15);
    --radius: 18px;
    --cursor: #ff8c00;
}

/* FONTS */
.rubik-glitch-regular {
    font-family: "Rubik Glitch", system-ui;
    font-weight: 400;
    font-style: normal;
}

.stardos-stencil-regular {
    font-family: "Stardos Stencil", system-ui;
    font-weight: 400;
    font-style: normal;
}

.stardos-stencil-bold {
    font-family: "Stardos Stencil", system-ui;
    font-weight: 700;
    font-style: normal;
}

.rubik-glitch-regular {
    font-family: "Rubik Glitch", system-ui;
    font-weight: 400;
    font-style: normal;
}

.vt323-regular {
    font-family: "VT323", monospace;
    font-weight: 400;
    font-style: normal;
}

.syne-tactile-regular {
    font-family: "Syne Tactile", system-ui;
    font-weight: 400;
    font-style: normal;
}

/* MATRIX MODE */
body.matrix {
    --accent: #00ff66;
    --accent2: #00cc55;
    --bg: #000000;
    --panel: #031303;
    --panel2: #071b07;
    --text: #9cff9c;
    --muted: #55aa55;
    --border: #00ff66;
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at top,
            #202020,
            #101010 30%,
            #050505 100%);

    font-family:
        'JetBrains Mono',
        monospace;
    color: #ccc;
    overflow-x: hidden;
    min-height: 100vh;
}

/* SCANLINES */
#scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    background:
        repeating-linear-gradient(0deg,
            rgba(255, 255, 255, .03),
            rgba(255, 255, 255, .03) 1px,
            transparent 1px,
            transparent 4px);

    opacity: .15;
}

/* NOISE */
#noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: .04;
    z-index: 9997;
    background-image:
        url("https://www.transparenttextures.com/patterns/asfalt-light.png");
}

/* HERO */
.hero {
    position: relative;
    padding: 20px 20px;
    border-bottom:
        0px solid var(--border);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle,
            rgba(255, 140, 0, .12),
            transparent 70%);

    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

.hero h1 {
    font-family:
        'Stardos Stencil',
        serif;
    font-size: 5rem;
    letter-spacing: 10px;
    color: var(--accent);
    margin-bottom: 15px;
    text-shadow:
        0 0 20px rgba(255, 140, 0, .4);
}

/* GLITCH */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {

    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    overflow: hidden;
}

.glitch::before {
    color: #ff0000;
    transform:
        translate(-2px, 0);
    opacity: .4;
}

.glitch::after {
    color: #00ffff;
    transform:
        translate(2px, 0);
    opacity: .4;
}

.hero p {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 25px;
}

/* BUTTONS */
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 12px 24px;
    border:
        1px solid var(--accent);
    border-radius: 12px;
    text-decoration: none;
    color: white;
    background:
        rgba(255, 140, 0, .08);
    transition: .25s;
}

.hero-btn:hover {
    transform:
        translateY(-3px);
    background: black;
    box-shadow:
        0 0 20px rgba(0, 0, 0, .35);
    border:
        1px solid black
}

/* LAYOUT */
.page-wrapper {
    display: flex;
    justify-content: center;
    width: 1380px;
    margin: 0 auto;
}

/* PANELS */
.panel {
    background: #00000057;
    /*border:
        1px solid var(--border);
    border-radius: 0px;
    box-shadow: var(--shadow);*/
    /*box-shadow: inset 0 0 8px 4px black;*/
    padding: 20px;
}

/* radio */
.radio-panel {
    padding: 10px;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

#customWebPlayer {
    width: 85% !important;
    max-width: 100% !important;
    display: block;
    overflow: hidden;
}

#customWebPlayer * {
    max-width: 100% !important;
    max-height: 50%;
    box-sizing: border-box;
}

h2 {
    font-family: 'Special Elite';
    color: #F88901;
    text-shadow: 0px 0px 0px #000000;
}

h3 {
    text-align: center;
    color: #999866;
    font-family: 'Special Elite';
}

.sidebar {
    width: 280px;
    flex: 0 0 280px;
}

.right-sidebar {
    width: 280px;
    flex: 0 0 280px;
}

/* PROGRESS BAR */
.right-sidebar progress {
    width: 100%;
    height: 14px;
    margin-bottom: 10px;
    background: green;
}

/* TO DO */
.todo-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.todo-list li {
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

/* MESSAGES */
.messages {
    color: #ff8c00;
    text-align: center;
}

/* FAVORITES */
.favorites-widget {
    background: #1b1b1b;
    border: 1px solid #444;
    padding: 12px;
    text-align: center;
}

.favorite-display {
    position: relative;
}

.favorite-display img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 6px;
    transition: .5s ease;
    box-shadow:
        0 0 10px rgba(0, 0, 0, .6);
}

.favorite-info {
    margin-top: 10px;
    text-align: center;
}

.favorite-info h4 {
    margin: 0;
    color: #fff;
    text-align: center;
}

.favorite-info p {
    margin: 4px 0 0;
    color: #9d9d9d;
    font-size: .85rem;
}

.favorite-controls {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.favorite-controls button {
    background: #2b2b2b;
    color: #ddd;
    border: none;
    width: 34px;
    height: 34px;
    cursor: pointer;
    transition: .2s;

}

.favorite-controls button:hover {
    background: #555;
}

/* PROFILE */
.profile-avatar {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
    cursor: crosshair;
    cursor: #ff8c00;
}

.profile-avatar img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
    border: 3px solid var(--bg);
    box-shadow: inset 0 0 10px var(--text), 0 0 20px 10px var(--bg);
    transition: .1s ease;
    cursor: crosshair;
}

.profile-avatar img:hover {
    transform: scale(1.05);
    box-shadow:
        inset 0 0 15px 5px rgb(0 0 0);
}

.profile-panel h2 {
    text-align: center;
    margin-bottom: 8px;
    margin-top: 0px;
    font-family: rubik glitch;
    font-size: 40px;
    font-weight: 200;
    letter-spacing: 3px;
    color: var(--bg);
    text-shadow: 0px 0px 3px #ffffff;
}

.profile-panel p {
    line-height: 1.6;
    text-align: center;
    color: var(--muted);
}

.status-list {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: small;
}

.status-list div {
    padding: 10px;
    background: var(--panel2);
    border-radius: 5px;
}

/* CLOCK */
.clock-panel {
    text-align: center;
}

#clock {
    font-size: 16px;
    margin-top: 10px;
    color: var(--accent);
    font-family: 'orbitron';
    white-space: pre-line;
}

/* QUOTES */
.quote-panel {
    text-align: center;
    min-height: max-content;
}

#quote {
    margin: 15px 0;
    line-height: 1.6;
    color: var(--accent2);
    font-family: 'special elite';
}

#quoteBtn {
    padding: 10px 14px;
    border: none;
    background: var(--accent);
    color: black;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
}

/* WEATHER */
.weather-panel {
    text-align: center;
}

#weather {
    margin-top: 10px;
    line-height: 1.8;
    font-family: 'orbitron';
}

/* LASTFM */
.music-panel {
    text-align: center;
    color: #ff8c00;
}

#lastfm {
    margin-top: 15px;
    line-height: 1.7;
}

#lastfm img {
    width: 100px;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* MISC */
.misc-panel {
    text-align: center;
    align-content: center;

}

/* IMAGE-GIF */
.panel.image-panel {
    padding: 0px;
}

/* MAIN */
.main-content {
    width: 800px;
    flex: 0 0 800px;
}

/* FEATURE GRID */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.feature-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 15px;
    text-decoration: none;
    color: #f4f4f4f4;
    background: #262626;
    border-radius: 5px;
    transition: .1s;
}

.feature-card:hover {
    transform:
        translateY(-6px);
    box-shadow:
        inset 0 0 15px 5px rgb(0 0 0);
}

.feature-card i {
    font-size: 2rem;
    color: #000000;
    text-shadow: 0px 0px 2px #ffffff;
}

/* MARQUEE */
.marquee {
    width: 100%;
    overflow: hidden;
    /* border-top: 1px dashed rgba(255, 255, 255, 0.03); */
}

.marquee p {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-left 13s linear infinite;
    font-family: 'Press Start 2P';
    color: rgb(248, 137, 1);
}

@keyframes scroll-left {
    0% {
        transform: translateX(100%)
    }

    100% {
        transform: translateX(-100%)
    }
}

/* TERMINAL */
.terminal-panel {
    padding: 20px;
    padding-top: 0px;
    overflow: hidden;
    cursor: crosshair;
}

.terminal-header {
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0a0a0a;
    border-bottom:
        1px solid var(--border);
    border-style: inset;
}

.terminal-buttons {
    display: flex;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    background: var(--accent);
}

#terminal-output {
    height: 250px;
    overflow-y: auto;
    padding: 20px;
    background: black;
    color: #00ff66;
    font-family: 'VT323';
    font-size: 18px;
    scrollbar-width: none;
}

#terminal-input {
    width: 100%;
    padding: 15px;
    border: none;
    background: #050505;
    color: #00ff66;
    outline: none;
    font-family: 'VT323';
    font-size: 18px;
    border-style: inset;
    border-width: inherit;
    border-top: 1px solid var(--border);
}

.blink {
    animation: blinker 3s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

/* QUICK GRID */
.quick-grid {
    display: grid;
    grid-template-columns:
        repeat(4, 1fr);
    gap: 0px;
}

.link-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.link-list a {
    padding: 10px;
    background: var(--panel2);
    border-radius: 10px;
    text-decoration: none;
    color: white;
    transition: .2s;
}

.link-list a:hover {
    background: var(--accent);
    color: black;
}

/* PROJECTS - DEPRECATED
.project-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.project-grid a {
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: white;
    background: var(--panel2);
    border-radius: 12px;
    transition: .25s;
}

.project-grid a:hover {
    transform:
        translateY(-5px);
    background: var(--accent);
    color: black;
}
*/

/* DISCORD */
.discord-panel iframe {
    border-radius: 12px;
}

/* RETRO BUTTONS */
#galleryToggle {
    width: 100%;
    padding: 15px;
    cursor: pointer;
    background: var(--accent);
    color: black;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    margin-bottom: 20px;
}

#gallery {
    max-height: 700px;
    overflow: auto;
    transition: .35s;
}

#gallery.closed {
    max-height: 0;
    overflow: hidden;
}

.button-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.button-gallery img {
    height: 31px;
    transition: .25s;
}

.button-gallery img:hover {
    transform:
        scale(1.15);
}

/* FOOTER */
footer {
    margin-top: 30px;
    padding: 20px;
    border-top:
        1px solid var(--border);
}

.footer-grid {
    max-width: 1500px;
    margin: auto;
    display: grid;
    grid-template-columns:
        repeat(3, 1fr);
    gap: 20px;
}

.footer-grid div {
    text-align: center;
}

.footer-grid h4 {
    margin-bottom: 15px;
    color: var(--accent);
}

#matrixBtn {
    padding: 12px 18px;
    background: var(--accent);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
}

/* VHS EFFECT */
@keyframes flicker {
    0% {
        opacity: .95;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: .95;
    }
}

.panel {
    animation:
        flicker 8s infinite;
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 0px;
}

/* MOBILE */
@media(max-width:1200px) {

    .sidebar {
        order: 1;
    }

    .right-sidebar {
        order: 3;
    }

    .main-content {
        order: 2;
    }
}

@media(max-width:900px) {
    .hero h1 {
        font-size: 3rem;
        letter-spacing: 4px;
    }

    .quick-grid {
        grid-template-columns:
            1fr;
    }

    .footer-grid {
        grid-template-columns:
            1fr;
    }
}

@media(max-width:600px) {
    .feature-grid {
        grid-template-columns:
            1fr 1fr;
    }

    /*
    .project-grid {
        grid-template-columns:
            1fr 1fr;
    }
    */
    .hero-btn {
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
    }
}

/* TEMPLATE PAGE */
body.template-page {
    height: 100vh;
    overflow: hidden;
}

body.template-page .hero {
    padding: 12px 20px 10px;
}

body.template-page .hero h1 {
    margin: 0;
    font-size: 4rem;
}

body.template-page .hero p {
    margin: 6px 0 0;
}

body.template-page .page-wrapper {
    width: 1380px;
    margin: 0 auto;
    height: calc(100vh - 130px);
    display: flex;
    gap: 12px;
    align-items: stretch;
}

body.template-page .sidebar,
body.template-page .main-content {

    display: flex;

    flex-direction: column;

    gap: 12px;
}

body.template-page .panel {

    padding: 14px;

    overflow: auto;
}

body.template-page .main-content {

    flex: 1;
}

body.template-page footer {

    display: none;
}

body.template-page .hint {

    display: none;
}