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

@font-face {
  font-family: "CartaMagna";
  src: url("fonts/CartaMagna.ttf");
}

@font-face {
  font-family: "Traditio-AH";
  src: url("fonts/Traditio.ttf");
}

@font-face {
  font-family: "Nunito";
  src: url("fonts/Nunito.ttf");
}

html {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-areas: "body";
}

body {
  margin: 0;
  /* background-image: url(../img/old_wood.jpg);
  background-position: center;
  background-attachment: fixed; */
  font-family: Nunito;
  color: rgba(24, 16, 6, 0.897);
  background-color: rgb(202, 193, 140);
  grid-area: "body";
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr, auto, 1fr, 1fr;
  grid-template-areas:
  "header"
  "section"
  "thesaurus"
  "aside"
  "footer";
  font-size: 15px;
}

header {
  grid-area: header;
}

.title {
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 0;
  background-image: url(../img/old-paper-header.jpg);
  background-position: center;
  background-attachment: fixed;
  box-shadow: inset 0 0 100px #000000;
  display: flex;
  justify-content: center;
}

.subtitle {
  font-family: Nunito;
  text-align: center;
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0;
}

section {
  grid-area: section;
  display: grid;
  grid-gap: 15px;
  grid-template-columns: repeat( auto-fit, minmax(13.5rem, 1fr ));
	grid-template-rows: repeat( auto-fit, minmax(10rem, 1fr ));
  /*align-items: center;*/
  justify-content: space-around;
  padding: 1rem;
  margin: auto;
}

.thesaurus {
  grid-area: thesaurus;
  margin: 0;
  padding: 12.5vh;
  background-color: rgba(14, 9, 4, 0.952);
  color: rgb(235, 229, 197);
  background-image: url(../img/pen.jpg);
  background-position: center bottom;
  box-shadow: inset 0 0 100px #000000;
}

cite {
  text-align: right !important;
  margin-right: 0;
  padding: 0;
  width: 100%;
}

.thesaurus>p {
  max-width: 48em;
  margin: auto;
}

article {
  display: flex;
  flex-direction: column;
  align-items: flex-shrink;
}

.article-header {
  background-color: rgba(24, 16, 6, 0.7);
  color: rgb(202, 193, 140);
  border-radius: 0.5rem;
  text-align: center;
  margin-bottom: 0rem;
}

.article-subtitle {
  flex: 1;
  margin-bottom: 1rem;
  margin-top: 1rem;
  padding: 0;
  font-weight: bold;
  font-style: italic;
}

.article-box {
  display: flex;
  flex-direction: row;
  flex: 15;
  align-items: space-between;
}

.article-image {
  flex: 1;
  border-radius: 1rem;
  height: 8rem;
  margin-right: 1rem;
}

.article-image:hover {
  cursor: pointer;
}

.article-text {
  flex: 5;
  margin-top: 0;
}

aside {
  grid-area: aside;
  margin: 0;
  padding: 12.5vh;
  text-align: center;  
}

aside>p {
  max-width: 48em;
  margin: auto;
}


footer {
  grid-area: footer;
  background-color: rgba(24, 16, 6, 1);
  color: rgb(202, 193, 140);
  text-align: center;
}

h1 {
  font-family: CartaMagna;
  text-align: center;
  font-size: 4rem;
  color: rgb(202, 193, 140);
  text-shadow: 8px 8px 1px rgb(8, 6, 2);
  opacity: 0.9;
  margin-bottom: 0;
}

@media(max-width: 600px) {
  h1 {
    font-size: 3.5rem;
  }
}

@media(max-width: 460px) {
  h1 {
    font-size: 2.5rem;
  }
}

a {
  color: brown;
}

.copyright {
  color: rgb(202, 193, 140);
  text-decoration: none;
}

.modal {
  position: fixed;
  width: 100vw;
  height: 100%;
  background-color: rgba(25, 25, 25, 0.8);
  z-index: 100;
  display: none;
  text-align: center;
}

#gallery-picture {
  height: 100vh;
  max-width: 100vw;
  margin-left: auto;
  margin-right: auto;
}
