/* Pages CSS - Estilos específicos de páginas */

/* Wrapper */

#wrapper {
  -moz-transition: opacity 0.5s ease;
  -webkit-transition: opacity 0.5s ease;
  -ms-transition: opacity 0.5s ease;
  transition: opacity 0.5s ease;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

#wrapper > .bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--text-primary);
  background-image:
    url("../images/overlay.png"),
    linear-gradient(0deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
    url("../images/bg.webp");
  background-size:
    auto,
    auto,
    100% auto;
  background-position:
    center,
    center,
    top center;
  background-repeat: repeat, no-repeat, no-repeat;
  background-attachment: scroll, scroll, scroll;
  z-index: -1;
}

#wrapper > .bg.fixed {
  position: fixed;
  width: 100vw;
  height: 100vh;
}

/* Intro */

#intro {
  color: var(--text-white);
  padding: 8rem 4rem 6rem 4rem;
  -moz-align-items: center;
  -webkit-align-items: center;
  -ms-align-items: center;
  align-items: center;
  display: -moz-flex;
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  -moz-flex-direction: column;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  -moz-justify-content: -moz-flex-end;
  -webkit-justify-content: -webkit-flex-end;
  -ms-justify-content: -ms-flex-end;
  justify-content: flex-end;
  -moz-transition:
    opacity 1s ease,
    -moz-transform 1s ease;
  -webkit-transition:
    opacity 1s ease,
    -webkit-transform 1s ease;
  -ms-transition:
    opacity 1s ease,
    -ms-transform 1s ease;
  transition:
    opacity 1s ease,
    transform 1s ease;
  position: relative;
  cursor: default;
  text-align: center;
  z-index: 1;
  min-height: 100vh;
}

#intro input,
#intro select,
#intro textarea {
  color: var(--text-white);
}

#intro a {
  color: var(--text-white);
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

#intro a:hover {
  border-bottom-color: transparent;
  color: var(--primary-color-light) !important;
}

#intro strong,
#intro b {
  color: var(--text-white);
}

#intro h1,
#intro h2,
#intro h3,
#intro h4,
#intro h5,
#intro h6 {
  color: var(--text-white);
  text-transform: uppercase;
}

#intro blockquote {
  border-left-color: var(--text-white);
}

#intro code {
  background: rgba(255, 255, 255, 0.075);
  border-color: var(--text-white);
}

#intro hr {
  border-bottom-color: var(--text-white);
}

#intro input[type="submit"],
#intro input[type="reset"],
#intro input[type="button"],
#intro button,
#intro .button {
  background-color: transparent;
  box-shadow: inset 0 0 0 2px var(--text-white);
  color: var(--text-white) !important;
}

#intro input[type="submit"]:hover,
#intro input[type="reset"]:hover,
#intro input[type="button"]:hover,
#intro button:hover,
#intro .button:hover {
  box-shadow: inset 0 0 0 2px var(--primary-color-light);
  color: var(--primary-color-light) !important;
}

#intro input[type="submit"].primary,
#intro input[type="reset"].primary,
#intro input[type="button"].primary,
#intro button.primary,
#intro .button.primary {
  background-color: var(--text-white);
  box-shadow: none;
  color: var(--text-primary) !important;
}

#intro input[type="submit"].primary:hover,
#intro input[type="reset"].primary:hover,
#intro input[type="button"].primary:hover,
#intro button.primary:hover,
#intro .button.primary:hover {
  background-color: var(--primary-color-light);
}

#intro h1 {
  font-size: 5rem;
  line-height: 1;
}

#intro p {
  font-size: 1.25rem;
  font-style: italic;
  margin-top: -0.25rem;
  text-align: center;
}

#intro + #header {
  margin-top: -20rem;
}

#intro + #header .logo {
  -moz-transform: translateY(2rem);
  -webkit-transform: translateY(2rem);
  -ms-transform: translateY(2rem);
  transform: translateY(2rem);
  opacity: 0;
  visibility: hidden;
}

#intro.hidden {
  pointer-events: none;
  -moz-transform: translateY(2rem);
  -webkit-transform: translateY(2rem);
  -ms-transform: translateY(2rem);
  transform: translateY(2rem);
  -moz-transition:
    opacity 0.5s ease,
    -moz-transform 0.5s ease,
    visibility 0.5s;
  -webkit-transition:
    opacity 0.5s ease,
    -webkit-transform 0.5s ease,
    visibility 0.5s;
  -ms-transition:
    opacity 0.5s ease,
    -ms-transform 0.5s ease,
    visibility 0.5s;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    visibility 0.5s;
  opacity: 0;
  visibility: hidden;
}

