html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    background-color: #000;
}

.content {
    z-index: 10;
    padding: 20px;
    text-align: center;
    font-size: 1.5em;
    pointer-events: none;
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.content img,
.content svg {
    max-width: calc(100% - 70px);
    width: 670px;
    height: auto;
}

footer {
    color: #000;
    mix-blend-mode: difference;
    filter: invert(1);
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.btns {
    margin-bottom: 5em;
}

.btn {
    box-shadow: rgba(0,0,0,0.5) 5px 5px 10px;
    padding: 5px 10px;
    font-size: 0.71em;
    display: inline-block;
    background-color: #dc241f;
    color: #fff;
    border-radius: 0.5em;
    margin: 10px;
    text-decoration: none;
    pointer-events: auto;
}

.btn:hover {
    background-color: #000;
}

.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;
}
