/* Retro Black and White Theme */
:root {
    --primary-color: #f0f0f0;
    --secondary-color: #a0a0a0;
    --background-color: #121212;
    --light-gray: #1e1e1e;
    --border-radius: 0px;
    --terminal-font: 'Courier New', monospace;
    --transition: all 0.2s ease-in-out;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* Base Styles */
body {
    font-family: 'Courier New', monospace;
    background-color: var(--background-color);
    color: var(--primary-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.container {
    max-width: 990px;
    margin: 0 auto;
    padding: 20px 5%;
    width: 90%;
}

.content-wrapper {
    width: 100%;
    max-width: 990px;
    margin: 0 auto;
}

/* Header */
header {
    background-color: var(--background-color);
    color: var(--primary-color);
    padding: 20px 0 10px;
    text-align: left;
    margin-bottom: 10px;
    border-bottom: none;
}

header h1 {
    margin-bottom: 0;
    font-weight: 500;
    letter-spacing: 2px;
    text-align: left;
}

.subtitle {
    font-size: 1rem;
    opacity: 0.8;
    font-family: var(--terminal-font);
}

/* Intro Section */
.intro {
    margin-bottom: 40px;
    text-align: left;
    width: 100%;
    background-color: var(--light-gray);
    border: 1px solid var(--primary-color);
    padding: 25px;
    transition: var(--transition);
}

.terminal-text {
    font-family: var(--terminal-font);
    margin: 0;
    white-space: pre-wrap;
    line-height: 1.5;
    overflow-x: hidden;
}





/* Experiments */
.experiments {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    position: relative;
    width: 100%;
}

/* Experiment Card Container */
.experiment-card-container {
    position: relative;
    min-height: 250px;
}

/* White Background */
.experiment-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
}

/* Experiment Card */
.experiment-card {
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    border: 1px solid var(--primary-color);
    position: relative;
    transition: var(--transition);
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.experiment-card:hover {
    transform: translate(-4px, -4px);
}

.card-content {
    padding: 25px;
    padding-top: 35px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Card label */
.experiment-card::before {
    content: '> experiment_' attr(data-id);
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--primary-color);
    color: var(--background-color);
    padding: 2px 8px;
    font-size: 0.8rem;
    font-family: var(--terminal-font);
    z-index: 3;
    transition: var(--transition);
}



.card-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-weight: 500;
}

.card-description {
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 15px;
}

.card-tag {
    background-color: var(--background-color);
    color: var(--primary-color);
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: var(--border-radius);
}

.card-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.card-link {
    font-family: var(--terminal-font);
    font-size: 0.9rem;
    border-bottom: none;
    position: relative;
}

.card-link::before {
    content: '$ ';
    opacity: 0.7;
}

.card-link.secondary {
    opacity: 0.8;
}

/* No Results */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    border: 1px solid var(--primary-color);
    background-color: var(--light-gray);
}

/* Footer */
footer {
    margin-top: 60px;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid var(--primary-color);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Theme Switcher */
.theme-switcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--light-gray);
    border: 1px solid var(--primary-color);
    padding: 10px;
    z-index: 100;
}

.theme-options {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.theme-option {
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
}

.theme-option:hover,
.theme-option.active {
    background-color: var(--primary-color);
    color: var(--background-color);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .container {
        padding: 20px 7%;
        width: 86%;
    }
    
    .experiments {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .theme-switcher {
        bottom: 10px;
        right: 10px;
        padding: 5px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 10%;
        width: 80%;
    }
}
