/* Course-specific layout, retaining the personal website's colours and type. */
#main_content
{
  display: flex;
  background: white;
}
.content
{
  float: none;
  box-sizing: border-box;
  width: 78%;
  min-width: 0;
  text-align: left;
}
.menu
{
  float: none;
  box-sizing: border-box;
  width: 22%;
}
.content h1
{
  color: #A40008;
  font-size: 1.8rem;
}
.content h2
{
  margin-top: 1.8rem;
}
.content p, .content li
{
  line-height: 1.55;
}
.content img
{
  max-width: 100%;
  height: auto;
}
pre, .math.display
{
  overflow-x: auto;
  padding: 1rem;
}
pre, .notice, .actions
{
  background: #f4f4f4;
  border-left: 3px solid #A40008;
  padding: 1rem;
}
pre
{
  font-size: 0.85rem;
}
table
{
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  max-width: 100%;
}
th, td
{
  border: 1px solid #ddd;
  padding: 0.5rem;
}
.actions a
{
  display: inline-block;
  margin: 0.3rem 1rem 0.3rem 0;
}
@media(max-width: 850px)
{
  #container
  {
    width: 96%;
  }
  #main_content
  {
    display: block;
  }
  .content, .menu
  {
    width: 100%;
    padding: 1rem;
  }
  .menu
  {
    border-left: 0;
    border-top: 1px solid #ddd;
  }
}
