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

*{
    box-sizing: border-box;
    padding: 0;
    margin: 0;

    font-family: 'Open sans', Arial, Helvetica, sans-serif;
    color: hsl(120, 70%, 10%);
}

body{
    background-color: white;

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

.dl{
    width: 100%;
    padding: 10px 20px;
    background-color: hsl(120, 0%, 0%);
    text-align: right;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: white;
}

/* front-page */

header{
    width: 100%;
    height: 85vh;

    background-color: hsl(120, 70%, 70%);

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

    header h1{
        font-size: 3.6rem;
        color: hsl(120, 30%, 50%);
        padding: 20px 40px;
        font-weight: 700;
    }

        header h1 span{
            padding: 5px 12px 10px 12px;
            margin-left: 20px;
            border-radius: 5px;

            font-size: 1.8rem;
            background-color: hsl(120, 30%, 50%);
            color: white;
        }

    header .desc{
        width: 80%;
        max-width: 600px;
        height: auto;
        padding: 14px 20px;
        margin-bottom: 10vh;
    }

        header .desc p{
            font-size: 0.9rem;
        }

        header .desc h2{
            width: max-content;
            padding: 4px 8px;
            margin-bottom: 5px;
            border-radius: 5px;
            font-size: 1rem;
            font-weight: 600;
            background-color: hsl(120, 50%, 50%);
        }

/* documentation */

main{
    width: 100%;
    max-width: 600px;
    margin-bottom: 100px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;

    /* background-color: rgba(0, 0, 0, 0.1); */
}

    main h2{
        padding: 20px 0 6px 10px;
        font-size: 2rem;
        font-weight: 400;
        color: hsl(120, 70%, 10%);
    }

    main h3{
        padding: 6px 0 6px 10px;
        margin: 10px 0 5px 20px;
        font-size: 1.1rem;
        font-weight: 400;
        color: hsl(120, 50%, 50%);
        border-bottom: 1px solid hsl(120, 70%, 70%);
    }

    main pre, main pre code{
        font-family: monospace;
    }

    main pre{
        margin: 10px 10px 0 50px;
        padding: 10px 10px 12px 16px;
        background-color: hsl(180, 10%, 20%);
        color: hsl(180, 70%, 70%);
        overflow-x: auto;
    }

.card{
    background-color: rgba(255,255,255,0.1);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.y{
    font-family: monospace;
    color: hsl(60, 70%, 70%);
}

.b{
    font-family: monospace;
    color: hsl(40, 70%, 70%);
}

.bl{
    font-family: monospace;
    color: hsl(180, 100%, 30%);
}

.c{
    font-family: monospace;
    color: hsl(40, 10%, 70%);
}

.n{
    font-family: monospace;
    color: hsl(140, 70%, 70%);
}

/* Demo */

section{
    width: 100%;
    background-color: hsl(120, 70%, 70%);

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

section main{
    align-items: center;
}

section main h2{
    align-self: flex-start;
}

section input{
    padding: 10px 20px;
    width: 90%;
    max-width: 600px;
    margin: 40px 0 20px 0;

    font-size: 1.2rem;
    font-weight: 600;

    border-radius: 5px;
    border: 2px solid hsl(180, 10%, 20%);
    outline: none;
}

section input::placeholder{
    color: hsl(120, 30%, 50%);
}

nav{
    all: inherit;
    margin-top: 20px;
}

nav article{
    display: flex;
    justify-content: space-between;
    align-items: center;

    width: 90%;
    max-width: 400px;

    background-color: white;

    height: 36px;
    padding: 0;
    margin-bottom: 10px;

    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

nav article h5{
    font-size: 0.9rem;
    font-weight: 600;
    padding-left: 10px;
}

nav article p{
    font-size: 0.8rem;
    line-height: 36px;
    padding-left: 10px;
    height: 100%;
    background-color: rgb(224, 224, 224);
    border-radius: 0 5px 5px 0;
}

nav article p span{
    all: inherit;
    display: inline-block;
    padding: 0;
    width: 36px;
    margin-left: 10px;
    font-weight: 700;
    text-align: center;
    color: rgba(0, 0, 0, 0.6);
    background-color: green;
    border-left: 1px solid rgb(167, 167, 167);
}

footer{
    width: 100%;
    background-color: hsl(120, 70%, 70%);
    padding: 0 16px 10px 16px;
}

footer *{
    font-size: 0.9rem;
    font-weight: 700;
    color: hsl(120, 30%, 40%)
}

footer sup{
    font-size: 0.7rem;
    font-weight: 400;
}

footer a{
    text-decoration: none;
    color: hsl(120, 80%, 10%);
}