/* 
-----------------------------------
EXTRUCTURE BASE
-----------------------------------
 **** DECLARAÇÃO DE VARIÁVEL
 **** ESTILOS GERAIS
 **** BODY
 **** HEADER
 **** INICAL PAGE (MAIN)
 **** FOOTER
 **** EXTRAS
 **** @MEDIA
 font-family: 'Open Sans', sans-serif;
*/

html,
body,
figure,
img,
div,
input,
textarea,
p,
h1,
h2,
h3,
h4,
h5,
h6,
ul,
li,
a,
main {
  margin         : 0;
  padding        : 0;
  outline        : 0;
  box-sizing     : border-box;
  list-style     : none;
  text-decoration: none;
}

button {
  cursor: pointer;
}

/* =========COLOR DEFAULT========= */
:root {
  --colorTextPrimary  : #000;
  --colorTextSecondary: #636363;
  --bg_2              : #0e0e0e;
  --bg_button         : #1a1a1a;
  --bg                : #999FFF;
  --button            : #999fff;
  --border-color      : #bdc1fc9f;
  --container         : #fff;
  --text-footer       : #e7e7e7;
  --hover-social      : #1a1a1adf;
  --light-gray        : #aeaeae;
}

/* Para usar essa cores no projeto: 
  ex: {
      background: var(--background);
      color: var(--text);
  }
*/

/* =========BODY========= */
.column {
  flex-basis: 49%;
}

.hidden {
  display: none;
}

body {
  font-family: 'Open Sans', sans-serif;
}

/* =========HEADER (CABEÇALHO)========= */
header {
  background-color: var(--bg);
  padding         : 20px 20px 0;
}

header .container {
  background-color: var(--container);

}

header .column figure {
  display        : flex;
  justify-content: center;
  align-items    : center;
}

header .line {
  align-items: center;
}

header .column-left {
  flex-basis: 30%;
}

header .column-right {
  flex-basis         : 60%;
  text-align         : center;
  position           : relative;
  right              : 9000px;
  animation-name     : textLeft;
  animation-duration : 1.5s;
  animation-delay    : 2s;
  animation-fill-mode: forwards;
}


