/**setting:categorycolors**/

/**setting:logo**/

/**setting:customcss**/

$cor-texto-geral:#565656;
$set-amarelo:#FAA71A;
$set-laranja:#F15822;
$set-vermelho:#C53D2F;

/*############################################################# Reset*/
h1, h2, h3, h4, h5, h6{
  font-family: "Roboto",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  font-weight: 300;
  color: $cor-texto-geral;
}
figure{
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  font-weight: normal;
  font-style: normal;
  /* vertical-align: baseline; */
  background: transparent;
}

@media (max-width: 767px) {
  .hidden-xs {
    display: none !important;
  }
  #snap-site-carousel {
    .carousel-slide{
      display: none;
    }
  }
  #page-site-index{
    #page{
      #page-content{
        #moodle-page{
          #page-header{
            min-height: 125px !important;
            background-color: $set-vermelho !important;
          }
          #region-main{
            background-image: none !important;
          }
        }
      }
    }
  }

}

@media (min-width: 768px) and (max-width: 991px) {
  .hidden-sm {
    display: none !important;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .hidden-md {
    display: none !important;
  }
}

@media (min-width: 1200px) {
  .hidden-lg {
    display: none !important;
  }
}

/* Topo da escolha de cursos */
.theme-snap{
  #snap-pm-header{
    //background: #8f6827 url([[pix:theme|footer/bg]]);
    background: transparent;
    .userpicture{
      box-shadow: none;
      -webkit-box-shadow: none;
    }
  }
}

/*############################################################# Classes gerais*/

.texto{
  font-family: "Roboto",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  font-size: 16px;
  font-weight: 300;
  margin-top:15px;
}

/*#############################################################*/

#moodle-page {
  font-size: 1rem;
}

#page-site-index{
  #mr-nav{
    #conteiner-topo{
      max-width: 1400px;
      margin: auto;
      padding: 0 1%;
      > div.pull-right{
        margin-top: 25px;
      }
      #snap-home {
        &.logo {
          height: 85px;
          margin-top: 7px;
        }
      }
    }
  }
  #page{
    #page-content{
      #moodle-page{
        #page-header{
          //min-height: 500px !important;
        }
        #region-main{
          background-image: url([[pix:theme|home/borda-sup]]);
          background-position: top;
          background-repeat: repeat-x;
          .conteiner-slide{
            max-width: 1400px;
            margin: auto;
            padding: 0 1%;
            margin-top:100px;
          }
          .central-ajuda{
            .conteiner-slide{
              margin-top:50px;
              .lista-geral{
                margin-top:10px;
                li{
                  list-style: none;
                  font-family: "Roboto";
                  font-size: 21px;
                  font-weight: 300;
                  float: left;
                  margin: 0 20px;
                  .fa{
                    font-size: 35px;
                    background-color: #f8d348;
                    padding: 10px 13px;
                    border-radius: 30px;
                    margin-right: 5px;
                  }
                  span{
                    vertical-align: text-bottom;
                  }
                }
              }
            }
          }
          .sitetopic{
            clear: both;
            max-width: 1400px;
            margin: auto;
            padding: 0 1% !important;
            margin-top: 70px;
          }
          #moodle-frontpage-elements{
            background-color: #fff;
            background-image: url([[pix:theme|home/borda-inf]]) !important;
            background-position: bottom;
            background-repeat: repeat-x;
            #frontpage-course-list{
              padding: 2em 1%;
              max-width: 1400px;
              margin: auto;
              padding-bottom: 5em;

              h2{
                color: $cor-texto-geral;
              }
              .coursebox{
                .info{
                  .coursename{
                    a{color:$cor-texto-geral;}
                  }
                }
                .summary{
                  p{
                    font-family: "Roboto",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
                    font-size: 16px;
                  }
                }
              }
            }
          }
        }
        #moodle-blocks{
          max-width: 100%;
          background: #f2b743 url([[pix:theme|home/bg-block1]]);
          #block-region-side-pre{
            max-width: 1400px;
            margin: auto;
            padding: 0;
            .block_verify_certificate{
              margin: 2em auto;
              margin-bottom: 2em !important;
              .card-body{
                padding-left: 8px;
                h5.card-title{
                  font-family: "Roboto",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
                  font-weight: 300;
                  color: #ffffff;
                  font-size: 1.75rem;
                }
                .card-text{
                  margin-top: 0px !important;
                  p{
                    font-family: "Roboto",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
                    font-size: 16px;
                    font-weight: 300;
                    margin-top: 12px;
                    color: #ffffff;
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

#mr-nav{
  background-color: rgba(0,0,0,.3);
  #conteiner-topo{
    max-width: 1400px;
    margin: auto;
    padding: 0 1%;

    a.snap-login-button{
      color: #fff !important;
      background-color: $set-amarelo !important;
      border-color: $set-amarelo !important;
    }

    #menu-topo{
      float: left;
      padding-top: 4px;
      padding-bottom: 4px;
      margin-top: 6px;
      ul{
        li{
          float: left;
          margin: 0 13px;
        }
      }
    }
    #snap-pm-trigger{
      padding-left: 8px;
      color:#fff;
    }
  }
}

