/**
 * Faking Fluency main CSS
 * --------------------------------------------------------------------------
 * @author Andre Goncalves (andre@andregoncalves)
 * @project Faking Fluency
 * @date Jun 27 2018
 * @copyright 2018 Andre Goncalves
 * --------------------------------------------------------------------------
 */

:root {
  --container-width: 550px;
  --active-speech-color: #f0ad4e;
  --header-color: #ebf3fb;
  --primary-color: #117df8;
}
html {
  scroll-behavior: smooth;
}
body {
  counter-reset: item;
  font-family: 'Montserrat', sans-serif;
  /*max-width: 1280px;*/
  margin: auto;
  background-color: #EEE;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%23cccccc' fill-opacity='0.4' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");
}
body.admin {
  max-width: 100%;
}


/* ==========================================================================
   COMMON
   ========================================================================== */



.res-mobile {
  display: none;
}

.f32 .flag.zh {
  background-position: 0 -2080px;
}
.f32 .flag.en {
  background-position: 0 -2912px;
}
td.actions,
th.actions {
  text-align: right;
}

.visible {
  display: block !important;
}

body > .container-fluid {
  padding: 0;
}

span.beta {
  display: block;
  float: left;
  padding: 5px;
  background: #DC5151;
  color: #FFF;
  margin: 12px 0;
  font-weight: bold;
}

.visible {
  display: block;
}
.visible-inline {
  display: inline-block;
}
.invisible {
  display: none !important;
}
.form-group-sm {
  display: flex;
}


@media (max-width: 450px) {
  .navbar-toggle {
    /* header icon was too much inwards in mobile views */
    margin-right: 5px;
  }
}


/* HEADER */
body > header {
  background: #137df8;
  color: white;
}
.navbar-brand {
  text-shadow: none;
}
.navbar-nav > li {
  margin-top: .5em;
}
.navbar-nav > li > a {
  color: #FFF;
  padding-right: 0;
}

.alert {
  max-width: 760px;
  margin: auto;
}

@media (max-width: 450px) {
  .navbar-collapse.bs-navbar-collapse {
    background: #318ef9;
  }
}

/* ==========================================================================
   PAGE TYPES
   ========================================================================== */

.info-page {
  padding: 2em 2em 6em 2em;
  background: #FFF;
}
.info-page h2 {
  font-size: 24px;
}
.info-page h3 {
  font-size: 20px;
}

/* ==========================================================================
   MODAL
   ========================================================================== */
