body {
  margin: 0;
  /*display: flex;*/
  /* add background color transition */
  transition: background-color 0.3s, color 0.3s;
}

#main {
  height: 100%;
  display: flex;
  flex-direction: row;
  align-content: stretch;
  align-items: stretch;
  padding-bottom: 0;
}

.main-frame {
  /*flex: 1;*/
}

header .header-container .navbar-nav > li > a {
  color: inherit;
}

.mycow-logo a {
  background: url(../img/mcw-2021/logo_colored.svg) center no-repeat;
  text-decoration: none;
}
.mycow-logo.pro a {
  background: url(../img/mcw-2021/logo_pro.png) center no-repeat;
}
.mycow-logo img {
  width: 80px;
  height: 80px;
}
.fold .mycow-logo img {
  width: 52px;
  height: 52px;
}
#menu .header-logo {
  padding: 1em 0 0;
}
.header-logo {
  text-align: center;
}
.header-logo img {
  height: auto;
  width: auto;
  max-width: 250px;
  max-height: 95px;
}
#top_menu .header-logo {
  padding: 0 1em;
}
.header-logo a {
  background-size: 225px 95px;
  display: inline-block;
  width: 225px;
  height: 95px;
  text-decoration: none;
}
.mycow-logo a:hover,
.header-logo a:hover {
  text-decoration: none;
}

#menu {
  border-right: 1px solid rgba(0, 0, 0, 0.3);
  position: relative;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.menu-footer {
  margin-top: 1em;
}

.hide-unfold {
  display: none;
}

.fold .hide-fold {
  display: none;
}

.fold .hide-unfold {
  display: inline-block;
}

.fold .hide-unfold.badge {
  padding-top: 2em;
  text-align: center;
}

.fold #menu .list-group-item {
  margin: .3em .5em;
}

.fold .foldable {
  display: none;
}

.fold #menu li a {
  height: 3em;
  width: 3em;
  padding: 0;
}

.fold #menu .list-group-item i {
  font-size: 1.2em;
  top: .6em;
  left: .7em;
}
.fold #menu .list-group-item .badge i {
  left: 1em;
}

#menu .list-group-item {
  margin: 0.2em 1em;
}
#menu .list-group-item .material-switch {
  margin: 0 0 0 1em;
  padding: .6em 0;
}

#menu .list-group-item a,
#menu .list-group-item > label {
  padding: .8em 1.5em 0.8em 3em;
  font-size: .9em;
  color: #000;
  font-weight: normal;
}

#menu .list-group-item i {
  font-size: 1.2em;
  position: absolute;
  left: 1em;
}

#menu .list-group-item.current a {
  background: #F76C6C;
  border-radius: 50px;
  color: #fff;
  display: inline-block;
}

#menu .list-group-item:hover a {
  background: #888;
  border-radius: 50px;
  color: #fff;
  /*display: block;*/
  text-decoration: none;
}
#menu .list-group-item:hover a span {
  background: transparent;
}

#menu .header-logo a {
  width: 100%;
  background-position: center center;
}

.fold #menu .header-logo {
  padding: 0;
}
.fold #menu .header-logo a {
  background: url('/favicon-64x64.png') center center no-repeat;
  background-size: 90%;
}

#menu.menu-affiliate-image.fold .header-logo {
  display: none;
}

#menu .menu-toggle {
  position: absolute;
  right: -15px;
  height: 30px;
  width: 30px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
  top: 2em;
  line-height: 2em;
  text-align: center;
  color: #000;
  z-index: 100000;
}

#menu .menu-toggle:hover {
  cursor: pointer;
  text-decoration: none;
}

#menu .affiliation-link {
  display: flex;
  align-content: center;
  justify-content: center;
}

#menu .list-group-item {
  border-radius: 0;
  border: none;
  background: transparent;
}

#menu .list-group-item a {
  color: #000;
}

#menu .list-group-item .badge {
  margin-left: .7em;
  font-size: .8em;
  padding: 2em 0.5em .5em;
}

#menu.fold .list-group-item .badge {
  display: block;
  margin-left: 0;
  font-size: 1em;
}

#content {
  flex: 1;
  position: relative;
  width: 100%;
  overflow-y: auto;
  padding-bottom: 200px;
}