.carousel-slide{
  //min-height: 500px !important;
  .conteiner-slide{
    max-width: 1400px;
    position: relative;
    margin: auto;

    .carousel-caption{
      left: 0 !important;
      top: 15vh !important;
      width: 45%!important;
      background: none !important;
      color: #fff !important;
      font-weight: 300;
      h1{
        color: #fff !important;
      }
      p{
        font-weight: 300;
      }
    }
  }
}

/* Controle da altura do slide na capa */
@media (min-width: 768px) and (max-width: 991px) {

}

@media (min-width: 992px) and (max-width: 1199px) {

}

@media (min-width: 1200px) {
  #page-site-index{
    .carousel-slide{
      min-height: 860px;
      .conteiner-slide{
        .carousel-caption{
          margin-top: 3em;
        }
      }
    }
  }
}

/* ################################################ Lista de cursos da capa*/

.frontpage-course-list-all{
  margin-top: 30px;
  .info{
    .coursename {
      $size-title: 21px;
      $line-height-title: 1.4;
      $lines-to-show-title: 1;
      display: block; /* Fallback for non-webkit */
      display: -webkit-box;
      max-width: 318px;
      height: $size-title*$line-height-title*$lines-to-show-title; /* Fallback for non-webkit */
      margin: 0 0 7px 0;
      font-size: $size-title;
      line-height: $line-height-title;
      -webkit-line-clamp: $lines-to-show-title;
      -webkit-box-orient: vertical;
      overflow: hidden;
      text-overflow: ellipsis;
      a{
        color: $cor-texto-geral !important;
      }
    }

    .courseimage{
      display: block;
      //height: 200px;
      overflow-y: hidden;
      margin: 0 0 10px 0;

      img{
        height: auto;
        max-width: 100%;
        display: inline-block;
        vertical-align: middle;
        border: 0;
        width: 100%;
      }
    }
  }
  .content{
    .summary{
        $size-description: 17px;
        $line-height-description: 1.7;
        $lines-to-show-description: 3;
        font-family: "Roboto",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
        font-weight: 300;
        display: block; /* Fallback for non-webkit */
        display: -webkit-box;
        max-width: 318px;
        height: $size-description*$line-height-description*$lines-to-show-description; /* Fallback for non-webkit */
        margin: 0 0 10px 0;
        font-size: $size-description;
        line-height: $line-height-description;
        -webkit-line-clamp: $lines-to-show-description;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
  }
}

/* ################################################ LOGIN */
#page-login-index{
  #page{
    background-image: url([[pix:theme|bg-vermelho]]) !important;
  }
  .snap-login{
    background-color:transparent;
    h5{
      color:#fff;
    }
    .loginerrors{
      a{
        color: #fff;
      }
      .alert-danger{
        color:#fff;
        border-color: $set-amarelo;
      }
    }
    form{
      .btn-primary{
        background-color: $set-amarelo;
        border-color: $set-amarelo;
      }
      .btn-link{
        color: #fff;
      }
    }
  }
}
/* ################################################ Login Modal */
.snap-pm-login-form{
  background: #900c11 url([[pix:theme|bg-vermelho]]);
  #snap-pm-inner{
    #snap-pm-header{
      background: none;
    }
    #snap-pm-content{
      #snap-pm-courses{
        .snap-personal-menu-more{ //Retirando o botão de ver todos os cursos
          display: none;
        }
      }
      #snap-pm-updates{
        section{
          border-bottom: 1px solid #fff;
          h2{
            color:#fff;
          }
          .snap-personal-menu-more{
            small{
              color:#fff;
            }
          }
          #snap-personal-menu-deadlines{
            .small{color:#ffffff;}
          }
          #snap-personal-menu-grading{
            .small{color:#ffffff;}
          }
          #snap-personal-menu-messages{
            .small{color:#ffffff;}
          }
          #snap-personal-menu-forumposts{
            .small{color:#ffffff;}
          }
        }
      }
    }
  }
  .login-box{
    max-width: 960px;
    margin: auto;
    width: 90%;
    margin-top:0;
    form{
      color:#fff;
      .btn-primary{
        background-color: $set-amarelo;
        border-color: $set-amarelo;
      }
      .btn-link{
        color: #fff;
      }
    }
    ul{
      &.login-opc{
        list-style: none;
        li{
          line-height: 30px;
          border-bottom: 1px solid #d8d8d8;
          padding: 5px 0;
          a{
            text-decoration: none;
            color: $cor-texto-geral !important;
            &:hover{
              color: #ff7f41 !important;
            }
          }
        }
      }
    }
  }
}

