
html {
	scroll-behavior: smooth;
}

body {
  font-size:  16px;
  font-family: Verdana, Arial, sans-serif;
  background-color: #5b9aaa;
  font-family: 'Roboto', sans-serif;
  color: #111;
}

.container {
  width: 80%;
  display: block;
  float: left;
  padding: 20px;
  margin-left: 10%;
}

.example {
  display: block;
  float: left;
  width: 100%;
}

.top {
  display: flex;
  flex-direction: row;
  justify-content: start;
  border-bottom: 1px solid #eee;
}

.img-small {
  padding-right: 20px;
  height: 150px;
}

.topTitle {
  font-size: 4rem;
  font-family: 'Russo One', sans-serif;
  color: #eee;
  letter-spacing: 3px;
  margin-top: 0;
}

.box {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.content {
  width: 80%;
}

nav {
  width: 18%;
  padding-left: 2%;
  background-color: #eee;
}

nav a {
  display: block;
  float: left;
  line-height: 1.6;
  width: 90%;
}

#close {
  display: none;
}

#close-menu {
  display: none;
}

nav h2 {
  color: #555;
}

.date {
  font-size: 1rem;
  color: #666;
  margin-top: 30px;
  background-color: #eee;
  padding: 20px 0 20px 20px;
}

.title {  
  width: 90%;
  margin-left: 5%;
}

figure {
  width: 90%;
  background-color: #fff;
  margin: 0 auto;
  margin-bottom: 30px;
  margin-top: 30px;
  padding-top: 30px;
  display: block;
}

figure img {
  width: 80%;
  border: 1px solid #74b8c9;
  padding:  10px;
  display: block;
  margin: 0 auto;
}

figcaption {
  text-align:  center;
  font-size: 1.2rem;
  padding: 20px 0;
  color: #555;
  font-style: italic;
  width: 88%;
  margin-left: 6%;
  display: block;
}

.link,
.link:visited,
.link:active {
  text-decoration: underline;
  color: #444;
}

.link:hover {
  text-decoration: none;
}

.center{
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 20px;
}   

p {
  width: 90%;
  font-size: 1.2rem;
  margin-left: 5%;
}

footer {
  display: flex;
  flex-direction: row;
  justify-content: start;
  border-top: 1px solid #eee;
  color: #eee;
}

@media screen and (max-width: 950px) {
  .topTitle {
    font-size: 3rem;
  }
}

@media screen and (max-width: 800px) {
  nav {
    display: none;
  }
  #close-menu {
    display: flex;
    color:#eee;
    font-size: 2rem;
    position: absolute;
    top: 20px;
    right: 20px;
  }

  #close {
    display: none;
    float: right;
    position: relative;
    top: 20px;
    right: 20px;
    font-size: 1.2rem;
    color: #666;
  }

  nav {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    padding-bottom: 30px;
    margin-bottom: 20px;
    padding-left: 5%;
  }
  
  nav a {
    line-height: 2;
  }

  .content {
    width: 100%;
  }
}

@media screen and (max-width: 500px) {

  .container {
    width: 90%;
    margin-left: 0;
  }

  .img-small {
    height: 75px;
    width: 100px;
  }

  .topTitle {
    font-size: 2rem;
  }

  p {
    margin-left: 0;
  }

  .title {
    margin-left: 0;
  }

  figure {
    width: 100%;
  }
}
