/*
This CSS file was compiled by Brian Tomasik. Some lines were suggested by friends. Some lines were inspired by my old WordPress theme, [Spacious](https://wordpress.org/themes/spacious/).
*/


@import url("movie_scripts_and_dialogues.css");
@import url("tooltip.css");

:root {
  --nav_and_footer_link_color: rgb(100, 100, 100);
}

* {
  box-sizing: border-box;
  -webkit-box-sizing:border-box;
  -moz-box-sizing: border-box;
}

abbr { border-bottom: 2px dotted pink; }

a { text-decoration: none; }

a:hover {
  background: #FFC; /* Inspired by https://www.w3.org/International/style/article-2016.css */
  text-decoration: underline;
}

audio {
  /* The below 3 lines [do centering](https://stackoverflow.com/questions/5879209/how-to-center-html5-videos/15696993#15696993). */
  display: block;
  margin-left: auto;
  margin-right: auto;
}

video {
  width: 70%;
  margin: 1em;
  /* The below 3 lines [do centering](https://stackoverflow.com/questions/5879209/how-to-center-html5-videos/15696993#15696993). */
  display: block;
  margin-left: auto;
  margin-right: auto;
}

q {
  quotes: "\"" "\"" "'" "'";
}

body {
  color: rgb(40, 40, 40);
  max-width: 825px;
  padding: 3% 4% 3% 4%;
  margin: auto; /* Center the article. */
  font-size: 110%;
  font-family: -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", "Fira Sans",
    "Droid Sans", "Helvetica Neue", sans-serif; /* From "[CSS system fonts cheatsheet](https://devhints.io/css-system-font-stack)". */
  line-height: 1.5;
}

pre {
  white-space: pre-wrap;
  border: 1px solid rgb(234, 234, 234);
  padding: 2%;
}

h1, h2, h3, h4, h5, h6 {
  color: rgb(4, 54, 74);
}

h2, h3, h4, h5, h6 {
  padding-top: 0.4em;
}

h1 { font-size: 155%; }

h2 {
  font-size: 120%;
  border-bottom: 2px solid rgb(238, 238, 238); /* Inspired by https://www.w3.org/International/style/article-2016.css */
}

h3 { font-size: 113%; }

h4 { font-size: 107%; }

h5 { font-size: 101%; }

h6 { font-size: 96%; }

li { margin: 0.5em 0em 0.5em 0em; }

img {
  width: 35%;
  margin: 2%;
}

.float_right {
  float: right;
}

.float_left {
  float: left;
}

.width40percent { width: 40%; }

.width100percent { width: 100%; }

.full_width_image img { width: 100%; }

.image20percent img { width:20%; }

.image30percent img { width:30%; }

.image40percent img { width:40%; }

.image50percent img { width:50%; }

.image60percent img { width:60%; }

.image70percent img { width:70%; }

.image80percent img { width:80%; }

.image90percent img { width:90%; }

blockquote {
  background: rgb(250,250,250);
  margin-left: 1.8em;
  padding: 0.01em 0.7em 0.01em 0.7em;
}

blockquote p {
  margin: 0.7em;
}

table {
  margin-left: auto;
  margin-right: auto;
  border-collapse: collapse;
}

table, th, td {
  border: 1px solid black;
  padding: 0.5em; /* Has to be a number in px or em, not %, or else the table may get messed up! */
}

/* Taking out because it doesn't look good for small tables:
tr:nth-child(even) { background-color: rgb(245, 245, 245); }
*/

textarea {
  width: 100%;
  height: 10em;
}

input {
  margin: 1%;
  font-size: 90%;
  width: 100%; /* See "[Table cells overflow despite box-sizing: border-box](https://stackoverflow.com/questions/54280521/table-cells-overflow-despite-box-sizing-border-box)". */
}

nav {
  text-align: right;
  font-size: 80%;
}

nav a {
  color: var(--nav_and_footer_link_color);
}

footer {
  font-size: 60%;
}

footer a {
  color: var(--nav_and_footer_link_color);
}

button {
  background-color: deepskyblue;
  color: white;
  padding: 0.5%;
  font-size: 90%;
  border-radius: 10px;
  -webkit-transition-duration: 0.4s; /* Safari */
  transition-duration: 0.4s;
}

button:hover {
  background-color: green;
}


/* IDs */

#table_of_contents {
  background: rgb(247,247,250);
  padding: 0.1% 3% 0.1% 3%;
}

#table_of_contents h2 {
  margin-top: 0;
  border-bottom: 0;
}

#table_of_contents li { margin: 0; }

#footnotes {
  font-size: 90%;
  list-style-type: lower-alpha;
}


/* Classes */

/* General suggestion: Avoid indenting boxes unless they're blockquotes or equations or pre or replies in a conversation. Indenting other boxes would make them look like blockquotes, so don't do that. Indenting .byline_and_dates seems ok because it's not at risk of being confused for a blockquote. */

.good { color: green; }

.bad { color:red; }

.byline_and_dates {
  margin-left: 2%;
  font-size: 90%;
  margin-bottom: 0%;
}

.byline_and_dates p { margin: 0.5%; } /* Reduce space between the two <p> tags. */

.allow_word_breaks { word-wrap: break-word; }

.heading_for_a_box { font-weight: 600; }

.informational_notice {
  background-color: rgb(254, 255, 215);
  border-left: 0.3em solid rgb(255, 234, 29);
  padding: 0.1em 0.8em 0.1em 0.8em;
}

.informational_notice p { margin: 0.7em; }

div.informational_notice {
  margin: 1em 0em 1em 0em;
}

p.informational_notice {
  padding: 0.4em 0.8em 0.4em 0.8em;
}

.box_below_summary {
  background: rgb(252, 238, 255);
  padding: 0.5em 1em 0.5em 1em;
}

.heading_for_box_below_summary { font-weight: 600; }

.box_for_example_or_definition {
  background: rgb(255, 253, 243);
  padding: 0.1em 1em 0.1em 1em;
}

.box_for_example_or_definition p { margin: 0.9em; }

.heading_for_example_or_definition { font-weight: 600; }

p.box_for_example_or_definition {
  padding: 0.4em 1em 0.4em 1em;
}

.in_article_footnote, .in_article_footnote_full_width { /* This CSS was partly inspired by Harish Sethu's in-article footnotes on http://www.countinganimals.com/ */
  background: rgb(240, 255, 241);
  border-radius: 0.5em;
  margin: 0.5em 0.7em 0.5em 0.7em;
}

.in_article_footnote {
  width: 50%;
  float: right;
}

div.in_article_footnote {
  padding: 0.1em 0.7em 0.1em 0.7em;
}

span.in_article_footnote {
  padding: 0.4em 0.7em 0.4em 0.7em;
}

div.in_article_footnote_full_width {
  padding: 0.1em 1.2em 0.1em 1.2em;
}

p.in_article_footnote_full_width {
  padding: 0.9em 1.2em 0.9em 1.2em;
}

.in_article_footnote p { margin: 0.6em; }

.heading_for_in_article_footnote { font-weight: 600; }

.full_line_equation {
  margin:2%;
  margin-left: 7%;
  margin-right: 7%;
}

.full_line_equation br {
  line-height: 180%;
}

.equation_name {
  background-color: rgb(183, 255, 144);
}

/* Based on molf's answer in "[Need advice on html/css structure for indented, threaded comments](https://stackoverflow.com/questions/1172843/need-advice-on-html-css-structure-for-indented-threaded-comments)". */
.reply {
  margin-left: 7%;
}