/* #################################### Modal de meus cursos*/

#snap-pm{
  #snap-pm-inner{
    #snap-pm-header{
      background: #900c11 url([[pix:theme|bg-topo-geral]]);
    }
    #snap-pm-content {
      #snap-pm-courses {
        .coursecard-body{
          .categorias{
            .nav-categoria{
              list-style: none;
              margin: 0 0 10px 0;
              padding: 0;
              display: table;
              .nav-categoria-item{
                float: left;
                margin-right: 3px;
                color: #777;
                font-size: 13px;
              }
            }
          }
        }
        .snap-personal-menu-more { //Retirando o botão de ver todos os cursos
          //display: none;
        }
      }
      #snap-pm-updates{
        #snap-personal-menu-avisos{
          .avisos-item{
            .avisos-titulo{
              margin-bottom: 0px;
              font-size: 21px;
            }
            .small{
              background-color: #dadada;
              padding: 5px;
              margin-bottom: 5px;
              font-size: 12px !important;
            }
            .avisos-preview{

            }
          }
        }
        .autoavaliacao{
          padding-bottom: 10px;
          border-bottom: 1px dashed #c5c5c5;
          margin-bottom: 20px;
          .conteudo{
            background-color: #E8E8E8;
            padding: 15px 15px 0px 15px;
            text-align: center;
            margin-bottom: 5px;
            &:hover{
              -webkit-transition: all .4s ease-in-out;
              -o-transition: all .4s ease-in-out;
              transition: all .4s ease-in-out;
              background-color: #dedede;
            }
            h5.titulo{
              font-size: 18px;
              color: #fff;
              font-weight: 400;
              padding: 6px;
              border-radius: 7px;
              margin-bottom: 0px;
              background-color: #5AA762;
            }
            h5.autoavaliacao45{background-color: #ED1C24;font-size: 21px;}
            h5.autoavaliacao90{background-color: #C0AF0E;font-size: 21px;}
            h5.autoavaliacao180{background-color: #FAA71A;font-size: 21px;}
            h5.autoavaliacao360{background-color: #F15822;font-size: 21px;}
            .btn-acesso{
              background: transparent;
              color: #565656;
              font-size: 16px;
              padding: 10px 0px 10px 0;
              .fa{
                font-size: 30px;
                vertical-align: middle;
              }
              span{
                vertical-align: middle;
                margin-left:5px;
              }
              &:hover{
                color: #F15822;
              }
            }
          }
          .inicio{float: left;margin: 3px 0;}
          .fim{float: right;margin: 3px 0;}
        }
      }
    }
  }
}

