/* Stars container */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: black;
    overflow: hidden;
    z-index: -1;
}

/* Star elements */
.star {
    position: absolute;
    top: 50vh;
    left: 50vw;
    font-size: 0.8rem; /* Size for Font Awesome icons */
    color: white;
    transform-origin: center;
    animation: fly calc(10s / var(--depth)) linear 1 forwards; /* Run once, hold final state */
}

@keyframes fly {
    0% {
        transform: rotate(var(--angle)) translateX(0) scale(0.1);
        opacity: 1;
    }
    80% {
        transform: rotate(var(--angle)) translateX(50vw) scale(var(--depth));
        opacity: 1;
    }
    100% {
        transform: rotate(var(--angle)) translateX(60vw) scale(var(--depth) * 1.2);
        opacity: 0;
    }
}

/* Body and content box */
body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: Times New Roman, serif;
}

/* Content box */
.content-box {
    padding: 20px;
    text-align: center;
    z-index: 1;
    position: relative;
    top: 20px;
}

/* Navigation */
.navigation {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.nav-button {
    position: relative;
    padding: 10px 20px;
    margin: 0 5px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    font-family: Times New Roman, serif;
}

.nav-button:hover {
    transform: scale(1.05);
    background-color: #0056b3;
}

.nav-button:active {
    background-color: #004085;
    transform: scale(0.95);
}

.nav-button.active {
    background-color: #0056b3;
}

/* Sections */
.section {
    display: none;
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 640px;
}

/* Bubble for section content */
.bubble {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    margin: 0 auto 20px auto;
    font-family: Times New Roman, serif;
}

.bubble h1, .bubble h2 {
    font-weight: bold;
    color: #fff;
    margin: 0 0 10px 0;
}

.bubble h1 {
    font-size: 2.5rem;
}

.bubble h2 {
    font-size: 2rem;
}

.bubble p {
    font-size: 1.2rem;
    color: #ccc;
    margin: 0;
}

.bubble-info {
    font-style: italic;
}

/* Button container */
.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Buttons (referral and social) */
.button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    padding: 10px;
    margin: 10px 0;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    font-family: Times New Roman, serif;
}

.button[data-color="social"] {
    background-color: #28a745;
}

.button[data-color="social"]:hover {
    transform: scale(1.15);
    background-color: #218838;
}

.button[data-color="social"]:active {
    transform: scale(0.9);
    background-color: #1e7e34;
}

.button[data-color="referral"] {
    background-color: #007bff;
}

.button[data-color="referral"]:hover {
    transform: scale(1.15);
    background-color: #0056b3;
}

.button[data-color="referral"]:active {
    transform: scale(0.9);
    background-color: #004085;
}

.button[data-color="projects"] {
    background-color: #6e40c9;
}

.button[data-color="projects"]:hover {
    transform: scale(1.15);
    background-color: #563d7c;
}

.button[data-color="projects"]:active {
    transform: scale(0.9);
    background-color: #48306b;
}

.button i {
    margin-right: 10px;
}

.button:hover {
    transform: scale(1.05);
    background-color: #0056b3;
}

.button:active {
    background-color: #004085;
    transform: scale(0.95);
}

/* Tooltip styling */
.button[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    white-space: normal;
	max-width: 600px;
	min-width: 200px;
	width: auto;
    opacity: 0;
    transition: transform 0.2s, opacity 0.2s;
    z-index: 2;
    font-family: Times New Roman, serif;
}

.button[data-tooltip]:hover::before {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

/* Tooltip arrow */
.button[data-tooltip]::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    border: 5px solid transparent;
    border-top-color: #333;
    opacity: 0;
    transition: transform 0.2s, opacity 0.2s;
}

.button[data-tooltip]:hover::after {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

/* Focus style */
.button:focus, .nav-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.5);
}

/* Responsive design */
@media (max-width: 600px) {
    .bubble {
        padding: 15px;
    }
    .bubble h1 {
        font-size: 2rem;
    }
    .bubble h2 {
        font-size: 1.8rem;
    }
    .bubble p {
        font-size: 1rem;
    }
    .button {
        width: 90%;
    }
    .nav-button {
        padding: 8px 16px;
    }
}