body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  font-size: 16px;
  line-height: 16px;
  font-weight: 400;
  color: var(--text-color);
  background-color: var(--bg-color);
  margin: 0;
  padding: 0;
  width: 1px;
  min-width: 100%;
  -webkit-user-select: none;
  user-select: none;
  cursor: default;

  --text-color: var(--tg-theme-text-color, #222);
  --bg-color: var(--tg-theme-secondary-bg-color, #ebedf0);
  --block-bg-color: var(--tg-theme-bg-color, #fff);
  --link-color: var(--tg-theme-link-color, #007aff);
  --btn-text-color: var(--tg-theme-button-text-color, #fff);
  --primary-btn-color: var(--tg-theme-button-color, #2ea6ff);
  --success-btn-color: #31b545;
  --danger-btn-color: #e64d44;
}

html.dark body {
  --text-color: var(--tg-theme-text-color, #fff);
  --bg-color: var(--tg-theme-secondary-bg-color, #0f0f0f);
  --block-bg-color: var(--tg-theme-bg-color, #2f2f2f);
  --success-btn-color: #31b545;
  --danger-btn-color: #e64d44;
}

* {
  -webkit-tap-highlight-color: transparent;
}

h2 {
  font-size: 1.3em;
  line-height: 1.1em;
  margin-top: 0;
}

.hidden {
  display: none !important;
}

.btn {
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  line-height: 18px;
  padding: 6px 16px;
  height: 30px;
  border-radius: 7px;
  box-sizing: border-box;
  text-transform: uppercase;
  color: var(--btn-text-color);
  outline: none;
  border: none;
}

.btn.btn-primary {
  background-color: var(--primary-btn-color);
}

.btn.btn-success {
  background-color: var(--success-btn-color);
}

.btn.btn-danger {
  background-color: var(--danger-btn-color);
}
.screen-finished {
  background-color: var(--block-bg-color);

  -webkit-box-shadow: 0 0.5px rgba(0, 0, 0, .07);
  box-shadow: 0 0.5px rgba(0, 0, 0, .07);
  margin: 0;
  padding: 1em 2em 2em;
}

.screen-finished .continue-btn {
  text-transform: none;
}

.screen-finished .contents {
  opacity: 1;

  transition: opacity 0.8s linear 0.1s;
}

.screen-finished .contents.invisible {
  opacity: 0;
}
.screen-home {
  background-color: var(--block-bg-color);
  text-align: center;

  -webkit-box-shadow: 0 0.5px rgba(0, 0, 0, .07);
  box-shadow: 0 0.5px rgba(0, 0, 0, .07);
  margin: 0;
  padding-top: 1em;
  padding-bottom: 3em;
}

.screen-home .language {
  display: block;
  margin-top: 1.5em;
}

.screen-home .choose-language {
  margin-top: 2em;
}

.screen-home .btn {
  min-width: 50%;
  min-height: 2.6em;
}
.screen-learning {
  text-align: center;
}

.screen-learning .header {
  background-color: var(--block-bg-color);
  padding-left: 1em;
  padding-right: 1em;
  padding-top: 1em;
  padding-bottom: 1.5em;
  margin-bottom: 2em;

  -webkit-box-shadow: 0 0.5px rgba(0, 0, 0, .07);
  box-shadow: 0 0.5px rgba(0, 0, 0, .07);

  position: relative;
}

.screen-learning .question-section, .screen-learning .answer-section {
  font-size: 18px;
}

.screen-learning .answer-section {
  z-index: -1;
  top: 0;
  position: relative;

  transition: top 0.2s ease;
}

.screen-learning .answer-section.invisible {
  top: -100px;

  transition: top 0.5s ease;
}

.screen-learning .btn-nope-wrapper {
  overflow: hidden;
}

.screen-learning .btn-nope {
  display: inline-block;
  width: 90%;
  position: absolute;
  left: 5%;
  top: 340px; /* fallback in case resize event wasn't triggered */
  height: 3em;
  margin-top: 0px;

  transition: top 0.2s ease, margin-top 0.2s ease;
}

.screen-learning .btn-nope.invisible {
  margin-top: 100px;
  transition: margin-top 0.5s ease;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