#intro.hidden + #header .logo {
  -moz-transform: translateY(0);
  -webkit-transform: translateY(0);
  -ms-transform: translateY(0);
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

/* Main */

#main {
  background-color: var(--bg-white);
  position: relative;
  margin: 0 auto;
  width: calc(100% - 4rem);
  max-width: 72rem;
  z-index: 2;
}

#main > * {
  padding: 4rem 4rem 2rem 4rem;
  border-top: solid 2px var(--border-light);
  margin: 0;
}

#main > *:first-child {
  border-top: 0;
}

#main > footer {
  text-align: center;
}

#main > .post {
  padding: 6rem 8rem 4rem 8rem;
}

#main > .post header.major > .date {
  margin-top: -2rem;
}

#main > .post header.major > h1,
#main > .post header.major h2 {
  font-size: 4rem;
  line-height: 1.1;
  margin: 0 0 2rem 0;
}

#main > .post.featured {
  text-align: center;
}

#main > .posts {
  display: -moz-flex;
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  -moz-flex-wrap: wrap;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -moz-align-items: -moz-stretch;
  -webkit-align-items: -webkit-stretch;
  -ms-align-items: -ms-stretch;
  align-items: stretch;
  text-align: center;
  width: 100%;
  padding: 0;
}

#main > .posts > * {
  -moz-flex-shrink: 1;
  -webkit-flex-shrink: 1;
  -ms-flex-shrink: 1;
  flex-shrink: 1;
  -moz-flex-grow: 0;
  -webkit-flex-grow: 0;
  -ms-flex-grow: 0;
  flex-grow: 0;
}

#main > .posts > * {
  width: 50%;
  margin-bottom: var(--spacing-lg);
}

#main > .posts > * {
  padding: 4rem;
  width: 50%;
}

#main > .posts > article {
  border-color: var(--border-light);
  border-left-width: 2px;
  border-style: solid;
  border-top-width: 2px;
  text-align: center;
}

#main > .posts > article > :last-child {
  margin-bottom: 0;
}

#main > .posts > article:nth-child(2n - 1) {
  border-left-width: 0;
}

#main > .posts > article:nth-child(-n + 2) {
  border-top-width: 0;
}

/* Footer */

#footer {
  color: var(--text-muted);
  display: -moz-flex;
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  background-color: var(--bg-lighter);
  cursor: default;
  position: relative;
  margin: 0 auto;
  width: calc(100% - 4rem);
  max-width: 72rem;
  z-index: 2;
}

#footer input,
#footer select,
#footer textarea {
  color: var(--text-muted);
}

#footer a {
  color: var(--text-muted);
  border-bottom-color: rgba(113, 121, 129, 0.5);
}

#footer a:hover {
  border-bottom-color: transparent;
  color: var(--primary-color-light) !important;
}

#footer strong,
#footer b {
  color: var(--text-muted);
}

#footer h1,
#footer h2,
#footer h3,
#footer h4,
#footer h5,
#footer h6 {
  color: var(--text-muted);
}

#footer blockquote {
  border-left-color: var(--border-light);
}

#footer code {
  background: rgba(220, 220, 220, 0.5);
  border-color: var(--border-light);
}

#footer hr {
  border-bottom-color: var(--border-light);
}

#footer .box {
  border-color: var(--border-light);
}

#footer input[type="submit"],
#footer input[type="reset"],
#footer input[type="button"],
#footer button,
#footer .button {
  background-color: transparent;
  box-shadow: inset 0 0 0 2px var(--text-muted);
  color: var(--text-muted) !important;
}

#footer input[type="submit"]:hover,
#footer input[type="reset"]:hover,
#footer input[type="button"]:hover,
#footer button:hover,
#footer .button:hover {
  box-shadow: inset 0 0 0 2px var(--primary-color-light);
  color: var(--primary-color-light) !important;
}

#footer input[type="submit"].primary,
#footer input[type="reset"].primary,
#footer input[type="button"].primary,
#footer button.primary,
#footer .button.primary {
  background-color: var(--text-muted);
  box-shadow: none;
  color: var(--bg-lighter) !important;
}

