/*
Theme Name: GelatinGlass
Theme URI: https://velhobit.com.br/
Author: the Rodrigo Portillo Company
Author URI: https://velhobit.com.br
Description: Suas variações são criadas exclusivamente para os blogs de Rodrigo Portillo.
Version: 3.0
Text Domain: GelatinGlass
*/
/**colors**/

@import url("clean.css");
@import url("colors.css");
@import url("base.css");

.glass {
  background: transparent;
  position: relative;

  .ice-layer,
  .liquid-layer,
  .content-layer,
  .border-layer {
    position: absolute;
    border-radius: 100px;
    inset: 0;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
  }

  .ice-layer {
    backdrop-filter: contrast(150%) brightness(100%) saturate(50%) blur(6px);
    margin: 1.5px;
    z-index: 2;

    &.low-ice {
      backdrop-filter: contrast(150%) brightness(100%) saturate(50%) blur(3px);
    }
  }

  .liquid-layer {
    border: 2px solid color(display-p3 1 1 1 / 0.2);
    z-index: 1;

    backdrop-filter: url(#glass-distortion) contrast(60%) brightness(110%)
      saturate(500%);
    overflow: hidden;
    isolation: isolate;

    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;

    mask-size: cover;
    -webkit-mask-size: cover;
  }

  .content-layer {
    backdrop-filter: blur(1px);
    z-index: 2;
  }
}
.wrap {
  margin: 0 auto;
  max-width: 1200px;
}

/* top header */
.site > .header {
  background-color: var(--velhobit-color-light);
}
.site > .header .wrap {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  padding: 0;
  box-sizing: border-box;
  left: 0;
  right: 0;
  top: 0;
  height: 40px;
  z-index: 10;
}
.site > .header .titulo {
  overflow: hidden;
  white-space: nowrap;
  max-width: 64px;
  transition: all 0.7s ease-out;
  display: flex;
  justify-content: flex-start;
}
.site > .header .titulo h1 {
  opacity: 0;
  max-width: 0;
  margin: 0;
  transition: all 0.5s;
  font-family: lores-12, sans-serif;
  font-weight: 700;
  font-style: normal;
  text-transform: uppercase;
  font-size: 1em;
  line-height: 2.3em;
}
.site > .header .titulo img {
  padding: 5px;
  height: 33px;
  width: 33px;
  text-align: center;
  cursor: pointer;
}
.site > .header .titulo:hover {
  max-width: 500px;
}
.site > .header .titulo:hover h1 {
  opacity: 1;
  max-width: 500px;

  margin-right: 10px;
}
.site > .header .icone {
  border-radius: 100px;
  font-size: 20px;
  line-height: 26px;
  padding: 4px;
  height: 24px;
  width: 24px;
  text-align: center;
  margin: 15px 10px;
  transition: 0.3s all;
}
.site > .header .icone:hover,
.site > .header .icone:active {
  box-shadow:
    0 24px 38px 3px rgba(0, 0, 0, 0.14),
    0 9px 46px 8px rgba(0, 0, 0, 0.12),
    0 11px 15px -7px rgba(0, 0, 0, 0.2);
}

.site > .header .nav {
  display: flex;
  list-style: none;
  background-color: none;
}
.site > .header .nav a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.01em;
  font-family:
    SF Pro Text,
    SF Pro Icons,
    Helvetica Neue,
    Helvetica,
    Arial,
    sans-serif;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--r-globalnav-color);
  position: relative;
  z-index: 1;
  padding: 5px 13px;
  height: 33px;
  background: no-repeat;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  transition: color 0.32s cubic-bezier(0.4, 0, 0.6, 1);
}
.site > .header .nav a:hover {
  text-decoration: none;
  color: var(--velhobit-color-primary-dark);
}

.header .search-form {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  overflow: hidden;
  transition: 0.5s all;
}
.header .search-form.show {
  max-width: 300px;
}
.header .search-form input {
  border-radius: 50px;
  border: none;
  background-color: var(--velhobit-color-card);
  padding: 5px 16px;
  font-size: 16px;
  height: 33px;
  margin-top: 0;
  margin-right: 3px;
  transition: 0.3s all;
  margin-top: 3px;
}
.header .search-form input:focus {
  background-color: var(--velhobit-color-card);
  color: var(--velhobit-color-dark-2);
  outline: none;
}
.header .search-form button {
  color: var(--velhobit-color-medium);
  font-size: 20px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header .search-form button:focus,
.header .search-form button:hover {
  color: var(--velhobit-color-primary);
  outline: none;
  border: none;
}

.container {
  max-width: 640px;
  margin: 1em auto;
}

.card {
  background-color: var(--velhobit-color-card);
  display: flex;
  border-radius: 6px;
  margin: 1em 0;
  transition: box-shadow ease-out .3s;
  cursor: pointer;
}

.card:hover {
  box-shadow: 0 .3rem 1rem rgba(0,0,0,.1), 0 .1rem .3rem rgba(0,0,0,.1);
}

.card .miniatura {
  padding: 0.5em;
}

.card .miniatura a {
  display: block;
  border-radius: 50%;
  height: 48px;
  width: 48px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--velhobit-color-light);
}
.card a {
  color: var(--velhobit-color-text);
}
.card a img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.card .contexto {
  padding: 0.5em;
}

