@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", "Liberation Sans", Arial, sans-serif;
  background-color: #EEE050;
  background-image: radial-gradient(rgba(238,238,150,0), #630);
  color: #000;
  font-size: 30px;
}

.step {
  position: relative;
  Xoutline: 3px dashed rgba(0,0,255,.5);
  Xbackground-color: rgba(255,0,0,.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 1200px;
  height: 900px;
  text-align: left;
  transition: 1.5s;
}

.step.future {
  opacity: 0;
  filter: blur(5px);
  pointer-events: none;
}
.step.active {
  opacity: 1;
}
.step.past {
  opacity: .5;
  filter: blur(1px);
}

.impress-on-end .step {
  &:is(.future, .past) {
    opacity: 1;
    filter: blur(0);
    pointer-events: all;
  }
}

h1, h2, h3 {
  font-weight: 900;
  font-size: 40px;
  text-shadow:
   -3px -3px  3px rgba(50,20,0,.5),
    2px  2px  2px rgba(255,255,255,.75);
  color: #321;
  transition: 1.5s;
  margin: 1em;
  strong {
    color: #900;
  }
}

ul, ol {
  padding: .5em 0 .5em 2em;
}
li ul {
  padding-bottom: 0;
}
li, p {
  padding: .5em 0;
}
li li:last-child {
  padding-bottom: 0;
}
li::marker {
  color: #631;
  font-weight: 900;
}

strong {
  font-weight: 900;
}

figure {
  display: inline-block;
  text-align: center;
  figcaption {
    font-size: 80%;
  }
}

#intro {
  pointer-events: none;
  h1 {
    text-align: center;
    font-weight: 400;
    font-size: 100px;
    body:not(.impress-on-intro) & {
      text-shadow: none;
    }
    strong {
      color: inherit;
    }
  }
}

#as-4-liberdades {
  padding-bottom: 250px;
}

#gratuidade {
  font-size: 80px;
  text-align: center;
}

#resumo-ind-soft.past {
  opacity: 0;
}

.ind-soft {
  img {
    position: absolute;
  }
  #filme-piratas {
    left: 10%;
    top: 0;
  }
  #filme-hackers {
    left: 18%;
    bottom: 0;
    transform: rotate(0) translate(0,0);
    transition: 2s;
  }
  #bota {
    left: 20%;
    top: 0;
    transform: scale(.8);
    transition: 1s 2s linear;
  }
  &.present, &.past {
    #filme-hackers {
      bottom: 0;
      transform: rotate(-90deg) translate(-122px,0);
    }
    #bota {
      transform: scale(1);
      heigth: 500px;
      left: 15%;
      top: 300px;
    }
  }
}

#resumo-rms {
  #rms {
    height: 100%;
    position: absolute;
    right: 0;
  }
  #copyleft {
    height: 20%;
    position: absolute;
    top: 30%;
    right: 10%;
    transition: 2s 3s;
  }
  &.present, &.past {
    #copyleft {
      height: 40%;
      position: absolute;
      top: 10%;
      right: 40%;
    }
  }
}

#resumo-entidades {
  >img {
    position: absolute;
    bottom: 90%;
    opacity: 0;
    height: 50%;
  }
  &.present, &.past {
    >img {
      bottom: 20%;
      opacity: 1;
    }
    #gnu {
      left: 31%;
      height: 25%;
      transition: 2s 0s;
    }
    #fsf {
      left: 5%;
      bottom: 5%;
      height: 20%;
      transition: 1.5s 1.5s;
    }
    #tux {
      left: 50%;
      height: 25%;
      transition: 1.5s 2s;
    }
    #osi {
      left: 65%;
      bottom: 4%;
      height: 23%;
      transition: 2s 2.5s;
    }
  }
}

.origem-sl {
  padding-bottom: 100px;
}
#origem-sl {
  h2 {
    small {
      font-size: .75;
      font-weight: 700;
      transition: 1.5s;
      .impress-on-origem-sl & {
        opacity: 0
      }
    }
  }
  #fsf {
    position: absolute;
    top: 68%;
    left: 22%;
    transform: rotate(-30deg);
  }
}

