@import "colors.css";

img {
    max-width: 100%;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;

    position: relative;
    width: 100%;
    z-index: 0;

    color: white;
}

#hero-img {
    position: absolute;
    z-index: -1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% 50%;
    filter: brightness(50%);
}

#hero-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;

    width: 80%;

    text-align: center;
    font-size: 80%;
}

.invisible {
    color: rgba(0, 0, 0, 0);
    user-select: none;
}

#hero-title {
    position: relative;
    text-wrap: balance;
}

#hero-title>h2 {
    color: var(--gray-4);
}

#typewriter {
    position: absolute;
}

.Typewriter__cursor {
    position: absolute;
    color: var(--red);
    user-select: none;
}

#btn-sign {
    color: inherit;
    text-decoration: none;
    margin-top: 1.5rem;
    border-radius: 5px;
    padding: 10px 15px 10px 15px;
    background-color: var(--purple);
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.4);
    font-size: 22px;
}

#hero-bottom {
    height: 25%;
    width: 100%;

    background-color: hsla(0, 0%, 95%, 40%);
    color: var(--gray-6);
    text-align: center;
}

#sponsor-logos {
    display: flex;
    flex: 1 1 0;
    align-items: center;

    gap: 1rem;
    padding: .5rem;
}

#sponsor-logos>a:first-child {
    margin-left: auto;
}

#sponsor-logos>a:last-child {
    margin-right: auto;
}

#sponsor-logos img {
    max-height: 4rem;
    max-width: 220px;
    opacity: 100%;
}

.round-logo {
    clip-path: circle();
}

#logo-nic {}

#logo-tcs {
    padding: 5px;
}

#logo-synopsys {
    padding-top: 8px;
    max-width: 220px;
}

@media screen and (max-width: 1086px) {
    #sponsor-logos {
        width: 100%;
        max-width: 800px;
        margin-inline: auto;
        position: relative;
        height: 100px;
        overflow: hidden;
        mask-image: linear-gradient(to right,
                rgba(0, 0, 0, 0),
                rgba(0, 0, 0, 1) 20%,
                rgba(0, 0, 0, 1) 80%,
                rgba(0, 0, 0, 0));
    }

    @keyframes scrollLeft {
        to {
            left: -200px;
        }
    }

    #sponsor-logos>a {
        width: 200px;
        position: absolute;
        left: max(calc(200px * 5), 100%);
        animation-name: scrollLeft;
        animation-duration: 30s;
        animation-timing-function: linear;
        animation-iteration-count: infinite;
    }

    #sponsor-logos>img {
        width: 200px;
    }

    #sponsor-logos>a:nth-child(1) {
        animation-delay: calc(30s / 5 * (5 - 1) * -1);
    }

    #sponsor-logos>a:nth-child(2) {
        animation-delay: calc(30s / 5 * (5 - 2) * -1);
    }

    #sponsor-logos>a:nth-child(3) {
        animation-delay: calc(30s / 5 * (5 - 3) * -1);
    }

    #sponsor-logos>a:nth-child(4) {
        animation-delay: calc(30s / 5 * (5 - 4) * -1);
    }

    #sponsor-logos>a:nth-child(5) {
        animation-delay: calc(30s / 5 * (5 - 5) * -1);
    }

}