:root {
  --jornal-red: rgb(255, 66, 66);
  --jornal-black: rgb(0, 0, 0);
  --jornal-transblack: rgba(0, 0, 0, 0.1);
  --jornal-white: rgb(255, 255, 255);
  --jornal-transwhite: rgba(255, 255, 255, 0.25);
}

/* trivial body */

.trivial-body {
  width: 50vw;
  height: 100vh;
  padding-top: 18vh;
  background-color: var(--jornal-red);
  position: relative;
}

@media (max-width: 992px) {
  .trivial-body {
    padding-top: 15vh;
    width: 100vw;
    height: 100vh;
  }
}

/* close button */

.close-btn {
  position: absolute;
  top: 30px;
  left: 30px;
  background: none;
  border: none;
  font-size: 30px;
  color: var(--jornal-white);
}

/* type */

h3.small {
  font-family: "HelveticaNow";
  font-size: 12px;
  line-height: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  pointer-events: none;
}

p.medium {
  font-family: "georgiapro", sans-serif;
  font-size: 32px;
  line-height: 38px;
  letter-spacing: 0.5px;
  pointer-events: none;
  margin-bottom: 1.25em;
}

label.mediumsmall {
  font-family: "georgiapro", sans-serif;
  font-size: 20px;
  line-height: 22px;
  margin-bottom: 1em;
}

/* trivial content */

/* progress bar */

.progress {
  height: 6px !important;
  background-color: var(--jornal-transblack);
}

.progress-bar {
  background-color: var(--jornal-black);
  width: 1%;
}

/* form */

.form-check {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 22px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.form-check input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkmark {
  position: absolute;
  top: 1.5px;
  left: 0;
  height: 16px;
  width: 16px;
  background-color: none;
  border: 1px solid var(--jornal-black);
  border-radius: 50%;
  transition: all 0.15s ease-out;
}

.form-check:hover input ~ .checkmark {
  background-color: var(--jornal-transwhite);
}

.form-check input:checked ~ .checkmark {
  background-color: var(--jornal-transwhite);
  border: 1px solid var(--jornal-white);
}

.checkmark:after {
  content: "";
  position: absolute;
  opacity: 0;
  transition: opacity 0.15s ease-out;
}

.form-check input:checked ~ .checkmark:after {
  opacity: 1;
}

.form-check .checkmark:after {
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--jornal-white);
}

section:not(:first-of-type) {
  display: none;
}


/* trivial navigation */

.navcontainer {
  position: absolute;
  bottom: 30px;
  left: 30px;
}

button.back::before {
  content: "←";
  padding-right: 0.5em;
}

button.next::before {
  content: "|";
  padding-right: 1em;
  pointer-events: none;
  cursor: default;
}

button.next::after {
  content: "→";
  padding-left: 0.5em;
}

button.back,
button.next {
  background: none;
  border: none;
  font-size: 14px;
  color: var(--jornal-white);
}

.back,
.next {
  opacity: 0.25;
  cursor: default;
  pointer-events: none;
  transition: opacity 0.25s ease-out;
}

.active {
  opacity: 0.75;
  cursor: pointer;
  pointer-events: auto;
}

.active:hover {
  opacity: 1;
}

/* finished trivial page */

#email {
  position: relative;
  width: 400px;
  max-width: 100%;
  margin-bottom: 2.5vh;
}

#email input {
  width: 100%;
  background-color: transparent;
  border: 1px solid var(--jornal-black);
  padding: 10px 100px 10px 20px;
  font-family: "georgiapro", sans-serif;
  font-size: 20px;
  line-height: 22px;
  border-radius: 2px;
  transition: all 0.4s ease-out;
}

#email input:hover {
  background-color: var(--jornal-transwhite);
}

#email input:focus {
  background-color: var(--jornal-transwhite);
  border: 1px solid var(--jornal-white);
  outline-width: 0;
}

#email button {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  border: 0;
  border-radius: 2px;
  background: var(--jornal-black);
  color: var(--jornal-white);
  padding: 0 20px;
  z-index: 2;
  font-family: "HelveticaNow", Arial;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .5px;
}

::placeholder {
  font-family: "georgiapro", sans-serif;
  font-size: 20px;
  line-height: 22px;
  color: rgba(0, 0, 0, 0.4);
}

