@import url('paleta.css');

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&family=Playpen+Sans:wght@100;200;300;400;500;600;700;800&display=swap');


/* TAGS */
body {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', sans-serif;;
  /* background: #eee; */
  font-size: 16px;

  &.noscroll {
    overflow: hidden;
  }
}

h1 {
  font-family: 'Playpen Sans', cursive;
  font-size: 35px;
}

h2 {
  margin: 20px 0 0 2px;
}

h3 {
  margin: 0 0 0 2px;
}

button {
  position: relative;
  background: var(--base2);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 16px;
  padding: 7px 20px 7px 48px;
  cursor: pointer;
  font-weight: 600;
  margin-right: 5px;

  &:hover {
    background: var(--luz2);

    i {
      background: var(--luz2);
    }
  }

  &.clicked {
    background: #999;
    color: #666;
    pointer-events: none;
    user-select: none;
  }

  &.secundario {
    background: var(--base3);
    padding: 4px 10px 4px 38px;

    &:hover {
      background: var(--luz3);

      i {
        background: var(--luz3);
      }
    }

    i {
      background: var(--sombra3);
      width: 32px;
      height: 32px;
      top: -2px;
      padding-top: 3px;
    }
  }

  i {
    position: absolute;
    width: 40px;
    height: 40px;
    box-sizing: border-box;
    padding-top: 7px;
    left: 0px;
    top: -3px;
    margin-right: 3px;
    background: var(--sombra2);
    border-radius: 50px;
    font-size: 26px;
  }
}




/* COMPONENTES */
#lightbox_bg, #show_bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #222;
  opacity: 0.8;
  z-index: 3;
}

#lightbox, #show {
  position: fixed;
  top: 50%;
  left: 50%;
  height: 1%;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-sizing: border-box;
  transition: 500ms ease-out;
  overflow: hidden;
  z-index: 4;

  &.fast {
    transition: 150ms ease-out;
  }

  .close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    color: #000;
  }

  .close:hover {
    color: #f66;
    cursor: pointer;
  }

  h4 {
    margin: 0;
    font-size: 32px;
  }

  iframe {
    width: 100%;
    border: none;
  }
}

/* A lightbox de upload (e futuras lightboxes de conteúdo) usa um cartão com */
/* cabeçalho e o iframe encostado nas bordas; #show mantém o estilo antigo. */
#lightbox {
  padding: 0;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);

  h4 {
    margin: 0;
    padding: 18px 24px;
    border-bottom: 1px solid #e3e8f0;
    color: #11223e;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
  }

  .close {
    top: 16px;
    right: 18px;
    color: rgba(17, 34, 62, 0.45);
    font-size: 26px;
    transition: color 150ms, transform 150ms;

    &:hover {
      color: #dc3545;
      transform: scale(1.08);
    }
  }

  iframe {
    display: block;
    border-radius: 0 0 16px 16px;
  }
}


#show {
  img {
    cursor: zoom-in;
    user-select: none;
  }

  &.zoom {
    top: 0;
    left: 0;

    img {
      cursor: zoom-out;
    }

    #move_left, #move_right {
      display: none;
    }
  }
  .close {
    position: absolute;
    top: -1px;
    right: -1px;
    font-size: 26px;
    color: #000;
    background: #fff;
    border-radius: 24px;
    z-index: 10;
  }

  #move_left, #move_right {
    position: absolute;
    height: calc(100% - 100px);
    margin-top: 10px;
    width: 15%;
    max-width: 100px;
    opacity: 0.5;
    cursor: pointer;
    z-index: 4;

    &:hover {
      /* background: #fff; */
    }
  }

  #move_left {
    left: 0;
    border-radius: 0 10px 10px 0;
  }

  #move_right {
    right: 0;
    border-radius: 10px 0 0 10px;
  }
}

#slideshowProgress {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--base2);
  transition: linear 5s;
}



#mouse2_menu {
  position: absolute;
  left: 0;
  top: 0;
  background: #fff;
  border-radius: 5px;
  box-shadow: 2px 2px 10px #222;
  font-size: 15px;
  color: #000;

  div {
    padding: 10px 12px;
    cursor: pointer;
    white-space: nowrap;

    &:hover {
      background: var(--selecao);
    }

    &:first-of-type {
      border-radius: 5px 5px 0 0;
    }

    &:last-of-type {
      border-radius: 0 0 5px 5px;
    }

    &:not(:last-of-type) {
      border-bottom: 1px solid #eee;
    }

    i {
      margin-right: 4px;
    }
  }
}



@media (max-width: 700px) {
  #move_left, #move_right {
    margin-top: 26px !important;
    height: calc(100% - 66px) !important;
  }
}



#debug_toolbar {
  position: fixed;
  display: flex;
  top: 2px;
  right: 2px;
  z-index: 10;
  border: 2px solid #333;
  background: #333;
  padding: 1px;
  font-size: 12px;
  opacity: 0.8;

  .device {
    margin-left: 5px;
  }
}

