/* ------- */
/* General */
/* ------- */

/* Text */
body,
select,
strong {
	font-family: 'Nunito Sans', sans-serif;
	overflow-wrap: break-word; /* Breaks long text (e.g. links) */
}

#fullArticle strong {
	color: #121212;
}

a {
    color: #109DFF;
}

/* Header */
h1,
h2,
h3,
h4,
h5 {
  /* font-weight: 500; */
  font-family: 'Nunito Sans', sans-serif;
  color: #1D2B36;
  text-wrap: balance;
}

video {
  border-radius: 16px;
  max-width: 100%;
  height: auto;
  max-height: 100%;
}

/* Logo */

/* Hide default text from Help Scout ("Niagara Launcher Knowledge Base")*/
.navbar .brand span {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Provide logo from own host */
.navbar .brand {
    background: url(https://static.niagaralauncher.app/niagara-logo.svg) no-repeat;
    background-size: 100%, auto;
    height: 60px;
    width: 60px;
    /* padding: 0; */
    margin-top: 10px;
}

/* Hide hamburger icon for mobile version. Only option in hamburger menu is 'contact' and user can already contact via floating action button. */
.navbar .btn-navbar {
    display: none;
}

/* Customize FAB/Beacon animation */
.BeaconFabButtonFrame {
    transition: none !important;
    animation: fab-fade-in 500ms;
    animation-timing-function: ease-out;
}

/* Customize FAB/Beacon animation (2) */
@keyframes fab-fade-in {
  0%    {scale: 0.8; opacity: 0;}
  60%   {opacity: 1;}
  100%  {scale: 1.0;}
}

/* box-shadow 250ms ease, opacity 0.4s ease, scale 1000ms ease-in-out, transform 0.2s ease-in-out */

/* Input */
input[type=text],
input[type=email],
textarea {
	  background-color: #FFF;
	  border-radius: 4px;
	  padding: 0 12px;
	  font-size: 14px;
	  box-shadow: none;
	  font-family: 'Work Sans', sans-serif;
}

/* Text selection/highlight */
::selection {
  background: #8fe3ff; /* WebKit/Blink Browsers */
}
::-moz-selection {
  background: #8fe3ff; /* Gecko Browsers */
}

/* Category Header */
.collection-category h2 {
    margin: 30px 0 20px;
}

/* Category  */
.category-list .category {
	border-radius: 16px;
	margin-bottom: 16px;
	border: 1.5px solid #f5f5f5;
	width: 100%; /* Width of one column */
	margin: 0 0 20px;
	padding: 1.5em 1em;
	cursor: pointer;
	-webkit-transition: background .15s;
	-moz-transition: background .15s;
	-o-transition: background .15s;
	transition: background .15s;
	vertical-align: top;
	box-sizing: border-box;
	box-shadow: rgb(0 0 0 / 3%) 0px 0px 0px 1px, rgb(241 243 245) 0px 2px 10px 0px, rgb(0 0 0 / 5%) 0px 3px 3px 0px;
}

@media (min-width: 768px){
	.category-list .category {
	    width: 48%; /* Width of one column */
			margin: 0 .8% 20px;
	}
}

@media screen and (min-width: 1105px){
	.category-list .category {
			width: 31%; /* Width of one column */
	}
}

/* -------------- */
/* Overview Page  */
/* -------------- */

/* Article List */
.twoCol {
    font-family: 'Josefin Sans', sans-serif;
}


/* Search bar header ('How can we help?') */
#docsSearch h1 {
    font-family: 'Work Sans', sans-serif;
}

/* Search bar in overview  */
#docsSearch {
    background: #109dff;
    border-bottom: none;
}

#docsSearch h1 {
    color: #fff;
}

#searchBar .search-query::placeholder {
	color: #bdbdbd;
}

#searchBar .search-query {
    padding: 0 55px 0 20px;
    border-radius: 40px;
    border: 0px solid #03004c;
    box-shadow: none; /* 0 1px 6px 0 rgba(32,33,36,0.28); */
}

@media screen and (max-width: 767px) {
  #searchBar {
    width: 80%;
  }
}

@media screen and (min-width: 768px) {
  #searchBar {
    width: 440px;
  }
}

@media screen and (min-width: 1440px) {
  #searchBar {
    width: 712px;
  }
}

@media screen and (min-width: 1025px) {
  #searchBar {
    width: 635px;
    display: block;
  }

  #searchBar .search-query {
    color: #121212;
    height: 55px;
    letter-spacing: 0.5px;
    padding: 0 140px 0 20px;
    /* width: 460px; */
    display: block;
    margin-right: 0;
    transition: all 0.2s ease-in-out;
  }

  #searchBar button {
    display: inline-block;
  }

  #searchBar .search-query:hover {
    border: 3px solid #03004c;
  }
}

