@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

:root {
    --main-bg: #0f0518;
    --purple-accent: #9664FF;
    --border-color: #9664FF;
    --text-white: #9664FF;
    --taskbar-height: 40px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    overflow: hidden;
    font-family: 'VT323', monospace;
    background-color: var(--main-bg);
    color: var(--text-white);
    cursor: url('assets/cursor.png'), auto; 
    user-select: none;
    line-height: 1.2;
}

#startup-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: black;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.terminal-text {
    max-width: 90%;
}

#startup-screen h1 { 
    font-size: clamp(2rem, 5vw, 4rem); 
    margin: 10px 0; 
    color: var(--purple-accent); 
}

#startup-screen p { 
    font-size: clamp(1rem, 3vw, 2rem); 
    margin: 5px 0; 
}

.startup-logo {
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
}

.blink { 
    animation: blinking 1s infinite; 
}

@keyframes blinking { 
    0% {opacity: 1;} 
    50% {opacity: 0;} 
    100% {opacity: 1;} 
}

#desktop {
    width: 100vw;
    height: 100vh;
    background-image: url('https://nikolightbulbhere.neocities.org/0awlerkly0q91.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.icon-grid {
    position:absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-end;
    z-index: 1;
}
.col-grid {
    position:relative;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-end;
    z-index: 1;
}
.col1 {
  flex: 5%;
}
.icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    text-align: center;
    transition: transform 0.1s;
    width: 100px;
}

.icon img { 
    width: 48px; 
    height: 48px; 
    object-fit: contain; 
}

.icon:hover { 
    transform: scale(1.1); 
}

.icon span { 
    margin-top: 5px; 
    font-size: 18px; 
    text-shadow: 2px 2px 0px #000; 
    background: rgba(0,0,0,0.6); 
    padding: 2px 5px;
    border-radius: 4px;
}

.window {
    position: absolute;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 450px;
    background: #000;
    border: 2px solid var(--border-color);
    display: none;
    flex-direction: column;
    box-shadow: 8px 8px 0px rgba(0,0,0,0.5);
}

.title-bar {
    background: var(--border-color);
    color: #000;
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    cursor: move;
    flex-shrink: 0;
    touch-action: none;
}

.title-text {
    flex: 1;
}

.window-controls {
    display: flex;
    gap: 5px;
}

.window-controls button {
    background: #000;
    color: var(--text-white);
    border: 1px solid #000;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.window-controls button:hover { 
    background: #FF0000; 
    color: #fff; 
}

.window-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    background: rgba(10, 5, 20, 0.95);
    image-rendering: pixelated;
    padding: 20px;
}

.scroll-box {
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

.scroll-box::-webkit-scrollbar { 
    width: 8px; 
}

.scroll-box::-webkit-scrollbar-track { 
    background: #000; 
}

.scroll-box::-webkit-scrollbar-thumb { 
    background: #9664FF; 
}

.profile-header { 
    margin-bottom: 15px; 
    border-bottom: 1px dashed #9664FF; 
    padding-bottom: 10px;
}

.profile-pic { 
    width: 100px; 
    height: 100px; 
    border: 2px solid #9664FF; 
    object-fit: cover;
    display: inline-block;
    vertical-align: top;
}

.location-container {
    display: inline-block; 
    vertical-align: top; 
    margin-left: 10px;
}

.flag-icon { 
    width: 30px; 
    vertical-align: middle; 
}

.location-text { 
    font-size: 1.2rem; 
    vertical-align: middle; 
}

.greeting-text {
    font-size: 1.5rem; 
    display: block; 
    margin-top: 10px; 
    color: #fff;
}

.nickname-text {
    color: var(--purple-accent);
    margin-top: 5px;
}

.info-list { 
    list-style: none; 
    padding: 0; 
    margin-top: 15px;
}

.info-list li { 
    margin-bottom: 8px; 
    font-size: 1.2rem; 
    border-left: 2px solid #9664FF; 
    padding-left: 10px; 
    background: rgba(150, 100, 255, 0.05);
}

.info-list li strong { 
    color: #9664FF; 
}

.info-note {
    margin-top: 10px; 
    color: #888;
}

.social-heading {
    text-align: center; 
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 20px;
}

.social-profiles-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.social-profiles-container a img { 
    width: 48px; 
    height: 48px; 
    transition: transform 0.2s; 
}

.social-profiles-container a:hover img { 
    transform: scale(1.2) rotate(5deg); 
}

.games-heading {
    text-align: center; 
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 20px;
}

.games-container {
    overflow-y: auto;
    height: calc(100% - 60px);
}
.games-container {
    overflow-y: auto;
    height: calc(100% - 60px);
}

.games-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.games-list li {
    margin-bottom: 15px;
    font-size: 1.2rem;
    border-left: 2px solid #9664FF;
    padding-left: 10px;
    background: rgba(150, 100, 255, 0.05);
}

.games-list li a {
    color: var(--text-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.games-list li a:hover {
    color: #fff;
}

.games-list li img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

#taskbar {
    position: absolute;
    bottom: 0%;
    width: 100%;
    height: var(--taskbar-height);
    background: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5px;
    border-top: 2px solid #9664FF;
    z-index: 9998;
}

#taskbar-apps {
    display: flex;
    gap: 5px;
    flex: 1;
    overflow-x: auto;
}

#taskbar-apps::-webkit-scrollbar {
    height: 4px;
}

#taskbar-apps::-webkit-scrollbar-track {
    background: #000;
}

#taskbar-apps::-webkit-scrollbar-thumb {
    background: #9664FF;
}

.taskbar-item {
    background: #1a0d2e;
    border: 1px solid #9664FF;
    color: #9664FF;
    padding: 2px 10px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    white-space: nowrap;
    height: 30px;
    flex-shrink: 0;
}

.taskbar-item:hover, .taskbar-item.active {
    background: #9664FF;
    color: #000;
}

#startupmenu {
  width: 50%;
  height: 50%;
}
#clock {
    color: #9664FF;
    font-size: 20px;
    padding: 0 10px;
    background: #000;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .icon-grid {
        flex-direction: row;
        top: 10px;
        left: 10px;
        right: auto;
        gap: 10px;
    }
    
    .icon { 
        width: 80px; 
    }
    
    .icon img {
        width: 40px;
        height: 40px;
    }
    
    .icon span { 
        font-size: 14px; 
    }

    .window {
        width: 95vw !important;
        height: 85vh !important;
        top: 50% !important; 
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }

    .title-bar { 
        padding: 8px; 
        font-size: 18px; 
    }
    
    .window-content {
        padding: 15px;
    }
    
    .social-profiles-container a img { 
        width: 40px; 
        height: 40px; 
    }
    
    .games-list li img {
        width: 28px;
        height: 28px;
    }
    
    .info-list li {
        font-size: 1rem;
    }
    
    .games-list li {
        font-size: 1rem;
    }
    
    body { 
        cursor: auto; 
    }

    #clock {
        font-size: 16px;
        padding: 0 5px;
    }

    .taskbar-item {
        font-size: 16px;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .window {
        width: 90vw !important;
        height: 80vh !important;
    }
    
    .icon-grid {
        gap: 8px;
    }
}
