/* CSS Document - Developed by Fabio Rocha (http://fabiorochafg.github.io | fabiorochafg@gmail.com) */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100;300;400;500;700;900&display=swap');

/* base */
:root {
    --brand-color: #01121a; /* new color */
    --secondary-color: #5D737E;
    --contrast-color: #6C91BF;
    --grey-color: #666;
    --medium-grey-color: #ddd;
    --light-grey-color: #eee;
    --black: #333;
    --white: #fff;
    --default-border-radius: 5px;
    --inner-margin: 2.5rem;
    --margin: 5rem;
    --header-height: 55px;
}
* {
    border: 0 none;
    margin: 0;
    outline: 0 none;
    padding: 0;
}
*,
*:after,
*:before {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
html {
    font-size: 16px;
}
body {
    background-attachment: fixed;
    background-color: var(--brand-color);
    /*background-image: url(../images/bg.jpg);*/
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--white);
    font-family: 'Noto Sans JP', sans-serif;
    position: relative;
}
a,
a:active {
    color: var(--grey-color);
    text-decoration: none;
    -webkit-transition: all 0.4s;
    -moz-transition: all 0.4s;
    -o-transition: all 0.4s;
    transition: all 0.4s;
}
a:hover {
    color: var(--contrast-color);
    text-decoration: underline;
}
dd {
    float: left;
    padding: 0 0 2px;
}
dt {
    clear: left;
    float: left;
    font-weight: 600;
    margin: 0 5px 0 0;
}
h2 {
    padding: 0 0 10px;
}
h3,
h4,
h5 {
    padding: 20px 0 10px;
}
ul {
    line-height: 1.5em;
}
ul ul {
    padding: 0 0 0 15px;
}

/* forms */
button,
input[type="button"],
input[type="submit"] {
    background-color: var(--secondary-color);
    border-radius: 0;
    clear: both;
    color: var(--white);
    cursor: pointer;
    display: block;
    font-size: 1rem;
    padding: 1.25rem;
    width: 100%;
    -webkit-appearance: none;
    -webkit-transition: all 0.4s;
    -moz-transition: all 0.4s;
    -o-transition: all 0.4s;
    transition: all 0.4s;
}
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
    background-color: var(--contrast-color);
}
input[type="email"],
input[type="file"],
input[type="number"],
input[type="password"],
input[type="text"] {
    background-color: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid var(--white);
    border-radius: 0;
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    width: 100%;
}
input[type="email"]:focus,
input[type="file"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="text"]:focus,
textarea:focus {
    border-color: var(--contrast-color);
}
input[type="email"]::placeholder,
input[type="file"]::placeholder,
input[type="number"]::placeholder,
input[type="password"]::placeholder,
input[type="text"]::placeholder {
    color: var(--white);
    font-family: 'Noto Sans JP', sans-serif;
    opacity: .75;
    font-weight: 100;
}
select {
    border: 1px solid var(--medium-grey-color);
    border-radius: var(--default-border-radius);
    height: 34px;
    margin: 0 0 5px;
}
option {
    padding: 3px 5px;
}
select[multiple="multiple"] {
    height: auto;
}
select[multiple="multiple"] option {
    padding: 5px;
}
textarea {
    border: 1px solid var(--medium-grey-color);
    border-radius: var(--default-border-radius);
    display: block;
    font-family: sans-serif;
    font-size: 1rem;
    height: 130px;
    margin-bottom: 10px;
    padding: 10px;
    width: 100%;
}

/* header */
header nav {
    display: flex; 
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: stretch;
    align-items: center;
}
header nav > div {
    flex-basis: auto;
    flex-grow: 1;
    flex-shrink: 0;
    margin-right: 1.5rem;
}
header nav > div:last-child {
    margin-right: 0;
}
header .nav-item {
    color: var(--black-color);
    display: block;
    float: left;
    font-size: 0.9rem;
    font-weight: 100;
    text-decoration: none;
    text-align: center;
    width: 100%;
}
header .nav-item:hover {
    color: var(--contrast-color);
    text-decoration: none;
}
header .logo {
    flex-basis: 120px;
    flex-grow: 0;
}
header .logo h1 {
    line-height: 1em;
}
header .logo h1 a {
    background-image: url(../images/logo.svg);
    background-position: 0 0;
    background-repeat: no-repeat;
    background-size: contain;
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 500;
    height: 55px;
    text-indent: -9000px;
    width: 100px;
}
header .logo h1 a:hover {
    color: var(--contrast-color);
    text-decoration: none;
}
header .separator {
    flex-basis: 100px;
    position: relative;
}
header .separator:before {
    background-color: var(--white);
    content: "";
    height: 1px;
    position: absolute;
    top: 50%;
    width: 100%;
}
header .text {
    flex-grow: 0;
    font-weight: 400;
}
header .featured {
    font-size: 2.5rem;
    padding-top: 10rem;
    max-width: 55%;
}
header .featured + p {
    font-size: 2rem;
    font-weight: 300;
}

