/* 
  css rules
  font-family: 'DM Sans', Helvetica, Arial, sans-serif;
  font-family: 'DM Serif Text', Times, Georgia, serif;
*/
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;700&family=DM+Serif+Text:ital@0;1&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  /* add smooth scrolling */
  scroll-behavior: smooth;
  overflow: hidden;
}

/* Global and Type Styles */
body {
  font-family: 'DM Serif Text', Times, Georgia, serif;
  font-size: 20px;
  line-height: 1.6;
  color: #ff0000;
}

h1, h2, h3, h4 {
  font-family: 'DM Sans', Helvetica, Arial, sans-serif;
  line-height: 1.25;
}

h1 {
  font-size: 72px;
  line-height: 1.1;
}

h2 {
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: red;
  text-decoration: none;
}

a:hover {
  color: blue;
  transition: color 1s;
  text-decoration: underline;
}

ul {
  margin-left: 2rem;
}

ul li {
  list-style-type: square;
}

img {
  max-width: 100%;
}


/* Layout Styles */
.container {
  height: 100vh;
  display: grid;
}

.left {
  width: 70vw;
  grid-column: 1;
  overflow-y: scroll;
}

.right {
  width: 30vw;
  grid-column: 2;
  overflow-y: scroll;
  background-color: black;
}

/* Header and Nav */
header {
  padding: 30px;
}

header h1 {
  font-size: 48px;
  text-transform: uppercase;
}

header p {
  margin-top: 1rem;
}

nav {
  padding: 10px 30px 10px;
  font-family: 'DM Sans', Helvetica, Arial, sans-serif;
  font-weight: 700;
  
  border-bottom: 3px solid #ff0000;
  
  background-color: #ffffff;
  
  position: sticky;
  position: -webkit-sticky;
  top: 0;
}

nav a {
  margin-right: 1rem;
}

/* Articles + Content */
article {
  margin: 30px;
  padding: 16px 0;
}

/* Footer + Colophon */
footer {
  margin: 30px;
  padding: 16px 0;
  border-top: 3px solid #ff0000;
}

/* Images */
article.images {
  margin: 0;
  padding: 20px;
}

article.images figure {
  margin-bottom: 20px;
}

article.images figcaption {
  font-size: 13px;
  line-height: 1.2;
  color: #ffffff;
}

/* Media Query */
@media (max-width: 500px) {
  html {
    overflow: visible;
  }
  .container {
    display: block;
    height: 100vh;
    overflow: visible;
  }
  .left {
    width: 100vw;
    overflow: visible;
  }
  .right {
    width: 100vw;
    overflow: visible;
  }
}