.emailpref{
  display: flex;
  flex: row;
  flex-wrap: wrap;
  width: 100%;
  align-content: flex-start;
}

.emailpref input[type="checkbox"] {
  filter: contrast(5) grayscale(1);
}

.emailpref label {
  padding-left: 0.75em;
  max-width: 90%;
  font-family: "HelveticaNow";
  font-size: 14px;
  line-height: 18px;
  letter-spacing: 0.5px;
  color: var(--jornal-black);
}

.emailpref label a {
  color: var(--jornal-black);
}

#mail-form .invalid-feedback {
  color: var(--jornal-white);
}

.invalid-feedback.absolute {
  position: absolute;
  top: 50px;
}

.invalid-feedback {
  width: 100%;
}

.oculted {
  display: none !important;
}

.lds-ellipsis {
  display: inline-block;
  position: relative;
  width: 20px;
  height: 20px;
  margin: auto;
  transform: translateX(-50%) scale(0.5);
}
.lds-ellipsis div {
  position: absolute;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

@media (max-width: 1200px) {

  p.medium {
    font-size: 2.9vw;
    line-height: 3.4vw;
  }

  label.mediumsmall,
  #email input,
  ::placeholder {
    font-size: 1.9vw;
    line-height: 2.2vw;
  }
}

@media (max-width: 992px) {


  p.medium {
    font-size: 38px;
    line-height: 42px;
  }

  label.mediumsmall,
  #email input,
  ::placeholder {
    font-size: 20px;
    line-height: 22px;
  }
}


@media (max-width: 1200px) {

  .close-btn {
    top: calc(50vw / 24);
    left: calc(50vw / 12);
    padding: 0;
    margin-left: -5px;
    box-sizing: border-box;
  }

  .navcontainer {
    padding: 0;
    box-sizing: border-box;
    margin-left: -0.5em;
    left: calc(50vw / 12);
    bottom: calc(50vw / 12);
  }
}

@media (max-width: 992px) {

  .close-btn {
    top: calc(100vw / 24);
    left: calc(100vw / 12);
    padding: 0;
    margin-left: -5px;
    box-sizing: border-box;
  }

  .navcontainer {
    padding: 0;
    box-sizing: border-box;
    margin-left: -0.5em;
    left: calc(100vw / 12);
    bottom: calc(100vw / 12);
  }
}

@media (max-width: 576px) {
  h3.small,
  #email button,
  .emailpref label {
    font-size: 9px;
    letter-spacing: 1px;
    line-height: 10px;
    font-weight: 700;
  }

  p.medium {
    font-size: 24px;
    line-height: 28px;
  }

  label.mediumsmall,
  #email input,
  ::placeholder {
    font-size: 18px;
    line-height: 20px;
  }
}

@media (max-height: 600px) {
  .close-btn {
    top: 5vh;
    left: 5vh;
  }

  .trivial-body {
    padding-top: 10vh;
  }

  h3.small,
  .emailpref label {
    font-size: 2.5vh;
    line-height: 2.5vh;
  }

  .form-check,
  #email {
    margin-bottom: 20px;
  }

  p.medium {
    font-size: 6vh;
    line-height: 6.5vh;
    margin-bottom: 2vh;
  }

  label.mediumsmall,
  #email input,
  ::placeholder {
    font-size: 4vh;
    line-height: 4.5vh;
    margin-bottom: 1%;
  }

  .navcontainer {
    bottom: 5vh;
    left: 5vh;
  }
}

@media (max-width: 390px) {
  ::placeholder {
    font-size: 4vw;
    line-height: 4vw;
  }

  #email input {
    padding: 3vw 100px 3vw 3vw;
  }
}

/* loading aniamtion */

.lds-ellipsis div:nth-child(1) {
  left: 8px;
  animation: lds-ellipsis1 0.6s infinite;
}
.lds-ellipsis div:nth-child(2) {
  left: 8px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(3) {
  left: 32px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(4) {
  left: 56px;
  animation: lds-ellipsis3 0.6s infinite;
}
@keyframes lds-ellipsis1 {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes lds-ellipsis3 {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}
@keyframes lds-ellipsis2 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(24px, 0);
  }
}
