/*
* Free to use under the MIT license.
* https://www.opensource.org/licenses/mit-license.php
*/

/* ============================================
   Franklin PKI Dark Theme
   bg: #0e0e12 | surface: #16161d | raised: #1e1e28 | border: #2a2a38
   text: #e2e0ec | muted: #8a879e
   accent (cyan): #3cc8c8 | secondary: #8ee8e0 | tertiary (amber): #fbbf24
   fonts: Outfit + JetBrains Mono
   ============================================ */

html,body {
  height: 97%;
  margin: 0;
  background-color: #0e0e12;
  color: #e2e0ec;
  font-family: 'Outfit', sans-serif;
}

#fullpage, .section {
  height: 100%;
}

.slide {
  height: 100%;
  min-height: 100%;
  display: none;
}

.active {
  display: block;
}

html>body .slide {
  height: auto;
}

/* #Blockquotes
================================================== */
blockquote {
  border-left: 5px solid #3cc8c8;
  margin: 1.5em 10px;
  padding: 0.5em 10px;
  color: #8a879e;
}
blockquote:before {
  color: #2a2a38;
  font-size: 4em;
  line-height: 0.1em;
  margin-right: 0.25em;
  vertical-align: -0.4em;
}

/* #Code
================================================== */
.code-block {
	background: rgba(60, 200, 200, 0.12);
	border: 1px solid #2a2a38;
	border-radius: 4px;
	font-size: 90%;
	padding: .2rem .5rem;
	font-family: 'JetBrains Mono', 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
	color: #e2e0ec;
}

code {
    background: rgba(60, 200, 200, 0.12);
    border-radius: 3px;
    padding: 0.1em 0.3em;
    color: #3cc8c8;
}


/* sweet-alert customization
================================================== */
.sa-button-container {
    display: none;
}
.sweet-alert {
    top: 30%;
    background: #1e1e28;
    color: #e2e0ec;
    border: 1px solid #2a2a38;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}
.sweet-alert h2 {
    color: #e2e0ec;
}
.sweet-alert p {
    color: #8a879e;
}
/* Success checkmark: cyan instead of green */
.sa-success {
    border-color: #3cc8c8 !important;
}
.sa-success .sa-line {
    background-color: #3cc8c8 !important;
}
.sa-success .sa-placeholder {
    border-color: rgba(60, 200, 200, 0.3) !important;
}
.sa-success .sa-fix {
    background-color: #1e1e28 !important;
}

/* #General
================================================== */
.center {
	text-align: center;
}

.custom-hr {
	border-top: 3px solid #2a2a38;
    margin-top: 1rem;
}

p {
	margin-bottom: 1.5em;
}

.container {
	margin-top: 2em;
}

.button-primary
{
    box-shadow: 2px 2px 4px rgba(0,0,0,.4);
    background-color: #3cc8c8 !important;
    border-color: #3cc8c8 !important;
    border-bottom: 2px #2ba8a8 solid !important;
    border-right: 2px #2ba8a8 solid !important;
    color: #0e0e12 !important;
    font-weight: 600;
}

.button-primary:hover
{
    background-color: #8ee8e0 !important;
    border-color: #8ee8e0 !important;
}

.button-urgent
{
    box-shadow: 2px 2px 4px rgba(0,0,0,.4);
    background-color: #3cc8c8 !important;
    border: #3cc8c8 !important;
    border-bottom: 2px #2ba8a8 solid !important;
    border-right: 2px #2ba8a8 solid !important;
    color: #0e0e12 !important;
}

button, .button {
    background-color: #1e1e28;
    color: #e2e0ec;
    border-color: #2a2a38;
}

button:hover, .button:hover {
    background-color: #2a2a38;
    color: #e2e0ec;
    border-color: #3cc8c8;
}

button.button-previous:before {
	content: "\2190";
	font-size: 1.3em;
	margin-right: 1em;
}
button.button-next:after, a.button-next-lesson:after {
	content: "\2192";
	font-size: 1.3em;
	margin-left: 1em;
}

.noselect {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.six.columns label {
    color: #8a879e;
    font-weight: normal;
    font-size: 0.8em;
    margin-top: 5px;
}

input[type="checkbox"] {
    vertical-align: -2px;
}

.spaces {
    color: #8a879e;
}



/* format the editors for the exercises */
.editor {
	width: 100%;
    max-width: 100%;
	height: 11.7em;
	border: 1px #2a2a38 solid;
	margin-bottom: 0em;
	background-color: #16161d;
	color: #e2e0ec;
}
code, kbd, pre, samp, .editor, .html-pad, .preformatted {
	font: 1em/normal 'JetBrains Mono', 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
}
.preformatted {
    font-size: 0.9em;
}
.render-pad, .html-pad {
	font-size: 0.9em;
	height: 13em;
	border: 1px #2a2a38 solid;
	overflow: auto;
	padding: 0.5em;
	background-color: #16161d;
	color: #e2e0ec;
}
.html-pad {
	display: none;
}

.lesson-number {
    font-size:5em;
    color: #3cc8c8;
    border: 10px #3cc8c8 solid;
    width:150px;
    border-radius:50%;
    padding-left:22px;
    font-weight: 800;
}

.muted {
    color: #8a879e;
}

.muted a {
    color: #8a879e;
}

/* mobile modifications */
@media (max-width: 737px) {
	.editor {
		height: 9em;
        font-size: 0.9em;
	}
	.render-pad, .html-pad {
		height: 10em;
	}
    .lesson-number {
        font-size: 30px;
        border: none;
        padding-left: 0;
    }
    .rowspacer {
        display: none;
    }
    .container {
        margin-top: 0.5em;
        padding: 0 10px;
    }
    h1 {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
    h2 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    .generated-check {
        display: none;
    }
    .button-answer {
        margin-top: 1em;
        margin-bottom: -1em;
    }
    .button-reset {
        margin-top: 1em;
        margin-bottom: -1em;
    }
    .row.exercise-instructions p {
        margin-bottom: 0.4em;
    }
    .cd-container {
        margin: 0;
    }
    .second-example {
        display: none;
    }
}


/* iPhone 6 height */
@media (min-height: 570px) and (max-width: 737px) {
    .editor {
        height: 180px;
        font-size: 1em;
    }
    .render-pad, .html-pad {
        height: 180px;
        font-size: 1em;
    }
}

/* iPhone 6 plus height */
@media (min-height: 730px) and (max-width: 737px) {
    .editor {
        height: 230px;
        font-size: 1em;
    }
    .render-pad, .html-pad {
        height: 230px;
        font-size: 1em;
    }
}


/* tiny desktop height */
@media (min-height: 550px) and (min-width:820px) {
    .editor {
        height: 240px;
    }
    .render-pad, .html-pad {
        height: 240px;
    }
}


/* small desktop height */
@media (min-height: 650px) and (min-width:820px) {
    .editor {
        height: 340px;
        font-size: 1em;
    }
    .render-pad, .html-pad {
        height: 340px;
        font-size: 1em;
    }
}


/* regular desktop height */
@media (min-height: 750px) and (min-width:820px) {
    .editor {
        height: 440px;
        font-size: 1em;
    }
    .render-pad, .html-pad {
        height: 440px;
        font-size: 1em;
    }
}


/* fixed footer */
#footer{
	position:fixed;
	height: 40px;
	display:block;
	width: 100%;
	background: #16161d;
	z-index:9;
	text-align:center;
	color: #e2e0ec;
	padding: 15px 0 0 0;
}

#footer {
	bottom:28px;
}

.touch #footer {
	display: none;
}