#top_menu {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  color: #000;
  font-size: 1.2em;
}
#top_menu > ul {
  padding: 1em;
}

#top_menu li li {
  float: none;
}

#top_menu a {
  color: #000;
}

#top_menu .navbar-nav.dropdown-menu li a {
  padding: .7em;
  font-size: 1.2em;
}

#breadcrumb {
  position: relative;
  display: block;
  padding: 15px;
  line-height: 20px;
  font-weight: bold;
  color: #000;
}
#breadcrumb a {
  color: #000;
}

#breadcrumb .breadcrumb_bg,
#breadcrumb .breadcrumb {
  background: none;
  padding: 0;
  border-radius: 0;
}

#top_menu #breadcrumb {
  margin-left: 1em;
}
#breadcrumb .container {
  width: auto !important;
  padding: 0;
}

.nav > li > a:focus, .nav > li > a:hover {
  background: transparent;
}

.nav .open > a, .nav .open > a:focus, .nav .open > a:hover {
  background: transparent;
}

#dynamic_content {
  padding: 1em;
}
.newspaper #dynamic_content {
  border-top: 1px solid rgba(0, 0, 0, 0.3);
}

#dynamic_content > .container {
  width: 100%;
}

.pro #dynamic_content > .container {
  padding: 0;
  position: relative;
}
.pro #dynamic_content {
  background: url(../../img/mcw-2021/pro_bg.svg) top center no-repeat;
}
.pro.fle #dynamic_content .list-group-item {
  margin: 5em 1em;
}

.qcm #content .list-group-item a, .qcm .list-group-item a:hover {
  font-style: normal;
}

footer .footer {
  border-top: 1px solid rgba(0, 0, 0, 0.3);
}

footer .footer a {
  color: #000;
}

header {
  display: none;
}

#headingMenuCollapse .list-group {
  margin: 0;
}
#headingMenuCollapse .navbar {
  margin: 0;
}
.editor .main-frame #content .editor-menu .list-group-item,
#headingMenuCollapse .list-group-item {
  display: inline-block;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.3);
  font-size: 1em;
  margin: .5em;
  border-radius: 50px;
}
#headingMenuCollapse .list-group-item a {
  padding: .5em 1em;
}
/*#headingMenuCollapse .list-group-item a:before {*/
/*  content: '⬪';*/
/*  color: #13529F;*/
/*  position: absolute;*/
/*  left: .3em;*/
/*  top: -.16em;*/
/*  font-size: 2em;*/
/*}*/
.editor .main-frame #content .editor-menu .list-group-item.current,
#headingMenuCollapse .list-group-item.current {
  background: #FBE8A5;
}
.editor .main-frame #content .editor-menu .list-group-item a,
#headingMenuCollapse .list-group-item a {
  display: inline-block;
  color: #000;
}
.editor .editor-panel .content {
  padding: 0;
}
.editor .root a {
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.3);
}

.show-up {
  font-size: 1.3em;
}

#last_resources_table span.fake_link {
  color: #337ab7;
  text-decoration: none;
}

/**
NEWSPAPER CHANGES
 */
.newspaper .express {
  background: #F76C6C;
}
.newspaper .express h2 {
  color: #fff;
}
.cowstars .mci {
  color: #fff;
  background-image: url(/img/mcw-2021/icon/lebel_first_dashboard_red.svg);
}
.express .cowstars .mci {
  color: #fff;
  background-image: url(/img/mcw-2021/icon/lebel_first_dashboard.svg);
}
.newspaper .express article .author {
  color: #000;
  font-style: normal;
  padding: 0;
}
.newspaper .articles article {
  padding-bottom: 2em;
  box-shadow: 0 2px 2px rgba(0, 0, 0, .25);
  border-radius: 6px;
}
.newspaper .articles article.video_thumbnail {
  padding-bottom: 0;
}
.newspaper .videonews article {
  display: flex;
  flex-direction: column-reverse;
}
.newspaper .videonews article h2 {
  border-radius: 0 0 6px 6px;
}
.newspaper .videonews .img-responsive {
  border-radius: 6px 6px 0 0;
}
.newspaper .videonews .img-responsive {
  display: flex;
  flex-direction: column-reverse;
  border-radius: 4px 4px 0 0;
}
.newspaper .videonews article h2,
.article-video-small h2,
.archive_list_category article h4 {
  background: #0C2B62;
  color: #fff;
}
.newspaper article > h2,
.newspaper article > div {
  padding: 0 15px;
}
.newspaper .btn-outline-secondary {
  color: #fff;
  background: #24305E;
}

