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

:root {
    --rainbow-1: #ff0000; /* Red */
    --rainbow-2: #ff8800; /* Orange */
    --rainbow-3: #ffff00; /* Yellow */
    --rainbow-4: #00ff00; /* Green */
    --rainbow-5: #0088ff; /* Blue */
    --rainbow-6: #a020f0; /* Purple */
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #121212;
}

header {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 30px;
    background-color: #1e1e1e;
    color: white;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    border-left: 5px solid var(--rainbow-1);
    border-right: 5px solid var(--rainbow-6);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, 
        var(--rainbow-1),
        var(--rainbow-2),
        var(--rainbow-3),
        var(--rainbow-4),
        var(--rainbow-5),
        var(--rainbow-6)
    );
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, 
        var(--rainbow-1),
        var(--rainbow-2),
        var(--rainbow-3),
        var(--rainbow-4),
        var(--rainbow-5),
        var(--rainbow-6)
    );
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, 
        var(--rainbow-1),
        var(--rainbow-2),
        var(--rainbow-3),
        var(--rainbow-4),
        var(--rainbow-5),
        var(--rainbow-6)
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

header h2 {
    font-size: 1.2rem;
    font-weight: normal;
    margin-bottom: 20px;
    color: #bbbbbb;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
    background-color: #2d2d2d;
    padding: 10px;
    border-radius: 5px;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    padding: 5px 10px;
    border-radius: 3px;
}

nav ul li:nth-child(1) a:hover { background-color: var(--rainbow-1); }
nav ul li:nth-child(2) a:hover { background-color: var(--rainbow-2); }
nav ul li:nth-child(3) a:hover { background-color: var(--rainbow-3); color: #333; }
nav ul li:nth-child(4) a:hover { background-color: var(--rainbow-4); color: #333; }
nav ul li:nth-child(5) a:hover { background-color: var(--rainbow-5); }
nav ul li:nth-child(6) a:hover { background-color: var(--rainbow-6); }

main {
    background-color: #1e1e1e;
    padding: 25px;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

section {
    margin-bottom: 40px;
}

section h2 {
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid;
    display: inline-block;
}

section:nth-of-type(1) h2 { color: var(--rainbow-1); border-color: var(--rainbow-1); }
section:nth-of-type(2) h2 { color: var(--rainbow-2); border-color: var(--rainbow-2); }
section:nth-of-type(3) h2 { color: var(--rainbow-3); border-color: var(--rainbow-3); }
section:nth-of-type(4) h2 { color: var(--rainbow-4); border-color: var(--rainbow-4); }
section:nth-of-type(5) h2 { color: var(--rainbow-5); border-color: var(--rainbow-5); }
section:nth-of-type(6) h2 { color: var(--rainbow-6); border-color: var(--rainbow-6); }

section p {
    line-height: 1.8;
}

a {
    color: #8bb4fe;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #ffffff;
    text-decoration: underline;
}

strong {
    background: linear-gradient(to right, 
        var(--rainbow-1),
        var(--rainbow-6)
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bold;
}

footer {
    text-align: center;
    margin-top: 30px;
    padding: 15px;
    color: #888888;
    font-size: 0.9rem;
    background-color: #1e1e1e;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, 
        var(--rainbow-1),
        var(--rainbow-2),
        var(--rainbow-3),
        var(--rainbow-4),
        var(--rainbow-5),
        var(--rainbow-6)
    );
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
    
    nav ul li {
        margin: 5px 0;
    }
}