body {
    background: linear-gradient(180deg, rgba(82, 0, 114, 1) 0%, rgba(20, 0, 48, 1) 100%);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    box-sizing: border-box;
}

.container {
    max-width: 800px;
    margin: 50px 20px;
    padding: 40px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    backdrop-filter: blur(10px);
}

header h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #7b00ff;
}

main p {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 20px auto;
    font-weight: 400;
    opacity: 0.9;
}

.tree-container {
    width: 100%;
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.tree {
    width: 100%;
    max-width: 600px;
    height: auto;
    animation: pulse 2s infinite ease-in-out var(--random-delay);
}

.branch {
    stroke: #00e0ff;
    stroke-width: 1.777;
    stroke-linecap: round;
    opacity: 0; /* Start with opacity 0 to use fadeIn animation */
    transform-box: fill-box; /* This line is crucial to avoid the nodes from shifting out from their position - needed as they are svg's */
    animation: fadeIn 2s ease-in-out forwards, pulseBranch 3s infinite ease-in-out var(--branch-delay);
    /*animation: fadeIn 2s ease-in-out forwards, pulse 2s infinite ease-in-out var(--random-delay);*/
}

.node {
    fill: #00e0ff;
    opacity: 0; /* Start with opacity 0 to use fadeIn animation */
    transform-origin: center;
    transform-box: fill-box; /* This line is crucial to avoid the nodes from shifting out from their position - needed as they are svg's */
    animation: fadeIn 2s ease-in-out forwards, pulse 2s infinite ease-in-out var(--random-delay);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.333); opacity: 0.9; }
}

@keyframes pulseBranch {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.777; }
}