.ff-dialog {
  padding: 2em 4em;
  border: 0px solid rgba(0, 0, 0, 0.3);
  border-radius: 0px;
  min-width: 350px;
  width: 50%;
  background: #fff;
  background: -moz-linear-gradient(#fcfcfc, #ffffff);
  background: -webkit-linear-gradient(#fcfcfc, #ffffff);
  background: -o-linear-gradient(#fcfcfc, #ffffff);
  box-shadow: 0 1px 2px rgba(114, 121, 135, 0.25), 0 8px 14px rgba(114, 121, 135, 0.2);
}
.no-native-dialog dialog {
  width: 50%;
  top: 25%;
  margin-left: 25%;
  z-index: 99;
  overflow: hidden;
  box-shadow: 0px 0px 8px #000;
  position: absolute;
}
#ff-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  background: rgba(0,0,0,0.7);
  z-index: 98;
}
dialog::backdrop {
  background: rgba(122, 122, 122, 0.7);
}

.ff-dialog > header {
  margin-bottom: 2em;
  background: #EEE;
  padding: 2em;
}
.ff-dialog > header h1 {
  text-transform: uppercase;
  margin: 0;
  font-size: 2em;
}
.ff-dialog .dialog-modal-header {
  background: #f6f8fb;
  padding: 1.5em 2em;
  margin: -2em -4em 2em -4em;
}
.ff-dialog .dialog-modal-header h1 {
  text-transform: none;
  margin: 0;
  font-size: 2.1em;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.ff-dialog .dialog-modal-header p {
  margin: 0.75em 0 0 0;
  color: #5e6a7d;
  font-size: 1.05em;
}
.ff-dialog .dialog-modal-body {
  padding: 0 1.5em 0.5em;
}
.ff-dialog .dialog-modal-empty {
  padding: 1.5em 1em 1.75em;
  color: #5e6a7d;
  font-size: 1.05em;
  text-align: center;
}
.ff-dialog > footer {
  padding: 1em 2em 1.5em;
  border: 0;
  text-align: center;
}

/* ==========================================================================
   Front page
   ========================================================================== */
header.header--front-page {
  background-attachment: fixed;
  background-size: cover;
  background-position-y: -200px;
  background: #137df8;
}

div.header-content-wrap {
  padding: 3% 0 40px 0;
}

h1.header_intro-text {
  color: #FFF;
  z-index: 0;
  font-size: 50px;
  font-weight: bold;
  margin-right: 1em;
}
.header_intro-sub-text {
  font-size: 20px;
  color: #FFF;
  margin-top: 25px;
  margin-bottom: 25px;
}

.nav > li > a:hover {
  background: unset;
  text-decoration: none;
}

section.front-page--section {
  padding: 3em 0px;
  background: #FFF;
}

section.front-page--section.benefits img {

}

section.front-page--section.benefits p {
  font-size: 16px;
  line-height: 1.4;
  margin-left: 0.5em;
  margin-bottom: 2em;
}
.front-page--section.benefits .benefits-items .row {
  padding: 0 10px;
}
.front-page--section.benefits .benefits-items div.col-sm-6 > div {
  display: flex;
}
.main--section,
section.front-page--section.pick-a-language {
  background-color: #f6f8fb;
}
.card-lang {
  border-radius: 5px;
  filter: drop-shadow(0px 17px 18px rgba(40,61,82,0.06));
  border: 1px solid #fff;
  background-color: #ffffff;
  font-size: 17px;
  color: #232a4d;
  padding: 20px;
  margin: 10px;
}

.card-lang .hlink {
  color: #232a4d;
}

.carddiv a:hover {
  text-decoration: none;
}

.card-lang:hover {
  border: 1px solid #117df8;
  border-radius: 5px;
}

.bottom-get-started {
  border-radius: 23px;
  background-color: #137df8;
  padding: 75px 50px;
}

.cstm-input {
  height: 60px;
  padding: 25px;
  background: #137df8;
  color: white;
  border-color: white;
  border-top-left-radius: 5px !important;
  border-bottom-left-radius: 5px !important;
  border-top-right-radius: 0px !important;
  border-bottom-right-radius: 0px !important;
  max-width: 300px;
}

.email-input {
  margin-top: 15px;
}

.get-started-button {
  float: left;
  height: 60px;
  line-height: 60px;
  padding-left: 3%;
  padding-right: 3%;
  background: #fff;
  border-bottom-right-radius: 5px;
  border-top-right-radius: 5px;
  color: #137df8;
  letter-spacing: 1px;
}
.get-started-button button {
  background: transparent;
  border: 0;
}

.cstm-input::placeholder {
  color: white;
}

.gs-heading {
  font-size: 30px;
  letter-spacing: 0px;
  color: #fff;
}

.nav-list {
  list-style: none;
  float: right;
}

.nav-item {
  float: left;
  margin: auto 20px;
  font-size: 1.4rem;
  letter-spacing: 1px;
}

.gs-subheading {
  color: #e2f1ff;
  font-size: 22px;
}

.section-header {
  text-align: center;
}
.section-header h2 {
  padding-bottom: 2em;
  position: relative;
  display: inline-block;
  font-size: 32px;
  font-weight: bold;
  color: #444;
}
div.cta-buttons {
  margin-top: 3rem;
}
#main-nav {
  margin-bottom: 0;
  border-bottom: 1px solid #ccc;
}
footer {
  margin-top: 3em;
}
footer .copyright {
  color: #999;
  margin: 2em 0;
}

@media (max-width: 768px) {
  h1.header_intro-text {
    font-size: 40px;
  }
  .header--front-page svg {
    margin-top: 50px;
  }

}
@media (max-width: 440px) {


  div.header-content-wrap {
    padding: 5% 0;
  }
  section.benefits,
  section.pick-a-language {
    padding: 1em 0;
  }
  .section-header h2 {
    padding-bottom: 1rem;
    font-size: 24px;
  }
  h1.header_intro-text {
    font-size: 32px;
  }
  .header_intro-sub-text {
    font-size: 16px;
  }
  footer {
    padding: 1rem;

  }
  footer a {
    float: none;
    display: block;
    margin-bottom: 10px;
  }
  footer .nav-list {
    float: none;
    margin: 2em 0;
    padding: 0;
  }
  footer .nav-list li {
    margin: 0 2em 0 0;
  }

  .pl {
    padding-left: 45px;
  }

  .mmargin {
    margin-left: 15px;
    width: 100%
  }

  .mwidth {
    width: 100%;
  }

  .bottom-get-started {
    padding: 50px 20px;
    border-radius: 0;
  }

  .cstm-input {
    max-width: 250px;
  }

  .mpadding {
    padding: auto;
  }

  .nav-list {
    padding: 0px;
  }

  .nav-item {
    margin: auto 11px;
  }

  .miconwidth {
    margin-right: 0px;
    margin-top: 20px !important;
    width: 100%;
    text-align: center;
    margin-left: -5px;
  }
}

body.dialog .main {
  position: relative;
  min-height: 80vh;
  overflow: hidden;
}
body.dialog .main div.step {
  display: none;
  position: absolute;
  top: 100vh;
  width: 100%;
}
body.dialog .main div.step:first-child {
  display: block;
  top: 0;
}
body.dialog div.step h2 {
  display: block;
  margin: 1em auto 1em auto;
  text-align: center;
}
@media (max-width: 320px) {
  body.dialog footer {
    padding: 0;
  }
  body.dialog div.step h2 {
    margin: 1em auto;
    font-size: 1.5em;
  }

  .pl {
    padding-left: 45px;
  }
}
@media (max-width: 414px) {
  body.dialog footer {
    padding: 0;
    position: absolute;
    height: 40px;
    bottom: 0px;
  }
  body.dialog div.step h2 {
    margin: 1em auto;
    font-size: 1.5em;
  }
  .pl {
    padding-left: 45px;
  }
}
/* ==========================================================================
   Sessions and registration forms
   ========================================================================== */
div.form-wrapper {
  margin: 80px auto;
  max-width: 500px;
  padding: 25px 50px;
  box-shadow: 0px 0px 8px #eee;
  background: #FFF;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(17, 125, 248, 0.08);
}
#login-form, #recover-password-form {
  margin-bottom: 15px;
}

#register-form h2,
#register-form p,
#reset-password-form h2,
#reset-password-form p {
  margin-right: 0;
  margin-left: 0;
}

