@import url('https://fonts.googleapis.com/css2?family=VT323&family=Comic+Neue:wght@400;700&family=Press+Start+2P&display=swap');

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

body {
    font-family: 'Comic Neue', 'Comic Sans MS', cursive;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%23fff" opacity="0.5"/><circle cx="20" cy="20" r="0.5" fill="%23fff" opacity="0.3"/><circle cx="80" cy="30" r="0.8" fill="%23fff" opacity="0.4"/><circle cx="30" cy="70" r="0.6" fill="%23fff" opacity="0.35"/><circle cx="70" cy="80" r="0.7" fill="%23fff" opacity="0.45"/></svg>'),
        linear-gradient(135deg, #0a0a2e 0%, #1a1a4e 50%, #0a0a2e 100%);
    background-size: 100px 100px, 100% 100%;
    min-height: 100vh;
    color: #00ff00;
    overflow-x: hidden;
}

.app-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 10px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Browser Chrome */
.browser-window {
    background: #c0c0c0;
    border: 3px outset #dfdfdf;
    border-radius: 0;
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.browser-toolbar {
    background: linear-gradient(180deg, #dfdfdf 0%, #c0c0c0 50%, #a0a0a0 100%);
    padding: 5px;
    border-bottom: 2px inset #808080;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}

.toolbar-buttons {
    display: flex;
    gap: 3px;
}

.toolbar-btn {
    background: linear-gradient(180deg, #dfdfdf 0%, #c0c0c0 100%);
    border: 2px outset #dfdfdf;
    padding: 3px 8px;
    font-size: 11px;
    cursor: pointer;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

.toolbar-btn:active {
    border-style: inset;
}

.address-bar {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 200px;
}

.address-label {
    font-size: 11px;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    color: #000;
}

.address-input {
    flex: 1;
    background: #fff;
    border: 2px inset #808080;
    padding: 2px 5px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.toolbar-right {
    display: flex;
    gap: 5px;
}

.view-source {
    background: #ffffcc;
}

.browser-content {
    flex: 1;
    background: #000033;
    overflow-y: auto;
    position: relative;
}

/* Pages */
.page {
    padding: 20px;
    min-height: 400px;
}

.home-page {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><rect x="0" y="0" width="25" height="25" fill="%23000044"/><rect x="25" y="25" width="25" height="25" fill="%23000044"/><rect x="0" y="25" width="25" height="25" fill="%23000033"/><rect x="25" y="0" width="25" height="25" fill="%23000033"/></svg>');
    background-size: 20px 20px;
}

.construction-banner {
    background: linear-gradient(90deg, #ffff00, #ff8800, #ffff00);
    color: #000;
    text-align: center;
    padding: 5px;
    font-weight: bold;
    animation: pulse 1s infinite;
    margin-bottom: 20px;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.main-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 20px;
    text-shadow: 2px 2px #ff00ff, -2px -2px #00ffff;
    font-family: 'Press Start 2P', cursive;
}

.rainbow-text {
    background: linear-gradient(90deg, #ff0000, #ff8800, #ffff00, #00ff00, #0088ff, #8800ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow 3s linear infinite;
    background-size: 200% 100%;
}

@keyframes rainbow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.avatar-section {
    text-align: center;
    margin: 20px 0;
}

.avatar-frame {
    display: inline-block;
    border: 4px ridge #c0c0c0;
    padding: 10px;
    background: linear-gradient(135deg, #4a0080, #800040);
}

.avatar {
    font-size: 60px;
    filter: drop-shadow(0 0 10px #00ff00);
}

.webmaster-text {
    color: #00ffff;
    font-size: 14px;
    margin-top: 10px;
}

.countdown-box {
    background: #000;
    border: 3px ridge #ff0000;
    padding: 15px;
    text-align: center;
    margin: 20px auto;
    max-width: 300px;
}

.countdown-label {
    color: #ff0000;
    font-size: 12px;
}

.countdown-display {
    font-family: 'VT323', monospace;
    font-size: 48px;
    color: #ff0000;
    text-shadow: 0 0 10px #ff0000;
}

.glitch {
    animation: glitch 0.5s infinite;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.countdown-sub {
    color: #ffff00;
    font-size: 12px;
    margin-top: 10px;
}

.blink {
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.nav-section {
    margin: 30px 0;
    text-align: center;
}

.nav-header {
    color: #ffff00;
    font-size: 16px;
    margin-bottom: 15px;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.nav-link {
    color: #00ffff;
    text-decoration: underline;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.nav-link:hover {
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff;
}

.new-badge {
    background: #ff0000;
    color: #fff;
    font-size: 10px;
    padding: 2px 5px;
    animation: blink 0.5s infinite;
}

.locked-badge {
    background: #808080;
    color: #fff;
    font-size: 10px;
    padding: 2px 5px;
}

.secret-link {
    color: #ff8800;
}

.hidden-hotspot {
    position: absolute;
    top: 100px;
    right: 50px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    opacity: 0;
}

.hidden-hotspot:hover {
    opacity: 0.3;
    background: #ff00ff;
}

.midi-player {
    background: #c0c0c0;
    border: 2px inset #808080;
    padding: 10px;
    margin: 20px auto;
    max-width: 300px;
    color: #000;
    text-align: center;
}

.midi-controls {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
}

.midi-controls button {
    background: #dfdfdf;
    border: 2px outset #fff;
    padding: 5px 10px;
    cursor: pointer;
}

.dial-up-sound {
    text-align: center;
    color: #808080;
    font-style: italic;
    margin-top: 20px;
    animation: fade-in-out 3s infinite;
}

@keyframes fade-in-out {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Guestbook */
.guestbook-page {
    background: linear-gradient(180deg, #000033 0%, #001a4d 100%);
}

.page-title {
    text-align: center;
    font-size: 24px;
    color: #ffff00;
    margin-bottom: 10px;
    text-shadow: 2px 2px #000;
}

.subtitle {
    text-align: center;
    color: #00ffff;
    margin-bottom: 20px;
}

.guestbook-entries {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.guestbook-entry {
    background: #111;
    border: 2px ridge #444;
    padding: 10px;
    cursor: pointer;
}

.guestbook-entry:hover {
    border-color: #00ff00;
}

.guestbook-entry.encrypted {
    background: #200020;
    border-color: #ff00ff;
}

.guestbook-entry.phantom {
    background: #002000;
    border-color: #00ff00;
}

.entry-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.entry-name {
    color: #00ffff;
    font-weight: bold;
}

.entry-date {
    color: #808080;
    font-size: 12px;
}

.entry-msg {
    color: #fff;
}

.sign-guestbook {
    text-align: center;
    margin-top: 20px;
    color: #ff8800;
}

.small {
    font-size: 12px;
    color: #808080;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 30px;
    color: #00ffff;
    text-decoration: underline;
}

/* Secret Files */
.secret-page {
    background: radial-gradient(ellipse at center, #1a0033 0%, #000 100%);
}

.password-section {
    text-align: center;
    margin: 50px 0;
}

.lock-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.hint {
    color: #ffff00;
    font-style: italic;
    margin: 10px 0;
}

.password-form {
    margin: 20px 0;
}

.password-input {
    background: #000;
    border: 2px inset #00ff00;
    color: #00ff00;
    padding: 10px;
    font-size: 16px;
    font-family: 'VT323', monospace;
    width: 200px;
}

.submit-btn {
    background: linear-gradient(180deg, #006600 0%, #004400 100%);
    border: 2px outset #00ff00;
    color: #00ff00;
    padding: 10px 20px;
    margin-left: 10px;
    cursor: pointer;
    font-family: 'VT323', monospace;
    font-size: 16px;
}

.submit-btn:active {
    border-style: inset;
}

.error-msg {
    color: #ff0000;
    margin-top: 10px;
}

.files-unlocked {
    text-align: center;
}

.access-granted {
    color: #00ff00;
    font-size: 20px;
    margin-bottom: 20px;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px auto;
    max-width: 300px;
}

.file-item {
    background: #001100;
    border: 2px ridge #00ff00;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 18px;
}

.file-item:hover {
    background: #002200;
    transform: scale(1.02);
}

.file-item.final-file {
    background: linear-gradient(135deg, #330033 0%, #003333 100%);
    border-color: #ff00ff;
    animation: glow 2s infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px #ff00ff; }
    50% { box-shadow: 0 0 20px #ff00ff, 0 0 30px #00ffff; }
}

/* Chat Archive */
.chat-page {
    background: #000;
}

.chat-log {
    background: #0a0a0a;
    border: 2px inset #333;
    padding: 15px;
    font-family: 'VT323', monospace;
    font-size: 16px;
    max-height: 400px;
    overflow-y: auto;
}

.chat-line {
    margin: 5px 0;
}

.chat-time {
    color: #808080;
}

.chat-user {
    color: #00ffff;
    margin: 0 5px;
}

.chat-msg {
    color: #fff;
}

.chat-line.system .chat-user {
    color: #ff8800;
}

.chat-line.system .chat-msg {
    color: #ff8800;
    font-style: italic;
}

.chat-line.mysterious .chat-user,
.chat-line.mysterious .chat-msg {
    color: #ff0000;
    text-shadow: 0 0 5px #ff0000;
}

.chat-line.phantom .chat-user {
    color: #00ff00;
}

.chat-footer {
    text-align: center;
    margin-top: 20px;
    color: #808080;
}

/* Personal Page */
.personal-page {
    background: linear-gradient(180deg, #1a0033 0%, #330066 50%, #1a0033 100%);
}

.bio-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 20px 0;
}

.bio-image-container {
    text-align: center;
}

.bio-image {
    width: 120px;
    height: 120px;
    border: 4px ridge #c0c0c0;
    background: linear-gradient(135deg, #000 0%, #330033 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    cursor: pointer;
    transition: all 0.3s;
}

.bio-image:hover {
    transform: rotate(10deg);
    box-shadow: 0 0 20px #ff00ff;
}

.click-hint {
    font-size: 10px;
    color: #808080;
    margin-top: 5px;
}

.bio-text {
    flex: 1;
    min-width: 200px;
}

.bio-text p {
    margin: 5px 0;
    color: #00ffff;
}

.bio-text hr {
    border: none;
    border-top: 1px dashed #808080;
    margin: 15px 0;
}

.bio-quote {
    color: #ff00ff !important;
    font-style: italic;
}

.interests {
    background: #000;
    border: 2px ridge #ffff00;
    padding: 15px;
    margin: 20px 0;
}

.interests h3 {
    color: #ffff00;
    text-align: center;
    margin-bottom: 10px;
}

.interests ul {
    list-style: none;
}

.interests li {
    color: #00ffff;
    margin: 5px 0;
    cursor: pointer;
}

.interests li:hover {
    color: #ff00ff;
}

/* Downloads */
.downloads-page {
    background: #001a33;
}

.download-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.download-item {
    background: #000;
    border: 2px ridge #00ff00;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.download-item.important {
    border-color: #ff0000;
    animation: glow 2s infinite;
}

.file-icon {
    font-size: 40px;
}

.file-name {
    color: #00ffff;
    font-weight: bold;
}

.file-size {
    color: #808080;
    font-size: 12px;
}

.download-btn {
    background: linear-gradient(180deg, #004400 0%, #002200 100%);
    border: 2px outset #00ff00;
    color: #00ff00;
    padding: 5px 15px;
    cursor: pointer;
    margin-top: 5px;
}

.download-btn.special {
    background: linear-gradient(180deg, #660000 0%, #330000 100%);
    border-color: #ff0000;
    color: #ff0000;
    animation: pulse 1s infinite;
}

/* Error 404 */
.error-page {
    text-align: center;
    background: #0a0a0a;
}

.error-title {
    font-size: 100px;
    color: #ff0000;
    text-shadow: 0 0 20px #ff0000;
    font-family: 'VT323', monospace;
}

.error-art {
    font-family: monospace;
    color: #808080;
    white-space: pre;
    margin: 30px 0;
}

.hidden-text {
    color: #1a1a1a;
    cursor: pointer;
    margin-top: 50px;
}

.hidden-text:hover {
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff;
}

/* Hidden Page */
.hidden-page {
    background: radial-gradient(ellipse at center, #1a1a4d 0%, #000 100%);
    text-align: center;
}

.looking-glass {
    margin: 30px 0;
}

.glass-frame {
    display: inline-block;
    border: 8px ridge gold;
    border-radius: 50%;
    padding: 20px;
    background: linear-gradient(135deg, #1a1a4d 0%, #4d1a4d 100%);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.glass-surface {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(ellipse at 30% 30%, #fff 0%, #8080ff 30%, #4040ff 60%, #000080 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.glass-icon {
    font-size: 80px;
    filter: drop-shadow(0 0 10px #fff);
}

.hidden-title {
    font-size: 28px;
    color: #fff;
    text-shadow: 0 0 20px #8080ff;
    margin: 20px 0;
}

.final-message {
    max-width: 500px;
    margin: 0 auto;
    color: #c0c0ff;
    line-height: 1.8;
}

.final-message p {
    margin: 15px 0;
}

.final-message hr {
    border: none;
    border-top: 1px solid #4040ff;
    margin: 20px 0;
}

.final-quote {
    color: #ffff00;
    font-size: 18px;
    font-style: italic;
}

.win-message {
    background: linear-gradient(135deg, #006600 0%, #004400 100%);
    border: 4px ridge gold;
    padding: 20px;
    margin-top: 30px;
}

.restart-btn {
    background: linear-gradient(180deg, #ffcc00 0%, #ff8800 100%);
    border: 3px outset #ffcc00;
    color: #000;
    padding: 10px 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
}

/* Footer */
.page-footer {
    background: #c0c0c0;
    border: 3px outset #dfdfdf;
    padding: 15px;
    margin-top: 10px;
    text-align: center;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.badge {
    background: #dfdfdf;
    border: 2px outset #fff;
    padding: 5px 10px;
    font-size: 10px;
    color: #000;
    text-decoration: none;
}

.badge.berrry {
    background: linear-gradient(180deg, #ff6699 0%, #ff3366 100%);
    color: #fff;
}

.badge.berrry:hover {
    background: linear-gradient(180deg, #ff3366 0%, #ff0033 100%);
}

.hit-counter {
    background: #000;
    color: #00ff00;
    padding: 5px 15px;
    display: inline-block;
    font-family: 'VT323', monospace;
    font-size: 18px;
    border: 2px inset #808080;
    margin: 10px 0;
}

.counter-display {
    background: #001100;
    padding: 2px 5px;
}

.webring {
    color: #000;
    font-size: 12px;
    margin: 10px 0;
}

.webring span {
    margin: 0 10px;
    cursor: pointer;
    color: #0000ff;
}

.last-updated {
    color: #808080;
    font-size: 11px;
}

/* Inventory */
.inventory-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #404040 0%, #202020 100%);
    border-top: 3px ridge #808080;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 100;
}

.inventory-label {
    color: #ffff00;
    font-size: 12px;
    font-family: 'VT323', monospace;
}

.inventory-slots {
    display: flex;
    gap: 5px;
    flex: 1;
}

.inventory-slot {
    width: 40px;
    height: 40px;
    background: #000;
    border: 2px inset #808080;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.inventory-slot.filled {
    background: #001a00;
    border-color: #00ff00;
    cursor: pointer;
}

.item-tooltip {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    border: 2px ridge #00ff00;
    padding: 10px;
    color: #00ff00;
    font-size: 12px;
    z-index: 101;
    white-space: nowrap;
}

/* Dialog */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.dialog-box {
    background: #c0c0c0;
    border: 3px outset #dfdfdf;
    min-width: 300px;
    max-width: 90%;
}

.dialog-titlebar {
    background: linear-gradient(90deg, #000080 0%, #1084d0 100%);
    color: #fff;
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 12px;
}

.dialog-titlebar button {
    background: #c0c0c0;
    border: 2px outset #dfdfdf;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 10px;
}

.dialog-content {
    padding: 20px;
    text-align: center;
    color: #000;
}

.dialog-ok {
    background: #dfdfdf;
    border: 2px outset #fff;
    padding: 5px 30px;
    margin-top: 15px;
    cursor: pointer;
}

/* Popup Ad */
.popup-ad {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 150;
    animation: shake 0.5s infinite;
}

@keyframes shake {
    0%, 100% { transform: translate(-50%, -50%) rotate(0); }
    25% { transform: translate(-48%, -52%) rotate(-1deg); }
    75% { transform: translate(-52%, -48%) rotate(1deg); }
}

.popup-titlebar {
    background: linear-gradient(90deg, #ff0000 0%, #ff8800 100%);
    color: #fff;
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 12px;
}

.popup-close {
    background: #c0c0c0;
    border: 2px outset #fff;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.popup-content {
    background: #ffff00;
    border: 3px outset #dfdfdf;
    padding: 20px;
    color: #000;
    text-align: center;
}

.popup-text {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* View Source */
.source-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.source-window {
    background: #fff;
    border: 3px outset #dfdfdf;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
}

.source-titlebar {
    background: linear-gradient(90deg, #000080 0%, #1084d0 100%);
    color: #fff;
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.source-titlebar button {
    background: #c0c0c0;
    border: 2px outset #fff;
    cursor: pointer;
}

.source-code {
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #000;
    overflow: auto;
    max-height: 60vh;
    white-space: pre-wrap;
    background: #fff;
}

/* Mobile */
@media (max-width: 600px) {
    .main-title {
        font-size: 16px;
    }
    
    .toolbar-buttons {
        display: none;
    }
    
    .address-bar {
        min-width: 100%;
    }
    
    .inventory-slot {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .countdown-display {
        font-size: 32px;
    }
    
    .bio-section {
        flex-direction: column;
        align-items: center;
    }
    
    .glass-surface {
        width: 100px;
        height: 100px;
    }
    
    .glass-icon {
        font-size: 50px;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 16px;
}

::-webkit-scrollbar-track {
    background: #c0c0c0;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #dfdfdf 0%, #a0a0a0 100%);
    border: 2px outset #dfdfdf;
}

::-webkit-scrollbar-button {
    background: #c0c0c0;
    border: 2px outset #dfdfdf;
    height: 16px;
}