:root {
    --container-width: 1280px;
    --green-dark: #05D773;
    --green-light: #07D066;
    --h1-font-size: 50px;
    --h1-line-height: 65px;
    --main-bg-color: linear-gradient(to bottom, #2B2B2B, #000000);
    --main-color: #FFFFFF;
    --main-font-size: 16px;
    --main-font: 'JetBrains Mono', monospace;
    --main-line-height: 24px;
    --secondary-color: #A7A7A7;
    --secondary-font: 'Inter', sans-serif;
    --slider-background: radial-gradient(50% 50% at 50% 50%, rgba(7, 208, 102, 0.45) 0%, rgba(7, 208, 102, 0) 100%);
    --slider-descr-height: 120px;
    --slider-img-height: 410px;
    --slider-img-width: 600px;
    --slider-nav-heigh: 44px;
}

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

/* Document Flow */
html, body {
    background: var(--main-bg-color);
    color: var(--main-color);
    font-family: var(--main-font);
    font-size: var(--main-font-size);
    line-height: var(--main-line-height);
    min-height: 100vh;
}

button {
    outline: none;
}

/* H1 Styles */
h1 {
    font-family: var(--secondary-font);
    font-size: var(--h1-font-size);
    font-weight: 700;
    line-height: var(--h1-line-height);
}

h1 span {
    display: block;
    color: var(--green-dark);
}


/* Main Content Styles */
main {

}

footer {
    color: #6C6D71;
    font-size: 13px;
    line-height: 16px;
    padding: 30px 0;
}

/* Navbar Styles */
.navbar {
    align-items: center;
    display: flex;
    height: 80px;
    justify-content: space-between;
}

.navbar a {
    align-items: center;
    display: flex;
}

.logo {
    object-fit: contain;
}

nav ul {
    display: flex;
    gap: 60px;
    list-style-type: none;
}

nav ul li {
}

nav ul li a {
    color: var(--main-color);
    font-size: var(--main-font-size);
    line-height: var(--main-line-height);
    text-decoration: none;
}

nav a.active {
    border-bottom: 2px solid var(--green-dark);
}

/* content */
.content-container {
    align-items: center;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.text-content {
    align-items: flex-start;
    align-self: stretch;
    display: flex;
    flex-basis: 400px;
    flex-direction: column;
    justify-content: flex-start;
}

/* slider */
.slider-container {
    position: relative;
    width: var(--slider-img-width);
}

.slider {
    position: relative;
}

.slider-background {
    box-shadow: 0 25px 200px 40px #07d06630;
    height: var(--slider-img-height);
    position: absolute;
    top: 0;
    width: var(--slider-img-width);
    z-index: 0;
}

.slider-nav {
    align-items: center;
    bottom: var(--slider-descr-height);
    display: flex;
    gap: 8px;
    height: var(--slider-nav-heigh);
    justify-content: center;
    left: 0;
    position: absolute;
    width: var(--slider-img-width);
}

.dot {
    background-color: rgba(217, 217, 217, .3);
    border-radius: 50%;
    cursor: pointer;
    height: 10px;
    width: 10px;
}

.dot.tns-nav-active {
    background-color: var(--green-dark);
}

/* Button Styles */
.download-button {
    background-color: var(--green-light);
    border-radius: 10px;
    border: none;
    color: var(--main-color);
    cursor: pointer;
    display: inline-block;
    font-family: var(--secondary-font);
    font-size: 24px;
    font-weight: 700;
    line-height: 36px;
    margin-top: 80px;
    padding: 16px 30px;
    width: 100%;
}

.wrapper {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    margin: 0 auto;
    padding: 0 20px;
    width: var(--container-width);
}

.page-header, .page-footer {
    flex-grow: 0;
    flex-shrink: 0;
}

.page-body {
    align-items: flex-start;
    display: flex;
    flex-grow: 1;
    justify-content: center;
    margin-top: 120px;
}


/* Slide image styles - make sure they adapt to the container's size */
.code-screenshot {
    height: var(--slider-img-height); /* Ensures that the image does not exceed a certain height */
    object-fit: cover;
    object-position: 0 0;
    width: 100%; /* Ensures images are responsive and do not overflow */
}

.slider-item {
    display: flex;
    flex-direction: column;
    height: calc(var(--slider-img-height) + var(--slider-nav-heigh) + var(--slider-descr-height)); /*576px*/
}

.slider-item img {
}

.slider-description {
    color: var(--secondary-color);
    display: block;
    font-family: var(--secondary-font);
    font-size: var(--main-font-size);
    height: var(--slider-descr-height);
    line-height: var(--main-line-height);
    margin-top: var(--slider-nav-heigh);
}

.slider-description b {
    display: block;
}

.slider-img {
    position: relative;
    cursor: pointer;
    height: var(--slider-img-height);
}

.slider-icon {
    display: none;
    position: absolute;
    left: 0;
    bottom: 0;
    background-color: #2b2b2b;
    padding: 14px 0 14px 16px;
    overflow: hidden;
}

.slider-item--has-gif .slider-icon {
    display: flex;
}

.slider-icon img {
    margin-right: 16px;
}

.slider-icon p {
    box-sizing: content-box;
    width: 0;
    opacity: 0;
    transition: opacity .15s linear, width .15s linear;
    white-space: nowrap;
}

.slider-img:hover .slider-icon p {
    width: 100px;
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1279px) {
    :root {
        --container-width: 960px;
        --slider-img-width: 480px;
    }
}

@media (max-width: 1024px) and (orientation: landscape) {
    .page-body {
        margin-top: 40px;
    }
}

@media (max-width: 959px) {
    :root {
        --slider-img-width: 100%;
        --container-width: 90%;
    }

    .page-body {
        margin-top: 40px;
    }

    .content-container {
        flex-direction: column;
        gap: 60px;
    }

    .page-footer {
        margin-top: 60px;
    }

    .download-button {
        margin-top: 40px;
    }
}

@media (max-width: 639px) {
    :root {
        --h1-font-size: 32px;
        --h1-line-height: 48px;
    }

    .code-screenshot {
        object-position: left;
        width: 150%;
    }

    nav ul {
        gap: 10px;
    }

    .navbar .logo {
        margin-right: 20px;
        width: 100px;
    }

    .container {
        padding: 0;
    }

    .text-content {
        align-items: center;
        flex-basis: auto;
    }

    .text-content a {
        width: 100%;
    }

    .page-body {
        margin-top: 0;
    }

    .download-button {
        font-size: 18px;
        line-height: 24px;
        padding: 10px 18px;
    }

    .page-header {
        max-width: 100vw;
        overflow: auto;
    }
}
