* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Perfect DOS VGA';
    src: url('assets/Perfect DOS VGA 437 Win.ttf') format('truetype');
}

body {
    background: #201533;
    overflow: hidden;
    height: 100vh;
    font-family: 'Perfect DOS VGA';
}

p {
    margin-top: 0;
    margin-left: 0;
    text-align: left;
    color: #0098db;
    font-size: 1.2rem;
}

li {
    margin-top: 0;
    margin-left: 0;
    text-align: left;
    color: #4c79c3;
    font-size: 1.2rem;
    margin-left: 40px;
}

h1 {
    text-align: center;
    color: #6883d8;
    margin-top: 60px;
    font-size: 2cm;
}

h2 {
    margin-top: 0;
    margin-left: 0;
    text-align: left;
    color: #574fb0;
    font-size: 2rem;
}

.text {
    position: relative;
    display: block;
    margin-top: 20px;
    width: 60%;
    margin-left: 10%;
    margin-right: 20%;
    padding: 20px;
    border: 2px solid #0ce6f2;
    background: #201533;
    z-index: 2;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    border-radius: 5px;
}

.lastfm {
    position: absolute;
    top: calc(60px + 2cm + 20px);
    left: calc(10% + 60% + 6.7px);
    width: calc(25% - 2px);
    padding: 20px;
    border: 2px solid #0ce6f2;
    background: #201533;
    z-index: 2;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    border-radius: 5px;
}

.rain-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

.raindrop {
    position: absolute;
    background: linear-gradient(to bottom, transparent, #565, transparent);
    border-radius: 0 0 50% 50%;
    opacity: 0.7;
    animation: fall linear infinite;
}

.raindrop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 20px;
    background: #565;
    box-shadow: 0 0 6px #565;
}

@keyframes fall {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(calc(100vh + 100px));
        opacity: 0;
    }
}

.matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.subtitle {
    margin-top: 150px;
    font-size: 1.2rem;
    opacity: 0.8;
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px #00ffff40;
    }
    to {
        text-shadow: 0 0 20px #00ffff80, 0 0 30px #00ffff60;
    }
}

.buttons {
    display: block;
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    max-width: 100vw;
    box-sizing: border-box;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.small-buttons img {
    width: 80px;
    height: 15px;
    flex-shrink: 0;
}

.large-buttons {
    margin-top: 15px;
}

.large-buttons .btn-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    min-width: 100%;
}

.large-buttons img {
    width: 88px;
    height: 31px;
    flex-shrink: 0;
}

a {
    color: #B9D9EB;
}

.star-sites {
    position: absolute;
    top: calc(60px + 2cm + 20px + 201px);
    left: calc(10% + 60% + 6.7px);
    width: calc(25% - 2px);
    padding: 20px;
    border: 2px solid #0ce6f2;
    background: #201533;
    z-index: 2;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    border-radius: 5px;
}

.star-sites h3 {
    color: #574fb0;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

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

.star-sites li{
    margin-left: 0;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.star-sites a {
    color: #B9D9EB;
    text-decoration: none;
    transition: color 0.3s ease;
}

.star-sites a:hover {
    color: #0ce6f2;
    text-shadow: 0 0 5px #0ce6f2;
}

@media (max-width: 900px) {
  body {
    overflow: auto !important;
    height: auto !important;
  }
  h1 {
    margin-top: 20px;
    font-size: 2rem;
  }
  .lastfm, .star-sites, .text {
    box-sizing: border-box;
    padding: 14px;
    border-radius: 5px;
    z-index: 2;
  }
  .lastfm, .star-sites {
    position: static;
    display: inline-block;
    vertical-align: top;
    width: 50%;
    min-width: 0;
    max-width: 50%;
    margin: 0;
  }
  .text {
    position: static;
    width: 96vw;
    max-width: 100vw;
    margin: 10px auto 0 auto;
    height: 35vh;
    min-height: 150px;
    max-height: 250px;
    overflow-y: auto;
    font-size: 1rem;
  }
  .buttons {
    position: static;
    margin: 20px auto 10px auto;
    left: unset;
    bottom: unset;
    transform: none;
    z-index: 2;
    text-align: center;
    width: 100vw;
    max-width: 100vw;
    flex-wrap: wrap;
    overflow-x: auto;
  }
  .btn-row {
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
  }
}

@media (max-width: 600px) {
  body {
    overflow: auto !important;
    height: auto !important;
  }
  html {
    overflow-x: hidden;
  }
  .lastfm, .star-sites, .text {
    padding: 10px;
  }
  .lastfm {
    display: block;
    width: 100vw;
    max-width: 100vw;
    margin: 0 auto 10px auto;
    height: 25vh;
    min-height: 80px;
    max-height: 180px;
    overflow-y: auto;
  }
  .star-sites {
    display: none !important;
  }
  .text {
    width: 98vw;
    max-width: 100vw;
    height: 66vh;
    min-height: 120px;
    max-height: 1000px;
    font-size: 0.95rem;
    margin-bottom: 60px;
    padding-bottom: 20px;
  }
  .buttons {
    position: static !important;
    margin-bottom: 80px !important;
  }
}


.portfolio-window {
    position: fixed;
    width: 300px;
    height: 500px;
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 11px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    user-select: none;
}

.window-titlebar {
    background: linear-gradient(90deg, #0a246a 0%, #a6caf0 100%);
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 4px;
    border-bottom: 1px solid #808080;
    cursor: grab;
}

.window-titlebar:active {
    cursor: grabbing;
}

.window-title {
    color: white;
    font-weight: bold;
    font-size: 11px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
    flex-grow: 1;
    padding-left: 4px;
}

.window-controls {
    display: flex;
    gap: 2px;
}

.window-button {
    width: 16px;
    height: 14px;
    border: 1px outset #c0c0c0;
    background: #c0c0c0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 8px;
    font-weight: bold;
}

.window-button:hover {
    background: #d4d0c8;
}

.window-button:active {
    border: 1px inset #c0c0c0;
}

.window-button.minimize::before {
    content: '';
    width: 8px;
    height: 2px;
    background: #000;
    margin-top: 4px;
}

.window-button.maximize::before {
    content: '';
    width: 8px;
    height: 8px;
    border: 2px solid #000;
    border-bottom-width: 3px;
}

.window-button.close::before {
    content: '×';
    font-size: 12px;
    line-height: 1;
    color: #000;
}

.window-button.close {
    background: #ff6b6b;
}

.window-button.close:hover {
    background: #ff5252;
}

.window-button.minimize {
    background: #ffeb3b;
}

.window-button.minimize:hover {
    background: #fdd835;
}

.window-button.maximize {
    background: #4caf50;
}

.window-button.maximize:hover {
    background: #43a047;
}

.window-content {
    padding: 10px;
    height: calc(100% - 20px);
    background: #c0c0c0;
    overflow-y: auto;
    color: #000;
    font-size: 11px;
}

.window-content p {
    color: #000;
    font-size: 11px;
    margin: 0;
    font-family: 'MS Sans Serif', sans-serif;
}

.window-content::-webkit-scrollbar {
    width: 16px;
}

.window-content::-webkit-scrollbar-track {
    background: #c0c0c0;
    border: 1px inset #c0c0c0;
}

.window-content::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border: 1px outset #c0c0c0;
}

.window-content::-webkit-scrollbar-thumb:hover {
    background: #d4d0c8;
}

.window-content::-webkit-scrollbar-button {
    background: #c0c0c0;
    border: 1px outset #c0c0c0;
    height: 16px;
}

.window-content::-webkit-scrollbar-button:hover {
    background: #d4d0c8;
}