#searchBar button .icon-search {
  color: #121212;
  font-size: 20px;
}

@media screen and (max-width: 1024px) {
  /* #searchBar button .icon-search {
    display: block;
  } */

	/* Hides default search icon... */
	.icon-search::before {
			display: none;
	}

	/* And replaces it with custom icon */
  #searchBar button {
    background: url("https://static.niagaralauncher.app/ic_search_grey.svg") center center no-repeat;
		height: 25%;
		top: 37.5%;
    padding: 0 30px;
		border: 0px;
		/* border: 0;
    text-shadow: none;
    transition: all 0.2s ease-in-out; */
  }

  #searchBar button:focus, #searchBar button:active {
    background: #F1F3F5
  }

  #searchBar button span {
    display: none;
  }
}

@media screen and (min-width: 1025px) {
  #searchBar button {
		background-color: #03004c;
		box-shadow: 0 1px 6px 0 rgba(32,33,36,0.28);
		border-radius: 40px;
		border: none;
		font-weight: 500;
		font-family: 'Josefin Sans', sans-serif;
		height: 55px;
		text-shadow: none;
		width: 140px;
		transition: all 0.2s ease-in-out;
		line-height: normal;
		padding: 0 20px;
  }

  #searchBar button:hover, #searchBar button:active {
    background: #2041e8;
  }
}

/* -------------------- */
/* Search Results Page  */
/* -------------------- */

#categoryHead h1 {
    margin: 0.33em 30px 0.33em 0;
}

.contentWrapper p.descrip {
    margin-bottom: 40px;
}

#serp-dd {
  border-radius: 5px;
  border: none;
  top: 85px;
}

#serp-dd .result a {
  padding: 12px 15px;
}

/* Sort by chooser in search results page */
select {
    border: 1.5px solid #f5f5f5;
    background-color: #fff;
    border-radius: 8px;
    font-family: 'Work Sans', sans-serif;
}

/* Highlited articles */
.twoCol .collection, .threeCol .collection {
    border: 1.5px solid #E1E0E0;
    border-radius: 16px;
}

/* ----------------- */
/* Contact us dialog */
/* ----------------- */

#contactForm #name, #contactForm #email, #contactForm #subject {
  box-sizing: border-box;
  min-height: 42px;
  border-radius: 16px;
  width: 100%;
}

#contactForm #message {
    width: 100%;
    height: 150px;
		box-sizing: border-box;
		min-height: 42px;
		border-radius: 16px;
		padding: 12px;
}

#contactModal .label {
  float: none;
  font-family: 'Josefin Sans', sans-serif;
  display: block;
  color: #757575;
  font-size: 14px;
  font-weight: 400;
  margin: 0 0 5px;
  padding: 0;
  text-align: left;
  width: 100%;
}

#button.btn, input[type=submit].btn {
  width: 100%;
  border-radius: 16px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 16px;
  border: none;
  text-shadow: none;
  color: #fff;
  background: #109DFF;
  height: 52px;
  transition: all 0.2s ease-in-out;
}

/* File chooser */
select, input[type=file] {
	font-family: 'Work Sans', sans-serif;
}

/* Modal dialog on web version */

#contactModal {
  border: 0;
  top: 8%;
  border-radius: 16px;
}

#contactModal h2 {
  color: #121212;
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.35px;
  border: 0;
  padding: 40px 0 10px 60px;
  border-radius: 16px;
}

#contactModal .control-label {
  float: none;
  font-family: 'Josefin Sans', sans-serif;
  display: block;
  color: #757575;
  font-size: 14px;
  font-weight: 400;
  margin: 0 0 5px;
  padding: 0;
  text-align: left;
  width: 100%;
}

#contactModal .controls {
  margin: 0;
}

#contactModal input[type=text], #contactModal input[type=email], #contactModal textarea {
  box-sizing: border-box;
  min-height: 42px;
  border-radius: 16px;
  width: 100%;
}

#contactModal .modal-body {
    padding: 16px 10% 40px;
}

#contactModal #md-message {
  padding: 14px;
  height: 70px;
  width: 100%;
}

#contactModal .form-actions {
  padding: 0;
}

#contactModal input[type=submit].btn {
  width: 100%;
  border-radius: 16px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 16px;
  border: none;
  text-shadow: none;
  color: #fff;
  background: #109DFF;
  height: 52px;
  transition: all 0.2s ease-in-out;
}

