/*
-----------------------------------------------
css.imarketsolutions.com 
Stylesheet: global.css
Created: 2017-10-25
Author:  Nate Wheeler
Organization:	iMarket Solutions
----------------------------------------------- */

html {
  height: 100%;
}

body {
  height: 100%;
}

#container-all {
  height: 100%;
}

#login-container {
  height: calc(100% - 201px);
  min-height: 480px;
}

#login-container > .row {
  height: 100%;
}

.table.vertical-align > tbody > tr > td {
  vertical-align: middle;
}

/* Colors */
body {
  color: #333;
  background: #fff;
}

.ui-widget {
  color: #333;
}

.ui-widget-content {
  color: #333;
}

/* Form Controls */
.form-control:focus {
  color: #222;
  background-color: #fff;
  border-color: #80bdff;
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Buttons */
.btn {
  cursor: pointer;
}

.ui-widget-content .btn-primary,
.btn-primary {
  color: #fff;
  background-color: #d71920;
  border-color: #d71920;
  text-decoration: none;
}

.ui-widget-content .btn-primary:hover,
.ui-widget-content .btn-primary:active,
.ui-widget-content .btn-primary:focus,
.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus {
    color: #fff;
    background-color: #2e3393;
    border-color: #2e3393;
    box-shadow: none;
    text-decoration: none;
}
.ui-widget-content .btn-primary:active:not([disabled]):not(.disabled),
.ui-widget-content  .btn-primary.active:not([disabled]):not(.disabled),
.ui-widget-content .show > .btn-primary.dropdown-toggle,
.btn-primary:active:not([disabled]):not(.disabled),
.btn-primary.active:not([disabled]):not(.disabled),
.show > .btn-primary.dropdown-toggle {
    color: #fff;
    background-color: #2e3393;
    border-color: #2e3393;
    box-shadow: none;
    text-decoration: none;
}

/* Typography */
body {
  font-family: 'Merriweather Sans', sans-serif;
}
.ui-widget {
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 1rem;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-style: italic;
  font-weight: bold;
  font-family: 'Merriweather Sans', sans-serif;
  text-transform: none;
}

/* Links */
a,
.ui-widget-content a {
  color: #d71920;
  text-decoration: none;
}

a:hover,
.ui-widget-content a:hover {
  color: #2e3393;
  text-decoration: underline;
}

/* Pagination */
.page-link {
  color: #d71920;
  background-color: transparent;
  border: 1px solid transparent;
}

.page-link:focus,
.page-link:hover {
  color: #d71920;
  text-decoration: underline;
  background-color: transparent;
  border-color: transparent;
}

.page-item.active .page-link {
  color: #222;
  background-color: transparent;
  border-color: transparent;
}
.page-item.active .page-link:hover,
.page-item.active .page-link:focus {
  color: #2e3393;
  text-decoration: underline;
  background-color: transparent;
  border-color: transparent;
}

/* Code Mirror */

.CodeMirror {
  font: normal 10pt Consolas, Monaco, monospace;
  height: auto;
}

.CodeMirror-scroll {
  min-height: 200px;
}


/* Alerts */
.alert p:last-of-type {
  margin-bottom: 0;
}
.alert ul:last-of-type {
  margin-bottom: 0;
}

/* Structural */
#content {
  padding-top: 2em;
  padding-bottom: 2em;
}

h1.page-heading {
  margin-bottom: 2rem;
}

#wiki-all {
  overflow: hidden;
}
#wiki-all > .row {
  flex-wrap: nowrap;
}

/* Login and Log Out*/
#user-login-form {
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

#user-login-form button {
  max-width: 250px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

#login-logout-link {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}


@media (max-width: 479px) {
  #login-logout-link {
    font-size: 0.7rem;
  }
}

/* Masthead */
#masthead-wrapper {
  background-image: url(https://www.imarketsolutions.com/assets/templates/main/images/backgrounds/bg-top-content.jpg);
  border-color: #d71920;
  border-style: solid;
  border-top-width: 10px;
  border-left-width: 0;
  border-right-width: 0;
  border-bottom-width: 0;
}

#masthead > .row {
  padding: 5px 0;
  height: 120px;
}

#masthead > .row {
  height: 135px;
}

#masthead .site-title {
  font-size: 2rem;
  padding: 0;
  margin: 0;
  color: #2e3393;
  font-style: italic;
  font-weight: bold;
  font-family: 'Merriweather Sans', sans-serif;
  line-height: 1.25;
}
#masthead .site-title::before {
  content: "";
  display: block;
  margin: 0;
  line-height: 1em;
  width: 74px;
  max-width: 74px;
  height: 4px;
  background: #2e3393;
  margin-bottom: 8px;
}
#masthead .site-title a {
  color: inherit;
  text-decoration: inherit;
  background-color: inherit;
  opacity: 1;
}
#masthead .site-title a:hover,
#masthead .site-title a:active {
  color: inherit;
  text-decoration: inherit;
  background-color: inherit;
  opacity: 0.7;
}
#masthead .site-description {
  font-size: 1rem;
  color: #2e3393;
  padding: 0;
  margin: 0 0 7px;
  font-style: italic;
  font-weight: bold;
  font-family: 'Merriweather Sans', sans-serif;
  text-transform: none;
  letter-spacing: unset;
  line-height: 1.5;
}

