body {
    margin: 0;
    overflow: hidden;
    background-color: black;
}

canvas {
    display: block;
}

#textContainer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(0, 153, 255, 0.8);
    font-family: 'Orbitron', sans-serif;
    font-size: 46px;
    font-weight: bold;
    pointer-events: none;
    z-index: 10;
    transition: color 0.3s ease;
}

/* Change text color when slider is active */
#sliderIcon.active ~ #textContainer {
    color: red;
}

#socialLinks {
    position: absolute;
    top: calc(50% + 30px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 20px;
}

#socialLinks a {
    color: rgba(0, 100, 200, 0.8);
    text-decoration: none;
    display: inline-block;
    padding: 10px;
    border-radius: 10px;
    font-size: 48px;
    transition: color 0.2s ease;
}

#socialLinks a:hover {
    color: rgba(0, 123, 255, 1);
}

/* Change social link colors when slider is active */
#sliderIcon.active ~ #socialLinks a {
    color: darkred; /* Darker red when active */
}

/* Hover state for social icons when slider is active */
#sliderIcon.active ~ #socialLinks a:hover {
    color: red; /* Brighter red on hover */
}

/* Slider Icon Styles */
#sliderIcon {
    position: absolute;
    top: 3%;
    left: 1.5%;
    z-index: 20;
    cursor: pointer;
    opacity: 0.75;
}

.pill-outer {
    width: 80px;
    height: 40px;
    border: 2px solid rgba(0, 153, 255, 0.8);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: border-color 0.3s ease;
}

#sliderIcon.active .pill-outer {
    border-color: red;
}

.pill-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background-color: rgba(0, 153, 255, 0.8);
    border-radius: 18px 0 0 18px;
    transition: transform 0.3s ease, background-color 0.3s ease, border-radius 0.3s ease;
}

#sliderIcon.active .pill-inner {
    transform: translateX(100%);
    background-color: red;
    border-radius: 0 18px 18px 0;
}

/* Globe Icon Styles */
#globeIconContainer {
    position: absolute;
    top: calc(50% - 70px); /* Position above the text */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

#globeIconContainer a {
    color: rgba(0, 153, 255, 0.8);
    font-size: 36px; /* Adjust size as needed */
    text-decoration: none;
    transition: color 0.3s ease;
}

#globeIconContainer a:hover {
    color: limegreen; /* Changed to green on hover */
}

/* Change globe icon color when slider is active */
#sliderIcon.active ~ #globeIconContainer a {
    color: red;
}
