/* paleta https://coolors.co/c1dbe3-c7dfc5-f6feaa-fce694-373737 */
:root {
  --color-primary: #2563eb;
  --color-secondary: #f59e42;
  --color-accent: #10b981;
  --color-background: #f3f4f6;
  --color-surface: #ffffff;
  --color-muted: #6b7280;
  --color-error: #ef4444;
  font-size: 62.5%;
  interpolate-size: allow-keywords;
}

body {
  background-color: #f5f5f5;
  margin: 0;
  font-family: "Inter", sans-serif;
}

header {
  background-color: var(--color-primary);
  padding: 20px;
  color: white;
}

h1 {
  font-size: 3rem;
  text-align: center;
}

section {
  background-color: var(--color-surface);
  border: 1px solid var(--color-muted);
  border-radius: 10px;
  width: 80%;
  margin: 20px auto;
  overflow: hidden;
  height: 70px;
  transition: height 0.5s ease-in;

  h2 {
    cursor: pointer;
  }
}

section.open {
  height: auto;
}

hr {
  margin: 60px 100px;
  border-color: 1px solid var(--color-muted);
}

h2 {
  font-size: 2.5rem;
  color: white;
  text-align: center;
  background-color: var(--color-muted);
  margin-top: 0;
  padding: 20px;
  border-radius: 8px 8px 0 0;
}

h3{
  font-size: 2rem;
  margin: 5px 0 2px;
}

p, pre {
  font-size: 2rem;
}

.align-x {
  .container {
    background: var(--color-surface);
    padding: 0px 20px;
    margin: 20px 100px;
    border: 1px dashed #bbb;
    height: 700px;
    display: grid;
    gap: 10px;
    align-content: start;
    grid-template-columns: 20% 20% 20%;
  }

  .space-evenly {
    justify-content: space-evenly;
  }

  .space-around {
    justify-content: space-around;
  }

  .space-between {
    justify-content: space-between;
  }

  .start {
    justify-content: start;
  }

  .end {
    justify-content: end;
  }

  .center {
    justify-content: center;
  }

  .stretch {
    grid-template-columns: auto 20% 20%;
    justify-content: stretch;
  }
}

.bloco {
  background-color: var(--color-accent);
  width: 100%;
  height: 150px;
  margin: auto;
  font-size: 2rem;
  display: grid;
  place-content: center;
}

.explicacao {
  background-color: #99fada;
  border: 1px solid #10b981;
  margin: 0 100px;
  padding: 0 20px;
}

.codigo {
  background-color: #373737;
  margin: 0px 100px;
  padding: 5px 20px;
  color: whitesmoke
}

.propriedade {
  color: #FCE694;
}

.seletor {
  color: #C7DFC5;
}

.valor {
  color: #F6FEAA;
}

.align-y{
  .container {
    background: var(--color-surface);
    padding: 0px 20px;
    margin: 20px 100px;
    border: 1px dashed #bbb;
    height: 800px;
    display: grid;
    gap: 10px;
    grid-template-columns: 20% 20% 20%;
    justify-content: center;
    transition: all 2s;
  }

  .start {
    align-content: start;
  }

  .end {
    align-content: end;
  }

  .center {
    align-content: center;
  }

  .space-around {
    align-content: space-around;
  }

  .space-between {
    align-content: space-between;
  }

  .space-evenly {
    align-content: space-evenly;
  }
}

.align-all {
  .container {
    background: var(--color-surface);
    padding: 0px 20px;
    margin: 20px 100px;
    border: 1px dashed #bbb;
    height: 800px;
    display: grid;
    gap: 10px;
    grid-template-columns: 20% 20% 20%;
  }

  .place-start {
    place-content: start;
  }

  .place-center {
    place-content: center;
  }

  .place-end {
    place-content: end;
  }

  .place-space-between {
    place-content: space-between;
  }

  .place-space-around {
    place-content: space-around;
  }

  .place-space-evenly {
    place-content: space-evenly;
  }

  .place-start-center {
    place-content: start center;
  }
} 
  
/* Back button CSS */

header {
  a {
    height: 80px;
    width: 80px;
    font-size: 4rem;
    position: fixed;
    top: 18px;
    display: grid;
    place-content: center;
    line-height: 4rem;
    text-decoration: none;
  }

  .glow-on-hover {
      /* width: 220px;
      height: 50px; */
      border: none;
      outline: none;
      color: #fff;
      background: #111;
      cursor: pointer;
      /* position: relative; */
      z-index: 0;
      border-radius: 10px;
  }
  
  .glow-on-hover:before {
      content: '';
      background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
      position: absolute;
      top: -2px;
      left:-2px;
      background-size: 400%;
      z-index: -1;
      filter: blur(5px);
      width: calc(100% + 4px);
      height: calc(100% + 4px);
      animation: glowing 20s linear infinite;
      opacity: 0;
      transition: opacity .3s ease-in-out;
      border-radius: 10px;
  }
  
  .glow-on-hover:active {
      color: #000
  }
  
  .glow-on-hover:active:after {
      background: transparent;
  }
  
  .glow-on-hover:hover:before {
      opacity: 1;
  }
  
  .glow-on-hover:after {
      z-index: -1;
      content: '';
      position: absolute;
      width: 100%;
      height: 100%;
      background: #111;
      left: 0;
      top: 0;
      border-radius: 10px;
  }
  
  @keyframes glowing {
      0% { background-position: 0 0; }
      50% { background-position: 400% 0; }
      100% { background-position: 0 0; }
  }
}