html {
    font-size: 1.2vw;
    /* skalowanie bazowe */
}

body {
    margin: 0;
    background: black;
    overflow: hidden;
    font-family: sans-serif;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('Grafiki/Tło.png') no-repeat center center/cover;
    z-index: -1;
}

.scene {
    position: absolute;
    width: 66.666vw;
    /* 800px przy 1200px szerokości */
    height: 25vw;
    /* 300px przy 1200px szerokości */
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: logoToCorner 7s forwards;
}

.neon-lines {
    width: 100%;
    height: 100%;
}

.line {
    fill: none;
    stroke: white;
    stroke-width: 1vw;
    stroke-linecap: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw 5s ease forwards;
}

.line:nth-child(1) {
    animation-delay: 0s;
}

.line:nth-child(2) {
    animation-delay: 0.3s;
}

.line:nth-child(3) {
    animation-delay: 0.6s;
}

.line:nth-child(4) {
    animation-delay: 0.9s;
}

.line.red {
    animation-delay: 2.9s;
    stroke: rgb(235, 5, 5);
}

.line.purple {
    animation-delay: 2.9s;
    stroke: rgb(125, 5, 238);
}

.title {
    position: absolute;
    top: 4.4vh;
    left: 21.6vw;
    font-size: 5.3vw;
    font-weight: bold;
    color: #ffd700;
    opacity: 0;
    animation: fadeIn 1s ease forwards 3.8s;
    letter-spacing: 0.15em;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

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

@keyframes logoToCorner {
    0% {
        transform: translate(-50%, -50%) scale(1);
        top: 50%;
        left: 50%;
    }

    57% {
        transform: translate(-50%, -50%) scale(1);
        top: 50%;
        left: 50%;
    }

    100% {
        transform: scale(0.2);
        top: 2vh;
        left: 2vw;
    }
}

.buttons {
    position: absolute;
    top: 50%;
    left: 100vw;
    display: flex;
    gap: 3vw;
    transform: translateY(-50%);
    animation: buttonsSlideIn 4s ease forwards 7s;
}

.btn {
    width: 16.6vw;
    /* odpowiada ~200px przy 1200px */
    height: auto;
    object-fit: contain;
}

@keyframes buttonsSlideIn {
    0% {
        left: 100vw;
    }

    100% {
        left: 50vw;
        transform: translate(-50%, -50%);
    }
}