/* =======================================================================
   tutorial-post.css
   shared stylesheet for individual tutorial pages, matching the
   carousel/seyche theme used across the rest of the site (tutorials.html)
   ======================================================================= */

@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,700,700i&display=swap');
@import url('https://fonts.googleapis.com/css?family=Bitter:400,400i,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Source+Code+Pro:400,500&display=swap');

::-webkit-scrollbar {
  width: 4px;
  height: 4px;
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: #F9EDF4;
  -webkit-border-radius: 0ex;
  border: 1px dotted #E7D0DD;
}

::selection {
  background-color: #feeef6;
  color: #8d7c76;
}

::-moz-selection {
  background-color: #feeef6;
  color: #8d7c76;
}

@keyframes lazyload {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 14px;
  color: #7c7c7c;
  background-image: url(/media/pinkcheck.png);
  background-size: 40px;
  line-height: 160%;
  letter-spacing: 0.2px;
  word-wrap: break-word;
  animation: lazyload 2s;
}

html,
body,
*,
a,
button,
input,
select,
textarea {
  cursor: url('/cursor/normal-select.gif') 0 0, progress !important;
}

a {
  text-decoration: none;
  color: #555;
  transition: all 0.3s;
}

a:hover {
  color: #ed9abc;
}

p a {
  border-bottom: 3px solid #ffd8e9;
}

p a:hover {
  border-bottom: 2px solid transparent;
}

ul,
ol {
  margin: 1em 0 1em 1.25em;
  list-style: none;
}

li {
  margin-left: 0;
}

small {
  font-size: 0.9em;
}

big {
  font-size: 1.1em;
}

b,
bold,
strong {
  color: #555;
}

h1,
h2,
h3,
h4 {
  font-family: 'Bitter', serif;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 1px;
}

::-webkit-scrollbar {
  width: 17px;
  height: 17px;
  background-color: #fff;
}

::-webkit-scrollbar-track {
  border: 8px solid #fff;
  background-color: #dcdcdc;
}

::-webkit-scrollbar-thumb {
  border: 6px solid #fff;
  background-color: #dcdcdc;
  min-height: 24px;
  min-width: 24px;
}

/*----- TOP NAVIGATION (matches tutorials.html) -----*/

header {
  position: fixed;
  background-color: #fff;
  border-bottom: 1px solid #dcdcdc;
  width: 100%;
  left: 0;
  right: 0;
  top: 0;
  z-index: 99999999;
}

.topnav {
  text-align: center;
  padding: 15px 0;
  margin: 0 auto;
}

.topnav a {
  border-bottom: 4px solid transparent;
  padding: 15px 3px;
  margin: 0 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9em;
}

.topnav a:hover {
  border-bottom: 4px solid #ffd8e9;
  color: #555;
}

.icon {
  border-radius: 50%;
  position: absolute;
  margin: 0 auto 0 -30px;
  background-color: #fff;
  padding: 5px;
  border: 1px solid #dcdcdc;
  width: 60px;
  height: 60px;
}

.left {
  margin-right: 45px;
}

.right {
  margin-left: 45px;
}

/*----- PAGE / POST CARD -----*/

#container {
  display: flex;
  justify-content: center;
  padding-top: 130px;
  padding-bottom: 3em;
  min-height: 100vh;
}

.page {
  background-color: #fff;
  margin: 0 auto;
  width: 1000px;
  border: 1px solid #dcdcdc;
  padding: 45px;
}

/*----- SITE-NAV (back link) -----*/

.site-nav {
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85em;
}

.site-nav a {
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  border-bottom: 2px solid #ffd8e9;
}

/*----- BOX / IN-BOX TITLE / TUTORIAL LABEL -----*/

.box {
  margin-top: 1.75em;
}

.box .header-titles {
  padding-bottom: 1.5em;
  margin-bottom: 1.5em;
  border-bottom: 1px solid #dcdcdc;
}

.box .header-titles h1 {
  font-size: 1.3em;
  letter-spacing: 1.5px;
  font-weight: bold;
  margin: 0;
}

.box .header-titles p {
  font-family: 'Source Sans Pro', sans-serif;
  font-style: italic;
  font-size: 0.95em;
  margin-top: 0.5em;
  text-transform: none;
  letter-spacing: 0.2px;
}

.box-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background-color: #ffd8e9;
  color: #555;
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 4px;
  margin-bottom: 1.5em;
}

.box-title .icon {
  all: unset;
  width: 13px;
  height: 13px;
  stroke: #555;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  display: inline-block;
}

.box-body {}

/*----- META BADGES -----*/

.tut-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1.5em;
}

