@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap');
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
:root {
    --transparent-black: rgba(0, 0, 0, 0.65);
    --transparent-gray: rgba(30, 30, 30, 0.65);
    --dullgray: rgb(40, 40, 40);
    --darkergray: rgb(0, 0, 0);
    --accent1: pink;
    --accent2:  rgb(180, 69, 180);
    --accent3: rgb(145, 255, 255);
    --accent4: palevioletred;
    --textcolor: white;
    --bgcolor: black;
}
body {
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background-image: url(/assets/bgtokyo.png);
    background-size: cover;
    background-position: center;
    background-color: var(--bgcolor);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    color: var(--textcolor);
}

.row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
}
.col {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

nav.row {
    width: 100%;
    height: 30px;
    background-color: var(--transparent-black);
    backdrop-filter: blur(5px);
    justify-content: space-between;
    padding: 0 10px;
}
#date {
    font-size: 0.8rem;
}
nav > * {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 6px;
}
nav .icons-left {
    justify-content: left;
    width: 75px;
}
nav .icons-right {
    justify-content: right;
    width: 75px;
}
nav img {
    height: 20px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    padding: 4px;
    overflow: visible;
}
.icons-left img:nth-child(1) {
    background-color: var(--accent3);
}
.icons-left img:nth-child(1):hover {
    background-color: rgb(0, 194, 194);
}
.icons-right img:nth-child(1) {
    background-color: var(--accent1);
}
.icons-right img:nth-child(1):hover {
    background-color: rgb(212, 147, 158);
}
.icons-right img:nth-child(2) {
    background-color: var(--accent4);
}
.icons-right img:nth-child(2):hover {
    background-color: rgb(185, 97, 126);
}
.icons-right img:nth-child(3) {
    background-color: var(--accent2);
}
.icons-right img:nth-child(3):hover {
    background-color: rgb(137, 0, 137);
}

.fixed-elements {
    user-select: none;
    pointer-events: none;
}
.fixed-elements > * {
    position: fixed;
}
.loading {
    top: 0;
    left: 0;
    background-color: var(--bgcolor);
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: opacity 2s ease-out;
    z-index: 100;
}
.loading.active {
    opacity: 1;
}
.popup {
    width: 100vw;
    height: fit-content;
    bottom: -100px;
    transition: bottom 0.3s ease;
    z-index: 99;
}
.popup.active {
    bottom: 10px;
    transition: bottom 0.3s ease;
    padding: 0 10px;
}
.popup p {
    backdrop-filter: blur(5px);
    background-color: var(--transparent-black);
    border-radius: 10px;
    padding: 1rem 2rem;
    text-align: center;
}

main {
    height: calc(100vh - 30px);
    top: 30px;
    padding: 10px;
}
body:has(.dashboard.active) .clock {
    opacity: 0;
    transition: opacity 0.3s ease;
}
.clock {
    backdrop-filter: blur(5px);
    background: var(--transparent-black);
    padding: 3rem;
    border-radius: 20px;
    font-size: 1.5rem;
    text-align: center;
    transition: opacity 0.3s ease;
    transform: translate(0, -30px);
    opacity: 1;
}
.clock #hour, .clock #minute {
    font-size: 4rem;
}
.clock #day {
    font-size: 1rem;
}
.clock #month, .clock #weekday {
    font-size: 1.4rem;
}
.desktop-icon {
    position: fixed;
    right: 10px;
    bottom: 10px;
    backdrop-filter: blur(5px);
    background-color: var(--transparent-black);
    gap: 5px;
    padding: 5px 8px;
    border-radius: 4px;
    z-index: 98;
}
.desktop-icon:hover {
    background-color: var(--accent1);
    color: var(--bgcolor);
}
.desktop-icon:active {
    background-color: var(--accent3);
}
.desktop-icon p {
    font-size: 0.7rem;
}
body:has(.dashboard.active) .desktop-icon {
    background-color: var(--dullgray);
}
body:has(.dashboard.active) .desktop-icon:hover p {
    color: var(--accent1);
}

.dashboard {
    height: calc(100% - 30px - 20px);
    width: calc(100% - 20px);
    position: fixed;
    top: 40px;
    left: 10px;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease-out;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
}
.dashboard.active {
    opacity: 1;
    pointer-events: all;
    transition: opacity 0.3s ease-out;
}
#main-stage, #list-stage, #folder-stage {
    background-color: var(--transparent-black);
    backdrop-filter: blur(5px);
    border-radius: 4px;
    padding: 1.5rem;
    overflow-y: scroll;
    scrollbar-width: thin;
    scrollbar-color: var(--dullgray) transparent;
    border: 4px double var(--accent1);
}

#main-stage {
    height: 100%;
    width: 70%;
    justify-content: start;
    overflow-y: scroll;
    overflow-x: hidden;
}
legend {
    padding: 0 10px;
    text-wrap: nowrap;
    font-size: 0.8rem;
}
#main-stage:has(iframe) {
    justify-content: center;
    overflow-x: hidden;
}
#main-stage:has(iframe) a {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 2rem;
}

