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


/*
*   STRUCTURE
*/

html{
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;

    background-image: linear-gradient(to bottom, rgba(21, 118, 178, 0.5), rgba(229, 235, 241, 0.5)),
                    url(./img/cloud-blue-sky-small.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

body {
    max-width: 1066px;
    margin: 0 auto;

    box-shadow: rgba(21, 118, 178, 0.6) 0 0 20px;
}

header {
    height: 300px;

    background-image: linear-gradient(to bottom right, rgba(21, 118, 178, 0.2), rgba(166, 140, 169, 0.5)),
                    url("./img/beautiful-sky-with-mountains-distance-1066.jpg");
    background-position: center;
    background-size: cover;

    color: white;
}

section {
    margin-top: 0;
    margin-bottom: 0;
}

/*
*   ELEMENTS
*/

a, a:hover, a:visited {
    text-decoration: none;
    color: inherit;
}

h1 {
    font-family: 'KoHo', sans-serif;
    text-transform: uppercase;
    font-size: 3rem;
    font-weight: 500;
}

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

li {
    padding: 5px 10px;
    text-align: end;
    border-right: 1px solid rgba(255, 255, 255, 0.5);
    text-shadow: 0 0 5px black;
}

li:nth-of-type(n+2) {
    border-top: 1px solid rgba(255, 255, 255, 0.5);
}

header p {
    font-size: 1.2rem;
}

nav {
    position: relative;
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-end;
    align-items: flex-start;
}

nav h2 {
    margin: 10px 20px;
}

#menu {
    display: none;
    position: absolute;
    top: 50px;
    margin: 5px 10px;
}

#menu.show {
    display: block;
}

#menuButton {
    cursor: pointer;
}

#motto article {
    width: 530px;
    padding: 20px;
}

#motto-illus {
    background-image: url(./img/female-portrait-nature-pretty-woman-plays-with-dandelion-stand-1066.jpg);
    background-position: center;
    background-size: cover;
    height: 350px;
    width: calc(100% - 530px);
}

#features article {
    padding: 10px 20px;
    width: 45%;
}

#features i.fas {
    font-size: 5rem;
}

#make {
    max-height: 300px;
}

#make article {
    max-width: 500px;
    padding: 20px;
    flex-shrink: 0;
}

#make video {
    /* width="512" height="240" */
    object-position: right center;
    flex-shrink: 2;
}

#API form {
    width: 100%;
}

#API button {
    margin: 5px 0;
    padding: 5px 10px;
    font-family: inherit;
    font-size: inherit;
    font-weight: 600;
}

#inputs {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: flex-start;
}

#inputs div {
    margin: 5px 0;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: flex-start;
    width: 50%;
}

#inputs input {
    width: 90%;
    border-radius: 5px;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
}

/*
*   CLASSES
*/

.flex-nowrap {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
}

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

.text-center {
    text-align: center;
}

.bg-dark {
    background-color: rgb(38, 25, 56);
    color: rgb(229, 235, 241);
}

.bg-light {
    background-color: rgb(229, 235, 241);
    color: black;
    padding: 20px 10px;
}

img.photo-illus {
    width: 50%;
}



/*
*   RESPONSIVE
*/

@media only screen and (min-width: 776.1px) and (max-width: 992px) { 
    #make article {
        max-width: 350px;
    }
}

@media only screen and (max-width: 776px) {
    #motto article {
        width: 400px;
    }

    #motto-illus {
        height: 350px;
        width: calc(100% - 400px);
    }

    #make article {
        max-width: 250px;
    }

    /* Menu */

    #menu.show {
        top: 5px;
        right: 50px;
        display: flex;
        flex-flow: row wrap;
        justify-content: flex-end;
        align-items: flex-start;
    }

    li {
        padding: 5px 10px;
        text-align: end;
        border-right: none;
    }
    
    li:nth-of-type(n+2) {
        border-top: none;
    }
}