/* #################################### Página de cursos */

//Página de uma categoria específica
#page-course-index-category{
  #page{
    #page-content{
      #moodle-page{
        #page-header{
          #page-mast{
            .breadcrumb-nav{
              position: absolute;
              margin-top: -35px;
            }
          }
        }
      }
    }
  }
}
//Página geral de cursos
#page-course-index{
  #page{
    #page-content{
      #moodle-page{
        #page-header{
          background: $set-vermelho url([[pix:theme|bg-vermelho]]);
          #page-mast{
            .breadcrumb-nav{
              position: absolute;
              margin-top: -35px;
            }
            h1{
              color:#ffffff;
            }
          }
        }
        #region-main{
          .course_category_tree{
            & > .content{
              & > .subcategories{
                .info:hover{
                  background-color:#efefef;
                }
                .categoryname{
                  border-bottom: 1px dashed #ccc;
                }
              }
            }
            .content{
              .courseimage{
                display: none;
              }
              .coursename{
                font-family: "Roboto",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
              }
              .moreinfo{
                display: none;
              }
              .content{
                .summary{
                  $size-description: 17px;
                  $line-height-description: 1.7;
                  $lines-to-show-description: 3;
                  font-family: "Roboto",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
                  font-weight: 300;
                  display: block; /* Fallback for non-webkit */
                  display: -webkit-box;
                  max-width: 318px;
                  height: $size-description*$line-height-description*$lines-to-show-description; /* Fallback for non-webkit */
                  margin: 0 0 10px 0;
                  font-size: $size-description;
                  line-height: $line-height-description;
                  -webkit-line-clamp: $lines-to-show-description;
                  -webkit-box-orient: vertical;
                  overflow: hidden;
                  text-overflow: ellipsis;
                }
              }
              .courses{
                & > .col-lg-3{
                  background-color: #f5f5f5;
                  border: 1px solid #ece6e6;
                  margin-top: 7px;
                }
              }
            }
          }
        }
      }
    }
  }
}

/* ################################################ Footer */
#snap-course-footer{
  .footer-container {
    max-width: 1400px;
    margin: auto;
    padding: 0 2%;
  }
}

#moodle-footer{
  background: #000 url([[pix:theme|footer/bg]]);
  margin-top: 0 !important;
  padding-top: 4em;
  padding-bottom: 5em;

  .footer-container{
    max-width: 1400px;
    margin: auto;
    padding: 0 2%;

    #custom-menu-footer{
      ul{
        li{
          line-height: 30px;
          border-bottom: 1px solid #777373;
          padding: 5px 0;
          a{
            text-decoration: none;
           &:hover{
             color: $cor-texto-geral;
           }
          }
        }
      }
    }
  }
}

/* ################################################ Curso*/

/* fix da logo na pagina do curso devido ao posicionamento fixo da barra*/
#page-course-view-topics{
  #mr-nav{
    #conteiner-topo{
      padding-left: 10px;
      padding-right: 25px;
    }
  }
  #page{
    #page-content{
      #moodle-page{
        #page-header{
          background: #b41217 url([[pix:theme|bg-topo-curso]]);
          background-size: cover;
        }
      }
    }
  }
}

// Listagem de tópicos do curso

.numberCircle {
  border-radius: 50%;
  behavior: url(PIE.htc);
  /* remove if you don't care about IE8 */
  width: 36px;
  height: 36px;
  padding: 8px;
  background: #fff;
  border: 2px solid #666;
  color: #666;
  text-align: center;
  font: 32px Arial, sans-serif;
}