.home #dynamic_content {
  padding: 0;
}

.dashboard .widget {
  color: #000;
  border: 1px solid rgba(0, 0, 0, 0.3);
  margin: 1em 0 1em 1em;
  display: block;
  border-radius: 6px;
  padding: 1em;
}
.dashboard .flex-row {
  flex-direction: row;
}
.dashboard .flex-row .col-md-3.widget {
  flex: 1 1 20%;
}
.dashboard .flex-row .col-md-8 {
  flex: 1 1 20%;
  display: flex;
  flex-direction: column;
}
.dashboard .flex-row .col-md-4 {
  margin: 0;
}
.dashboard .flex-row > .col-md-8 {
  position: relative;
}
.dashboard .flex-row .col-md-8 > .widget {
  margin: 0 0 1em;
  flex: 1 1 auto;
}
.dashboard .flex-row .flex-row > .widget {
  margin: 0;
}
.dashboard .flex-row .flex-row > .widget:last-child {
  margin-left: 1em;
}
.dashboard .flex-row .flex-row > .widget:first-child {
  margin-left: 0 !important;
}
.dashboard .cowzzle img {
  width: auto;
  width: 20%;
}
.icon-container {
  margin-bottom: 1em;
}
.icon-top {
  display: inline-block;
  border-radius: 50%;
  font-size: 1.5em;
  text-align: center;
  color: #fff;
  padding: .35em;
  width: 2em;
  height: 2em;
}
.dashboard .flex-row .col-md-8 .widget:last-child {
  height: auto;
}
.dashboard .flex-row .col-md-8 .flex-row .widget {
  margin-bottom: 0;
}
.dashboard .articles.widget {
  padding: 0;
  position: relative;
}
.dashboard .articles.widget h2 {
  padding: 0 1em;
}
.dashboard .highlight {
  text-align: center;
  font-size: 1.5em;
  font-weight: bold;
}
.dashboard .highlight .btn-xs {
  font-size: 1em;
}

.menu_exercise {
  border-radius: 6px;
  border: 2px #E0E6ED solid;
}
.menu_exercise .cta {
  display: block;
  text-align: center;
  padding: .5em 1em;
  background: #14529E;
  border-radius: 4px;
  font-size: 1.2em;
  color: #fff;
  margin: 1em;
}
.exercise--picture {
  border-radius: 4px 4px 0 0;
  height: 130px;
  width: 100%;
  display: block;
  background: no-repeat center;
  background-size: cover;
}
.menu_exercise a h2 {
  background: transparent;
  color: #14529E;
  padding: .5em;
  margin: .5em 0 0;
  border-radius: 0;
}

hr {
  border-top: 1px solid rgba(0, 0, 0, 0.3);
}

.bg-orange {
  background: #E89271;
}
.bg-blue {
  background: #70A1E5;
}
.bg-gold {
  background: #F0C274;
}
.bg-purple {
  background: #D398E7;
}

.text-black {
  color: #000;
}
.text-gray {
  color: #666;
}

.btn-wordle {
  background: #FBE8A5;
}
.btn-wordle img {
  background: transparent;
}
.wordle {
  position: relative;
}
.wordle:before {
  margin-top: 2rem;
  content: ' ';
  display: block;
  width: 100%;
  background: url(/img/word-to-guess.png) no-repeat center bottom;
  height: 150px;
  background-size: contain;
}
.wordle:after {
  padding: .5rem 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  content: 'Devinez le mot';
  color: #14529E;
  text-align: center;
  font-size: 1.2em;
  font-weight: bold;
}
.newspaper aside:nth-child(3n) {
  background: #FBE8A5;
}
.newspaper aside:nth-child(3n) * {
  color: #000 !important;
}

.newspaper aside:nth-child(3n+1) {
  background: #24305E;
}
.newspaper aside:nth-child(3n+1) * {
  color: #fff !important;
}
.newspaper aside:nth-child(3n+2) {
  background: #F76C6C;
}
.newspaper aside:nth-child(3n+2) * {
  color: #fff !important;
}

