/* General Styles */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #000; /* Black background */
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
    text-align: center;
}

/* Header Section */
header {
    padding: 40px 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

header h1 {
    margin: 0;
    font-size: 3em;
    color: #FF0000; /* Red title */
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

header p {
    font-size: 1.2em;
    margin-top: 10px;
    color: #FF0000;
}

/* Navigation */
nav {
    margin-top: 15px;
}

nav a {
    color: #FF0000;
    text-decoration: none;
    font-size: 1.2em;
    margin: 0 15px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #ff4444;
}

/* Content Section */
.content {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;  /* Make experiments side by side */
    flex-wrap: wrap; /* Allows them to stack when needed */
    justify-content: center;
    gap: 20px; /* Adds spacing */
}

.content h2 {
    width: 100%;
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #FF0000;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Experiment Cards */
.experiment-link {
    text-decoration: none;
    flex: 1; /* Makes items take equal space */
    min-width: 300px; /* Ensures they don’t get too small */
    max-width: 400px; /* Prevents them from being too large */
}

.experiment {
    background-color: rgba(0, 0, 0, 0.85);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    padding: 10px;
    text-align: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.experiment:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
}

.experiment img {
    width: 100%;
    height: auto;
    max-width: 300px;
    border-bottom: 5px solid #FF0000;
    transition: opacity 0.3s ease;
}

.experiment img:hover {
    opacity: 0.8;
}

.experiment h3 {
    font-size: 1.4em;
    margin: 10px 0;
    color: #FF0000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer Section */
footer {
    background-color: rgba(0, 0, 0, 0.9);
    color: #FF0000;
    text-align: center;
    padding: 20px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

footer p {
    font-size: 1.1em;
    letter-spacing: 1px;
}

/* Media Queries for Mobile */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5em;
    }

    .content {
        flex-direction: column; /* Stack on smaller screens */
        align-items: center;
    }

    .experiment-link {
        width: 100%;
    }

    .experiment h3 {
        font-size: 1.5em;
    }

    .experiment img {
        max-width: 250px;
    }
}

canvas#bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  background: radial-gradient(circle at center, #111 0%, #000 100%);
}
