.svg-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.svg-background svg {
    pointer-events: none;
}

.svg-background #window1 {
    pointer-events: auto;
    cursor: pointer;
}
.svg-background svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
}
:root {
    --tree-sway: 0.5;
    --tree-duration: 6s;
}
@keyframes tree-sway {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(calc(var(--tree-sway) * var(--tree-sway-mult, 1) * 1deg)); }
}
.tree-anim {
    transform-origin: center bottom;
    transform-box: fill-box;
    animation: tree-sway var(--tree-duration) ease-in-out infinite;
}

#sky {
    transition: fill 5s ease-in-out;
}

[id^="dalnix-"] {
    transition: fill 5s ease-in-out;
}

#window1 {
    transition: fill 300ms ease-in-out, opacity 0.8s ease-in-out;
}

/* Content hide/show for zoom */
.content {
    transition: opacity 0.5s ease-in-out;
}

.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Codearea terminal text */
#codearea-text {
    font-family: 'Courier New', monospace;
    font-size: 6px;  /* px = SVG user units for inline SVG */
    fill: #00ff00;
}

/* Wind turbine rotation */
@keyframes turbine-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.turbine-wings {
    animation: turbine-spin var(--turbine-duration, 8s) linear infinite;
}