.level {
  font-style: italic;
  font-size: 1.1em;
}
.level-badge {
  padding: .3em .7em;
  border-radius: 1em;
  display: inline-block;
  color: #fff;
  margin: .5em 1em .5em .5em;
  font-weight: bold;
  font-size: .9em;
  font-style: normal;
}
.level--a1 {
  background: #5DB85B;
}
.level--a2 {
  background: #0F6632;
}
.level--b1 {
  background: #F0AD4E;
}
.level--b2 {
  background: #936423;
}
.level--c1 {
  background: #F95C5C;
}

.material-switch > input[type="checkbox"] {
  display: none;
}

.material-switch > label {
  cursor: pointer;
  height: 0px;
  position: relative;
  width: 40px;
}
.material-switch > label i {
  display: none;
}

.material-switch > label::before {
  background: rgb(0, 0, 0);
  box-shadow: inset 0px 0px 10px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  content: '';
  height: 16px;
  margin-top: -8px;
  position:absolute;
  opacity: 0.3;
  transition: all 0.4s ease-in-out;
  width: 40px;
}
.material-switch > label::after {
  background: rgb(255, 255, 255);
  border-radius: 16px;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
  content: '';
  height: 24px;
  left: -4px;
  margin-top: -8px;
  position: absolute;
  top: -4px;
  transition: all 0.3s ease-in-out;
  width: 24px;
}
.material-switch > input[type="checkbox"]:checked + label::before {
  background: inherit;
  opacity: 0.5;
}
.material-switch > input[type="checkbox"]:checked + label::after {
  background: inherit;
  left: 20px;
}

.fold .material-switch > input[type="checkbox"] + label::before,
.fold .material-switch > input[type="checkbox"] + label::after {
  display: none;
}
.fold .material-switch > input[type="checkbox"] + label {
  background: #f0f0f0;
  color: #000;
  border-radius: 50%;
  height: 2.7em;
  width: 2.7em;
  text-align: center;
}
.fold .material-switch > input[type="checkbox"]:checked + label {
  background: #F76C6C;
  color: #fff;
}
.fold .material-switch > input[type="checkbox"] + label:hover {
  background: #888;
  color: #fff;
}
.fold .material-switch > input[type="checkbox"] + label i {
  display: inline-block;
}
.fold #menu .list-group-item .material-switch {
  margin: 0;
  float: none !important;
  padding: 0;
}

.ui-tooltip {
  padding: .5em;
  position: absolute;
  z-index: 9999;
  max-width: 300px;
  background: #030303;
  border: none;
  color: #fff;
  border-radius: 4px;
}
body .ui-tooltip {
  border-width: 2px;
}
.ui-helper-hidden-accessible {
  display: none;
  position: absolute;
}

@media screen and (max-width: 768px) {
  body {
    flex-direction: column;
  }

  header {
    display: block;
  }

  #menu {
    display: none;
  }

  #top_menu {
    display: none;
  }

  footer {
    display: none;
  }

  .header-logo img {
    max-width: 50px;
    max-height: 50px;
  }
  header .header-container .header-logo a {
    padding: 0;
  }
  header .header-container .header-logo {
    text-align: left;
  }

  #dynamic_content {
    padding: 0.5em;
  }
  .dashboard .flex-row {
    flex-direction: column;
  }
  .dashboard .widget {
    margin: 1em 0;
  }

  .dashboard .flex-row > .col-md-8 {
    margin: 0;
    padding: 0;
  }

  #responsive_footer_menu {
    border-top: 1px solid #ccc;
  }

  .dashboard .flex-row .col-md-8 .flex-row .widget {
    margin: .5em 0;
  }

  #content {
    padding-bottom: 100px;
  }

  header .header-container .navbar.menu-navbar .pull-right {
    float: right !important;
    width: auto;
  }

  header .header-container .navbar.menu-navbar .list-group {
    display: block;
  }
  header .header-container .navbar.menu-navbar .list-group .list-group-item {
    background: transparent;
    color: inherit;
  }

  header .header-container .navbar-nav > li > label {
    display: block;
    color: inherit;
    font-weight: bold;
    font-size: 1.2em;
    padding: 10px 25px;
    border: 2px solid transparent;
    border-radius: 25px;
    margin-right: 10px;
  }
}
