/*
 * Base for the site's main content pages (journal, calendar, courses,
 * assignments, grading, etc.). Provides the gradient background, centered
 * content body, and heading sizes.
 */

@import url('base.css');

html {
  background: radial-gradient(
    circle,
    rgb(85, 68, 102) 0%,
    rgba(2, 0, 36, 1) 35%,
    rgba(9, 9, 121, 1) 100%
  );
}

ul, ol {
  margin-top: 0.5em;
  margin-left: 1em;
  padding-left: 1em;
}

li {
  line-height: 1.5em;
  margin-top: 1em;
  margin-bottom: 0.5em;
}

pre {
  margin-top: 1em;
}

h1 {
  font-size: 2rem;
  padding: 0.5em 0 0;
}

h2 {
  font-size: 1.5rem;
  padding: 1em 0 0;
  margin-bottom: 0.5em;
}

h3 {
  font-size: 1rem;
  padding: 1em 0 0.25em;
  margin-bottom: 0.5em;
}

body {
  width: calc(min(45em, 80%));
  margin: 20px auto;
  padding: 2em;
  background: var(--page-background);
  border-radius: 12px;
}

table {
  width: 100%;
}

img {
  max-width: 100%;
  height: auto;
}

div.classname {
  float: right;
  font-weight: 600;
  font-size: 80%;
}

p {
  line-height: 1.5em;
  margin-top: 0.75em;
}

div.signature {
  margin-top: 2rem;
  text-align: right;
  font-style: italic;
}

div.signature p {
  margin-top: 0;
}


div.signature a.login {
  display: inline-block;
  font-size: 90%;
  border: 1px solid #666;
  padding: 2px 4px;
  margin: 0 2px;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
}

dl {
  dt {
    margin-top: 1em;
    font-weight: 600;
  }
  dd {
    margin-left: 2em;
  }
}

#toc li {
  margin-top: 0.5em;
}
