
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200;300;400;500;600;700&display=swap');

/* MAIN CONTAINER */

.global_container_cd_elvis {
    width: 100%;
}

/* 5-COLUMN, 2-ROW IMAGE GRID */

.presentation-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    width: 100%;
    aspect-ratio: 2045 / 740;
    position: relative;
    overflow: hidden;
    gap: 0;
    background-color: #3d3d3d;
}

/* INDIVIDUAL IMAGE TILES */

.presentation-tile {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    object-fit: fill;
    opacity: 0;
    animation: tileFadeIn 0.4s ease-out forwards;
}

/* CONSECUTIVE FADE-IN DELAYS */
/* INITIAL DELAY: 0.7 SECONDS */
/* INTERVAL: 0.2 SECONDS */

.presentation-tile:nth-child(1) {
    animation-delay: 0.7s;
}

.presentation-tile:nth-child(2) {
    animation-delay: 0.9s;
}

.presentation-tile:nth-child(3) {
    animation-delay: 1.1s;
}

.presentation-tile:nth-child(4) {
    animation-delay: 1.3s;
}

.presentation-tile:nth-child(5) {
    animation-delay: 1.5s;
}

.presentation-tile:nth-child(6) {
    animation-delay: 1.7s;
}

.presentation-tile:nth-child(7) {
    animation-delay: 1.9s;
}

.presentation-tile:nth-child(8) {
    animation-delay: 2.1s;
}

.presentation-tile:nth-child(9) {
    animation-delay: 2.3s;
}

.presentation-tile:nth-child(10) {
    animation-delay: 2.5s;
}

/* TILE FADE-IN ANIMATION */

@keyframes tileFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* TYPOGRAPHY CENTERED IN GREY AREA */

.presentation-type {
    position: absolute;
    left: 75%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;

    width: max-content;
    max-width: none;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    text-align: left;
    color: #ffffff;
    font-family: 'Oswald', sans-serif;
    font-size: 34px;
    font-weight: 300;
    letter-spacing: 7px;
    line-height: 48px;
}

/* INDIVIDUAL TYPE LINES */

.presentation-type .type-line {
    display: block;
    flex: 0 0 auto;

    width: max-content;
    height: auto;
    min-height: 0;
    max-height: none;

    margin: 0;
    padding: 0 20px 0 0;

    overflow: visible;
    white-space: nowrap;

    font-family: 'Oswald', sans-serif;
    font-size: 34px;
    font-weight: 300;
    letter-spacing: 7px;
    line-height: 48px;
    text-align: left;
    color: #ffffff;

    visibility: visible;

    -webkit-mask-image: linear-gradient(#000, #000);
    mask-image: linear-gradient(#000, #000);

    -webkit-mask-size: 0% 100%;
    mask-size: 0% 100%;

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

/* FIRST LINE: PRESENTATIONS */

.presentation-type .type-line-1 {
    animation:
        typeFirst 0.39s steps(13, end) 2.9s both;
}

/* SECOND LINE: PITCH DECKS */

.presentation-type .type-line-2 {
    animation:
        typeSecond 0.30s steps(11, end) 3.29s both;
}

/* TYPEWRITER ANIMATIONS */

@keyframes typeFirst {
    from {
        -webkit-mask-size: 0% 100%;
        mask-size: 0% 100%;
    }
    to {
        -webkit-mask-size: 100% 100%;
        mask-size: 100% 100%;
    }
}

@keyframes typeSecond {
    from {
        -webkit-mask-size: 0% 100%;
        mask-size: 0% 100%;
    }
    to {
        -webkit-mask-size: 100% 100%;
        mask-size: 100% 100%;
    }
}