header .column img {
  border-radius      : 100%;
  max-width          : 40%;
  padding            : 10px;
  position           : relative;
  right              : 9000px;
  animation-name     : imgRight;
  animation-duration : 1.5s;
  animation-delay    : 0.5s;
  animation-fill-mode: forwards;

  filter    : drop-shadow(0px 0px 10px #bdc1fc);
  transition: 0.5s ease;
}

header .column img:hover {
  filter: drop-shadow(0px 0px 15px #bdc1fc);
}

header .column h1 {
  font-size: 2rem;
  color    : var(--colorTextPrimary);
}

header .column p {
  font-size: 1rem;
  color    : var(--colorTextSecondary);
}

header .column ul li {
  margin-top: 10px;
}

header .column ul li a {
  font-size: 0.92rem;
  color    : var(--colorTextPrimary);
}

/* INICAL PAGE (MAIN) */
main .column {
  padding: 20px;
}

main .column section {
  border-bottom: 1px solid var(--border-color);
  margin       : 0 0 20px;
  min-height   : 288px;
}

main .column section h2 {
  font-size: 1.3rem;
  margin   : 0 0 15px;
  color    : var(--colorTextPrimary);
}

main .column section p {
  font-size  : 0.9rem;
  color      : var(--colorTextSecondary);
  line-height: 1.5;
  margin     : 0 0 15px;
}

main .column section ul li {
  line-height: 1.5;
  color      : var(--colorTextPrimary);
}

main .column section ul li h3 {
  font-size: 1.1rem;
}

main .column section ul li strong {
  font-size  : 0.9rem;
  font-weight: 500;
  margin     : 5px 0 10px;
  display    : inline-block;
}

/* =========FOOTER (RODA-PÉ)=========*/
footer {
  background-color: var(--bg);
  min-height      : 74.7vh;
}

footer .container nav .social-network {
  height: 67vh;
}

footer nav ul li a {
  color: var(--text-footer);
}

footer nav .info-contact {
  margin : 0 0 15px;
  padding: 30px 0 15px 15px;
}

footer nav .info-contact li a {
  line-height: 1.7;
}

footer nav .social-network {
  border-top: solid 1px var(--border-color);
  margin    : 20px 0 0;
  padding   : 50px 0 0;
  text-align: center;
}

footer nav .social-network li {
  margin    : 15px 28px;
  text-align: center;
  display   : inline-block;
}

footer nav .social-network li a {
  transition: 0.5s ease;
}

footer nav .social-network li a:hover {
  color: var(--hover-social);
}

footer nav .social-network li a i {
  font-size: 40px;
  margin   : 0 20px 15px;
}

footer .flag {
  display    : flex;
  justify-content:flex-end;
}

footer .flag img {
  width : 50px;
  margin: 0 5px;
}

/* ==============EXTRAS===============*/
.activity-dark {
  width  : 50px;
  height : 50px;
  display: none;
}

header .container {
  position: relative;
}

label {
  position        : absolute;
  top             : 10px;
  right           : 10px;
  width           : 52px;
  height          : 30px;
  background-color: var(--bg_button);
  border-radius   : 14px;
  padding         : 5px 5px;
  box-sizing      : border-box;
  cursor          : pointer;
}

label span {
  width           : 20px;
  height          : 20px;
  display         : block;
  background-color: var(--button);
  border-radius   : 100%;
  transition      : 0.5s ease-out;
}

.activity-dark:checked~.dark-mode label span {
  margin-left: 21px;
}


.activity-dark:checked~.dark-mode {
  --bg                : #1a1a1a;
  --hover-social      : #696969;
  --colorTextPrimary  : #e6e6e6bd;
  --colorTextSecondary: #696968;
  --border-color      : #ffffff3a;
  --button            : #999fff;
  --bg_button         : #e6e6e6;
}

.activity-dark:checked~.dark-mode header {
  background-color: var(--bg);
}

.activity-dark:checked~.dark-mode header .container {
  background-color: var(--bg_2);
}

.activity-dark:checked~.dark-mode .container {
  background-color: var(--bg_2);
}

.activity-dark:checked~.dark-mode main {
  background-color: var(--bg);
}

.activity-dark:checked~.dark-mode footer nav .info-contact {
  margin : 0 0 15px;
  padding: 0 0 15px 15px;
}

/* ========= @keyframes aniamtion ========= */
@keyframes aumentarLargura {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes aumentarAltura {
  from {
    height: 0;
  }

  to {
    height: 100%;
  }
}

@keyframes imgRight {
  0% {
    right: 900px;
    top  : 0px;
  }

  100% {
    right: 0px;
    top  : 0px;
  }
}

@keyframes textLeft {
  0% {
    left: 900px;
    top : 0px;
  }

  100% {
    left: 0px;
    top : 0px;
  }
}


/* ========= @MEDIA DESKTOP ========= */
@media only screen and (min-width: 768px) {

  .container {
    width    : 100%;
    max-width: 1125px;
    margin   : 0 auto;
    padding  : 30px;
  }

  label {
    right: 40px
  }

  header {
    padding: 30px 0 0;
  }

  header .column img {
    max-width: 250px;
  }

  header .column {
    text-align: start;
  }

  header .column ul li a {
    font-size: 1rem;
  }

  header .column ul {
    text-align: start;
  }

  .line {
    display        : flex;
    flex-wrap      : wrap;
    align-items    : flex-start;
    justify-content: space-between;
  }

  main .column {
    padding: 0;
  }

  main .column section {
    /* border  : 2px solid var(--border-color); */
    border  : 2px solid transparent;
    padding : 20px;
    position: relative;
  }

  main .column section span {
    position: absolute;
    display : block;
    width   : 0;
    height  : 0;
    border  : 2px solid transparent;
  }

  main .column section .topo-direita {
    top                : -2px;
    left               : -2px;
    animation-name     : aumentarLargura, aumentarAltura;
    animation-duration : 1s, 1s;
    animation-delay    : 2s, 3s;
    animation-fill-mode: forwards;
    border-top-color   : var(--border-color);
    ;
    border-right-color: var(--border-color);
    ;
  }

  main .column section .baixo-esquerda {
    bottom             : -2px;
    right              : -2px;
    animation-name     : aumentarLargura, aumentarAltura;
    animation-duration : 1s, 1s;
    animation-delay    : 4s, 5s;
    animation-fill-mode: forwards;
    border-bottom-color: var(--border-color);
    ;
    border-left-color: var(--border-color);
    ;
  }

  footer nav .social-network {
    display        : flex;
    justify-content: center;
  }

  footer nav .social-network li {
    margin    : 0 14px;
    text-align: center;
    display   : initial;
  }

  footer .container nav .social-network {
    height: 45vh;
  }
}

@media only screen and (min-width: 991px) {

  header .column-right {
    flex-basis         : 70%;
    position           : relative;
    right              : 9000px;
    animation-name     : textLeft;
    animation-duration : 1.5s;
    animation-delay    : 2s;
    animation-fill-mode: forwards;
  }
}