body {
  min-width: inherit;
}

#coloured-bar div {
  height: 11px;
}

.wrapper {
  width: 90%;
}

.mob-hide {
  display: none !important;
}

.desktop-hide {
  display: inherit;
}

body > header {
  height: 256px;
}

#system-notification { height: unset; }
#system-notification p {
    padding-bottom: 15px;
    overflow-x: scroll;
}

body > header.unsigned {
  height: 177px;
}

header figure {
  float: none;
  position: absolute;
}

header .logo {
  width: 180px;
  margin-top: 55px;
}

header nav {
  margin-top: 51px;
  width: 100%;
}

header nav #lang-switch {
  margin-top: -2px;
}

header.signed nav ul {
  display: flex;
  float: none;
  margin-top: 131px;
  height: inherit;
  justify-content: space-between;
  align-items: flex-end;
}

header.signed nav ul li {
  float: none;
  margin: 0;
}

header.unsigned #home-link {
  display: none;
}

header.signed nav a i.fa {
  display: block;
  text-align: center;
  font-size: 26px;
}

header.signed nav a i.fa-home {
  font-size: 30px;
}

nav a i.fa-user-plus {
  font-size: 21px;
}

header.signed nav a.mail-link .fa-circle {
  font-size: 29px;
  left: 17px;
}

nav .mail-link .count-new {
  left: 25px;
  top: -11px;
}

nav .mail-link .count-new.more {
  left: 22px;
}

header.signed nav a.mail-link.fr .fa-circle {
  left: 43px;
}

header.signed nav a.mail-link.fr .fa-plus {
  left: 55px;
}

header nav a.nav-link {
  margin-top: -3px;
}

header nav a.nav-link i.fa {
  display: inline;
}

body > header.home-page {
  height: inherit;
  padding-bottom: 54px;
}

header.home-page section {
  padding-top: 62px;
}

header.home-page h1, .home-page .home-welcome h1 {
  font-size: 55px;
  line-height: 65px;
  padding: 0 5%;
}

header.home-page p, .home-page .home-welcome p {
  padding-left: 0;
  padding-right: 0;
  font-size: 26px;
  line-height: 36px;
  margin-top: 30px;
}

.home-page .home-welcome p { 
 margin-bottom: 30px;
}

.home-page .home-welcome a {
  font-size: 26px;
  line-height: 36px;
}

.home-header-buttons {
  margin-top: 30px;
}

.home-header-buttons a {
  font-size: 24px;
  width: 220px;
}

.home-header-buttons .signup i.fa {
  font-size: 21px;
}

.home-header-buttons .login i.fa {
  font-size: 23px;
}

.home-header-login-info {
  margin-top: 34px;
}

main, main.home-page {
  padding-top: 66px;
}

section h1, main.lessons h1 {
  font-size: 36px;
}

section.noscript {
  margin-top: -40px;
}

.right-indent.mob {
  margin-right: 0px;
}

.secondary-nav .view-all {
  margin-top: 0px;
}

.secondary-nav .search-box {
  margin-bottom: -17px;
}

.search-results {
  margin-top: 52px;
}

.search-results p {
  line-height: 1.5em;
}

.empty-search-results {
  margin-top: 3px;
}

.courses-container {
  margin-top: 53px;
}

.search-results + .courses-container {
  margin-top: 26px;
}

.courses-container .course-box {
  width: 49%;
  margin-right: 2%;
}

.course-box.last {
  margin-right: 2%;
}

.course-box.mob-last{
  margin-right: 0;
}

.courses-container .course-box > div {
  padding-right: 0;
  width: 100%;
}

.courses-container .course-box div.course-icon,
.courses-container .course-box.with-progress div.course-icon {
  padding: 0 21px;
  width: 60px; /* it is depend on max with of the subject icon */
}

.courses-container .course-box.with-progress div.progress-bar, 
.courses-container .course-box.with-progress div.progress-finished {
  width: 100%;
}

.courses-container .course-box.with-progress div > div {
  padding-right: 30px;
}

.empty-course-info {
  margin-left: 0;
}

.column {
  float: none;
}