/* #Slide Menu (adapted from https://tympanus.net/codrops/2014/01/21/dot-navigation-styles/)
================================================== */
.dotstyle ul {
	position: relative;
	display: inline-block;
	margin: 0;
	padding: 0;
	list-style: none;
	cursor: default;
	-webkit-touch-callout: none;
	user-select: none;
}

.dotstyle li {
	position: relative;
	display: block;
	float: left;
	margin: 0 16px;
	width: 20px;
	height: 20px;
	cursor: pointer;
}

.dotstyle li a {
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	outline: none;
	border-radius: 50%;
	background-color: rgba(60, 200, 200, 0.2);
	text-indent: -999em;
	cursor: pointer;
	position: absolute;
}

.dotstyle li a:focus {
	outline: none;
}

/* Fill up */

.dotstyle-fillup li a {
	overflow: hidden;
	background-color: transparent;
	box-shadow: inset 0 0 0 2px #2a2a38;
	transition: background 0.3s ease;
}

.dotstyle-fillup li a::after {
	content: '';
	position: absolute;
	bottom: 0;
	height: 0;
	left: 0;
	width: 100%;
	background-color: #3cc8c8;
	box-shadow: 0 0 1px #3cc8c8;
	transition: height 0.3s ease;
}

.dotstyle-fillup li a:hover,
.dotstyle-fillup li a:focus {
	background-color: rgba(60, 200, 200, 0.15);
}

.dotstyle-fillup li.current a::after {
	height: 100%;
}

/* fix some editor preview style issues */

.render-pad li > pre, .render-pad li > preblockquote {
	margin-left: 1em;
}
.render-pad li > p:not(:first-child) {
	margin-left: 1em;
}

.render-pad h1,h2,h3,h4,h5,h6 {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* headers are ridiculously friggin' big in skeleton */
.render-pad h1 {
    font-size:2.2rem;
}
.render-pad h2 {
    font-size:1.9rem;
}
.render-pad h3 {
    font-size:1.7rem;
}
.render-pad h4 {
    font-size:1.5rem;
}
.render-pad h5 {
    font-size:1.4rem;
}
.render-pad h6 {
    font-size: 1.4rem;
}


.render-pad p {
    margin-bottom: 1em;
}

/* reference card fixups */

.smaller-h1 {
    font-size:2.2rem;
}

.smaller-h2 {
    font-size:2rem;
    font-weight: normal;
}

.markdown-reference {
    width: 100%;
}

.markdown-reference td, .markdown-reference th {
    border-color: #2a2a38;
}

/* fixup for list exercise with long ol number */
#render_pad_8-3 ol {
    padding-left: 40px;
}

/* syntax highlighting for the "show generated HTML" tags */
.hljs-tag {
    color: #fbbf24 !important;
    font-weight: normal !important;
}
.hljs-title {
    color: #fbbf24 !important;
    font-weight: normal !important;
}

/* Franklin PKI Dark Theme overrides */
h1, h2, h3, h4, h5, h6 {
    color: #e2e0ec;
}

a {
    color: #3cc8c8;
}

a:hover {
    color: #8ee8e0;
}

.editor:focus {
    border-color: #3cc8c8;
    outline: none;
}

/* Demo example text */
.cd-product-description {
    color: #e2e0ec;
}

/* Exercise instructions */
.exercise-instructions p {
    color: #e2e0ec;
}

/* CC-BY-SA Footer */
.cc-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #16161d;
    color: #8a879e;
    font-size: 0.7em;
    text-align: center;
    padding: 6px 0;
    z-index: 10;
    border-top: 1px solid #2a2a38;
}

.cc-footer a {
    color: #3cc8c8;
    text-decoration: underline;
}

.cc-footer a:hover {
    color: #8ee8e0;
}

@media (max-width: 737px) {
    .cc-footer {
        font-size: 0.6em;
        padding: 4px 0;
    }
}