.card .contexto h1 {
  padding-left: 0;
  line-height: 1.47059;
  font-weight: bold;
  letter-spacing: -0.022em;
  font-family:
    "SF Pro Text", "SF Pro Icons", "Helvetica Neue", "Helvetica", "Arial",
    sans-serif;
  font-size: 16px;
  color: var(--velhobit-color-text);
  font-style: normal;
  margin: 0;
}
.card .contexto h2 {
  font-size: 13px;
  color: var(--velhobit-color-text);
  margin: 0;
  font-weight: 400;
}
.card .contexto .excerpt p {
  font-size: 14px;
}

/** single **/
.single .cabecalho .miniatura img {
  margin: 0 auto;
  display: block;
  border-radius: 50%;
  width: 64px;
  height: 64px;
  margin-bottom: 0.5em;
  transition: transform .5s ease-out;
}
.single .cabecalho .miniatura img:hover{
  transform: scale(1.9);
}
.single .cabecalho header {
  text-align: center;
}

.single .cabecalho header h2 {
  font-weight: normal;
  font-size: 14px;
  margin-bottom: 0;
}

.single .cabecalho header h1 {
  margin-bottom: 1em;
  font-size: 1.3em;
}

.single .conteudo h2,
.single .conteudo h3,
.single .conteudo h4 {
  font-size: 1em;
  font-weight: normal;
}

.single .conteudo h2 {
  font-weight: bold;
}

.single .conteudo img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0.5em auto;
  border-radius: 2px;
}

.single .conteudo p {
  margin-bottom: 0.5em;
}

.single .conteudo img {
  margin: 0;
}
.single .conteudo figure {
  margin: 0.5em auto;
}

.sobre_o_autor {
  background-color: var(--velhobit-color-card);
  border: 1px solid var(--velhobit-color-light-gray);
  display: flex;
  border-radius: 6px;
  margin: 1em 0;
}
.sobre_o_autor .foto {
  padding: 0.5em;
}
.sobre_o_autor .foto a {
  display: block;
  border-radius: 6px;
  height: 64px;
  width: 64px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--velhobit-color-light);
}
.sobre_o_autor a img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}
.sobre_o_autor .desc {
  padding: 0.5em;
  padding-left: 0;
  font-size: 13px;
}
.sobre_o_autor .desc h3 {
  font-size: 14px;
  margin: 0;
  margin-bottom: 5px;
}
.sobre_o_autor .desc p {
  margin: 0;
}

/** footer **/
.menu-footer {
  display: block;
  position: fixed;
  bottom: 0.5rem;
  left: 0.5em;
  right: 0.5em;

  .base {
    display: flex;
    .glass {
      border-radius: 50px;
      border-radius: 4rem;
      box-shadow:
        0 1rem 2rem rgba(0, 0, 0, 0.1),
        0.1rem 0.1rem 0.1rem rgba(0, 0, 0, 0.1);
      border-bottom: 1px solid color(display-p3 1 1 1 / 0.85);
      border-left: 1px solid color(display-p3 1 1 1 / 0.85);
      .content-layer {
        background: var(--bg-layer);
        padding: 0.4rem 1rem;
        position: relative;
        height: auto;
        box-shadow: inset 0 -0.6rem 1rem rgba(0, 0, 0, 0.1);
      }
    }
  }
}

.menu-footer a {
  font-size: 1em;
  padding: 0.3em 0.45em;
  display: inline-block;
  color: var(--velhobit-color-text);
}
.menu-footer a:last-child {
  border-right: none;
}

/**fab-site**/
.area_menu {
  position: fixed;
  left: 0;
  right: 0.5rem;
  bottom: 0.5rem;
  overflow: visible;
  height: 2px;
  z-index: 1000;
}

.area_menu {
  display: none;
}