#contactModal input[type=text]:focus, #contactModal input[type=email]:focus, #contactModal textarea:focus,
#contactForm #name:focus, #contactForm #email:focus, #contactForm #subject:focus, #contactForm #message:focus {
	border: 1.5px solid #109DFF;
	box-shadow: none;
}

#contactModal input[type=submit].btn:hover, #contactModal input[type=submit].btn:focus, #contactModal input[type=submit].btn:active {
  background: #8FE3FF;
}

#contactModal .icon-close:before {
  display: none;
}

#contactModal .icon-close {
  background-image: url('https://d2x2losda9vsjs.cloudfront.net/docs/assets/2019/icon--cross.svg');
  width: 24px;
  height: 24px;
  background-size: cover;
  display: inline-block;
  opacity: 0.7;
  transition: opacity 0.2s;
}

#contactModal #closeBtn {
  right: 14px;
}

#contactModal .icon-close:hover {
  opacity: 1;
}

#file-upload:focus {
  border: none !important;
  box-shadow: none !important;
}


/* ------------- */
/* Article Page  */
/* ------------- */

#main-content {
	background: none;
}

/* Text size */
#fullArticle p, #fullArticle ul, #fullArticle ol, #fullArticle li, #fullArticle div, #fullArticle blockquote, #fullArticle dd, #fullArticle table {
    font-size: 18px;
    color: #121212;
}

/* Title */
#fullArticle .title {
    margin: 0.33em 0px 0.66em 0;
		/*
		if printer icon is visible
		margin: 0.33em 42px 0.66em 0;
		*/
}

.contentWrapper h1 {
    font-weight: 700;
    font-size: 52px;
}

@media (max-width: 768px) {
	.contentWrapper h1 {
    	font-size: 3em;
	}
}

/* Callouts */
#fullArticle .callout-yellow, #fullArticle .callout-blue, #fullArticle .callout-red, #fullArticle .callout-green, #fullArticle .callout, #fullArticle .private-note {
  border-radius: 16px;
  border-left: 0px;
  border: 2px solid;
  box-shadow: 0 3px 6px 0 rgba(0,0,0,.05);
  background: #ffffff !important;
  padding: 24px;
}

#fullArticle .callout-yellow, #fullArticle .callout-blue, #fullArticle .callout-green, #fullArticle .callout, #fullArticle .private-note {
  border-color: #10beff !important;
}

#fullArticle .callout-red {
  border-color: #ff6c42 !important;
}

#fullArticle .callout-yellow p, #fullArticle .callout-blue p, #fullArticle .callout-red p, #fullArticle .callout-green p, #fullArticle .callout p, #fullArticle .private-note p {
  font-size: 18px;
}

/* Hide printer icon */
.icon-print:before {
  display: none;
}

/* Alternate print icon next to title */
/*
.icon-print {
  background-image: url('https://static.niagaralauncher.app/ic_printer_grey.svg');
  width: 24px;
  height: 24px;
  background-size: cover;
  display: inline-block;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.icon-print:hover {
  opacity: 1;
}
*/

/* Mail icon at the bottom */
.icon-contact:before {
  display: none;
}

.icon-contact {
  background-image: url('https://static.niagaralauncher.app/ic_mail_grey.svg');
  width: 20px;
  height: 20px;
  background-size: cover;
  display: inline-block;
  opacity: 0.7;
	margin-right: 10px;
  transition: opacity 0.2s;
}

.articleFoot p, .articleFoot time {
	vertical-align : middle;
}

.articleFoot p.lu, .articleFoot time.lu {
    margin-top: 2px;
}

/* Convert "Related articles" to lowercase */
.related h3 {
    text-transform: none;
}

/* Docs icon */
.icon-article-doc:before {
  visibility: hidden;
}

.icon-article-doc {
  background-image: url('https://static.niagaralauncher.app/ic_file_grey.svg');
  width: 20px;
  height: 20px;
	margin-right: 10px;
  background-size: cover;
  display: inline-block;
  opacity: 0.7;
}

/* Divider at the bottom on mobile */
.contentWrapper {
    background: #fff;
    border: 1.5px solid #f5f5f5;
    color: #222;
    min-height: 460px;
    padding: 45px 46px;
    position: relative;
}

@media (max-width: 768px){
	.contentWrapper {
	    padding: 25px 20px;
	    border-color: #f5f5f5;
	    border-left: 0;
	    border-right: 0;
	    min-height: 0;
	}
}