#login-form .btn {
  margin: 1em 0 2em 0;
}

@media (max-width: 450px) {
  div.form-wrapper {
    margin: 16px 12px 24px 12px;
    max-width: none;
    padding: 20px 16px 24px 16px;
    border-radius: 12px;
  }

  .ff-dialog .dialog-modal-header {
    margin: -2em -4em 1.25em -4em;
    padding: 1.25em 1.5em;
  }

  .ff-dialog .dialog-modal-header h1 {
    font-size: 1.75em;
  }

  .ff-dialog .dialog-modal-header p {
    font-size: 0.95em;
  }

}

@media (max-width: 450px) {
  footer {
    padding: 24px 16px;
    margin-top: 24px;
  }

  footer svg {
    max-width: 100%;
    height: auto;
  }

  footer .nav-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0 0 0;
  }

  footer .nav-item {
    float: none;
    margin: 0;
  }

  footer .copyright {
    margin: 24px 0 0 0;
    line-height: 1.5;
  }
}


/* ==========================================================================
   USER LANGUAGE LEARNING DASHBOARD
   ========================================================================== */

section.dashboard-header {
  padding: 2em;
}
section.dashboard-header h2 {
  margin: 0;
  text-align: center;
}
section.dashboard-header h2 span {
  text-transform: uppercase;
}

div.dashboard-options {
  display: flex;
  flex-direction: row;
  flex-wrap:wrap;
  padding: 4em 2em;
  justify-content: center;
}

section.activity-block {
  margin: 1em;
  position: relative;
  width: 280px;
  box-shadow: 0 2px 2px 0 rgba(0,0,0,.14), 0 3px 1px -2px rgba(0,0,0,.2), 0 1px 5px 0 rgba(0,0,0,.12);
}

section.activity-block header {
  background: #ebf3fb;
  padding: 1em;
  font-size: 1.2em;
  text-transform: uppercase;
  font-weight: bold;
}


section.activity-block .footer {
  padding: 1em;
  position: absolute;
  bottom: 1em;
}

section span.badge {
  position: absolute;
  right: 0.5em;
  font-size: 16px;
  line-height: 20px;
  background: #dc5151;
  padding: 4px 7px;
  font-weight: 400;
  box-shadow: 2px 2px 4px #bbb;
}

section.activity-block .body {
  padding: 1em;
  color: #424242;
  padding-bottom: 100px;
}

@media (max-width: 450px) {
  div.dashboard-options {
    margin: 0 auto;
  }
}

.dialog-selection-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  width: 80%;
}


a.dialog-selection {
  min-height: 100px;
  padding: 10px;
  background: #ebf3fb;
  display: block;
  text-decoration: none;
  box-shadow: 0px 2px 3px #ddd;
  cursor: pointer;
  margin: 1em;
  position: relative;
}
a.dialog-selection header {
  color: #3978be;
  font-size: 0.95em;
  line-height: 1.25;
}
a.dialog-selection mark {
  font-size: 1.5em;
  display: inline-block;
  margin-top: 5px;
}
.dialog-selection:hover {
  background: #afd4f9;
}
a.dialog-selection span.unavailable {
  position: absolute;
  bottom: 5px;
  left: 5px;
}

