/*-------------------------------
               BASE
--------------------------------*/

* {
  margin: 0;
  padding: 0;
}

body {
  font-family: sans-serif;
  font-size: 16px;
  background-color: silver;
}

/*-------------------------------
         LAYOUT MOBILE
--------------------------------*/

#container {
  margin: auto;
  max-width: 960px;
}

header {
  position: relative;
  height: 5rem;
  box-shadow: 0 4px 0.3125rem rgba(0,0,0,.3);
  background-color: #333;
  color: white;
}
header h1 {
  position: absolute;
  top: 1.5rem;
  left: 2rem;
  font-size: 1.2rem;
}

#lists {
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: #444;
  box-shadow: 0 4px 0.3125rem rgba(0,0,0,.3);
  opacity: 0.85;
}
#lists li {
  width: 100%;
  border-bottom: 1px solid #777;
  list-style-type: none;
  font-size: 80%;
}
#lists li:last-child {
  border-bottom: none;
}
#lists a {
  display: block;
  padding: 1rem 0;
  color: #FFF;
  text-decoration: none;
  text-align: center;
}
#lists a:hover {
  background: #222;
}

main {
  display: flex;
  flex-direction: column;
}
article {
  padding: 2rem;
  text-align: justify;
  font-size: 0.85rem;
  background-color: white;
}
aside {
  padding: 2rem;
  text-align: left;
  font-size: 0.85rem;
  background-color: #EEE;
}
article h1,
article p,
aside h1,
aside p {
  margin-bottom: 1rem;
}

footer {
  padding: 1.5rem;
  text-align: center;
  background-color: #333;
  color:white;
}

/*-------------------------------
      LAYOUT PC (OverWrite)
--------------------------------*/

@media only screen and (min-width: 769px) {

  header {
    height: 7rem;
  }
  header h1 {
    top: 2.5rem;
    left: 0rem;
    width: 100%;
    text-align: center;
    font-size: 1.5rem;
  }

  #lists {
    flex-direction: row;
    justify-content: space-between;
    top: 7rem;
    left: 0;
  }
  #lists li {
    flex:1;
    border-bottom: none;
    border-right: 1px solid #777;
  }
  #lists li:last-child {
    border-right: none;
  }

  main {
    flex-direction: row;
  }
  article {
    flex: 3;
    padding: 3rem;
    font-size: 1rem;
  }
  aside {
    flex: 1;
    padding: 3rem;
    font-size: 1rem;
  }

}