/* Side (search) bar */
#sidebar h3 {
		/* Don't capitalize category header */
    text-transform: none;
}

/* Also hide search icon when expanded */
#sidebar form button {
    display: none;
}


#searchBar.sm button {
  width: 40px;
  top: 1px;
  right: 0;
  box-shadow: none;
}

/* Search bar showing next to/under articles */
#sidebar form .search-query {
   border: 2px solid #DBDBDB;
   border-radius: 40px;
   height: 42px;
   box-shadow: none;
}

#sidebar form .search-query:hover{
    border: 2px solid #109DFF;
    box-shadow:none;
}

@media screen and (min-width: 768px){
	.contentWrapper, .related{
		background-color: #FFF;
		border-radius: 16px;
		border: 1.5px solid #f5f5f5;
		box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px, rgb(241, 243, 245) 0px 5px 20px 0px, rgba(0, 0, 0, 0.05) 0px 3px 3px 0px;
	}
}

/* Quotes */
#fullArticle blockquote {
    box-shadow: inset 3px 0 0 0 rgba(0, 0, 0, 0.84);
    border-width: 0px;
    padding: 0px 20px 0px 20px;
}

/* Code snippets */
#fullArticle pre, #fullArticle code {
		font-size: 16px;
    padding: 2px 4px;
    color: #212121;
    background-color: #eeeeee;
    border: 1.5px solid #eeeeee;
    border-radius: 8px;
}

pre {
	border-radius: 16px;
}

.related{
	margin-top: 32px;
}

.articleRatings{
	border-radius: 16px;
	border: 1.5px solid #f5f5f5;
}

#fullArticle img{
	border-radius: 16px;
	border: 0px;
}

/* Navigation Bar */
.related{
	margin-top: 32px;
}

.articleRatings{
	border-radius: 16px;
	border: 1.5px solid #f5f5f5;
}

.nav-collapse .nav {
  margin-top: 40px;
}

/* Toolbar */
.navbar .navbar-inner {
  background-color: #03004C;
}

.navbar .nav > li > a {
  font-size: 15px;
  padding: 0 20px;
  -webkit-font-smoothing: auto;
}

@media screen and (max-width: 768px) {
  .navbar .nav > li > a {
    padding: 15px 20px;
  }

  #contactMobile {
    display: block;
  }
}

.navbar .nav #contact a {
  padding-right: 0;
}

.navbar .nav li a,
.navbar .icon-private-w {
  color: #D9DCFD;
  transition: color 0.2s;
  font-family: 'Josefin Sans', sans-serif;
}

#mainNav .container-fluid {
  min-height: 90px;
  line-height: 90px;
}

.navbar .btn-navbar {
  right: 0;
  margin-right: 0;
  padding-right: 0;
}

.navbar .btn-navbar .icon-bar {
  width: 20px;
}

@media screen and (max-width: 768px) {
  .navbar .btn-navbar {
    margin-top: 32px;
  }

  .navbar .btn-navbar .icon-bar {
    background: #FFF;
  }
}

.navbar .nav .active .caret {
  display: none;
}

.navbar .nav .active a {
  font-weight: 500;
}

.nav .icon-private-w:before {
  display: none;
}

.nav .icon-private-w {
  background-image: url('https://d2x2losda9vsjs.cloudfront.net/docs/assets/2019/icon--lock-white.svg');
  background-repeat: no-repeat;
  width: 24px;
  height: 24px;
  background-size: cover;
  display: inline-block;
  opacity: 0.6;
  position: relative;
  top: 5px;
  left: -2px;
}


@media screen and (min-width: 768px) {
  .nav #internal {
    position: relative;
  }
}

.nav > li.active .icon-private-w,
.nav > li a:hover .icon-private-w {
  opacity: 1;
}

/* Article Footer */
.articleFoot p, .articleFoot time {
    color: #757575;
    display: inline-block;
    font-family: 'Josefin Sans', sans-serif;
    font-style: normal;
}

#sbContact {
    color: #757575;
    border-bottom: 1px solid #757575;
}

/* Footer */
footer p {
    font-size: 1em;
    color: #757575;
    text-align: right;
	margin-top: 2em;
    margin-bottom: 3em;
    font-family: 'Josefin Sans', sans-serif;
}

/* (Admin only) view in HelpScout button */
#fullArticle .admin-edit {
    color: #109dff;
    font-weight: 600;
    font-family: 'Josefin Sans', sans-serif;
    display: inline-block;
    margin-bottom: 22px;
    border-radius: 16px;
    border: 1.5px solid #109dff;
    background: #FFFFFF;
}
