/* Y2K Style CSS */
:root {
    --y2k-blue: #00ffff;
    --y2k-pink: #ff00ff;
    --y2k-yellow: #ffff00;
    --y2k-green: #00ff00;
    --y2k-silver: linear-gradient(to bottom, #f0f0f0, #c0c0c0, #f0f0f0);
    --y2k-blue-gradient: linear-gradient(to bottom, #0000ff, #0099ff, #00ffff);
    --y2k-pink-gradient: linear-gradient(to bottom, #ff00ff, #ff0099, #ff66cc);
    --y2k-yellow-gradient: linear-gradient(to bottom, #ffff00, #ffcc00, #ff9900);
    --y2k-window-bg: #c0c0c0;
    --y2k-taskbar: #0055aa;
}

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

.y2k-body {
    font-family: 'Press Start 2P', 'Courier New', monospace;
    background-color: #000033; /* Fallback */
    background-image: url('../images/y2k/star1.gif');
    color: white;
    overflow: hidden;
    cursor: url('../images/y2k/Y2K Aesthetic Heart & Dices--cursor--SweezyCursors.ani'), auto;
}

/* OS Container */
.os-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Taskbar */
.os-taskbar {
    height: 40px;
    background: var(--y2k-taskbar);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 
                inset 0 -1px 0 rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.start-button {
    display: flex;
    align-items: center;
    background: var(--y2k-silver);
    color: black;
    padding: 5px 10px;
    border-radius: 3px;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.start-button img {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

.taskbar-time {
    background: black;
    color: white;
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 12px;
}

/* Desktop */
.desktop {
    flex: 1;
    background-image: url('../images/y2k/star2.gif');
    background-color: #000066; /* Fallback */
    background-size: cover;
    position: relative;
    overflow: hidden;
    padding: 20px;
}

/* Loading Screen */
.loading-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.loading-text {
    color: var(--y2k-green);
    font-size: 24px;
    margin-bottom: 20px;
    text-shadow: 0 0 5px var(--y2k-green);
}

.loading-bar-container {
    width: 50%;
    height: 30px;
    border: 2px solid var(--y2k-green);
    padding: 5px;
    position: relative;
}

.loading-bar {
    height: 100%;
    width: 0%;
    background: var(--y2k-green);
    box-shadow: 0 0 10px var(--y2k-green);
    transition: width 0.3s ease;
}

.loading-percent {
    color: var(--y2k-green);
    margin-top: 10px;
    font-size: 18px;
}

/* Browser Window */
.browser-window {
    position: absolute;
    width: 90%;
    height: 85%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--y2k-window-bg);
    border-radius: 8px;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 2px solid #808080;
}

.window-header {
    height: 30px;
    background: var(--y2k-blue-gradient);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    color: white;
    font-weight: bold;
    cursor: move;
}

.window-controls button {
    width: 20px;
    height: 20px;
    margin-left: 5px;
    border: 1px solid #808080;
    background: var(--y2k-silver);
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.browser-toolbar {
    height: 40px;
    background: var(--y2k-silver);
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 5px;
}

.toolbar-button {
    padding: 5px 10px;
    background: #e0e0e0;
    border: 1px outset #ffffff;
    font-family: Arial, sans-serif;
    font-size: 12px;
    cursor: pointer;
}

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

.address-bar {
    flex: 1;
    background: white;
    padding: 5px 10px;
    margin: 0 10px;
    border: 1px inset #ffffff;
    font-family: Arial, sans-serif;
    font-size: 12px;
    color: black;
}

/* Browser Content */
.browser-content {
    flex: 1;
    background: white;
    overflow-y: auto;
    padding: 10px;
    color: black;
}

/* Marquee */
.y2k-marquee {
    background-color: black;
    color: var(--y2k-yellow);
    padding: 8px;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Header */
.y2k-header {
    text-align: center;
    padding: 20px 0;
    background: var(--y2k-blue-gradient);
    border: 3px outset #0099ff;
    margin-bottom: 20px;
}

.blink-text {
    font-size: 48px;
    font-weight: bold;
    color: var(--y2k-yellow);
    text-shadow: 0 0 10px var(--y2k-yellow);
    margin-bottom: 15px;
    animation: blink 1s infinite;
}

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

.under-construction {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
    color: white;
}

.under-construction img {
    width: 40px;
    height: 40px;
    margin: 0 10px;
}

/* Navigation */
.y2k-nav ul {
    display: flex;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 10px 0;
    flex-wrap: wrap;
}

.glow-button {
    display: inline-block;
    padding: 8px 15px;
    background: var(--y2k-silver);
    color: black;
    text-decoration: none;
    border: 2px outset #ffffff;
    font-size: 14px;
    transition: all 0.3s;
    font-weight: bold;
}

.glow-button:hover {
    background: white;
    box-shadow: 0 0 10px var(--y2k-blue);
    transform: scale(1.05);
}

.glow-button:active {
    border-style: inset;
}

/* Main Content */
.y2k-main {
    padding: 10px;
}

/* Sections */
.y2k-section {
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.8);
    border: 3px outset #c0c0c0;
    padding: 20px;
}

.section-header {
    background: var(--y2k-blue-gradient);
    padding: 10px;
    margin-bottom: 15px;
    text-align: center;
    border: 2px outset #0099ff;
}

.section-title {
    font-size: 24px;
    color: white;
    text-shadow: 2px 2px 0 #000000;
}

.section-content {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.text-content, .image-content {
    flex: 1;
    min-width: 300px;
}

.highlight {
    background: #ffffcc;
    border: 1px dashed #ff9900;
    padding: 10px;
    margin: 15px 0;
    font-style: italic;
    color: black;
}

.y2k-button {
    display: inline-block;
    padding: 10px 20px;
    background: var(--y2k-pink-gradient);
    color: white;
    text-decoration: none;
    border: 2px outset #ff66cc;
    font-weight: bold;
    cursor: pointer;
    text-shadow: 1px 1px 0 #000000;
    box-shadow: 3px 3px 0 #000000;
    transition: all 0.2s;
}

.y2k-button:hover {
    background: var(--y2k-blue-gradient);
    border-color: #0099ff;
    transform: scale(1.05);
}

.y2k-button:active {
    border-style: inset;
    transform: translateY(2px);
    box-shadow: 1px 1px 0 #000000;
}

/* Hero Section */
.hero-section {
    background-image: url('../images/y2k/staroll1x1_e0.gif');
    background-color: #000033; /* Fallback */
    padding: 60px 20px;
    text-align: center;
    color: white;
    border: 5px ridge #ff00ff;
    margin-bottom: 30px;
}

.cyber-text {
    font-size: 36px;
    color: var(--y2k-green);
    margin-bottom: 20px;
    text-shadow: 0 0 10px var(--y2k-green);
    letter-spacing: 2px;
}

.matrix-text {
    font-size: 18px;
    color: #00ff00;
    margin-bottom: 30px;
    text-shadow: 0 0 5px #00ff00;
}

.visitor-counter {
    display: inline-flex;
    align-items: center;
    background: black;
    padding: 10px;
    border: 3px inset #333333;
    color: white;
}

.counter-digits {
    display: flex;
}

.digit {
    width: 30px;
    height: 40px;
    background: #000000;
    color: #ff0000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 2px;
    border: 1px inset #333333;
}

/* Games Section */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.game-card {
    background: var(--y2k-silver);
    border: 3px outset #ffffff;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s;
    cursor: pointer;
}

.game-card:hover {
    transform: scale(1.03);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.7);
}

.game-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
}

.game-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.game-title {
    font-size: 16px;
    color: black;
    margin-bottom: 10px;
    text-align: center;
}

.game-launch-btn {
    background: #ff9900;
    color: white;
    border: 2px outset #ffcc00;
    padding: 5px 10px;
    cursor: pointer;
    font-weight: bold;
}

.game-launch-btn:hover {
    background: #ffcc00;
    color: black;
}

/* Game Windows */
.game-window {
    position: absolute;
    width: 600px;
    height: 500px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--y2k-window-bg);
    border-radius: 8px;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 2px solid #808080;
    z-index: 3000;
}

.game-container {
    flex: 1;
    background: black;
    position: relative;
}

/* Contact Dialog */
.contact-dialog {
    width: 400px;
    background: var(--y2k-window-bg);
    margin: 0 auto;
    border: 2px outset #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
}

.dialog-header {
    height: 30px;
    background: var(--y2k-blue-gradient);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    color: white;
    font-weight: bold;
}

.dialog-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.dialog-content {
    padding: 20px;
    color: black;
}

.dialog-text {
    margin-bottom: 20px;
}

.contact-info {
    background: white;
    padding: 15px;
    border: 1px inset #cccccc;
    margin-bottom: 20px;
}

.info-label {
    font-weight: bold;
    color: #0055aa;
}

.contact-info a {
    color: #0000ff;
    text-decoration: underline;
}

.dialog-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.dialog-button {
    background: var(--y2k-silver);
    border: 2px outset #ffffff;
    padding: 5px 20px;
    cursor: pointer;
    font-weight: bold;
}

.dialog-button:hover {
    background: #ffffff;
}

.dialog-button:active {
    border-style: inset;
}

/* Retro Computer */
.retro-computer {
    width: 100%;
    height: 250px;
    background: #333333;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 5px outset #555555;
}

.retro-screen {
    width: 100%;
    height: 100%;
    background: #000000;
    border: 10px inset #666666;
    padding: 15px;
    overflow: hidden;
    position: relative;
}

.retro-code {
    color: #00ff00;
    font-family: monospace;
    line-height: 1.5;
    animation: typing 3s steps(30) infinite;
}

@keyframes typing {
    0% { opacity: 0; }
    5% { opacity: 1; }
    95% { opacity: 1; }
    100% { opacity: 0; }
}

/* Print Animation */
.print-animation {
    width: 100%;
    height: 250px;
    background: #cccccc;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 5px outset #dddddd;
}

.printer {
    width: 80%;
    height: 80%;
    background: #444444;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.printer-top {
    height: 10px;
    background: #333333;
    width: 100%;
    border-radius: 10px 10px 0 0;
}

.printer-body {
    height: calc(100% - 10px);
    background: linear-gradient(to right, #333333, #555555, #333333);
    display: flex;
    justify-content: center;
    align-items: center;
}

.printer-paper {
    width: 70%;
    height: 40px;
    background: white;
    transform-origin: bottom center;
    animation: print 3s infinite;
}

@keyframes print {
    0% { height: 0; }
    50% { height: 40px; }
    100% { height: 0; }
}

/* Retro Image */
.retro-image {
    width: 100%;
    border: 10px ridge #ffcc00;
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.5);
}

/* Footer */
.y2k-footer {
    background: #000000;
    color: #ffffff;
    padding: 20px;
    text-align: center;
    border-top: 3px ridge #333333;
    margin-top: 30px;
}

.audio-player {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links {
    margin: 15px 0;
}

.footer-links a {
    color: var(--y2k-blue);
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.y2k-copyright {
    margin: 15px 0;
    font-size: 12px;
    color: #999999;
}

.webring {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    background: #333333;
    padding: 5px;
    border: 1px solid #666666;
}

.webring a {
    color: var(--y2k-yellow);
    text-decoration: none;
}

.webring a:hover {
    text-decoration: underline;
}

/* Media Queries for Responsiveness */
@media screen and (max-width: 768px) {
    .section-content {
        flex-direction: column;
    }
    
    .y2k-nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .game-window {
        width: 95%;
        height: 70%;
    }
    
    .contact-dialog {
        width: 90%;
    }
}

/* Add a glitch effect for links on hover */
a:hover {
    animation: glitch-text 0.3s linear infinite;
}

@keyframes glitch-text {
    0% { transform: translate(0); text-shadow: 0 0 0 var(--y2k-pink); }
    25% { transform: translate(-2px, 0); text-shadow: -2px 0 0 var(--y2k-blue); }
    50% { transform: translate(2px, 0); text-shadow: 2px 0 0 var(--y2k-yellow); }
    75% { transform: translate(0, 2px); text-shadow: 0 2px 0 var(--y2k-green); }
    100% { transform: translate(0); text-shadow: 0 0 0 var(--y2k-pink); }
} 