/* GLOBAL STYLES */
body {
  background-color:#FFF;
  text-align:left;
}

/* INDEX STYLES */
.sqlschool-list, 
.index-section {
  text-align: left;
}

.index-section h2 {
  margin-bottom: 0px;
  margin-top: 20px;
}

.index-section hr {
  margin:0;
}

/* ARTICLE STYLES */
.article-header {
  font-size:30px;
  font-weight:500;
  text-align: left;
}

.content-text {
  color: #394242;
}

.content-text p {
  margin-top: 20px;
  margin-bottom: 20px;
}

.content-text h1,
.content-text h2,
.content-text h3,
.content-text h4,
.content-text h5 {
  font-weight:500;
}

.content-text h1 { font-size:30px; }
.content-text h2 { font-size:26px; }
.content-text h3 { font-size: 22px; }

.content-text a {
  text-decoration: underline;
}

.content-text img {
  max-width: 100%;
  margin: 35px auto;
  display: block;
}

.content-text iframe {
  width:100%;
  max-width:800px;
  margin: 35px auto;
  display:block;
}

.content-text code, .content-text pre {
  border: 1px solid #CCC;
  border-radius:3px;
  background-color: #F9F2F4;
  padding-left: 5px;
  padding-right: 5px;
  font-size: .9em;
}

.content-text pre {
  padding: 10px;
  line-height:1.2em;
}

.content-text pre code {
  border: none;
}

.lesson-footer {
  text-align:left;
}

/* ACCORDION - for table display in analytics school */
.accordion {
  max-width: 560px;
  margin: 25px auto;
}

.accordion h4 {
  display: block;
  margin: 0;
  padding-left: 0px !important;
  cursor: pointer;
}

.accordion table {
  position: relative;
  overflow: hidden;
  opacity: 1;
  transform: translate(0, 0);
  margin-top: 0px;
  max-height:800px;
  font-size: 12px;
  width:100%;
  border:none;
  box-shadow:none;
  line-height:14px;
}

.accordion th {
  border:none;
}

.accordion td {
  text-align:right;
  font-weight:bold;
  border:none;
}

.accordion td.right {
  text-align:left;
  font-weight:normal;
}

.accordion ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.accordion ul li {
  list-style: none;
  position: relative;
  padding: 0;
  margin: 0;
  padding-bottom: 4px;
  padding-top: 18px;
  border-top: 1px dotted #dce7eb;
}

.accordion ul li i {
  position: absolute;
  transform: translate(-6px, 0);
  margin-top: 16px;
  right: 0;
}
.accordion ul li i:before, ul li i:after {
  content: "";
  position: absolute;
  background-color: #ff6873;
  width: 3px;
  height: 9px;
}
.accordion ul li i:before {
  transform: translate(-2px, 0) rotate(45deg);
}
.accordion ul li i:after {
  transform: translate(2px, 0) rotate(-45deg);
}
.accordion ul li input[type=checkbox] {
  position: absolute;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0;
}

.accordion ul li input[type=checkbox]:checked ~ table {
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  display: none;
  transform: translate(0, 50%);
}
.accordion ul li input[type=checkbox]:checked ~ i:before {
  transform: translate(2px, 0) rotate(45deg);
}
.accordion ul li input[type=checkbox]:checked ~ i:after {
  transform: translate(-2px, 0) rotate(-45deg);
}

/* PRACTICE PROBLEMS */

div.practice-prob, div.practice-prob-answer {
  background-color: #FFF;
  border: 1px solid #C7CCCB;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  text-shadow: 0 1px 0 rgba(255,255,255,0.8);
  margin: 0px auto;
  max-width:100%;
}

div.practice-prob {
  border-radius: 3px 3px 0 0;
  padding: 15px;
  margin-top: 20px;
}

div.practice-prob-answer {
  border-radius: 0 0 3px 3px;
  border-top: none;
  padding: 7px 15px 10px 15px;
  margin-bottom: 20px;
  text-align:right;
}

table {
  background-color: #FFF;
  border: 1px solid #C7CCCB;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  text-shadow: 0 1px 0 rgba(255,255,255,0.8);
  margin: 30px auto;
}

td, th {
  padding: 7px !important;
  border: 1px solid #C7CCCB;
  border-left: none;
  border-right: none;
}

td.right, th.right {
  text-align:right;
}

td.left, th.left {
  vertical-align:top;
}

/* SIDEBAR STYLES */
.sidebar-header h3 {
  margin-top: 0px;
  line-height: 1.8em;
}

.sidebar-header a {
  color: #394242;
  text-decoration: none;
}

.sidebar-list a {
  color: #394242;
  text-decoration:none;
}

.sidebar-list a:hover {
  color: #37B067;
}

.sidebar-list {
  font-size:13px;
  line-height:22px;
}

.sidebar-list h3 {
  font-size: 16px;
  border-bottom: 2px solid #E6E7E8;
  padding-bottom: 8px;
}

.sidebar-list h4 {
  font-size: 12px;
  margin-top:5px;
  margin-bottom:0px;
  text-transform:uppercase;
  letter-spacing:1px;
  color:#95A1A1;
}

.sidebar-list ul {
  margin-top:5px;
  margin-bottom:5px;
  padding-left:20px;
}

.sidebar-list ul li:before{ content:"\2014"; position:relative; left:-5px;}
.sidebar-list ul li{ list-style:none; text-indent:-11px; }

.sidebar-list ul li.currentlesson:before { content:"\2192"; color: #37B067; position:relative; left:-5px;}

/* QUIZ */
.quiz-question {
  margin:35px 0;
}

.quiz-answer-button {
  margin: 35px auto;
}

.quiz-answer-button button {
  border-radius: 3px;
  background: #37B067;
  color: #FFF;
  shadow: none;
  border: none;
  padding: 10px 20px;
}

.quiz-answer {
  display:none;
}

/* FOOTER */
.footer-section a {
  text-decoration: none;
}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
  .sidebar-offcanvas {
    display:none;
  }
}