.tut-meta span {
  background: #feeef6;
  border: 1px solid #dcdcdc;
  color: #7c7c7c;
  font-size: 0.72em;
  padding: 4px 11px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 700;
}

.tut-meta .level {
  background: #ffd8e9;
  color: #555;
  border-color: #ffd8e9;
}

/*----- LEAD TEXT -----*/

.lead-text {
  font-style: italic;
  font-size: 1em;
  color: #555;
  background-color: #fff6fb;
  border: 1px solid #dcdcdc;
  padding: 12px 16px;
  margin-bottom: 1.75em;
}

/*----- CONTENT -----*/

.content p {
  margin-top: 1.5em;
  font-size: 0.95em;
  line-height: 1.8;
}

.content h2 {
  font-size: 1.05em;
  margin: 1.75em 0 0.9em;
  padding-bottom: 0.6em;
  border-bottom: 1px dashed #dcdcdc;
}

.content h2:first-child {
  margin-top: 0;
}

.content ul.steps-list,
.content ol.steps-list {
  margin: 0.75em 0 1.25em 0;
}

.content ul.steps-list li,
.content ol.steps-list li {
  font-size: 0.9em;
  line-height: 1.75;
  margin-bottom: 0.6em;
  padding-left: 26px;
  position: relative;
}

.content ul.steps-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  background-image: url(/media/bows.png);
  background-size: contain;
  background-repeat: no-repeat;
}

.content ol.steps-list {
  counter-reset: step;
}

.content ol.steps-list li {
  counter-increment: step;
}

.content ol.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -1px;
  background: #ffd8e9;
  color: #555;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 0.65em;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/*----- CODE BLOCKS -----*/

code {
  font-family: 'Source Code Pro', 'Courier New', monospace;
  color: #b5658c;

}

p code,
li code {
  background: #feeef6;
  border: 1px solid #ffd8e9;
  padding: 1px 5px;
  font-size: 0.9em;
}

pre {
  font-family: 'Source Code Pro', monospace;
  background-color: #fff6fb;
  border: 1px solid #dcdcdc;
  border-left: 4px solid #ffd8e9;
  color: #555;
  padding: 1em;
  margin-top: 1em;
  overflow-x: auto;
  font-size: 0.85em;
  line-height: 150%;
  border-radius: 0 4px 4px 0;
}

pre code {
  border: none;
  background: none;
  padding: 0;
  color: inherit;
}

/*----- TIP BOX -----*/

.tip-box {
  background: #fff6fb;
  border: 1px solid #dcdcdc;
  padding: 1em 1.25em;
  margin: 1.75em 0;
  color: #555;
}

.tip-box code {
  color: #555;
  font-weight: bold;
  font-family: 'Source Sans Pro', sans-serif;
}

/*----- LIVE DEMO BOX -----*/

.demo-box {
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  padding: 1.25em;
  margin: 1em 0 1.75em;
  background: #fff;
  width: 100%;
}

.calendar-demo-box {
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  padding: 1.25em;
  margin: 1em 0 1.75em;
  background: #fff;
  width: 40%;
}

/*----- CALENDAR WIDGET (used by demo pages) -----*/

table.cal {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8em;
}

table.cal th {
  color: #555;
  font-weight: 700;
  padding-bottom: 4px;
}

table.cal td {
  text-align: center;
  padding: 6px 0;
  color: #7c7c7c;
  border-radius: 4px;
}

table.cal td.today {
  background: #ffd8e9;
  color: #555;
  font-weight: 700;
}

.cal-month {
  text-align: center;
  font-family: 'Bitter', serif;
  font-weight: 700;
  font-size: 1.1em;
  color: #555;
  padding: 2px 0 10px;
  border-bottom: 1px dashed #dcdcdc;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/*----- NAV BUTTONS -----*/

.nav-buttons {
  margin-top: 1.75em;
  padding-top: 1.75em;
  border-top: 1px solid #dcdcdc;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/*----- FOOTER -----*/

.site-footer {
  text-align: center;
  font-size: 0.8em;
  color: #a8988f;
  margin-top: 2em;
  padding-top: 1em;
  border-top: 1px dashed #dcdcdc;
}

.site-footer a {
  color: #b5658c;
  font-weight: 700;
}

/*----- RESPONSIVE -----*/

@media only screen and (max-width: 900px) and (min-width: 501px) {
  .page {
    width: 90vw;
    padding: 30px;
  }
  .calendar-demo-box {
    width: 100%;
  }
}
@media only screen and (max-width: 500px) {
  .page {
    width: 90vw;
    padding: 20px;
  }
  .nav-buttons {
    flex-direction: column;
    gap: 0.75em;
  }
  .calendar-demo-box {
    width: 100%;
  }
}