:root {
    --blue1: #07417a;
    --blue2: #dbe7f6;
}

* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

html {
    width: 1200px;
    margin: auto;
}

body {
    background-color: black;
    display: grid;
    grid-template-rows: 150px auto 150px;
}

header {
    background-color: var(--blue1);
    display: grid;
    grid-template-columns: 1fr 2fr 2fr;
    grid-template-areas: "logo vacio menu";
}

header>svg {
    grid-area: logo;
    height: 100%;
    fill: var(--blue2);
    padding: 10px;
}

header>ul {
    grid-area: menu;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 50px;
}

header>ul>li {
    list-style: none;
    display: inline;
    padding: 20px;
}

header>ul>li>a {
    color: var(--blue2);
    text-decoration: none;
}

main {
    background-color: whitesmoke;
}

main>div {
    padding: 20px;
}

main>img {
    display: block;
    height: 25vh;
    width: 100%;
    object-fit: cover;
}

main ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    list-style: none;
}

main ol {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    list-style: none;
    margin-top: 20px;
}

main li {
    background-color: var(--blue2);

}

main>div>ul article {
    padding: 30px;
    display: grid;
    grid-template-rows: auto auto auto;
    gap: 20px;
}

main>div>ol article {
    padding: 30px;
    display: grid;
    grid-template-rows: 150px auto auto auto;
    gap: 20px;
}

article>img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
}

article>h2 {
    font-size: 1.4em;
    font-weight: bold;
}

article>button {
    background-color: var(--blue1);
    color: white;
    font-size: 1.1em;
    padding: 5px;
    border: 0px;
    border-radius: 5px;
    width: 50%;
}

footer {
    background-color: var(--blue1);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

@media only screen and (max-width: 1200px) {

    html {
        width: 100vw;
    }

    body {
        background-color: black;
        display: grid;
        grid-template-rows: auto auto auto;
    }

    header {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: "logo menu";
        height: 8vh;
        position: sticky;
        top: 0;
    }

    header>ul {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding-right: 20px;
    }

    header>ul>li {
        padding: 5px;
        font-size: 0.8em;
    }

    main ul {
        grid-template-columns: 1fr;
    }

    main ol {
        grid-template-columns: 1fr;
    }

    main>img {
        height: 15vh;
    }

    article>h2 {
        font-size: 1.2em;
        font-weight: bold;
    }

    footer{
        height: 50px;
    }

}