.origem-osi {
  padding-bottom: 200px;
  ul {
    width: 70%;
    height: 300px;
  }
}
#origem-osi {
  padding-bottom: 600px;
  img {
    position: absolute;
    right: 50px;
    bottom: 380px;
    width: 250px;
  }
}
.impress-on-origem-osi-1,
.impress-on-origem-osi-2,
.impress-on-origem-osi-3,
.impress-on-origem-osi-4,
.impress-on-origem-osi-5 {
  #origem-osi {
    opacity: 1;
    filter: blur(0);
  }
}

.impress-on-dfsg #debian {
  opacity: 1;
}

#dois-lados {
  p {
    position: absolute;
    top: 23%;
    right: 26%;
    opacity: 0.5;
    color: #420;
  }
}

#diferenca {
  .impress-on-diferenca & {
    filter: drop-shadow(0 0 10px #CA3) drop-shadow(0 0 10px #CA3);
  }
  .impress-on-oss-venceu & {
    opacity: 1;
    filter: blur(0);
  }
  h2 {
    font-size: 60px;
    text-shadow: none;
  }
}

#apagao.past {
  opacity: 0;
}

#oss-venceu, #bruce-perens {
  padding-top: 450px;
  text-align: center;
  strong {
    font-style: italic;
    font-size: 120%;
  }
  &::before {
    content: "";
    display: block;
    position: absolute;
    left: 12%;
    right: 12%;
    top: 3%;
    bottom: 3%;
    border: 10px dashed #C00;
    border-radius: 50%;
    filter: blur(3px);
  }
}

#oss-fail {
  img {
    position: absolute;
    right: 0;
    top: 350px;
    width: 300px;
  }
  ul {
    width: 90%;
    li {
      max-width: 800px;
      font-weight: bold;
      letter-spacing: -.03em;
    }
  }
  margin: 0;
  transition: 1s;
  &.present {
    text-shadow: 0 0 12px #EC4, 0 0 12px #EC4;
    filter: drop-shadow(0 0 12px #EC4);
  }
  &.past {
    margin: 10px 0 0 30px;
  }
}

#who-cares {
  padding-bottom: 50px;
  em {
    padding-bottom: .5em;
    filter: brightness(0);
  }
  strong {
    font-size: 180%;
  }
}
.impress-on-who-cares {
  #who-cares-2 {
    display: none;
  }
}

.impress-on-who-cares-2 {
  #who-cares {
    filter: blur(0);
    opacity: 1;
  }
  #who-cares-2 {
    animation: opacity-pulse infinite alternate 3s;
  }
}
@keyframes opacity-pulse {
  from { opacity: .3 }
  to { opacity: .9 }
}

.impress-on-end #who-cares-2 {
  opacity: 0;
}

#lei {
  p {
    font-size: 200%;
    text-align: center;
    line-height: .8em;
    big {
      display: block;
      font-size: 150%;
      line-height: .8em;
    }
  }
  &.present {
    font-size: 200%;
  }
}

#software-privativo {
  li {
    padding: .3em 0;
  }
}

#controle-sempre {
  .impress-on-controle-sempre & {
    filter: drop-shadow(0 0 10px #CA3) drop-shadow(0 0 10px #CA3);
  }
  .logos-old, .logos-new {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    top: 10%;
    bottom: 10%;
    text-align: center;
    transition: 1s var(--wait);
    img {
      max-width: 100%;
    }
  }
  .logos-old {
    --wait: .5s;
    left: 8%;
    width: 250px;
    img { height: 25% }
  }
  .logos-new {
    --wait: 2s;
    right: 5%;
    width: 300px;
    img { height: 20% }
  }
  &.future {
    .logos-old {
      left: -25%;
      opacity: 0;
    }
    .logos-new {
      right: -25%;
      opacity: 0;
    }
  }
}

#controle-4 {
  div {
    width: 1200px;
    padding-left: 40px;
    overflow: hidden;
  }
  img:last-child {
  }
}