.column.col-1, .column.width-560.col-1 {
  width: 100%;
}

.column.col-2, .column.width-560.col-2 {
  width: 100%;
  margin-left: 0;
}

.form input, .width-560.form input,
.form textarea {
  width: 96%;
}

.column.width-560.form .custom-select {
  width: 100%;
}

.column.width-560.form .select-items div, .column.width-560.form .select-selected {
  width: 96%;
}

input, select, textarea {
  padding: 0 2%;
}

.form .inside-input, .form span.input-error-msg.inside-input {
  right: 10px;
}

.form span.input-error-msg {
  font-size: 14px;
  bottom: 73px;
  right: 10px;
}

.form #password-error, .form #confirm_password-error {
  right: 48px;
}

.error-block, .message-block {
  width: 96%;
  padding: 10px 2%;
}

.learn-container.container ul {
  -webkit-column-count: 1;
  -moz-column-count: 1;
  column-count: 1;
}

.page-form div.custom-select, .page-form div.select-selected, .page-form input[type="text"] {
  width: 100%;
  box-sizing: border-box;
}

.cute-editor #CE_message_text_ID {
  width: 100% !important;
}

.mail-preview.unread .new-msg {
  top: 5px;
  right: 5px;
}

.mail-preview.individual.unread h2 {
  padding-right: 0px;
}

/* ----------- lessons */
main.lessons {
  position: relative;
}

main.lessons h1 {
  margin-top: 77px;
}

.lessons .lesson {
  display: block;
  padding-top: 0;
}

.lessons nav.lesson {
  position: absolute;
  top: 6px;
  left: 0;
  padding-top: 56px;
  border: none;
}

nav.lesson #close-navigation {
  display: none;
  position: absolute;
  top: 17px;
  right: 17px;
  color: #848789;
}

nav.lesson #close-navigation:hover,
nav.lesson #close-navigation:active,
nav.lesson #close-navigation:hover .fa,
nav.lesson #close-navigation:active .fa {
  color: #848789;
}

nav.lesson.opened #close-navigation {
  display: block;
}

nav #close-navigation .fa {
  font-size: 40px;
}

nav.lesson.opened {
  border: 2px solid #d5d4d4;
  width: 101%;
  left: -6%;
  padding-left: 6%;
  padding-top: 54px;
  background-color: #e7f1f7;
  z-index: 2;
  overflow-y: scroll;
}

nav.lesson h2 {
  cursor: pointer;
}

nav.lesson #lesson-navigation {
  display: none;
}

nav.lesson .checkbox-container label {
  padding-top: 6px;
}

nav.lesson .checkbox-container .checkmark {
  border: 1px solid #a4abaf;
  background-color: #fff;
  height: 29px;
  width: 29px;
}

nav.lesson .checkmark .fa {
  bottom: 4px;
  left: 3px;
}

main.lessons section.lesson {
  padding-left: 0px;
  width: 100%;
}

.lessons .activity canvas, .activity.sketch .tools, .lessons .lssn-btn {
  width: 100%;
}

.lessons .activity textarea, .lessons .activity input, .lessons .activity select, .activity textarea.long-txt-area.width-680, .activity textarea.medium-txt-area.width-680 {
  width: 96%;
}

.lessons .activity textarea {
  padding-top: 10px;
  padding-bottom: 10px;
}

.lessons .activity textarea.medium-txt-area2 { 
  width: calc(100vw - 10vw - 186px);
}

.m-left-74, .lesson figure.m-left-74 {
  margin-left: 0;
}

.mob-m-left-74, .lesson figure.mob-m-left-74 {
  margin-left: 74px;
}

.mob-m-left-30, .lesson figure.mob-m-left-30 {
  margin-left: 30px;
}

.mob-width-300, .lessons section.lesson div.mob-width-300 {
  width: 300px;
}

section.lesson .allmob-bottom-0, section.lesson figure.allmob-bottom-0 {
  margin-bottom: 0;
}

section.lesson .allmob-top-50 {
  margin-top: 50px;
}

section.lesson p.allmob-top-0, section.lesson figure.allmob-top-0, div.allmob-top-0 {
  margin-top: revert;
}