/* sections */
section > h2 {
    font-size: .8rem;
    font-weight: 100;
    padding-bottom: 0;
}
section > h3 {
    font-size: 1.75rem;
    padding-top: 0;
    padding-bottom: 2rem;
    position: relative;
}
section > h3:before {
    background-color: var(--white);
    content: "";
    height: 1px;
    position: absolute;
    top: 50%;
    right: 0;
    width: 45%;
}
section > h3 span {
    display: block;
    max-width: 50%;
}
.services {
    margin: 0 -1rem;
    width: calc(100% + 2rem);
}
.services .flex-item {
    background-color: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(7px);
    box-shadow: 0 0 15px 10px rgba(0, 0, 0, .2);
    padding: var(--inner-margin);
    margin: 1rem;
}
.services .flex-item + .flex-item {
    margin-top: 100px;
}
.services .flex-item + .flex-item + .flex-item {
    margin-top: 200px;
}
.services .flex-item h3 {
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1em;
    padding: 2rem 0;
}
.services .flex-item p {
    font-weight: 100;
}
.services .flex-item .icon {
    background-image: url(../images/icon-settings.svg);
    background-position: 0 0;
    background-repeat: no-repeat;
    background-size: auto 50px;
    height: 50px;
    opacity: 0.1;
    width: 100%;
}
#como-funcionara .float-right {
    float: right;
    width: 45%;
}
#como-funcionara .float-right img {
    width: 100%;
}
#como-funcionara .float-left {
    float: left;
    width: 50%;
}
#como-funcionara .float-left p {
    font-size: 1.2rem;
    font-weight: 100;
    text-align: justify;
}
#quero-participar form {
    margin: 5rem auto 0;
    width: 50%;
}

/* footer */
footer.container {
    padding-bottom: 0;
}
footer,
footer a {
    color: var(--white);
}
footer a:hover {
    color: var(--contrast-color);
}
footer ul {
    border: 1px solid var(--white);
    border-bottom: 0 none;
    display: inline-block;
    list-style: none;
    margin-bottom: -5px;
    padding: var(--inner-margin);
    width: 100%;
}
footer li {
    float: left;
    font-size: .8rem;
    font-weight: 100;
    margin-right: 3rem;
}

/* extra */
/*#wrapper,
#wrapper > * {
    position: relative;
}
#wrapper:before {
    background: rgba(1,18,26, 0.75);
    bottom: 0;
    content: "";
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}*/
.container {
    clear: both;
    display: inline-block;
    margin: 0 auto;
    padding: var(--margin);
    width: 100%;
}
.flex-container {
    display: flex; 
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: stretch;
    align-items: stretch;
}
.flex-container > .flex-item {
    flex-basis: 100px;
    flex-grow: 1;
    flex-shrink: 0;
}
.float-right {
    float: right;
}

/* Media-queries */
@media print {
    * {
        background-color: transparent !important;
        color: #000 !important;
        margin: 0 !important;
        padding: 0 !important;
        text-shadow: none !important;
    }
    a,
    a:visited {
        text-decoration: underline;
    }
    a:after {
        content: " ("attr(href)")";
    }
    a[href^="javascript:"]:after,
    a[href^="#"]:after { 
        content: ""; 
    }
    body {
        color: #000;
        font: 9pt serif;
        line-height: 1.4em;
    }
    h1 {
        width: 100%;
    }
    h1 a:after {
        content: "";
    }
    img {
        max-width: 100%;
    }
    p {
        orphans: 3;
        widows: 3;
    }
    p a {
        word-wrap: break-word;
    }
}
@media screen and (max-width: 1024px) {
    main > section,
    aside {
        display: inline-block;
        float: none;
        padding: 0 0 var(--inner-margin);
        width: 100%;
    }
}
@media screen and (max-width: 768px) {
    :root {
        --inner-margin: 20px;
        --margin: 2rem;
        --header-height: 50px;
    }
    header h1 {
        float: left;
        margin: 0;
        width: 100%;
    }
    header h1 a {
        background-position: center 0;
        width: 100%;
    }
    nav {
        display: inline-block;
        float: none;
        padding: var(--inner-margin) 0 var(--margin);
        width: 100%;
    }
    nav a {
        margin: 0;
        text-align: center;
        width: 100%;
    }
}
@media only screen and (max-device-width: 480px), only screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:portrait), only screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:landscape) {
    nav a {
        font-size: 1.2rem;
    }
}