@media (max-width: 600px) {
  section.front-page--section {
    padding: 0;
  }
  section.activity-block {
    width: 100%;
  }
  div.dashboard-options {
    padding: 0;
  }
  .dialog-selection-container {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
}
@media (max-width: 350px) {
  section.front-page--section {
    padding: 0;
  }
  a.dialog-selection {
    width: 100%
  }

}


/* ==========================================================================
   SELECT/REVIEW DIALOGUE MODAL
   ========================================================================== */
dialog.select-dialogue, dialog.review-dialogue {
  width: 70%; padding: 0;
  margin-left: 15%;
  border: none;
  border-radius: 18px;
  max-height: 88vh;
  overflow: auto;
}

dialog.ff-dialog.select-dialogue .dialog-selection-container,
dialog.ff-dialog.review-dialogue .dialog-selection-container {
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1em;
}

dialog.ff-dialog.select-dialogue a.dialog-selection,
dialog.ff-dialog.review-dialogue a.dialog-selection {
  margin: 0;
  min-height: 120px;
  padding: 16px 18px 14px 16px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(35, 42, 77, 0.08);
}

dialog.ff-dialog.select-dialogue a.dialog-selection mark,
dialog.ff-dialog.review-dialogue a.dialog-selection mark {
  font-size: 1.2em;
  line-height: 1.25;
  padding: 0.1em 0.2em;
}

dialog.ff-dialog.select-dialogue a.dialog-selection img,
dialog.ff-dialog.review-dialogue a.dialog-selection img {
  width: 54px !important;
  opacity: 0.16 !important;
}

@media (max-width: 450px) {
  dialog.ff-dialog.select-dialogue, dialog.ff-dialog.review-dialogue {
    width: calc(100% - 16px);
    padding: 0;
    min-width: 0;
    margin: 8px auto;
    top: 0;
    max-height: calc(100vh - 16px);
    border-radius: 16px;
  }
}

/* ==========================================================================
   USER DIALOGUE LIST
   ========================================================================== */

.dialogue-list-table {
  background: #FFF;
  padding: 2em 0;
}

@media (max-width: 767px) {
  .dialogue-list-table table td.play-dialog {
    padding-bottom: 30px;
  }

  .res-mobile {
    display: block;
  }

  .mcenter {
    text-align: center;
    margin-top: 5px;
  }

  .mmargin {
    margin-left: 15px;
    width: 100%
  }

  .mwidth {
    width: 100%;
  }

  .bottom-get-started {
    padding: 50px 20px;
  }

  .mbottom-margin {
    margin: 10px;
  }

  .mpadding {
    padding: auto;
  }

  .nav-list {
    padding: 0px;
  }

  .nav-item {
    margin: auto 11px;
  }

  .miconwidth {
    margin-right: 0px;
    margin-top: 20px !important;
    width: 100%;
    text-align: center;
    margin-left: -5px;
  }
}

/* ==========================================================================
   OLD STYLES
   ========================================================================== */

body.dialog .flashcard {
  position: relative;
  display: block;
  background: #EEE;
  list-style: none;
  text-align: center;
  width: 95%;
  max-width: var(--container-width);
  border: 1px solid #bdbdbd;
  border-radius: 50px;
  -webkit-border-radius: 50px;
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);
  margin: auto;
  z-index: 0;
}
body.dialog div.step div.content {
  position: relative;
  text-align: left;
  padding: 10px 0;
  color: #999;
  margin: 2em;
}
body.dialog div.step div.content p {
  margin: 0;
}
body.dialog div.step-1 div.content {
  color: #000;
}
body.dialog div.audio {
  text-align: center;
  margin-top: 2em;
  padding-top: 2em;
  border-top: 1px solid #ccc;
}
body.dialog ul.flashcards {
  position: relative;
  display: block;
  list-style: none;
  width: 95%;
  max-width: var(--container-width);
  min-height: 400px;
  margin: 0 auto;
  padding: 0;
}
body.dialog ul.flashcards div.front,
body.dialog ul.flashcards div.back {
  background: #EEE;
  min-height: 400px;
  width: 100%;
  border: 1px solid #bdbdbd;
  -webkit-border-radius: 50px;
  -moz-border-radius: 50px;
  -ms-border-radius: 50px;
  border-radius: 50px;
  -webkit-box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);
  -moz-box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);
  -ms-box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);
}
body.dialog ul.flashcards div.front h2,
body.dialog ul.flashcards div.back h2 {
  text-align: center;
  padding: 5px;
  margin: 0;
}
body.dialog ul.flashcards li {
  -webkit-perspective: 600px;
  -moz-perspective: 600px;
  perspective: 600px;
  display: block;
  position: relative;
  left: 100vw;
  text-align: center;
}
body.dialog ul.flashcards li:first-child {
  left: 0;
}
body.dialog .step i:hover {
  color: #DC5151;
  cursor: pointer;
}
body.dialog div.navigation {
  margin: 1em auto;
  text-align: center;
}
body.dialog i.left,
body.dialog i.right,
body.dialog i.down,
body.dialog i.up {
  font-size: 40px;
  -webkit-text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);
  -moz-text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);
  -ms-text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);
  text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);
}
body.dialog .flashcards i.left,
body.dialog .flashcards i.right {
  position: absolute;
  margin-top: 20px;
  color: #000;
}
body.dialog .flashcards i.left {
  left: 20px;
}
body.dialog .flashcards i.right {
  right: 20px;
}
body.dialog ul.flashcards li i.play,
body.dialog div.flashcard i.play {
  display: inline-block;
  font-size: 50px;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 100px;
  background: lightskyblue;
  color: #000;
  -webkit-box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.4);
  -moz-box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.4);
  -ms-box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.4);
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.4);
}
body.dialog .step-2 ul.flashcards li i.play,
body.dialog .step-2 div.flashcard i.play {
  background: var(--active-speech-color);
}
body.dialog ul.flashcards li i.fa-check-circle {
  position: absolute;
  font-size: 40px;
  bottom: 10px;
  left: 160px;
}
@media (max-width: 320px) {
  body.dialog ul.flashcards li i.play,
  div.flashcard i.play {
    font-size: 30px;
    padding: 10px;
  }
  i.left,
  i.right,
  i.down,
  i.up {
    font-size: 30px;
  }
}
@media (max-width: 414px) {
  body.dialog ul.flashcards li i.play,
  div.flashcard i.play {
    font-size: 40px;
    padding: 10px;
  }
  i.left,
  i.right,
  i.down,
  i.up {
    font-size: 30px;
  }
}
body.dialog ul.flashcards li div.front {
  position: absolute;
  top: 0;
  z-index: 900;
  -webkit-transform: rotateX(0deg) rotateY(0deg);
  -webkit-transform-style: preserve-3d;
  backface-visibility: hidden;
  -moz-transform: rotateX(0deg) rotateY(0deg);
  -moz-transform-style: preserve-3d;

  -o-transition: all 0.4s ease-in-out;
  -ms-transition: all 0.4s ease-in-out;
  -moz-transition: all 0.4s ease-in-out;
  -webkit-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out;
}
body.dialog ul.flashcards li.flipped div.front {
  -webkit-transform: rotateY(180deg);
  -moz-transform: rotateY(180deg);
  transform: rotateY(180deg);
}
body.dialog ul.flashcards li div.back {
  position: absolute;
  top: 0;
  z-index: 800;
  -webkit-transform: rotateY(-180deg);
  -webkit-transform-style: preserve-3d;
  -webkit-backface-visibility: hidden;
  -moz-transform: rotateY(-180deg);
  -moz-transform-style: preserve-3d;
  -moz-backface-visibility: hidden;
  -o-transition: all 0.4s ease-in-out;
  -ms-transition: all 0.4s ease-in-out;
  -moz-transition: all 0.4s ease-in-out;
  -webkit-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out;
}
body.dialog ul.flashcards li.flipped div.back {
  -webkit-transform: rotateX(0deg) rotateY(0deg);
  -moz-transform: rotateX(0deg) rotateY(0deg);
  transform: rotateX(0deg) rotateY(0deg);
}
body.dialog ul#flashcard li div.back {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  -webkit-transform: rotateY(-180deg);
  -webkit-transform-style: preserve-3d;
  -webkit-backface-visibility: hidden;
  -moz-transform: rotateY(-180deg);
  -moz-transform-style: preserve-3d;
  -moz-backface-visibility: hidden;
  -o-transition: all 0.4s ease-in-out;
  -ms-transition: all 0.4s ease-in-out;
  -moz-transition: all 0.4s ease-in-out;
  -webkit-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out;
}
body.dialog ul#flashcard li.flipped div.back {
  -webkit-transform: rotateX(0deg) rotateY(0deg);
  -moz-transform: rotateX(0deg) rotateY(0deg);
}
body.dialog ol#flashcards {
  list-style: none;
  padding: 20px;
}
body.dialog ol#flashcards li {
  cursor: ns-resize;
  position: relative;
  counter-increment: item;
  margin-bottom: 5px;
  background: #EEE;
  padding: 5px;
  max-width: 500px;
  -webkit-box-shadow: 2px 2px 2px #ccc;
  -moz-box-shadow: 2px 2px 2px #ccc;
  box-shadow: 2px 2px 2px #ccc;
}
body.dialog ol#flashcards li:before {
  margin-right: 10px;
  content: "-";
  background: #265a88;
  border-radius: 100%;
  color: white;
  width: 1.2em;
  text-align: center;
  display: inline-block;
}
body.dialog .chosen {
  color: #fff;
  background-color: #c00;
}
body.dialog ol li i {
  -webkit-transition: opacity .2s;
  transition: opacity .2s;
  opacity: 0;
  display: block;
  cursor: pointer;
  color: #c00;
  top: 0px;
  right: 10px;
  position: absolute;
  font-style: normal;
  font-size: 22px;
  font-weight: bold;
}
body.dialog ol li:hover i.remove {
  opacity: 1;
}
@media (max-width: 320px) {
  .flashcard,
  ul.flashcards div.front,
  ul.flashcards div.back {
    border-radius: 40px;
    font-size: 0.9em;
    min-height: 0;
  }
  div.step div.content {
    padding: 5px;
    margin: 5px;
  }
  div.audio {
    margin-top: 5px;
    border: 0;
  }
  div.step .dialog h2 {
    display: none;
  }
}
@media (max-width: 414px) {
  .flashcard,
  ul.flashcards div.front,
  ul.flashcards div.back {
    min-height: 0;
  }
  div.step div.content {
    padding: 5px;
    margin: 5px;
  }
  div.step .dialog h2 {
    display: none;
  }
  div.audio {
    padding-top: 15px;
  }
}
.shakeit {
  animation: shake 0.52s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000px;
}
@keyframes shake {
  10%,
  90% {
    transform: translate3d(-1px, 0, 0);
  }
  20%,
  80% {
    transform: translate3d(2px, 0, 0);
  }
  30%,
  50%,
  70% {
    transform: translate3d(-4px, 0, 0);
  }
  40%,
  60% {
    transform: translate3d(4px, 0, 0);
  }
}
/* ==========================================================================
   Admin CSS
   ========================================================================== */
