/* General settings stuff */
body {
  background: white;
  font-family: latin_modern_roman10_regular;
  font-size: 16px;
}
footer {
  text-align: right;
  padding: 15px 15px 15px 15px;
  grid-area: footer;

}
footer a {
  color: rgb(234, 223, 195) !important;
}



h1, h2 {
  margin: 0px;
}

*,
*:before,
*:after {
  box-sizing: border-box;
}

/* Grid tomfoolery - Form */
article {
  display: grid;
  grid-template-areas:
    "content"
    "footer"
    "mediafade";

  grid-template-columns: 100%;
  grid-template-rows: auto auto 1fr;
  min-height: 100%;
  padding: 0;
}



.content {
  display: grid;
  grid-area: content;
  grid-column-gap: 0px;
  grid-template-columns: 450px 1fr;
  padding-bottom: 25px;
  margin-top: 25px;
}
.image_form {
  grid-template-areas:
    "formandtitle media";
}
.image_display {
  grid-template-areas:
    "sidebar analysisgrid";
}
.about {
  grid-template-areas:
  "sidebar about-content";
}
.about-content {
  grid-area: about-content;
  max-width: 85%;
  min-width: 350px;
  justify-self: center;
}
.sticky {
  position: sticky;
  top: 25px;
}


.formandtitle, .sidebar {
  padding-left: 25px;
  padding-right: 25px;
}
.formandtitle {
  grid-area: formandtitle;
  display: grid;
  grid-template-rows: auto auto auto auto;
}
.titlebox {
  border-style: double double solid double;
  border-bottom-width: thin;
  font-family: latin_modern_roman_caps10Rg;
  font-size: 30px;
  font-weight: bold;
  padding: 15px 5px 15px 5px;
  text-align: center;
}
.about .titlebox {
  border-bottom-style: double;
  border-bottom-width: unset;
}
.info {
  border-style: none double solid double;
  border-bottom-width: thin;
  font-family: latin_modern_roman10_italic;
  font-size: 16px;
  padding: 15px 5px 15px 5px;
  text-align: center;
}

.form {
  border-style: none double none double;
  padding: 4px;
  padding-left: 15px;
  padding-right: 15px;
}

.divider {
  border-style: none none solid none;
  border-width: thin;
  font-family: latin_modern_roman_caps10Rg;
  font-size: 20;
  padding: 15px 0px 10px 0px;
  text-align: center;
}

.media {
  background: transparent url("squaress.png") repeat scroll 0% 0%;
  height: auto;
  grid-area: media;
  margin-right: 25px;
}

.mediafade {
  background: transparent url("squaress.png") repeat scroll 0% 0%;
  opacity: 20%;
  grid-area: mediafade;
}

.footer {
  background: rgb(66, 74, 73);
  clear: both;
  color: rgb(234, 223, 195);
  font-family: latin_modern_roman10_italic;
  font-size: 16px;
  grid-column: 1 / -1;
  height: auto;
  margin: 0;
}

/* Extra Tomfoolery - Display */

.sidebar {
  grid-template-rows: auto auto auto auto 1fr auto;
}

.about .sidebar {
  text-align: center;
}
.about .sidebar img {
  max-width: 50%;
}
.subsection {
  border-style: none double solid double;
  border-bottom-width: thin;
  font-family: latin_modern_roman_caps10Rg;
  font-size: 18px;
  padding: 20px 0px 20px 0px;
  width: 400px;
  text-align: center;
}

.subsection-bottom {
  border-style: solid double double double;
  border-top-width: thin;
  font-family: latin_modern_roman_caps10Rg;
  font-size: 18px;
  padding: 20px 0px 20px 0px;
  width: 400px;
  text-align: center;
}

.main-about {
  border-style: solid double double double;
  border-top-width: thin;
  font-family: latin_modern_roman_caps10Rg;
  font-size: 18px;
  padding: 20px 0px 20px 0px;
  width: 400px;
  text-align: center;
}

.bookmark {
  border-style: none double none double;
  font-family: latin_modern_roman_caps10Rg;
  font-size: 20;
  padding: 20px 0px 20px 0px;
  width: 400px;
  text-align: center;
}

.analysisgrid {
  justify-self: center;
  grid-area: analysisgrid;
}