#controle-6 {
  div { padding: 50px 0 }
  img {
    height: 550px;
    transform: translateY(50px);
    &:first-child {
      margin-left: -150px;
    }
    &:last-child {
      margin-right: -150px;
      transform: translateY(-50px);
    }
  }
}

#controle-7 {
  text-align: center;
  h2 {
    position: absolute;
    transform: rotate(15deg);
    top: 90px;
    right: 0;
    margin: 0;
    font-size: 38px;
    text-align: left;
  }
  img {
    Xmargin-left: 250px;
  }
}

#sl-salva {
  h2 {
    font-size: 60px;
  }
  > ul {
    font-size: 40px;
    text-shadow: 0 0 .15em #FE8, 0 0 .2em #FE8;
    i {
      text-shadow: none;
    }
  }
  /*.impress-on-end & {
    transform: rotateX(0deg) translate(-200px, 600px) !important;
  }*/
}

.alegacao strong {
  font-size: 80px;
}

#vida-x-propriedade {
  h2 {
    padding: .5em 1em;
    transform: rotate(-5deg);
  }
  &.present h2 {
    background: #FE8;
    box-shadow: 1px 3px 8px #4208, 0 0 4px #420;
    text-shadow: 0 0 0 #0000;
  }
  img {
    height: 350px;
    border-radius: 40px;
    background: #FFF;
  }
  #marie {
    margin-left: 30px;
    img {
      padding-top: 30px;
    }
  }
}

#coin {
  position: relative;
  display: inline-block;
  width: 500px;
  height: 510px;
}
#coin c {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 500px;
  height: 500px;
  background: #888; //#EC0;
  background-position: 50% 50%;
  background-size: 400px 400px;
  background-repeat: no-repeat;
  transform-style: preserve-3d;
  border-radius: 50%;
  animation: coinRotate 6s infinite linear;
}
#coin s {
  display: block;
  position: absolute;
  width: 400px;
  height: 400px;
  top: 300px;
  left: 230px;
  margin:auto;
  background: rgba(0,0,0,.3);
  border-radius: 50%;
  filter: blur(25px);
  animation: shadow-rotate 3s infinite linear;
}
@keyframes coinRotate {
  0% {
    transform: rotateY(-90deg);
    background-image: url(../sl-e-etica-2024/OSI.svg);
    filter: contrast(.3) sepia(1) saturate(4) brightness(1.5) hue-rotate(10deg);
  }
  50% {
    transform: rotateY(90deg);
    background-image: url(../sl-e-etica-2024/OSI.svg);
    filter: contrast(.3) sepia(1) saturate(6) brightness(0.5) hue-rotate(15deg);
  }
  50.1% {
    transform: rotateY(90deg);
    background-image: url(../sl-e-etica-2024/GNU.svg);
    filter: contrast(.3) sepia(1) saturate(4) brightness(1.5) hue-rotate(10deg);
  }
  100% {
    transform: rotateY(270deg);
    background-image: url(../sl-e-etica-2024/GNU.svg);
    filter: contrast(.3) sepia(1) saturate(6) brightness(0.5) hue-rotate(15deg);
  }
}
@keyframes shadow-rotate {
  0%   { transform: scale(1, .33) }
  50%  { transform: scale(1, .05) }
  100% { transform: scale(1, .33) }
}

#end {
  pointer-events: none;
  p {
    position: absolute;
    top: 0;
    left: 20px;
    opacity: 0;
    font-size: 600px;
    margin: 0;
    padding: 0;
    transition: 4s;
  }
  &.present, &.past {
    p {
      opacity: 1;
      font-size: 100px;
    }
  }
  a {
    position: absolute;
    right: 40px;
    bottom: 20px;
    color: #FFF;
    text-decoration: none;
    b {
      animation: link-bright 3s infinite linear;
    }
  }
}
@keyframes link-bright {
  0%   { text-shadow: 0 0 10px #FF4 }
  50%  { text-shadow: 0 0 20px #FF4 }
  100% { text-shadow: 0 0 10px #FF4 }
}
