@charset "utf-8";
/* CSS Document */

@font-face {
    font-family: 'Roboto Condensed', sans-serif;
    src: 'https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital@0;1&display=swap'
}

* {
    padding: 0;
    margin: 0;
    scroll-behavior: smooth;
    font-family: 'Roboto Condensed';
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: space-evenly;
    padding: 2em 0;
    background: black;
}

nav a {
    color: white;
    text-decoration: none;
}

nav a:hover {
    font-style: italic;
}

article {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(2, auto);
    gap: 2em;
    background: #edcc7e;
    padding: 2em;
}

article video,
article iframe {
    width: calc(100vw/2 - 6em);
    aspect-ratio: 16/9;
}

article a {
    border: 2px solid black;
    grid-row: 2 / 2;
    grid-column: 1 / span 2;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

article a img {
    transition: all 1s ease;
}

article a:hover {
    cursor: pointer;
}

article a:hover #logo{
    transform: translateX(180%) scale(1.25);
}

article a:hover #texto{
    transform: translateX(90%);
    opacity: 0;
}

footer {
    background: black;
    padding: 1em 1em;
    color: white;
}

@media (max-width: 1200px) {

    nav ul {
        padding: 1em 0;
        flex-direction: column;
        align-items: center;
    }

    ul li {
        padding: 1em 0;
    }

    article {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, auto);
    }

    article video,
    article iframe {
        width: 100%;
        aspect-ratio: 16/9;
    }

    article a {
        grid-row: auto;
        grid-column: auto;
    }

    #texto {
        display: none;
    }

    article a:hover #logo{
        transform: none;
    }

}