.wallpaper-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    min-height: 300px;
    overflow: hidden;
}
.wallpaper-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
#main-stage h4 {
    padding-bottom: 2rem;
}
iframe {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    scale: 0.9;
}
#main-stage a {
    color: var(--accent1);
}
#main-stage a:hover {
    color: var(--accent3);
}
.placeholder {
    display: none;
    gap: 1.5rem;
}
.placeholder.active {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.placeholder pre,
.placeholder p {
    line-height: 1.5;
    letter-spacing: 0px;
    font-size: 0.85rem;
}

.fastfetch {
    gap: 2rem;
}

.c-black {
    color: var(--bgcolor);
}
.c-gray { 
    color: var(--dullgray);
}
.c-purple {
    color: var(--accent2); 
}
.c-salmon {
    color: var(--accent4);
}
.c-pink { 
    color: var(--accent1); 
}
.c-cyan { 
    color: var(--accent3); 
}
.c-white { 
    color: var(--textcolor); 
}

.fastdetch-details i {
    vertical-align: middle;
    margin-right: 4px;
    color: var(--accent1);
}
.zsh {
    background-color: var(--accent1);
    color: var(--bgcolor);
    font-weight: 900;
}
.zsh + span {
    color: var(--accent1);
    font-size: 1.6rem;
    margin-left: -2px;
    display: inline-flex;
    transform: translate(0, 4px);
}
.zsh + span + span {
    color: var(--accent3);
}
.fetch-key {
    color: var(--accent1);
}
pre.figlet {
    line-height: 1;
    font-size: 0.62rem;
    font-family: 'JetBrains Mono', 'Courier New', monospace !important;
    display: block;
    white-space: pre;
}

div:has(> .figlet) {
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: left;
}

.terminal-session {
    width: 100%;
}
.bio-content {
    padding-left: 1rem;
    line-height: 1.6;
}
.accent-intro {
    color: var(--accent3);
    font-weight: bold;
    font-size: 0.95rem;
}
.social-links {
    margin-top: 0.8rem !important;
}
.social-links a {
    text-decoration: none;
    transition: color 0.2s ease;
}
.ln-label {
    margin-right: 6px;
}
.pacman-skills-matrix {
    width: 100%;
    padding-left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-sizing: border-box;
}
.pacman-row {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.pkg-meta {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    margin-bottom: 2px;
}
.pkg-name {
    color: var(--accent1);
    font-weight: bold;
}
.pacman-bar-wrapper {
    width: 100%;
    display: flex;
}
.pacman-bar {
    overflow: hidden;
    width: 100%;
    letter-spacing: -1px;
    font-family: 'JetBrains Mono', 'Courier New', monospace !important;
    display: inline-block;
    white-space: nowrap;
}

.terminal-list {
    list-style: none;
    padding-left: 0.5rem;
    margin-top: 1rem;
}
.terminal-list li {
    font-size: 0.75rem;
    line-height: 1.6;
    margin-bottom: 0.4rem;
}
.list-bullet {
    color: var(--accent1);
    margin-right: 6px;
}
.list-category {
    color: var(--accent3);
    margin-right: 6px;
    font-weight: bold;
}

aside {
    height: 100%;
    width: 30%;
    gap: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
#list-stage, #folder-stage {
    height: 50%;
    width: 100%;
}
#list-stage {
    gap: 4px;
    justify-content: start;
}
#list-stage > p {
    background-color: var(--dullgray);
    padding: 5px 1rem;
    border-radius: 5px;
    width: 100%;
    font-size: 0.75rem;
}
#list-stage > p:hover {
    background-color: var(--accent1);
    color: var(--bgcolor);
}
#list-stage > p:active {
    background-color: var(--accent3);
}
#list-stage:has(img) {
    justify-content: center;
    overflow: hidden;
}
#list-stage img {
    width: 80%;
}
#folder-stage {
    justify-content: start;
    align-items: start;
    align-content: start;
    gap: 4px;
    flex-wrap: wrap;
}
#folder-stage > div {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    gap: 5px;
    border-radius: 2px;
    aspect-ratio: 1/1;
    width: 80px;
    height: 70px;
}
#folder-stage > div img {
    width: 30px;
}
#folder-stage > div p {
    font-size: .75rem;
}
#folder-stage > div:hover {
    border: 1px solid var(--accent1);
}
#folder-stage > div:active {
    background-color: var(--accent3);
}

@media screen and (orientation: portrait) {
    .dashboard {
        flex-direction: column;
    }
    #main-stage {
        height: 70%;
        width: 100%;
    }
    aside {
        flex-direction: row;
        height: 30%;
        width: 100%;
    }
    #list-stage, #folder-stage {
        height: 100%;
        width: 50%;
    }
    #main-stage:has(iframe) a {
        margin-bottom: 1.2rem;
    }
    #list-stage img {
        height: 80%;
        width: auto;
    }
}
@media screen and (max-width: 1200px) {
    .fastfetch pre,
    .fastdetch-details p,
    .fastdetch-details i {
        font-size: 0.7rem;
    }
}
@media screen and (max-width: 1000px) {
    .fastfetch pre,
    .fastdetch-details p,
    .fastdetch-details i {
        font-size: 0.6rem;
    }
}
@media screen and (max-width: 600px) {
    #main-stage, #list-stage, #folder-stage {
        padding: 1rem;
    }
    .fastfetch pre,
    .fastdetch-details p,
    .fastdetch-details i {
        font-size: 0.4rem;
    }
    .terminal-session * {
        font-size: 0.6rem;
    }
}
@media screen and (max-width: 450px) {
    #main-stage:has(iframe) a {
        margin-bottom: 1rem;
    }
    iframe {
        scale: 0.7;
        width: calc(100% + 40%);
    }
    #list-stage img {
        height: auto;
        width: 80%;
    }
    .fastfetch pre,
    .fastdetch-details p,
    .fastdetch-details i {
        font-size: 0.3rem;
    }
    pre.figlet {
        font-size: 6px;
    }
}