body {
    margin: 0;
    overflow: auto;
    background-color: #eceff1;
}

body, html {
    height: 100%;
}

.flex {
    flex: 1;
    -webkit-flex: 1;
    -moz-flex: 1;
    -ms-flex: 1;
    display: flex;
}

.flex .constant {
    -webkit-flex-grow: 1;
    flex-grow: 1;
}

.pe-radio-group > div {
    margin-right: 2em;
}

.header-nav {
    position: fixed;
    right: 0;
    padding: 1em;
    z-index: 10;
}

.header-nav.left {
    left: 0;
    right: initial;
}

.hidden {
    opacity: 0;
    transition: .5s ease all;
}

.hidden:hover {
    opacity: 1;
}

.header-img {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    height: 100%;
    filter: brightness(30%);
    -webkit-filter: brightness(30%);
    position: fixed;
}

.header-title {
    width: 100%;
    height: 100vh;
}

.header-content {
    position: relative;
    top: 100vh;
}

.workflow-items-wrapper {
    font-family: "Source Sans Pro", sans-serif;
    flex-flow: row wrap;
    background-color: rgba(0, 0, 0, 0.5);
    margin-top: "1em"
}

.workflow-items {
    width: 15vw;
    display: table;
    text-align: center;
}

.workflow-items div {
    display: table-cell;
    vertical-align: middle;
    color: #fff;
    font-size: 10vw;
    font-weight: bold;
}

.workflow-items, .workflow-items-description {
    margin: 1em;
    height: 15vw;
}

.workflow-items-description {
    display: table;
}

.workflow-items-description p {
    display: table-cell;
    vertical-align: middle;
    color: #fff;
    line-height: 2;
    font-weight: lighter;
}

.info {
    font-size: smaller;
    font-style: italic;
}

.pe-textfield__input-area.modified::after {
    display: none;
}

.pe-textfield__input-area.modified input {
    border: none;
}

article {
    padding: 3em 0 0;
}

article .article-title {
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    font-family: "Patua One", cursive;
    margin-bottom: 2em;
}

article .article-break {
    padding: 3em 0;
}

#menu {
    width: 30%;
    height: 100%;
    position: fixed;
    background-color: #fff;
    transition: left .3s cubic-bezier(0, 0, .6, 1);
    -webkit-transition: left .3s cubic-bezier(0, 0, .6, 1);
    -moz-transition: left .3s cubic-bezier(0, 0, .6, 1);
    -o-transition: left .3s cubic-bezier(0, 0, .6, 1);
    z-index: 12;
    top: 64px;
}

#menu-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: #333;
    z-index: 10;
}

#menu-list {
    overflow-y: auto;
    height: 80%;
}

.bar1,
.bar2,
.bar3 {
    width: 1.5em;
    height: .2em;
    background-color: rgb(0, 145, 234);
    margin: .2em 0;
    transition: .2s linear;
}

.change .bar1 {
    transform: translateY(.4em) rotate(-45deg);
    -webkit-transform: translateY(.4em) rotate(-45deg);
    -moz-transform: translateY(.4em) rotate(-45deg);
    -ms-transform: translateY(.4em) rotate(-45deg);
    -o-transform: translateY(.4em) rotate(-45deg);
}

.change .bar2 {
    opacity: 0;
}

.change .bar3 {
    transform: translateY(-0.4em) rotate(45deg);
    -webkit-transform: translateY(-0.4em) rotate(45deg);
    -moz-transform: translateY(-0.4em) rotate(45deg);
    -ms-transform: translateY(-0.4em) rotate(45deg);
    -o-transform: translateY(-0.4em) rotate(45deg);
}

@media all and (orientation: portrait) {
    .pe-card {
        float: none;
        /*padding: .5em 2em 1em;*/
    }

    .firstInput {
        margin-top: 2em;
    }

    .lastInput {
        margin-bottom: 1em;
    }

    .flex .box {
        flex-basis: 50%;
        margin: 1em;
    }

    .header-img {
        max-height: 100vh;
    }

    .nav-button > span > span {
        display: none;
    }

    #editBtn {
        margin: 0;
    }
}

@media all and (orientation: landscape) {
    .pe-card {
        min-width: 23vw;
        margin: 1em;
        float: left;
        padding: 0 1em .5em;
    }

    .absolute-button {
        position: absolute;
        right: 0;
        top: 0;
        margin-top: .5em;
    }

    #editBtn {
        margin: .8em;
        display: block;
    }

    #title {
        max-width: 80%;
    }
}

@media all and (max-width: 640px) {
    .flex .but {
        display: block;
        max-height: 200px;
        overflow: auto;
    }

    .login-scroll {
        max-height: 40vh;
        overflow: auto;
    }

    .flex > .choices .flex {
        display: block;
    }

    .header-title h1 {
        font-size: 10vw;
    }

    #header-email {
        width: 60%;
    }

    #category-menu {
        position: fixed;
        top: 0;
        left: 0;
        max-width: none;
    }

    article {
        width: 100%;
    }

    .too-small-none {
        display: none;
    }

    #menu {
        width: 75%;
    }
}

@media all and (min-width: 720px) {
    #header-email {
        width: 30%;
    }

    article {
        width: 80%;
        margin: 0 auto
    }

    .workflow-items-description p {
        font-size: 2vw;
    }

    .wrapper-body {
        max-width: 50%;
    }
}

@media all and (max-width: 1024px) {
    .workflow-items {
        margin: 0 auto;
    }

    .workflow-items-description {
        width: 100%;
        margin: 0;
    }

    .workflow-items-description p {
        text-align: center;
    }

    .workflow-items-wrapper {
        display: block;
        margin: 1em 0;
    }
}

@media all and (max-height: 360px) {
    .flex .but {
        max-height: 30vh;
    }
}
