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

body {
    font-family: 'Courier New', 'Consolas', 'Monaco', monospace;
    background: #008080;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px);
    min-height: 100vh;
    color: #f8f8f2;
    padding: 20px;
    font-size: 14px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    padding: 0;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

/* Windows 95 Title Bar */
.win95-titlebar {
    background: linear-gradient(to bottom, #0a246a 0%, #0a246a 50%, #1e3a8a 50%, #1e3a8a 100%);
    color: #ffffff;
    padding: 4px 6px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #000000;
    user-select: none;
    cursor: default;
}

.win95-titlebar-text {
    flex: 1;
    text-align: left;
    padding-left: 2px;
}

.win95-titlebar-buttons {
    display: flex;
    gap: 2px;
}

.win95-titlebar-btn {
    width: 16px;
    height: 14px;
    border: 1px outset #c0c0c0;
    background: #c0c0c0;
    font-size: 9px;
    line-height: 12px;
    text-align: center;
    cursor: pointer;
    color: #000000;
    font-weight: bold;
    padding: 0;
}

.win95-titlebar-btn:hover {
    background: #d4d0c8;
}

.win95-titlebar-btn:active {
    border: 1px inset #c0c0c0;
}

/* Windows 95 Menu Bar */
.win95-menu-bar {
    background: #c0c0c0;
    border-bottom: 1px solid #808080;
    display: flex;
    padding: 2px 0;
    font-size: 11px;
}

.win95-menu-item {
    padding: 8px 20px;
    color: #000000;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: 'MS Sans Serif', 'Courier New', monospace;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
}

.win95-menu-item:hover {
    background: #d4d0c8;
    border: 1px outset #c0c0c0;
}

.win95-menu-item.active {
    background: #c0c0c0;
    border: 1px inset #c0c0c0;
    font-weight: bold;
}

.win95-content {
    padding: 20px;
    background: #c0c0c0;
    min-height: 200px;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
    color: #000000;
    font-weight: bold;
}

header h1 a {
    text-decoration: none;
    color: #000000;
}

header h1 a:hover {
    color: #000080;
}

main {
    text-align: center;
}

.about {
    margin-bottom: 30px;
}

.about p {
    font-size: 1rem;
    color: #000000;
    line-height: 1.6;
    text-align: left;
}

.about-content {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    font-size: 1rem;
    color: #000000;
    line-height: 1.8;
    margin-bottom: 15px;
}

.external-link {
    color: #0000ff;
    text-decoration: underline;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
}

.external-link:hover {
    color: #000080;
    text-decoration: underline;
}

.external-link:visited {
    color: #800080;
}

.projects {
    margin-top: 30px;
}

.project-link {
    display: inline-block;
    text-decoration: none;
}

.project-link:hover {
    text-decoration: none;
}

.art-section {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.art-section h2 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #000000;
    font-weight: bold;
    text-align: center;
}


.canvas-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: #c0c0c0;
}

.style-display {
    font-size: 0.9rem;
    color: #000000;
    margin-bottom: 10px;
    padding: 5px 10px;
    background: #d4d0c8;
    border: 1px inset #c0c0c0;
    font-family: 'MS Sans Serif', 'Courier New', monospace;
    text-align: center;
    min-height: 20px;
}

#artCanvas {
    border: 2px inset #c0c0c0;
    background: white;
    display: block;
}

.info {
    margin-top: 30px;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #c0c0c0;
    border: 2px inset #c0c0c0;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #000000;
    font-family: 'MS Sans Serif', 'Courier New', monospace;
}

.control-group label {
    color: #000000;
    font-weight: normal;
    cursor: pointer;
}

.win95-slider {
    width: 150px;
    height: 20px;
    -webkit-appearance: none;
    appearance: none;
    background: #c0c0c0;
    border: 2px inset #c0c0c0;
    outline: none;
}

.win95-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    cursor: pointer;
}

.win95-slider::-webkit-slider-thumb:active {
    border: 2px inset #c0c0c0;
}

.win95-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    cursor: pointer;
}

.win95-checkbox {
    width: 13px;
    height: 13px;
    border: 2px inset #c0c0c0;
    background: #ffffff;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
}

.win95-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 1px;
    color: #000000;
    font-size: 12px;
    font-weight: bold;
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

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

#ipDisplay {
    font-size: 0.9rem;
    color: #000000;
    font-family: 'Courier New', monospace;
    background: #000000;
    color: #00ff00;
    padding: 8px;
    border: 2px inset #c0c0c0;
    text-align: left;
    display: inline-block;
    min-width: 200px;
    margin: 0;
}

#ipDisplay::before {
    content: "> ";
    color: #00ff00;
}

#timestampDisplay {
    font-size: 0.9rem;
    color: #000000;
    font-family: 'Courier New', monospace;
    background: #000000;
    color: #00ff00;
    padding: 8px;
    border: 2px inset #c0c0c0;
    text-align: left;
    display: inline-block;
    min-width: 200px;
    margin: 0;
}

#timestampDisplay::before {
    content: "> ";
    color: #00ff00;
}

/* Windows 95-style button */
.win95-button {
    display: inline-block;
    padding: 6px 20px;
    background-color: #c0c0c0;
    color: #000000;
    border: 2px outset #c0c0c0;
    border-radius: 0;
    font-size: 12px;
    font-weight: normal;
    cursor: pointer;
    text-decoration: none;
    outline: none;
    font-family: 'MS Sans Serif', 'Courier New', monospace;
    min-width: 75px;
    text-align: center;
}
.win95-button.generate-btn {
    height: 55px;
    width: 200px;
    font-size: 18px;
    font-weight: bold;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.win95-button.generate-btn:disabled,
.win95-button.download-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.waiting-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #000000;
    border-top-color: transparent;
    border-right-color: transparent;
    border-radius: 50%;
    animation: win95-spin 0.8s linear infinite;
}

@keyframes win95-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.win95-button:hover {
    background-color: #d4d0c8;
}

.win95-button:active {
    border: 2px inset #c0c0c0;
    padding: 7px 21px 5px 19px;
}

/* Keep .btn as an alias for the Win95 style so existing markup still works */
.btn,
.project-link {
    font-family: inherit;
}


/* Make the project link button bigger */
.project-link.win95-button {
    padding: 12px 40px;
    font-size: 14px;
    min-width: 300px;
}

.project-link.win95-button:active {
    padding: 13px 41px 11px 39px;
}

.terminal-prompt {
    color: #00ff00;
    font-family: 'Courier New', monospace;
}

.terminal-prompt::before {
    content: "> ";
}

@media (max-width: 768px) {
    .win95-content {
        padding: 15px;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    #artCanvas {
        width: 100%;
        height: auto;
        max-width: 600px;
    }
}

