body {
  font-family: 'Source Sans Pro', serif;
  font-size: 18px;
  letter-spacing: 0.5px;
}
/* Formatting for top navigation bar */
.navbar {
  background-color: rgb(34,40,52);
  color: #fff;
  border: 0;
  border-radius: 0px;
  margin-bottom: 0px;
  height: 50px;
}
.navbar p{
  text-align: center;
  margin-top: 10px;
  margin-bottom: 10px;
}
.navbar .mynavbar-header:focus,
.navbar .mynavbar-header:active,
.navbar .mynavbar-header:hover,
.navbar .mynavbar-header{
  color: #fff !important;
  font-size: 14px !important;
  letter-spacing: 4px;
  text-decoration: none;
  font-family: 'Lato', serif;
}
/* Formatting for Course title and description */
.course-title-area {
  margin-top:40px;
  margin-bottom:40px
}
.coursehome-title {
  display: block;
  /* Need to change this and have a separate QuestionPageCSS for each subject */
  background-image: url("../solidmechanics2.jpg");
  background-position: center center;
  background-size: 100% auto;
  width: 400px;
  height: 250px;
  position: relative;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}
.coursehome-title-textbox {
  position: absolute;
  bottom: 0;
  width: 100%;
  background-color: rgba(0,0,0,0.75);
  color: #fff;
  padding: 10px 10px;
  font-size: 42px;
  text-align: center;
}
.coursehome-title-xs {
  display: block;
  /* Need to change this and have a separate QuestionPageCSS for each subject */
  background-image: url("../solidmechanics2.jpg");
  background-position: center center;
  background-size: 100% auto;
  width: 300px;
  height: 187px;
  position: relative;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}
.coursehome-title-textbox-xs {
  position: absolute;
  bottom: 0;
  width: 100%;
  background-color: rgba(0,0,0,0.75);
  color: #fff;
  padding: 10px 10px;
  font-size: 30px;
  text-align: center;
}
.course-description {
  padding-right:30px;
  margin-bottom:20px;
  height:100%;
  text-align:justify;
}
.course-suitablefor {
  border-left: 1px solid #ccc;
  padding-left:30px;
  margin-bottom:20px;
  height:100%;
}
/* Formatting for Course chapters and subtopics */
.chapter-title {
  display: block;
  color: rgb(34,40,52);
  font-size: 24px;
  border-bottom: 1px solid rgb(50,50,50);
  padding-left: 5px;
  padding-right: 5px;
  padding-bottom: 10px;
  font-weight: bold;
}
.chapter-subtopic {
  display: block;
  background-color: #fff;
  color: rgb(80,80,80);
  border-bottom: 1px solid #d2d2d2;
  text-decoration: none;
  padding: 5px 15px;
}
.chapter-subtopic:focus,
.chapter-subtopic:active,
.chapter-subtopic:hover {
  background-color: rgb(198,217,241);
  text-decoration: none;
}
.course-endpage {
  margin-top: 30px;
  font-size: 16px;
  padding: 5px 15px;
}
.container-desktop {
  padding-top:15px;
  padding-bottom:15px;
}
.container-mobile {
  padding-top: 10px;
  padding-bottom: 10px;
}
.container-mobile .chapter-title {
  font-size: 18px !important;
  padding-bottom: 5px !important;
}
.container-mobile .chapter-subtopic {
  font-size: 15px !important;
}
.container-mobile .course-endpage {
  margin-top: 20px;
  font-size: 14px;
  padding: 5px 15px;
}
.container-desktop .alegreya-font { /* font for numbers and symbols (e.g. Ixx) */
  font-family: 'Alegreya', serif;
  font-weight: bold;
  font-size: 20px !important; /* 2px more than standard 18px */
}
.container-mobile .alegreya-font { /* font for numbers and symbols (e.g. Ixx) */
  font-family: 'Alegreya', serif;
  font-weight: bold;
  font-size: 17px !important; /* 2px more than standard 15px */
}
/* Formatting for course title and course chapter widths */
.col-leftrightfill, .col-description, .col-suitablefor, .col-chapter, .col-chapter-leftrightfill {
  position: relative;
  min-height: 1px;
  padding-right: 15px;
  padding-left: 15px;
}
@media (min-width: 768px) {
  .col-description, .col-suitablefor, .col-chapter, .col-chapter-leftrightfill {
    float: left;
  }
  .col-description {
    width: 60%;
  }
  .col-suitablefor {
    width: 40%;      /* this is for 270px width - 300/750
                        - 300 has 15 left and right paddings
                        - 750 is container width for 768 media */
  }
  .col-chapter {
    width: 80%;      /* this is for 600px width - 600/750
                        - 750 is container width for 768 media */
  }
  .col-chapter-leftrightfill {
    width: 10%;
  }
}
@media (min-width: 992px) {
  .col-leftrightfill, .col-description, .col-suitablefor, .col-chapter, .col-chapter-leftrightfill {
    float: left;
  }
  .col-leftrightfill {
    width: 8.763%;
  }
  .col-description {
    width: 51.546%;  /* this is for 470px width - 500/970
                        - 470 has 15 left and right paddings
                        - 970 is container width for 992 media */
  }
  .col-suitablefor {
    width: 30.928%;  /* this is for 270px width - 300/970
                        - 300 has 15 left and right paddings
                        - 970 is container width for 992 media */
  }
  .col-chapter {
    width: 61.856%;  /* this is for 600px width - 600/970
                        - 970 is container width for 992 media */
  }
  .col-chapter-leftrightfill {
    width: 19.072%;
  }
}
@media (min-width: 1200px) {
  .col-leftrightfill, .col-description, .col-suitablefor, .col-chapter, .col-chapter-leftrightfill {
    float: left;
  }
  .col-leftrightfill {
    width: 15.812%;
  }
  .col-description {
    width: 42.735%;  /* this is for 470px width - 500/1170
                        - 470 has 15 left and right paddings
                        - 1170 is container width for 1200 media */
  }
  .col-suitablefor {
    width: 25.641%;  /* this is for 270px width - 300/1170
                        - 300 has 15 left and right paddings
                        - 1170 is container width for 1200 media */
  }
  .col-chapter {
    width: 51.282%;  /* this is for 600px width - 600/1170
                        - 1170 is container width for 1200 media */
  }
  .col-chapter-leftrightfill {
    width: 24.359%;
  }
}
/* Formatting for footer */
.footer-container {
  color: rgb(175,190,195);
  background-color: rgb(34,40,52);
  font-size: 14px;
  line-height: 25px;
  padding-top: 15px;
  padding-bottom: 75px;
  text-align: center;
  font-family: 'Lato', serif;
}
.footer-link {
  display: inline-block;
  border: none;
  margin-left: auto;
  margin-right: auto;
  font-weight: bold;
  color: rgb(175,190,195);
  text-decoration: none;
  text-align: center;
  background-color: transparent;
  width: 135px;
}
.footer-link:focus,
.footer-link:active,
.footer-link:hover {
  color: #eee;
  text-decoration: none;
}
/* Miscellaneous formatting */
.fit-width{
  width: 100%;
  max-width: 100%;
}
.bg-lightgrey {
  background-color: #f6f6f6; /* original #f6f6f6 */
}
.container-fluid {
  padding-left:0px !important;
  padding-right:0px !important;
}