#snap-course-wrapper{
  #course-toc{
    .sumario{
      font-size: 32px;
      border-bottom:2px solid #565656;
      padding: .5rem 0;
      margin-top: 0;
      white-space: normal!important;
    }
    #chapters {
      li {
        padding: 10px 9px 10px 10px;
        a{
          display: initial;
          .topicos{
            border-radius: 20px;
            font-size: 18px;
            //padding: 10px 9px 10px 10px;
            margin-right: 3px;
            border: 1px solid #b41117;
            width: 36px;
            height: 36px;
            padding: 8px;
            color: $cor-texto-geral;
            font-weight: 300;
          }
        }
        .completionstatus{
          small{
            font-size: .60rem!important;
            display: block;
            margin-left: 45px;
          }
        }
      }
      .snap-visible-section{
        .topicos{
          background-color: $set-vermelho;
          color:#fff;
        }
      }
    }
  }

}

/* ############################################### Perfil do usuário    */

#page-user-profile{
  #page-header{
    #page-mast{
      .page-context-header{
        .header-button-group{
          .btn{
            color: #fff;
            border-color: #fff;
            background-color: transparent;
            i.icon{
              color: #fff;
            }
          }
        }
      }
    }
  }
}

/* ############################################### Pagina de forum geral    */

#page-mod-forum-view{
  #region-main{
    max-width: 1400px;
    padding: 0 1%;
    .forumsearch{
      display: none;
    }
    > div{
      > h2{
        display: none;
      }
      .forumheaderlist{
        margin-bottom: 40px;
        .author{
          display: none;
        }
        .replies{
          display: none;
        }
        .lastpost{
          display: none;
        }
        .discussionsubscription{
          display: none;
        }
      }
    }
  }
}

// Forum de discussao (item)
#page-mod-forum-discuss{
  #region-main{
    max-width: 1400px;
    padding: 0 1%;
    .forumsearch{
      display: none;
    }
    > div {
      > h2 {
        display: none;
      }
      h3.discussionname{
        margin-top: 50px;
      }
      .discussionsubscription{
        // Retirando o botão de inscriçao na discussao
        display: none;
      }
      .discussion-nav{
        // Retirando os links de navegaçao
        display: none;
      }
      .discussioncontrols{
        // Retirando os controles da noticia
        display: none;
      }
    }
  }
}

/* ############################################### Paginas gerais    */
#moodle-page{
  #page-header{
    //background-color: #b41217; /* Colocando o bg vermelho padrão para todos os cabeçalhos */
    background: #b41217 url([[pix:theme|bg-topo-geral]]);
    .breadcrumb-nav{
      .breadcrumb{
        .breadcrumb-item{
          a{color: #ffffff;}
          a:hover{color: $set-amarelo;text-decoration: none;}
          &:before {
            color: #ffffff;
          }
        }
      }
    }
    #page-mast{
      max-width: 1400px;
      margin: auto;
      padding: 0 1%;
      margin-top: 30px;
      h1{
        margin-bottom: 0;
        color: #fff; /* Colocando a cor branca para todos os titulos de cabeçalhos */
        a{
          color: #fff; /* Colocando a cor branca para todos os titulos de cabeçalhos */
        }
      }
      .nav-categoria{
        padding-left: 3px;
        list-style: none;
        .nav-categoria-item{
          float: left;
          margin-right: 5px;
          color: #fff;
          text-shadow: 1px 1px 3px rgba(0,0,0,.5);
        }
      }
      #snap-coverimagecontrol{
        .btn-secondary{
          color:#565656;
        }
        .btn-secondary:hover{
          color:#ffffff;
        }
      }
    }
  }
  #snap-course-wrapper{
    max-width: 1400px;
    margin: auto;
    padding: 0 1%;
    #region-main{
      .course-content{
        .topics{
          .section{
            .content{
              .sectionname{
                font-size: 32px;
                border-bottom:2px solid #565656;
                a{
                  color: #565656;
                }
                a:hover{
                  text-decoration: none;
                }
              }
              .snap-section-editing{
                margin-top: -10px;
              }
            }
          }
        }
      }
    }
  }
}

/* ############################################### Paginas gerais    */
#page-admin-purgecaches {
  #notice{
    top: 250px;
  }
}