.dwo-columns.width-60 {
  width: 100%;
}

.activity.calculate-total,
.activity.calculate-total-big {
  width: 100%;
}

.lesson .activity .shorter-text-input {
  width: 60%;
}

.activity.calculate-total-big #items {
  width: 56%;
}

.activity.calculate-total-big #times-per-month {
  text-align: center;
}

.mob-full-width {
  width: 100%;
}

.str-with-buttons {
  max-width: unset;
}

.str-with-buttons > span {
  max-width: 58%;
}

#sm-lesson-41-2 .str-with-buttons,
#sm-lesson-41-3 .str-with-buttons {
  height: unset;
}
#sm-lesson-41-2 .str-with-buttons > span.text-normal,
#sm-lesson-41-3 .str-with-buttons > span.text-normal {
  max-width: 40%;
}

#sm-lesson-41-2 .button-like-radio label,
#sm-lesson-41-3 .button-like-radio label {
  margin-left: 18px;
}

/*-------------course 43---------------------*/
#sm-lesson-43-3 .big-cols img {
  max-width: 100%;
}

.lesson .activity.sketch .canvas-with-circles {
  width: 300px;
  height: 499px;
  background: url("../img/background_circles_mobile.png") no-repeat center center #dedede;
}

/*------------- course 61 ------------------*/
.activity canvas.canvas-probability-grid {
  width: 615px;
}
/*----------------------------------------*/
.static header.secondary-nav h1 {
  float: none;
  margin-bottom: 66px;
}

.static header.secondary-nav a {
  float: right;
  margin-top: 0px;
}

.static header.secondary-nav h6 {
  clear: none;
  float: left;
  padding: 0;
}

.learn-container.container {
  padding: 50px 30px;
  margin-top: 33px;
}

.learn-container.container ul li {
  width: 100%;
}

.static figure img {
  margin: 0 10px;
}

section.final figure.logos-flex {
  flex-wrap: wrap;
}

/*---------------------*/

.pop-up {
  width: 80%;
  left: 10%;
}

.pop-up .loading img {
  margin-top: 75%;
}

body>footer p {
  float: none;
  text-align: center;
}

/*-------------------------------------------*/
@media screen and (max-width: 900px) {
  header.home-page .embed-youtube,
  section#are-you-org .embed-youtube,
  section#are-you-teacher .embed-youtube {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
  }
   
  #canvas-drag-circle,
  .canvas-drag-circle {
    width: 100%;
  }
  
  .activity.sketch .canvas-with-pattern-dots {
    width: 600px;
    background: url("../img/draw_background_pattern_dots_mobile.png") no-repeat center center #dedede;
  }
  
  .activity.sketch .canvas-with-array-dots {
    width: 600px;
    background: url("../img/draw_bg_array_dots_mobile.png") no-repeat center center #dedede;
  }
  
  .activity.sketch .canvas-with-array-circles {
    width: 600px;
    height: 254px;
    background: url("../img/draw_bg_array_circles_mobile.png") no-repeat center center #dedede;
  }
  
  .activity.sketch .canvas-another-array-dots {
    width: 600px;
    background: url("../img/draw_bg_another_dots_mobile.png") no-repeat center center #dedede;
  }
  
  p.retired-info.padding {
    padding: 0;
  }
}

@media screen and (max-width: 730px) {
  #sm-lesson-48-5 .coins-pattern-imgs {
    column-gap: 30px;
  }
}

@media screen and (max-width: 800px) {
  #sm-lesson-48-5 .activity.coins-pattern-imgs {
    column-gap: 25px;
  }

  .income-table .mobile {
    display: revert;
  }

  .income-table .desktop {
    display: none;
  }

  .income-table th, .income-table td {
    padding-left: 0px;
    padding-right: 17px;
  }

  .income-table tbody tr td.first-col,
  .income-table thead th:first-child {
    padding-left: 20px;
  }
}

@media screen and (max-width: 700px) and (min-width: 641px)  {
  ol .canvas-probability-grid {
    margin-left: -50px;
  }

  ol .random-img {
    margin-left: -50px;
  }
}