/* Primary Navigation */
#primary-nav-wrapper {
  background: #2e3393;
  position: relative;
  z-index: 999;
}

.navbar {
  padding: 8px 15px;
}

.navbar-nav > .nav-item {
  font-size: 0.9rem;
}

.navbar-nav > .nav-item > .nav-link {
  text-transform: uppercase;
}

.navbar-light .navbar-nav .nav-link {
  color: #FFF;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
  color: #fff;
}

.navbar .form-control {
  border-color: #fff;
}
.navbar .form-control::-webkit-input-placeholder, /* Chrome/Opera/Safari */
.navbar .form-control::-moz-placeholder, /* Firefox 19+ */
.navbar .form-control:-ms-input-placeholder, /* IE 10+ */
.navbar .form-control:-moz-placeholder /* Firefox 18- */
{
  color: #222;
}

.navbar .form-control:focus {
  color: #222;
  box-shadow: none;
}

.navbar .btn {
  color: #fff;
  background-color: rgb(34, 34, 34);
  cursor: pointer;
}

.navbar .btn:hover,
.navbar .btn:focus,
.navbar .btn:active {
  color: #fff;
  background-color: #767676;
}

@media (max-width: 767px) {
  .navbar {
    padding: 7px 15px;
  }
}

/* Secondaary Nav */
#secondary-nav {
  padding: 15px 5px 0 0;
}

#secondary-nav h3 {
  font-style: normal;
  font-weight: normal;
  font-family: 'Merriweather Sans', sans-serif;
  text-transform: none;
  font-size: 1.1rem;
  margin: 0;
  margin-top: 1.1rem;
}

#secondary-nav h3:first-child {
  margin-top: 0;
}

#secondary-nav ul {
  margin: 10px 10px 10px 20px;
  padding: 0;
  color: #444444;
  font-size: 0.9rem;
}
#secondary-nav > ul > li > ul > li {
  margin-bottom: 0.4em;
}
#secondary-nav ul ul {
  margin-top: 0;
  margin-bottom: 10px;
  margin-left: 20px;
}

#secondary-nav a {
  color: #333;
  text-decoration: none;
  background-color: transparent;
}
#secondary-nav a:hover {
  color: #038dbf;
  text-decoration: underline;
}

/* Sidebar Navigation */
#nav-sidebar {
  position: relative;
  z-index: 900;
  overflow: hidden;
  background: #f6f6f6;
  min-height: 550px !important;
}

#toggle-sidebar-nav {
  color: rgb(68, 68, 68);
  background: rgb(204, 204, 204);
  font-size: 1.2em;
  cursor: pointer;
  padding-top: 1px;
  padding-left: 1px;
  height: 100%;
  width: 14px;
  position: absolute;
  top: 0;
  right: 0;
}
#toggle-sidebar-nav:hover {
  background: rgb(170, 170, 170);
}

#sidebar-nav-toggle-icon {
  display: block;
  position: fixed;
  top: 527px;
  font-size: 0.7rem;
  cursor: pointer;
  font-weight: 600;
  margin-left: 1px;
  color: rgb(68, 68, 68);
}
#sidebar-nav-toggle-icon::after {
  content: '«';
}

.sidebar-collapsed #nav-sidebar {
  -ms-flex: 0 0 14px !important;
  flex: 0 0 14px !important;
  max-width: 14px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  white-space: nowrap !important;
}
.sidebar-collapsed #nav-sidebar #secondary-nav {
  overflow: hidden !important;
  height: 0 !important;
  width: 0 !important;
}
.sidebar-collapsed #wiki-content {
  -ms-flex: 0 0 calc(100% - 14px) !important;
  flex: 0 0 calc(100% - 14px) !important;
  max-width: calc(100% - 14px) !important;
}
.sidebar-collapsed #sidebar-nav-toggle-icon::after {
  content: '»' !important;
}


/* Code Preview Thumbnails */

.code-preview-thumb-wrap {
  width: 600px;
  height: 337.5px;

  padding: 0;
  overflow: hidden;
  border-radius: 6px;

  box-shadow: 0 1px 1px 0 rgba(0,0,0,0.4);
}
.code-preview-thumb {
  width: 1280px; /* 1920 / 1080 */
  height: 720px;
  border: none;
}
.code-preview-thumb {
    -ms-zoom: 0.46875;
    -moz-transform: scale(0.46875);
    -moz-transform-origin: 0 0;
    -o-transform: scale(0.46875);
    -o-transform-origin: 0 0;
    -webkit-transform: scale(0.46875);
    -webkit-transform-origin: 0 0;
}

/* Wiki Posts */

.code-preview-thumbnails .wiki-post {
  width: 600px;
}

