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

body, html {
    height: calc(100% - 2em);
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

body {
    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#4c00fb+1,2989d8+50,207cca+51,e600ff+100 */
    background: #4c00fb; /* Old browsers */
    background: -moz-linear-gradient(45deg,  #4c00fb 1%, #2989d8 50%, #207cca 51%, #e600ff 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(45deg,  #4c00fb 1%,#2989d8 50%,#207cca 51%,#e600ff 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(45deg,  #4c00fb 1%,#2989d8 50%,#207cca 51%,#e600ff 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4c00fb', endColorstr='#e600ff',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
    background-repeat: no-repeat;
    background-attachment: fixed;
}

aside {
    color: white;
    display: grid;
    grid-template-columns: auto 40px;
    padding: 2em;
}

img {
    cursor: pointer;
}

figure {
    margin: 0;
}

figcaption {
    font-size: 1.3em;
    font-weight: bold;
}

nav {
    background: white;
}

.active {
    display: block;
    background: #fff;
    width: 50%;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
}

ul {
    display: none;
    margin: 0;
    list-style-type: none;
    padding: 0;
}

li a {
    text-decoration: none;
    text-transform: uppercase;
    font-size: .8em;
    display: block;
    color: black;
    padding: 1.5em 3em;
    background-color: rgba(255, 255, 255, .35);
}

main {
    background-color: #fff;
    padding: 1em 1.4em;
}

h1 {
    margin: 0;
}

p {
    font-size: 1.1em;
    line-height: 1.5em;
}

.cta {
    display: block;
    color: white;
    background: #0e7fff;
    text-decoration: none;
    padding: 8px 50px;
    font-size: 1.2em;
    text-align: center;
    font-weight: bold;
    border-radius: 4px;
    margin: 2em 0;
}

@media only screen and (min-width: 768px) {
    body {
        display: grid;
        grid-template-columns: 20% auto;
        padding: 2em;
    }

    img {
        display: none;
    }

    aside {
        background: #DCE1F6;
        grid-template-columns: auto;
        grid-template-rows: 20% auto;
        padding: 0;
    }

    main {
        padding: 4em;
        background: white url('./images/bg.svg') no-repeat bottom right;
        background-size: 70%;
    }

    #avatar {
        border-radius: 50%;
        background: white;
        width: 50px;
        height: 50px;
        margin: 2em auto 1em auto;
    }

    figcaption {
        text-align: center;
        color: black;
    }

    ul {
        display: block;
        margin-top: 2em;
        position: relative !important;
        background: no-repeat !important;
        width: 100% !important;
    }

    nav {
        background: none;
    }

    ul li a:hover {
        background: #fff;
    }

    .cta {
        display: inline-block;
        font-size: 1.3em;
        padding: .8em 3em;
    }

    h1 {
        font-size: 3em;
        margin-top: 2em;
    }

    p {
        font-size: 1.5em;
    }
}