/* Sections */

.top {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: calc(100% - 40px);
    margin-left: 20px;
    margin-right: 20px;
    height: calc(100vh - 50px);
    gap: 15px;
}

.textContainer {
    display: flex;
    align-items: center;
    gap: 15px;
}

.textContainer img {
    border-radius: 20%;
    height: 60px;
}

.tagline {
    position: relative;
    min-height: 1.2em; /* Ensures consistent height */
}

.typingBar {
    position: absolute;
    width: 4px;
    height: 1em;
    background-color: var(--text);
    border-radius: 2px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 2px;
}

.flashing {
    animation: flashing 2s infinite;
}

@keyframes flashing {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.showMore {
    position: absolute;
    bottom: 0;
    transform: translateY(35px);
    width: 100%;
    animation: bounce 4s infinite ease-in-out;
}

.showMoreContainer{
    text-align: center;
    align-items: center;
    justify-content: center;
    display: flex;
    gap: 10px;
}

.showMoreContainer p {
    height: 100%;
}

.showMore path {
    fill: var(--text);
}

@keyframes bounce {
    0% {
        transform: translateY(-35px);
    }
  
    50% {
        transform: translateY(-25px);
    }
    
    100% {
        transform: translateY(-35px);
    }
}

.showreel {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
    height: fit-content;
    margin: 0 40px 0 40px;
}

.getStarted {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 0 40px 0 40px;
}

.getStarted h1, .getStarted p {
    text-align: center;
}

.getStarted .infoCard {
    min-width: 40%;
    max-width: 80%;
}

.getStarted .infoCard p {
    text-align: unset !important;
}

/* Center the last row with 2 items */
.showreel > .infoCard:nth-last-child(2),
.showreel > .infoCard:nth-last-child(1) {
    grid-column: span 2;
}

.showreel > .infoCard:nth-last-child(2) {
    grid-column-start: 1;
}

@media screen and (max-width: 750px) {
    /* Center the last row with 2 items */
    .showreel > .infoCard:nth-last-child(2),
    .showreel > .infoCard:nth-last-child(1) {
        grid-column: unset !important;
    }

    .showreel > .infoCard:nth-last-child(2) {
        grid-column-start: unset !important;
    }

    .showreel {
        grid-template-columns: repeat(2, 1fr);
    }

    .showreel > :nth-child(odd):last-child {
        grid-column: span 2;
    }
}

@media screen and (max-width: 550px) {
    .textContainer {
        align-items: start;
        flex-direction: column;
    }

    .showreel {
        display: flex;
        flex-direction: column;
    }
}

/* Extras */

.e8x31s {
    margin-bottom: 40px;
    text-align: center;
}

.e8x31s img {
    width: 88px;
    height: 31px;
    image-rendering: pixelated;
    transition: 0.5s;
    margin: 5px;
}

.e8x31s img:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
    scale: 1.1;
}