/**********************
        MOBILE
***********************/
@media screen and (max-width: 1024px){
  .single-col { 
    padding: 30px 8%;
  }

  .course-listing.user-progress {
    width: calc(72vw / 2);
    padding: 20px 20px 20px 10px;
  }

  .course-listing.user-progress .course-info {
    width: 60%;
  }

  .course-listing.user-progress .course-illustration {
    width: 20%;
  }

  .course-illustration {
    width: 25%;
  }

  .course-info {
    width: 65%;
  }

  .course-illustration img {
    max-width: 180px;
  }

  #right-nav {
    width: 670px;
    padding-right: 10px;
  }

  .right-nav-button {
    font-size: 18px;
    padding: 18px 7px 15px 8px;
    margin: 0px 9px;
  }

  #home-button {
    font-size: 25px;
    line-height: 1.9;
    margin: 0px 3px;
  }

  #squiggle {
    position: relative;
    top: -4px;
    display: inline-block;
    left: -16px;
    transform: rotate(-30deg);
  }

  #side-nav {
    width: 260px;
    padding: 20px 15px 50px 15px;
  }
  
  #side-nav-container.toggle {
    left: -260px;
  }

  #display-side-nav {
    left: 260px;
  }

  #content-container {
    margin-left: 275px;
  }

}

/* CHANGE HOME TEXT TO ICON */
@media (max-width: 850px) {

  .flex-child-half {
    width: 90%;
  }

  #home-button-text,
  #squiggle {
    display: none;
  }

  #quill-img {
    display: none;
  }

  #home-button {
    padding:7px 7px 2px 7px;
    margin:0px 12px;
  }

  #home-button-icon {
    display: inline-block;
    font-size:19px;
  }

  #home-button:hover {
    border-bottom: 4px solid #655685;
  }

  .home-course-list-content {
    grid-gap: 20px;
  }

  .section img {
    height: 165px;
  }

  .home-course-list-item {
    grid-gap: 40px;
  }

  .course-illustration img {
    max-width: 160px;
  }

  .logika-div.half-page {
    display: block;
    margin: 30px auto;
    min-width: 400px !important;
  }

  .course-listing.user-progress {
    width: calc(70vw / 2);
    height: 150px;
  }

  .course-listing.user-progress .course-info {
    width: 50%;
  }

  #content-container {
    margin-left: 15px;
  }
  
  #content-container.toggle {
    margin-left: 275px;
  }

  #side-nav-container {
    left: -260px;
  }
  
  #side-nav-container.toggle {
    left: 0px;
  }
  
  #display-side-nav {
    left: 0;
  }

  #side-nav-container.toggle #display-side-nav {
    left: 260px;
  }

  #side-nav-container #display-side-nav .right-arrow,
  #side-nav-container.toggle #display-side-nav .left-arrow 
    {
    display: block;
  }

  #side-nav-container #display-side-nav .left-arrow,
  #side-nav-container.toggle #display-side-nav .right-arrow {
    display: none;
  }
}

/* CHANGE RIGHT SIDE NAVIGATION TO ICON */
@media (max-width: 768px) {

  #top-tools .button-description {
    font-size: 13px;
    position: relative;
    top:-1px;
  }

  .single-col { 
    padding: 30px 5%;
  }

  #left-nav {
    display: none;
  }
  
  #right-nav {
      padding-right: 20px;
  }

  .right-nav-button {
    margin: 0px 18px;
  }

  #account-button-text,
  #course-catalogue-text,
  #course-manager-text,
  #my-courses-text,
  #login-buttons {
    display: none;
  }

  #course-catalogue-icon,
  #account-button-icon,
  #my-courses-icon,
  #course-manager-icon {
    left: 0px;
  }

  #login-menu-button-mobile {
    display: inline-block;
    position: relative;
    top: 11px;
    margin: 0px 7px;
    padding: 12px 10px 14px 10px;
  }

  #login-menu-mobile {
    font-family: sans-serif;
    font-size: 19px;
    position: fixed;
    top: 60px;
    right: 0px;
    width: 240px;
    height: 62px;
    background-color: #fff;
    border-top: 1px solid #ddd;
    margin: 0px;
    padding: 0px;
    z-index: 999;
    overflow: hidden;
    box-shadow: #bbb 0px 6px 12px -2px;
  }

  .clearfix{
    width: 100%;
  }
  
  .section-content {
    width: 80%;
    clear: both
  }

  .clearfix img {
    width: 100%;
    clear:both
  }

  .section img {
    display: none;
  }

  .course-illustration {
    width: 100%;
    align-self: left;
    margin-left: -10px;
  }
  .course-illustration img {
    display:block;
    margin: 20px auto;
    max-height: 100px;
  }

  .course-info {
    width: 100%;
  }

  #view-menu-button {
    position: fixed;
    left: 0px;
    top: 0px;
    height: 60px;
    width: 60px;
    cursor: pointer;
    z-index: 9999;
    background-color: white;
  }

  #view-menu-button .arrow {
    display: none;
  }

  #task-nav {
    width: 265px;
  }

  div.menu-icon {
    display: block;
    width: 29px;
    height: 4px;
    background-color: grey;
    margin: 5px 0;
    position: relative;
    top: 17px;
    left: 15px;
  }

  .logika-div {
    padding-right: 10px;
  }

  .course-listing.user-progress {
    width: calc(85vw);
  }

  .course-listing.user-progress .course-info {
    width: 70%;
  }

  #vertical-divider {
    display: none;
  }
}

@media (max-width: 768px) and (min-height: 900px) {
  .task-container {
    flex-direction: column;
  }

  .task-content-container.show-helpers {
    height: 49%;
    width: 100%;
  }

  .task-content-container.show-helpers .task-content {
    height: 100%;
  }

  .task-helpers.show-helpers {
    border-top: 1px solid #aaa;
    height: 39%;
    width: 100%;
    padding-top: 0;
  }
}

@media (max-width: 768px) and (max-height: 899px){
  .task-container {
    flex-direction: column;
  }

  .task-content-container.show-helpers {
    height: 0%;
    width: 100%;
  }

  .task-helpers.show-helpers {
    height: calc(100vh - 130px);
    border-top: 1px solid #aaa;
    width: 100%;
    padding-top: 0;
  }
}

@media (max-width: 480px) {

  .right-nav-button {
    margin: 0px 12px;
  }

  #task-fieldset {
    padding: 5px 25px 20px 25px;
  }

  .course-listing.user-progress .course-illustration {
    display: none;
  }
  
  .course-listing.user-progress .course-info {
    width: 90%;
  }

  .logika-div {
    padding-right: 0px;
  }

  #top-tools .button-description {
    display: none;
  }
}