.mediatwo {
  background: transparent url("neutrals.png") repeat scroll 0% 0%;
  width: 100%;
  height: auto;
}

/* FORMatting */

.form input {
  display: inline-block;
  font-family: latin_modern_roman_caps10Rg;
  margin: 3px 0;
  outline-color: rgb(66, 74, 73);
  padding: 2px 5px 2px 5px;
  width: 100%;
}

.form input[type="checkbox"] {
  display: inline;
  width: inherit;
}

.form select {
  border-radius: 4px;
  display: inline-block;
  float: right;
  font-family: latin_modern_roman_caps10Rg;
  padding: 2px 150px 2px 2px;
  text-align-last: left;
  width: 300px;
}

.custom-image-upload {
  border: dashed 1px;
  cursor: pointer;
  display: inline-block;
  float: right;
  font-family: latin_modern_roman_caps10Rg;
  font-size: 13;
  height: 25px;
  margin: 3px 0;
  padding: 2px 5px 2px 5px;
  width: 300;
  position: relative;
}

input[type="file"] {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  margin:0;
}

#id_title, #id_image {
  float: right;
  text-align-last: left;
  width: 300;
}

#id_layout {
  outline-color: rgb(66, 74, 73);
}

#id_tiles_x,
#id_tiles_y,
#id_viewport_width,
#id_viewport_height {
  float: right;
  text-align-last: left;
  width: 230px;
}

.form button {
  background-color: white;
  color: black;
  border: none;
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  font-family: latin_modern_roman_caps10Rg;
  font-size: 25px;
  font-weight: bold;
  padding: 5px 5px 5px 5px;
  margin-top: 5px;
  margin-bottom: 5px;
  text-align: center;
  width: 100%;
  outline-color: transparent;
}

.form button:hover {
  background-color: rgb(234, 223, 195);
}

.helptext {
  font-family: latin_modern_roman10_italic;
  font-size:small;
  margin-block-start: 10px;
  text-align: right;
}

p.numbers {
  margin-block-end: 0px;
}



/* Webfonts */

@font-face {
  font-family: "latin_modern_roman10_regular";
  src: url("lmroman10-regular-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "latin_modern_roman10_italic";
  src: url("lmroman10-italic-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "latin_modern_roman_caps10Rg";
  src: url("lmromancaps10-regular-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "latin_modern_roman_caps10Ob";
  src: url("/lmromancaps10-oblique-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

  /* linkstylefarm */
  article a {
    text-decoration: none;

  }
  article a:link, a:visited {
    color: black;
  }

  article a:hover {
    color:rgb(66, 74, 73);
  }

  article a:active {
    color:rgb(234,223,195);
  }
  /* Ensure the about link is visibly a link */
  footer a {
    text-decoration: underline;
  }
  /* Ensure the narrative text in the About page has visible links */
  .about a {
    text-decoration: underline;
  }

  .subsection:hover {
    background-color:rgb(252, 238, 195);
  }


/* Blockquotes */

blockquote {
  font-family: latin_modern_roman10_italic;
  margin-bottom: 0px;
}
blockquote footer {
  font-family: latin_modern_roman10_regular;
  padding-top: 5px;
}
/* Mobile-optimized */

@media (max-width: 500px) {
  .content {
    grid-template-columns: 1fr;
    padding: 0;
  }
  .image_form {
    grid-template-areas:
      "media"
      "formandtitle";
  }
  .image_display {
    grid-template-areas:
      "analysisgrid"
      "formandtitle"
      ;
  }
  .about {
    grid-template-areas:
      "about-content"
      "sidebar";
  }
  .formandtitle, .sidebar, .analysisgrid {
    padding: 0;
  }
  .analysisgrid img {
    max-width: 100%;
    overflow: hidden;
  }
  .mediatwo, .info, .titlebox-subsection, .main-about {
    display: none;
  }
  .mobile_one {
    border-style: double double solid double !important;
    border-bottom: thin;
  }
  .mobile_two {
    border-style: none double none double !important;
  }
  .mobile_one, .mobile_two, .mobile_three {
    width: 100%;
  }
  .form {
    border-style: none double double double !important;
  }
  .media, .mediafade {
    min-height: 15vh;
    margin-right: 0px;
  }
}