.wiki-post .figure-caption {
  font-size: 1rem;
  color: #333;
  position: relative;
  z-index: 1;
  margin-bottom: 2rem;
}

.wiki-post h3 {
  position: absolute;
  z-index: 0;
  bottom: 100%;
  left: 0;
  width: 100%;
  margin: 0;
  height: 337.5px;
}

.wiki-post h3 a {
  display: block;
  position: absolute;
  z-index: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  background: rgba(255,255,255,0);
  box-shadow: 0 1px 4px 1px rgba(0,0,0,0.2);
}

.wiki-post h3 a:hover {
  background: rgba(255,255,255,0.2);
  box-shadow: 0 1px 4px 3px rgba(0,0,0,0.3);
}

.wiki-post h3 a > span {
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.5em 0.7em;
  background: #d71920;
}
.wiki-post h3 a:hover > span {
  background: #2e3393;
}

.wiki-post .figure-caption-body {
  padding-top: 1.5em;
}

.wiki-post .last-modified {
  margin-bottom: 3px;
}
.wiki-post .is-pattern {
  margin-bottom: 3px;
}

/* Tabs */

#tabs.ui-tabs {
  padding: 0;
  border: none;
  border-radius: 0;
  overflow: hidden;
  margin-left: -15px;
  margin-right: -15px;
}

#tabs.ui-tabs .ui-tabs-nav {
  background: transparent;
  border-color: rgb(204, 204, 204);
  font-family: 'Merriweather Sans';
  font-weight: normal;
  border-radius: 0;
  border-top-width: 0;
  border-left-width: 0;
  border-right-width: 0;
  margin-bottom: -1px;
  padding-left: 15px;
  padding-right: 15px;
}

#tabs.ui-tabs .ui-tabs-panel {
  background: #fff;
  border: none;
  border-top: 1px solid rgb(204, 204, 204);
  border-radius: 0;
  min-height: 700px;
  padding: 30px 15px;
}

#tabs.ui-tabs .ui-tabs-nav li {
  margin: 0 .4em 0 0;
  background: rgb(204, 204, 204);
  color: #222;
  border-color: rgb(204, 204, 204);
  font-weight: normal;
  font-size: 0.9em;
  color: #222;
  padding-bottom: 0;
}

#tabs.ui-tabs .ui-tabs-nav li a {
  padding: .3em 1.5em;
}

#tabs.ui-tabs .ui-tabs-nav li.ui-tabs-active {
  background: #fff;
  border-color: rgb(204, 204, 204);
  color: #222;
}

#tabs.ui-tabs .ui-state-default a,
#tabs.ui-tabs .ui-state-default a:link,
#tabs.ui-tabs .ui-state-default a:visited {
    color: #222;
    text-decoration: none;
}

#tabs.ui-tabs .ui-state-active a:link,
#tabs.ui-tabs .ui-state-active a:visited {
  color: #222;
  text-decoration: none;
}

/* Live Code Preview */

#code-preview-container {
  padding-top: 25px;
  padding-bottom: 25px;
  background: #f6f6f6;
  background-image:
    url('/assets/images/preview.png'),
    url('/assets/images/preview.png');
  background-size: auto 25px, auto 25px;
  background-repeat: repeat-x, repeat-x;
  background-position: top center, bottom center;
  position: relative;
  z-index: 990;
  margin-bottom: 14px;
}

#code-preview-container .seal-of-approval {
  position: absolute;
  bottom: 30px;
  right: 15px;
  width: 60px;
  height: auto;
  opacity: 1;
  z-index: 1000;
  display: none !important; /* Won't show the seal. */
}

#iframe-barrier {
  background: rgba(51, 160, 193, 0.3) !important;
  border: 1px dotted #000 !important;
  right: auto !important;
  bottom: auto !important;
  left: 0 !important;
  top: -26px !important;
  height: calc(100% + 51px) !important;
  width: 100% !important;
}

.live-code-preview {
    display: block;
    width: 100%;
    height: 225px;
    padding: 0;
    overflow: visible;
    position: relative;
}
.live-code-preview {
  position: relative;
  z-index: 990;
  background: #fff;
  border: none;
  border-top: 1px dotted #000;
  border-bottom: 1px dotted #000;
}

.live-code-preview .ui-resizable-s {
  height: 15px;
  bottom: -40px;
  color: rgb(68, 68, 68);
  background-color: rgb(204, 204, 204);
  text-align: center;
}

.live-code-preview .ui-resizable-s::after {
  content: "=";
  color: rgb(68, 68, 68);
  font-size: 1rem;
  line-height: 1;
  font-weight: 600;
  display: block;
  cursor: ns-resize;
}

.live-code-preview iframe {
  overflow: hidden;
  width: 100%;
  height: 100%;
  border: none;
}

/* Footer */

#footer-wrapper {
  border-top: 1px solid rgb(238, 238, 238);
  border-color: rgb(204, 204, 204);
  padding-bottom: 30px;
  background: #f6f6f6;
  background: #fff;
  position: relative;
  z-index: 999;
}

#footer > .row {
  min-height: 170px;
}