#footer input[type="submit"].primary:hover,
#footer input[type="reset"].primary:hover,
#footer input[type="button"].primary:hover,
#footer button.primary:hover,
#footer .button.primary:hover {
  background-color: var(--primary-color-light);
}

#footer label {
  color: var(--text-muted);
}

#footer input[type="text"],
#footer input[type="password"],
#footer input[type="email"],
#footer select,
#footer textarea {
  border-color: var(--border-light);
}

#footer input[type="text"]:focus,
#footer input[type="password"]:focus,
#footer input[type="email"]:focus,
#footer select:focus,
#footer textarea:focus {
  border-color: var(--primary-color-light);
}

#footer select {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' preserveAspectRatio='none' viewBox='0 0 40 40'%3E%3Cpath d='M9.4,12.3l10.4,10.4l10.4-10.4c0.2-0.2,0.5-0.4,0.9-0.4c0.3,0,0.6,0.1,0.9,0.4l3.3,3.3c0.2,0.2,0.4,0.5,0.4,0.9 c0,0.4-0.1,0.6-0.4,0.9L20.7,31.9c-0.2,0.2-0.5,0.4-0.9,0.4c-0.3,0-0.6-0.1-0.9-0.4L4.3,17.3c-0.2-0.2-0.4-0.5-0.4-0.9 c0-0.4,0.1-0.6,0.4-0.9l3.3-3.3c0.2-0.2,0.5-0.4,0.9-0.4S9.1,12.1,9.4,12.3z' fill='%23e2e2e2' /%3E%3C/svg%3E");
}

#footer select option {
  background-color: var(--bg-lighter);
  color: var(--text-muted);
}

#footer .select-wrapper:before {
  color: var(--border-light);
}

#footer input[type="checkbox"] + label,
#footer input[type="radio"] + label {
  color: var(--text-muted);
}

#footer input[type="checkbox"] + label:before,
#footer input[type="radio"] + label:before {
  border-color: var(--border-light);
}

#footer input[type="checkbox"]:checked + label:before,
#footer input[type="radio"]:checked + label:before {
  background-color: var(--text-muted);
  border-color: var(--text-muted);
  color: var(--bg-lighter);
}

#footer input[type="checkbox"]:focus + label:before,
#footer input[type="radio"]:focus + label:before {
  border-color: var(--primary-color-light);
}

#footer ::-webkit-input-placeholder {
  color: var(--text-muted) !important;
}

#footer :-moz-placeholder {
  color: var(--text-muted) !important;
}

#footer ::-moz-placeholder {
  color: var(--text-muted) !important;
}

#footer :-ms-input-placeholder {
  color: var(--text-muted) !important;
}

#footer .formerize-placeholder {
  color: var(--text-muted) !important;
}

#footer ul.divided li {
  border-top-color: var(--border-light);
}

#footer ul.icons li a.icon:hover:before {
  color: var(--primary-color-light);
}

#footer ul.icons.alt li .icon:before {
  box-shadow: inset 0 0 0 2px var(--border-light);
}

#footer ul.icons.alt li a.icon:hover:before {
  box-shadow: inset 0 0 0 2px var(--primary-color-light);
}

#footer header.major .date:before,
#footer header.major .date:after {
  border-top-color: var(--border-light);
}

#footer table tbody tr {
  border-color: var(--border-light);
}

#footer table tbody tr:nth-child(2n + 1) {
  background-color: rgba(220, 220, 220, 0.5);
}

#footer table th {
  color: var(--text-muted);
}

#footer table thead {
  border-bottom-color: var(--border-light);
}

#footer table tfoot {
  border-top-color: var(--border-light);
}

#footer table.alt tbody tr td {
  border-color: var(--border-light);
}

#footer .pagination a,
#footer .pagination span {
  border-color: var(--border-light);
}

#footer .pagination a {
  color: var(--text-muted) !important;
}

#footer .pagination a:hover {
  color: var(--primary-color-light) !important;
  border-color: var(--primary-color-light);
  z-index: 1;
}

#footer .pagination a:hover + a,
#footer .pagination a:hover + span {
  border-left-color: var(--primary-color-light);
}

#footer .pagination a.active {
  background-color: var(--border-light);
}

