@import url('https://fonts.googleapis.com/css?family=Raleway|Roboto+Mono');

body, html {
    padding: 0;
    margin: 0;
}

body, h1, h2, h3, h4, h5, h6, p, button, li {
    font-family: Raleway, 'Arial', sans-serif !important;
}


h1 {
    margin: 0;
    color: #48cfad;
    font-size: 3em;
}

strong {
    color: #48cfad;
}

p {
    color: #212121;
    font-size: 1.2em;
    margin: 0;
    padding: 1em 0;
}

pre {
    background: none;
    display: inline-block;
}

code {
    padding: 0.1em 0.3em;
    font-size: 0.8em;
    color: #333;
    border-radius: 5px;
    background-color: #EEE;
    font-family: Roboto Mono;
}

html body a:hover {
    color: #212121;
}

p a {
    color: #48cfad;
}

button a {
    color: #333;
    text-decoration: none;
}


.header {
    padding-top: 6em;
    position: relative;
    width: 100%;
    text-align: center;

    /* the .github-button class will be replaced by a shadow root, so make .github-button invisible and style the inserted span*/
    .github-button {
        display: none;
    }

    h1 span {
        left: 50%;
        transform: translateX(-50%);
        position: absolute;
    }


    code {
        margin-top: 2em;
        margin-bottom: 4em;
        display: inline-block;
        padding: 0.2em 0.4em;
        font-size: 1.6em;
    }

    nav {
        display: flex;
        box-shadow: 0 3px 4px rgba(0,0,0,0.16), 0 1px 3px rgba(0,0,0,0.23);
        justify-content: space-between;

        button {
            outline: none;
            padding: 0.2em 0;
            border: none;
            background: none;
            font-size: 1.5em;
            flex: 1;
            opacity: 0.4;
        }

        button.selected {
            opacity: 1;
        }
    }
}

.screenshot {
    position: relative;

    > * {
        transition: opacity 0.5s;
        width: 100%;
    }

    > *:not(:first-child) {
        top: 0;
        left: 0;
        position: absolute;
        width: 100%;
    }
}

.image-selector {
    padding: 0em 0.3em;
    padding-right: 0.2em;
    background-color: #333;
    position: absolute;
    top: 0;
    right: 0;
}

.image-changer {
    cursor: pointer;
    padding: 0.1em;
    width: 28px;
    height: 28px;
    filter: opacity(0.3) invert(100%);

    &.selected {
        filter: invert(100%);
    }
}

.image-container {
    width: 40em;
    position: relative;
}

.card {
    padding: 1em 6em;
    font-size: 1.3em;

    h2 {
        color: #48cfad;
    }
}

.flex {
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: space-around;
}

.arrow {
    margin: 0.5em;
}

.card-introduction {
    margin-top: 1em;
    margin-bottom: 3em;
}

.card-everywhere {
    background-color: #f7f7f7;
    padding-top: 0.5em;
    padding-bottom: 2em;

    .flex {
        flex-wrap: wrap;
    }

    p {
        width: 25em;
    }

    .image-container {
        flex-grow: 0;
        flex-shrink: 0;
    }
}

.card-opensource {
    background-color: #f7f7f7;

    ul {
        margin-left: 2em;
        list-style: none;
    }

    li::before {
        content: "\2022";
        color: #333;
        font-weight: bold;
        display: inline-block;
        width: 1em;
        margin-left: -1em;
    }
    li {
        font-size: 1.2em;
    }
}

.body > .section#introduction h1:first-child {
    display: None;
}

@media (max-aspect-ratio: 4/3) {
    .card-extensible .flex {
        flex-direction: column;
    }

    .card-extensible .arrow {
        transform: rotate(90deg);
    }
}