*, *::before, *::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    width: 100%;
}

body {
    background-color: rgb(255, 255, 255);
    color: rgb(3, 15, 31);
    margin: 0;
    padding: 0;
    width: 100%;
}

.banner {
    padding: 100px;
    background: url(IMAGES_BASE/banner.jpg) top / cover;
    text-align: center;
    color: rgb(255, 255, 255);
    width: 100%;
}

main {
    padding: 0 40px;
    width: 100%;
}

nav {
    background-color: rgb(20, 181, 255);
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
    box-sizing: border-box;
    overflow: hidden;
}

nav a {
    color: rgb(255, 255, 255);
    font-family: "Roboto", sans-serif;
    font-size: 1em;
    font-weight: 400;
    text-decoration: none;
    padding: 7px 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.4);
}

nav a:last-child {
    border-right: none;
}

nav a:hover {
    color: rgb(10, 10, 10);
}

.nav-contact,
.nav-spacer {
    flex: 1;
}

.nav-spacer {
    visibility: hidden;
}

.nav-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-family: "Roboto", sans-serif;
    font-size: 0.85em;
}

.nav-contact a {
    border-right: none;
    padding: 0;
}

.nav-contact svg {
    fill: white;
    vertical-align: middle;
}

.nav-links {
    display: flex;
    align-items: center;
}

h1 {
    font-family: "Lobster", cursive;
    font-size: 4em;
    font-weight: 1;
    text-align: center;
    margin: auto;
    text-decoration: none;
    color: rgb(240, 240, 240);
}

h2 {
    font-family: "Roboto", sans-serif;
    font-size: 1.5em;
    font-weight: 500;
    text-align: center;
    margin: auto;
}

h3, h4 {
    font-family: "Roboto", sans-serif;
    font-size: 1.25em;
    font-weight: 400;
    text-align: center;
    margin: 0;
    text-decoration: none;
    color: rgb(20, 181, 255);
}

h4 {
    scroll-margin-top: 45px;
    padding: 20px 0;
}

p, ul, footer, footer a {
    font-family: "Roboto", sans-serif;
    font-size: 1em;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
    margin: auto;
    color: rgb(10, 10, 10);
}

em, strong {
    font-style: normal;
    font-weight: normal;
}

footer {
    padding: 30px;
}

footer a svg {
    fill: rgb(10, 10, 10);
    transition: fill 0.2s;
    vertical-align: middle;
}

footer a:hover svg {
    fill: rgb(20, 181, 255);
}

img:hover {
    opacity: 0.5;
    transition: opacity 0.3s;
    cursor: pointer;
}

#lightbox-img:hover {
    opacity: 1;
    cursor: default;
}

section {
    padding: 0 60px 40px 60px;
    margin: 0;
    overflow: hidden;
}

.container_demos,
.container_animations,
.container_backgrounds,
.container_characters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0 auto;
    justify-content: center;
    width: 100%;
}

.container_backgrounds img,
.container_characters img {
    height: 400px;
    width: auto;
    flex-shrink: 0;
}

video {
    height: 300px;
    width: auto;
    cursor: pointer;
    flex-shrink: 0;
}

#lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

#lightbox.active {
    display: flex;
}

#lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

#lightbox-close {
    position: fixed;
    top: 20px; right: 30px;
    color: white;
    font-size: 2em;
    cursor: pointer;
}

#lightbox-prev, #lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 4em;
    cursor: pointer;
    user-select: none;
    padding: 20px;
}

#lightbox-prev { left: 10px; }
#lightbox-next { right: 10px; }

#lightbox-prev:hover, #lightbox-next:hover, #lightbox-close:hover {
    color: rgb(20, 181, 255);
}

#btn-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: rgb(20, 181, 255);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5em;
    cursor: pointer;
    z-index: 500;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.2s ease, background 0.2s ease;
}

#btn-top:hover {
    background: rgb(3, 15, 31);
    transform: translateY(-4px);
}

@media (max-width: 768px) {
    .banner {
        padding: 40px 20px;
    }

    h1 {
        font-size: 2em;
    }

    nav {
        justify-content: center;
        padding: 5px 0;
        overflow: hidden;
    }

    .nav-contact,
    .nav-spacer {
        display: none;
    }

    .nav-links {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        width: 100%;
        overflow: hidden;
    }

    .nav-links a {
        padding: 5px 6px;
        font-size: 0.72em;
        white-space: nowrap;
        border-right: 1px solid rgba(255, 255, 255, 0.4);
    }

    main {
        padding: 0 10px;
    }

    section {
        padding: 0 10px 30px 10px;
    }

    .container_backgrounds img,
    .container_characters img {
        height: 150px;
        width: auto;
    }

    video {
        width: 100%;
        height: auto;
        display: block;
    }

    #btn-top {
        display: none;
    }
}