#footer .pagination span {
  color: var(--border-light);
}

#footer > section {
  -moz-flex-basis: 50%;
  -webkit-flex-basis: 50%;
  -ms-flex-basis: 50%;
  flex-basis: 50%;
  -moz-flex-grow: 1;
  -webkit-flex-grow: 1;
  -ms-flex-grow: 1;
  flex-grow: 1;
  -moz-flex-shrink: 1;
  -webkit-flex-shrink: 1;
  -ms-flex-shrink: 1;
  flex-shrink: 1;
  padding: 4rem 4rem 2rem 4rem;
  border-left: solid 2px var(--border-light);
}

#footer > section:first-child {
  border-left: 0;
}

#footer > section.split {
  display: -moz-flex;
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  -moz-flex-direction: column;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  padding: 0;
}

#footer > section.split > section {
  padding: 3rem 4rem 1rem 4rem;
  border-top: solid 2px var(--border-light);
}

#footer > section.split > section:first-child {
  padding: 5rem 4rem 1rem 4rem;
  border-top: 0;
}

#footer > section.split > section:last-child {
  padding: 3rem 4rem 3rem 4rem;
}

#footer > section.split.contact > section {
  display: -moz-flex;
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  -moz-align-items: center;
  -webkit-align-items: center;
  -ms-align-items: center;
  align-items: center;
  padding: 3.15rem 4rem;
}

#footer > section.split.contact > section > * {
  margin-bottom: 0;
}

#footer > section.split.contact > section > :first-child {
  -moz-flex-shrink: 0;
  -webkit-flex-shrink: 0;
  -ms-flex-shrink: 0;
  flex-shrink: 0;
  -moz-flex-grow: 0;
  -webkit-flex-grow: 0;
  -ms-flex-grow: 0;
  flex-grow: 0;
  width: 6rem;
}

#footer > section.split.contact > section > :last-child {
  -moz-flex-shrink: 1;
  -webkit-flex-shrink: 1;
  -ms-flex-shrink: 1;
  flex-shrink: 1;
  -moz-flex-grow: 1;
  -webkit-flex-grow: 1;
  -ms-flex-grow: 1;
  flex-grow: 1;
}

#footer > section.split.contact > section:first-child {
  padding: 4rem 4rem 3rem 4rem;
}

#footer > section.split.contact > section:last-child {
  padding: 3rem 4rem 4rem 4rem;
}

#footer > section.split.contact > section.alt {
  -moz-align-items: -moz-flex-start;
  -webkit-align-items: -webkit-flex-start;
  -ms-align-items: -ms-flex-start;
  align-items: flex-start;
}

#footer > section.split.contact > section.alt > :last-child {
  margin-top: -0.325rem;
}

#footer form label,
#footer h3,
#footer p {
  font-size: 0.8rem;
}

/* Copyright */

#copyright {
  color: var(--text-white);
  position: relative;
  color: rgba(255, 255, 255, 0.8);
  cursor: default;
  font-family: "Source Sans Pro", Helvetica, sans-serif;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.075em;
  line-height: 1.5;
  text-align: right;
  margin: 4rem auto 8rem auto;
  width: calc(100% - 4rem);
  max-width: 72rem;
  z-index: 2;
}

#copyright input,
#copyright select,
#copyright textarea {
  color: var(--text-white);
}

#copyright a {
  color: var(--text-white);
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

#copyright a:hover {
  border-bottom-color: transparent;
  color: var(--primary-color-light) !important;
}

#copyright strong,
#copyright b {
  color: var(--text-white);
}

#copyright h1,
#copyright h2,
#copyright h3,
#copyright h4,
#copyright h5,
#copyright h6 {
  color: var(--text-white);
}

#copyright blockquote {
  border-left-color: var(--text-white);
}

#copyright code {
  background: rgba(255, 255, 255, 0.075);
  border-color: var(--text-white);
}

#copyright hr {
  border-bottom-color: var(--text-white);
}

#copyright a {
  color: inherit;
  border-bottom-color: inherit;
}

#copyright ul {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

#copyright ul li {
  border-left: solid 2px;
  display: inline-block;
  line-height: 1;
  margin-left: 1rem;
  padding-left: 1rem;
}

#copyright ul li:first-child {
  border-left: 0;
  margin-left: 0;
  padding-left: 0;
}
