* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

body {
    background: #ffffff;
    color: #171717;
    font-family: Arial, Helvetica, sans-serif;
}

.downloads-page {
    background-image: url('/assets/downloads/images/bg-screen.webp');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.downloads-page::after {
    background-image: url('/assets/downloads/images/bg-machines-bottom.webp');
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: cover;
    bottom: 0;
    content: '';
    height: 100vh;
    left: 50%;
    pointer-events: none;
    position: absolute;
    transform: translateX(-50%);
    width: 100vw;
    z-index: 0;
}

.downloads-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.logo-container {
    animation: fadeInDown 0.8s ease-out, float 3s ease-in-out infinite;
    animation-delay: 0s, 0.8s;
    display: flex;
    justify-content: center;
    padding: 1.5rem 0 0.5rem;
    position: relative;
    z-index: 20;
}

.logo-image {
    display: block;
    height: auto;
    max-width: min(350px, 80vw);
    object-fit: contain;
    width: 100%;
}

.downloads-main {
    align-items: center;
    display: flex;
    flex: 1;
    justify-content: center;
    padding: 1rem 0.5rem 2rem;
    position: relative;
    z-index: 10;
}

.downloads-wrapper {
    max-width: 72rem;
    position: relative;
    width: 100%;
}

.downloads-panel {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    position: relative;
}

.content-column {
    max-width: 42rem;
    position: relative;
    width: 100%;
    z-index: 10;
}

.content-border {
    animation: fadeInScale 0.8s ease-out 0.2s both;
    border: 80px solid transparent;
    border-image: url('/assets/downloads/images/bg-content.webp') 80 fill;
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

.title-content {
    animation: fadeInScale 0.8s ease-out 0.3s both;
    background: linear-gradient(180deg, #ffffff, #ffea85);
    background-clip: text;
    color: transparent;
    font-family: 'Mitr', Arial, Helvetica, sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.75rem;
    margin-top: -2.5rem;
    text-align: center;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 2px #5f2e19;
}

.download-buttons {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0 auto;
    max-width: 25rem;
    width: 100%;
}

.button-animate {
    animation: fadeInUp 0.6s ease-out both;
    display: block;
    max-width: 21rem;
    opacity: 0;
    transform-origin: center;
    transition: transform 0.2s ease;
    width: 100%;
}

.button-animate:hover {
    transform: scale(1.04);
}

.button-animate:active {
    transform: scale(0.96);
}

.button-animate:nth-child(1) {
    animation-delay: 0.6s;
}

.button-animate:nth-child(2) {
    animation-delay: 0.8s;
}

.button-animate:nth-child(3) {
    animation-delay: 1s;
}

.button-animate:nth-child(4) {
    animation-delay: 1.2s;
}

.button-animate img {
    display: block;
    height: auto;
    object-fit: contain;
    width: 100%;
}

.character-left,
.character-right {
    bottom: 0;
    display: none;
    position: absolute;
    z-index: 20;
}

.character-left {
    animation: fadeInLeft 1s ease-out 0.5s both;
    left: 5rem;
}

.character-right {
    animation: fadeInRight 1s ease-out 0.5s both;
    right: 5rem;
}

.character-left img,
.character-right img {
    height: auto;
    object-fit: contain;
    width: min(250px, 20vw);
}

@media (min-width: 1280px) {
    .character-left,
    .character-right {
        display: block;
    }
}

@media (max-width: 768px) {
    .logo-container {
        padding-top: 1rem;
    }

    .logo-image {
        max-width: 240px;
    }

    .content-border {
        border-width: 55px;
        min-height: 420px;
    }

    .title-content {
        font-size: 1.4rem;
        margin-bottom: 1.25rem;
        margin-top: -1.5rem;
    }
}

@media (max-width: 480px) {
    .title-content {
        font-size: 1.15rem;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}