/* Admin language pages
   ========================================================================== */
table td.play-dialog {
  cursor: pointer;
}
span.play-audio {
  cursor: pointer;
}
.highlight {
  background-color: #ffff00;
}


/* Sentence higlighting when playing audio */
span.sentence i {
  display: none;
}
span.sentence.highlight i {
  display: inline;
}
.rotate {
  -webkit-animation: spin 4s infinite linear;
  -moz-animation: spin 4s infinite linear;
  -ms-animation: spin 4s infinite linear;
  animation: spin 4s infinite linear;
}
@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
  }
}
@-moz-keyframes spin {
  0% {
    -moz-transform: rotate(0deg);
  }
  100% {
    -moz-transform: rotate(360deg);
  }
}
@-ms-keyframes spin {
  0% {
    -ms-transform: rotate(0deg);
  }
  100% {
    -ms-transform: rotate(360deg);
  }
}
.flash {
  -moz-animation: flash 2s ease-out;
  -moz-animation-iteration-count: 1;
  -webkit-animation: flash 2s ease-out;
  -webkit-animation-iteration-count: 1;
  -ms-animation: flash 2s ease-out;
  -ms-animation-iteration-count: 1;
  animation: flash 2s ease-out;
  animation-iteration-count: 1;
}
@-webkit-keyframes flash {
  0% {
    background-color: none;
  }
  30% {
    background-color: #ffff00;
  }
  100% {
    background-color: none;
  }
}
@-moz-keyframes flash {
  0% {
    background-color: none;
  }
  30% {
    background-color: #ffff00;
  }
  100% {
    background-color: none;
  }
}
@-ms-keyframes flash {
  0% {
    background-color: none;
  }
  30% {
    background-color: #ffff00;
  }
  100% {
    background-color: none;
  }
}
form.dropzone {
  color: #FFF;
  background-color: #f3a183;
  background-image: -webkit-linear-gradient(transparent 0px, transparent 49px, rgba(255, 255, 255, 0.2) 50px, transparent 51px, transparent 99px, rgba(255, 255, 255, 0.2) 100px), -webkit-linear-gradient(330deg, transparent 0, transparent 48px, rgba(255, 255, 255, 0.2) 49px, transparent 50px, transparent 98px, rgba(255, 255, 255, 0.2) 99px, transparent 100px), -webkit-linear-gradient(30deg, transparent 0, transparent 48px, rgba(255, 255, 255, 0.2) 49px, transparent 50px, transparent 98px, rgba(255, 255, 255, 0.2) 99px, transparent 100px), -webkit-linear-gradient(0deg, #f3a183, #eC6f66);
  background-image: linear-gradient(transparent 0px, transparent 49px, rgba(255, 255, 255, 0.2) 50px, transparent 51px, transparent 99px, rgba(255, 255, 255, 0.2) 100px), linear-gradient(120deg, transparent 0, transparent 48px, rgba(255, 255, 255, 0.2) 49px, transparent 50px, transparent 98px, rgba(255, 255, 255, 0.2) 99px, transparent 100px), linear-gradient(60deg, transparent 0, transparent 48px, rgba(255, 255, 255, 0.2) 49px, transparent 50px, transparent 98px, rgba(255, 255, 255, 0.2) 99px, transparent 100px), linear-gradient(90deg, #f3a183, #eC6f66);
  background-size: 100px 100px, 115px 100px, 115px 100px, auto;
}
div.panel.files ul {
  list-style: none;
}
div.panel.files.new-files {
  display: none;
}
.from-me {
  position: relative;
  padding: 10px 20px;
  color: white;
  background: #0B93F6;
  background: #87cefa;
  color: #000;
  border-radius: 25px;
  float: right;
  margin-top: 15px;
}
.from-me:before {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: -2px;
  right: -7px;
  height: 20px;
  border-right: 20px solid #0B93F6;
  border-right: 20px solid #87cefa;
  border-bottom-left-radius: 16px 14px;
  -webkit-transform: translate(0, -2px);
}
.from-me:after {
  content: "";
  position: absolute;
  z-index: 1;
  bottom: -2px;
  right: -56px;
  width: 26px;
  height: 20px;
  background: #EEE;
  border-bottom-left-radius: 10px;
  -webkit-transform: translate(-30px, -2px);
}
.from-me.active-audio,
.from-them.active-audio {
  background: #f0ad4e;
  background: var(--active-speech-color);
  color: #000;
}
.from-me.active-audio:before {
  border-right: 20px solid;
  border-right-color: #f0ad4e;
  border-right-color: var(--active-speech-color);
}
.from-them {
  position: relative;
  padding: 10px 20px;
  background: #CCC;
  border-radius: 25px;
  color: black;
  float: left;
  margin-top: 15px;
}
.from-them:before {
  content: "";
  position: absolute;
  z-index: 2;
  bottom: -2px;
  left: -7px;
  height: 20px;
  border-left: 20px solid #CCC;
  border-bottom-right-radius: 16px 14px;
  -webkit-transform: translate(0, -2px);
}
.from-them:after {
  content: "";
  position: absolute;
  z-index: 3;
  bottom: -2px;
  left: 4px;
  width: 26px;
  height: 20px;
  background: #EEE;
  border-bottom-right-radius: 10px;
  -webkit-transform: translate(-30px, -2px);
}
.from-them.active-audio:before {
  border-left: 20px solid;
  border-left-color: #f0ad4e;
  border-left-color: var(--active-speech-color);
}
/* Tablets */
@media (max-width: 320px) {
  .from-them,
  .from-me {
    margin: 5px 5px 0 5px;
    padding: 5px 10px;
  }
  .from-them:after {
    width: 10px;
    left: 21px;
  }
  .from-me:after {
    width: 10px;
    right: -39px;
  }
  .from-them:before {
    left: -9px;
  }
}
@media (max-width: 414px) {
  .from-them,
  .from-me {
    margin: 10px 10px 0 10px;
    padding: 10px 20px;
  }
  .from-them:after {
    width: 10px;
    left: 20px;
  }
  .from-me:after {
    width: 10px;
    right: -40px;
  }
  .from-them:before {
    left: -9px;
  }
}

/* ==========================================================================
   ADMIN :: USER LIST PAGE
   ========================================================================== */

td.expandable .open {
  display: block;
}
td.expandable .collapsed {
  display: none;
}
td.expandable:hover .collapsed {
  display: block;
}

span.label-TRIAL {
  background: #f0ad4e;
}
span.label-MANUAL {
  background: #DDD;
  color: #666;
}
span.label-STRIPE {
  background: #337ab7;
}

table thead {
  user-select: none;
}

table.sortable th::after, th.sorttable_sorted::after, th.sorttable_sorted_reverse::after {
  content: " ";
  display: inline-block;
  width: 24px;
  height: 24px;
}

th.sorttable_sorted span, th.sorttable_sorted_reverse span {
  font-size: 11px;
}


th.sorttable_sorted::after {
  content: "&#9650;";
  display: inline-block;
  width: 20px;
  height: 20px;
}
th.sorttable_sorted_reverse::after {
  content: "&#9660;";
  display: inline-block;
  width: 20px;
  height: 20px;
}

table.users tr.filtered {
  display: none;
}
table.users td, table.users th {
  font-size: 14px;
}

/* ==========================================================================
   ADMIN :: USER DETAIL PAGE
   ========================================================================== */

body.admin main .container-fluid {
  background: #FFF;
}

ul.subscriptions {
  list-style: none;
  padding: 0;
  border-top: 1px solid #ccc;
}
ul.subscriptions li {
  padding: 5px;
  border-bottom: 1px solid #eee;
}
ul.subscriptions li.active {
  background: #ebfbeb;
}
ul.subscriptions li button {
  min-width: 80px;
}


/* ==========================================================================
   ADMIN :: LANGUAGE INDEX PAGE
   ========================================================================== */
ul.language-list {
  font-size: 1.25em;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  height: 400px;
}
ul.language-list li {
  flex: 0;
  display: block;
  min-width: 250px;
}

@media (max-width: 768px) {
  ul.language-list {
    height: 800px;
  }
}

@media (max-width: 500px) {
  ul.language-list {
    height: 1200px;
  }
}
/* ==========================================================================
   LANGUAGE LANDING PAGE
   ========================================================================== */
.plans {
  margin: 40px auto 0 auto;
  /*width: 660px;*/
  zoom: 1;
  display: flex;
}
.plans:before, .plans:after {
  content: '';
  display: table;
}
.plans:after {
  clear: both;
}

.plan {
  width: 280px;
  margin: 10px 0;
  padding: 20px;
  text-align: center;
  background: #fafafa;
  background-clip: padding-box;
  border: solid #337ab7;
  border-width: 2px 0 2px 2px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.plan:first-child {
  border-top-left-radius: 7px;
  border-bottom-left-radius: 7px;
}
.plan:last-child {
  border-width: 2px;
  border-top-right-radius: 7px;
  border-bottom-right-radius: 7px;
}

.plan-title {
  position: relative;
  margin: -20px -10px 20px;
  padding: 20px;
  line-height: 1;
  font-size: 16px;
  font-weight: bold;
  color: #595f6b;
  border-bottom: 1px dashed #d2d2d2;
}
.plan-title:before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background-size: 3px 1px;
  background-image: -webkit-linear-gradient(left, white, white 33%, #d2d2d2 34%, #d2d2d2);
  background-image: -moz-linear-gradient(left, white, white 33%, #d2d2d2 34%, #d2d2d2);
  background-image: -o-linear-gradient(left, white, white 33%, #d2d2d2 34%, #d2d2d2);
  background-image: linear-gradient(to right, white, white 33%, #d2d2d2 34%, #d2d2d2);
}

.plan-price {
  margin: 0 auto 20px;
  width: 90px;
  height: 90px;
  line-height: 90px;
  font-size: 21px;
  font-weight: 100;
  color: white;
  background: var(--primary-color);
  border-radius: 45px;
}
.plan-price > span {
  font-size: 12px;
  display: block;
  font-weight: normal;
  color: rgba(255, 255, 255, 0.9);
}

.plan-features {
  margin-bottom: 20px;
  line-height: 2;
  font-size: 12px;
  color: #999;
  text-align: center;
  list-style: none;
  padding: 0;
}
.plan-features > li > strong {
  font-weight: bold;
  color: #888;
}

.plan-button {
  display: inline-block;
  vertical-align: top;
  padding: 0 15px;
  line-height: 30px;
  font-weight: bold;
  color: white;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.7);
  background: #7c69a3;
  border: 1px solid #222;
  border-bottom-color: black;
  border-radius: 3px;
  background-image: -webkit-linear-gradient(top, #9780cc, #6f5e96);
  background-image: -moz-linear-gradient(top, #9780cc, #6f5e96);
  background-image: -o-linear-gradient(top, #9780cc, #6f5e96);
  background-image: linear-gradient(to bottom, #9780cc, #6f5e96);
  -webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), inset 0 2px rgba(255, 255, 255, 0.1), 0 1px rgba(0, 0, 0, 0.1);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), inset 0 2px rgba(255, 255, 255, 0.1), 0 1px rgba(0, 0, 0, 0.1);
}
.plan-button:active {
  color: rgba(255, 255, 255, 0.95);
  background: #6f5e96;
  border-color: black #222 #222;
  background-image: -webkit-linear-gradient(top, #6f5e96, #8770b9);
  background-image: -moz-linear-gradient(top, #6f5e96, #8770b9);
  background-image: -o-linear-gradient(top, #6f5e96, #8770b9);
  background-image: linear-gradient(to bottom, #6f5e96, #8770b9);
  -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

.plan-tall {
  margin: 0;
  background-color: white;
  border-width: 2px;
  border-radius: 7px;
}
.plan-tall > .plan-title {
  font-size: 18px;
}
.plan-tall > .plan-price {
  width: 100px;
  height: 100px;
  line-height: 100px;
  font-size: 23px;
  border-radius: 50px;
}
.plan-tall > .plan-features {
  font-size: 13px;
}
.plan-tall > .plan-button {
  padding: 0 16px;
  line-height: 32px;
}
.plan-tall + .plan {
  border-left: 0;
}

/*
button.stripe-button, a.stripe-button {
  background: #337ab7;
  background: #4a90E2;
  color: #FFF;
  font-size:16px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.18);
  line-height: 1.5;
  padding: .5em 2em;
  border: none;
  border-radius: 6px;
  margin-top: 1em;
}
*/
.plan-price.coupon {
  background: green;
}

@media (max-width: 750px) {
  .plan {
    width: 150px;
  }
}

@media (max-width: 550px) {
  .plans {
    flex-wrap: wrap;
  }
  .plan {
    float: none;
    border-width: 2px;
    border-radius: 7px;
  }
  .plan {
    width: 80vw;
    margin: 0 auto 20px auto;
  }
  .plan-tall + .plan {
    border-left: 2px solid #337ab7;
  }
}



/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-primary {
  background: #137df8 !important;
}
.btn-inverse:active,
.btn-inverse.active {
  background-color: #080808 \9;
}

.btn-flat {
    filter:progid:DXImageTransform.Microsoft.Gradient(enabled='false');
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    background-image:none;
    border:0;
}

.btn-default.btn-flat {
  background: #EEE;
}
.btn-default.btn-flat:hover {
  background: #CCC;
}
.btn-cstm {
  max-width: 226px;
  border-radius: 5px;
  background-color: #ffffff;
  height: 45px;
  font-size: 15px;
  letter-spacing: 1px;
  color: #137df8;
  text-align: center;
  padding-left: 30px;
  padding-right: 30px;
  text-transform: uppercase;
}
.btn-cstm-inverse {
  color: #FFF;
  background-color: #137df8;
}
.btn-cstm-inverse:hover {
  box-shadow: 2px 2px 4px #aaa;
  color: #FFF;
}
.btn-sm {
  height: auto;
  font-size: 12px;
  padding: 6px 12px;
}
.btn-xm {
  padding: 2px 6px;
  font-size: 11px;
}

.btn-xm {
  font-size: 11px;
  padding: 2px 5px;
}


/* ==========================================================================
   NEW DASHBOARD
   ========================================================================== */

section.new-dashboard .btn {
  margin: 0 10px;
}


/* ==========================================================================
   ONBOARING
   ========================================================================== */

div.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  background-color: rgba(0,0,0,0.7); /*dim the background*/
}

div.overlay > div {
  position: absolute;
  top: 400px;
  left: 30vw;
}

div.overlay .message {
  background: rgba(255,255,255,0.9);
  position: relative;
  text-align: center;
  top: 50px;
  display: inline-block;
  padding: 20px;
  font-size: 28px;
  border-radius: 10px;
}

@media (max-width: 550px) {
  div.overlay > div{
    top: 200px;
  }
  div.overlay .message {
    background: rgba(255,255,255,0.9);
    position: relative;
    text-align: center;
    top: 50px;
    display: block;
    padding: 20px;
    font-size: 28px;
    border-radius: 10px;
    width: 90%;
    margin: auto;
    left: -10vw;
  }
}

/* ==========================================================================
   OCTOPUS SVG
   ========================================================================== */
tspan { white-space:pre }
.shp0 { opacity: 0.349;fill: #0d5693 }
.shp1 { fill: #209cd3 }
.shp2 { fill: #29adf8 }
.shp3 { fill: #9edaef }
.shp4 { fill: #0d62b7 }
.shp5 { fill: #ffffff }
.shp6 { opacity: 0.129;fill: #0d62b7 }
.shp7 { fill: #25ade8 }
.shp8 { fill: #8ecddd }
.shp9 { opacity: 0.478;fill: #5cc4f2 }
.shp10 { opacity: 0.78;fill: #5cc4f2 }
.shp11 { opacity: 0.549;fill: #5cc4f2 }
.shp12 { fill: #0d3e60 }
.shp13 { opacity: 0.188;fill: #ffffff }
.shp14 { fill: #0d5693 }
.shp15 { fill: #74bbce }
.shp16 { opacity: 0.259;fill: #0d62b7 }
.shp17 { opacity: 0.69;fill: #ffffff }
.shp18 { opacity: 0.29;fill: #ffffff }
.shp19 { opacity: 0.239;fill: #29adf8 }
.shp20 { opacity: 0.369;fill: #29adf8 }
.shp21 { fill: #7dc5d8 }