.area_menu .wrap {
  position: relative;
}
.area_menu .wrap {
  max-width: 500px;
}
.fab-site {
  position: absolute;
  bottom: 0;
  right: 0;
}
.fab-site:hover,
.fab-site:active {
  box-shadow:
    0 24px 38px 3px rgba(0, 0, 0, 0.14),
    0 9px 46px 8px rgba(0, 0, 0, 0.12),
    0 11px 15px -7px rgba(0, 0, 0, 0.2);
}
.fab-site a {
  cursor: pointer;
  width: 48px;
  height: 48px;
  border: none;
  font-size: 24px;
  border-radius: 200px;
  color: var(--velhobit-color-text);
  text-align: center;
  line-height: 2.1em;
  -webkit-transition: 0.2s ease-out;
  -moz-transition: 0.2s ease-out;
  transition: 0.2s ease-out;
}
.fab-site a:focus {
  outline: none;
}
.fab-site a.main {
  position: absolute;
  display: block;
  width: 60px;
  height: 60px;
  right: 0;
  bottom: 0;
  z-index: 100;
  line-height: 2.6em;
  text-align: center;

  .glass {
    width: 60px;
    height: 60px;
    border-radius: 200px;
    box-shadow:
      0 1rem 2rem rgba(0, 0, 0, 0.1),
      0.1rem 0.1rem 0.1rem rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid color(display-p3 0.005 1 0.912 / 0.7);
    border-left: 1px solid color(display-p3 0.005 1 0.912 / 0.7);
  }

  .content-layer {
    position: relative;
    background: color(display-p3 0.116 0.92 0.849 / 0.7);
  }
}
.fab-site ul {
  position: absolute;
  bottom: 0;
  right: 0;
  padding: 0;
  padding-right: 5px;
  margin: 0;
  list-style: none;
  z-index: 10;
  -webkit-transition: 0.2s ease-out;
  -moz-transition: 0.2s ease-out;
  transition: 0.2s ease-out;
}
.fab-site ul li {
  display: flex;
  justify-content: flex-end;
  position: relative;
  margin-bottom: -10%;
  opacity: 0;
  max-height: 0;
}
.fab-site ul li a {
  white-space: nowrap;
  display: block;
  line-height: normal;
  height: auto;
  width: auto;
  margin-right: 0;
  padding: 0.8rem 1.5rem;
  backdrop-filter: blur(10px) saturate(2.5) contrast(1.3) brightness(0.5);
  border-radius: 4rem;
  box-shadow: 0 0.2rem 0.4rem #00000040;
  border-bottom: 1px solid #ffffffa3;
  border-left: 1px solid #ffffffa3;
  font-size: 16px;
  opacity: 1;
  -webkit-transition: 0.2s ease-out;
  -moz-transition: 0.2s ease-out;
  transition: 0.2s ease-out;
  color: white;
}
.fab-site.show a.main,
.fab-site.show a.main {
  outline: none;
  border-radius: 200px;
  box-shadow: 0 -2rem 15rem 5rem rgba(0, 0, 0, 0.75);
  color: white;
  .content-layer {
    position: relative;
    background: color(display-p3 0 0.647 0.59 / 0.8);
  }
}
.fab-site.show a.main + ul,
.fab-site.show a.main + ul {
  bottom: 70px;
}
.fab-site.show a.main + ul li,
.fab-site.show a.main + ul li {
  margin-bottom: 10px;
  opacity: 1;
  display: flex;
  justify-content: flex-end;
  max-height: 100px;
}

body {
  padding-bottom: 2em;
}

.skeleton {
  width: 100%;
  min-height: 64px;
  background: rgba(130, 130, 130, 0.2);
  background: -webkit-gradient(
    linear,
    left top,
    right top,
    color-stop(8%, rgba(130, 130, 130, 0.2)),
    color-stop(18%, rgba(130, 130, 130, 0.3)),
    color-stop(33%, rgba(130, 130, 130, 0.2))
  );
  background: linear-gradient(
    to right,
    rgba(130, 130, 130, 0.2) 8%,
    rgba(130, 130, 130, 0.3) 18%,
    rgba(130, 130, 130, 0.2) 33%
  );
  background-size: 800px 100px;
  animation: wave-lines 2s infinite ease-out;
}

.hide {
  display: none !important;
}

@keyframes wave-lines {
  0% {
    background-position: -468px 0;
  }
  100% {
    background-position: 468px 0;
  }
}

@media only screen and (min-device-width: 320px) and (max-device-width: 920px) and (-webkit-min-device-pixel-ratio: 1),
  screen and (max-width: 920px) {
  body,
  html {
    max-width: 100vw;
    overflow: hidden;
    overflow-y: auto;
  }
  .wrap {
    max-width: 95%;
  }

  .container {
    max-width: 95%;
  }

  .desktop-only {
    display: none !important;
  }

  .area_menu {
    display: block;
  }
}

/**Fix Code**/
.cm-s-ambiance .CodeMirror-linenumber {
  color: color(display-p3 1 1 1 / 0.5) !important;
}

.CodeMirror {
  font-size: 14px !important;
}
.my-syntax-highlighter .CodeMirror pre {
  height: 18px;
}
.my-syntax-highlighter {
  background: #5f5f5f;
  max-width: 764px;
  padding: 0.3rem;
  border-radius: 0.3rem;
  margin: 1rem 0;
}
