/* physics-index-rainbow.css */

/* General page styling */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: #fff;
    overflow-x: hidden;
    position: relative;
}

/* Animated rainbow background covering all colors */
@keyframes rainbowBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(
        270deg,
        #00008b, #1e90ff, #00ffff, #00ff00, #ffff00, #ff7f00, #ff0000, #8b0000, #4b0082, #9400d3
    );
    background-size: 2000% 2000%;
    z-index: -1;
    animation: rainbowBG 60s linear infinite;
}

/* Header with gradient */
header {
    padding: 20px;
    text-align: center;
    font-size: 2em;
    font-weight: bold;
    color:white;
    text-shadow: 0 0 10px #fff, 0 0 20px #fff;
}

/* Animated RGB text glow for header */
@keyframes rgbGlow {
    0% { text-shadow: 0 0 5px #ff0000, 0 0 10px #00ff00, 0 0 15px #0000ff; }
    25% { text-shadow: 0 0 10px #00ff00, 0 0 20px #0000ff, 0 0 15px #ff0000; }
    50% { text-shadow: 0 0 15px #0000ff, 0 0 25px #ff0000, 0 0 10px #00ff00; }
    75% { text-shadow: 0 0 20px #ff0000, 0 0 30px #00ff00, 0 0 15px #0000ff; }
    100% { text-shadow: 0 0 5px #ff0000, 0 0 10px #00ff00, 0 0 15px #0000ff; }
}

header h1 {
    animation: rgbGlow 4s infinite alternate;
}

/* Navigation bar */
nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

nav a:hover {
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #00ffff, #0000ff, #8b00ff);
    box-shadow: 0 0 15px #fff, 0 0 25px #fff;
    color: #000;
}

/* Section headings with rainbow text */
section h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #00ffff, #0000ff, #8b00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color:white;
    animation: rainbowBG 10s linear infinite;
}

/* Cards for index entries */
.card {
    background: white (0, 0, 0, 0.5);
    margin: 20px 0;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 15px #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px #fff, 0 0 40px #fff;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    box-shadow: 0 -5px 15px #fff;
}
a {
    color: white;       /* Makes link text white */
    text-decoration: none; /* Optional: removes underline */
}
