/*MAIN*/
body {
  margin:0 auto;
  font-size: 1em;
  line-height: 1.25em;
  font-family: Helvetica, Arial, sans-serif;
  background: #f9f9f9;
  color: #555;
  padding-bottom: 70px;
}

a {
  color: cadetblue;
  text-decoration: none;
  font-weight: bold;
}

a:hover {
  color: darkslategray;
}

#cover {
  width: 100%;
}
@media (max-width : 640px) {
  #cover{
    margin-top: -15px;
  }
}

header {
  background: #fff;
  width: 100%;
  height: 70px;
  position: fixed;
  top: 0;
  left: 0;
  border-bottom: 4px solid cadetblue;
  z-index: 100;
}

nav {
  float: right;
  padding: 5px;
  font-size: 1.2em;
}

#menu-icon {
  display: none;
}

ul {
  list-style: none;
}

li {
  display: inline-block;
  float: left;
  padding: 10px
}

section {
  margin: 80px auto 40px;
  max-width: 980px;
  position: relative;
  padding-left: 20px;
  padding-right: 20px;
}

h1 {
  font-size: 2em;
  color: cadetblue;
  line-height: 1.15em;
  margin: 20px 0 ;
  padding-top: 75px;
}

p {
  line-height: 1.45em;
  margin-bottom: 20px;
}

/*MEDIA QUERY*/
@media (max-width : 640px) {

  header {
    position: absolute;
    height: 45px;
    position: fixed;
  }

  #menu-icon {
    display:inline-block;
    font-size: 2em;
  }
  nav{
    padding: 10px;
  }
  nav ul, nav:active ul { 
    display: none;
    position: absolute;
    padding: 20px;
    background: #fff;
    border: 5px solid cadetblue;
    right: 12px;
    top: 22px;
    width: 50%;
    border-radius: 4px 0 4px 4px;
  }

  nav li {
    text-align: center;
    width: 100%;
    padding: 10px 0;
    margin: 0;
  }

  nav:hover ul {
    display: block;
  }
  h1{
    font-size: 1.5em;
    padding-top: 55px;
  }
}

/*INTRO*/
*{box-sizing: border-box;}

#wrapper{
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  margin-top: 20px;
  grid-gap: 12px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 75px;
}
.box{
  display: flex;
  justify-content: center;
  background-color: lightsteelblue;
  border-radius: 5px;
  width: 100%;
  padding: 0;
}
.box table{
  padding: 1%;
  width: 100%;
}
#wrapper td, #wrapper th {
  padding: 5px;
}
#wrapper tr:nth-child(even){background-color: #f2f2f2;}

@media (max-width:640px){
  #wrapper{
    grid-template-columns: auto;
    grid-template-rows: auto;
    padding-top: 50px;
  }  
}

/*Career*/
/* The actual timeline (the vertical ruler) */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

/* The actual timeline (the vertical ruler) */
.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: black;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

/* Container around content */
.container {
  padding: 10px 0;
  position: relative;
  background-color: inherit;
  width: 50%;
}

/* The circles on the timeline */
.container::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -14px;
  background-color: white;
  border: 4px solid cadetblue;
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

/* Place the container to the left */
.left {
  left: 0;
}

/* Place the container to the right */
.right {
  left: 50%;
}
/* Fix the circle for containers on the right side */
.right::after {
  left: -14px;
}

/* The actual content */
.content {
  padding: 1px 20px;
  background-color: lightsteelblue;
  position: relative;
  border-radius: 6px;
}
.video{
  color: #555;
  text-decoration: none;
  font-weight: bold;
}
.video:hover{
  color: black;
}

/* Media queries - Responsive timeline on screens less than 600px wide */
@media (max-width: 600px) {
  /* Place the timelime to the left */
  .timeline::after {
    left: 9px;
    width: 4px;
  }

  /* Full-width containers */
  .container {
    width: 100%;
    padding-left: 35px;
  }
  .container::after {
    position: absolute;
    width: 10px;
    height: 10px;
    border: 3px solid cadetblue;
  }

  /* Make sure all circles are at the same spot */
  .left::after, .right::after {
    left: 0%;
  }

  /* Make all right containers behave like the left ones */
  .right {
    left: 0%;
  }
  h2{
    font-size: 1em;
  }
}

/*Awards*/
#wrapper1{
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 1%;
}
#zhou2{
  max-width: 100%;
}
#wrapper1 table {
  width: 100%;
}

#wrapper1 td {
text-align: left;
padding: 8px;
}

#wrapper1 tr:nth-child(even){background-color: lightsteelblue}

@media (max-width:640px){
  #wrapper1{
    grid-template-columns: auto;
    grid-template-rows: auto;
    grid-gap: 0;
  }
  #wrapper1 img{
    width: 100%;
  }
}
@media (min-width:641px){
  #wrapper1 img{
    max-width: 300px;
  }
}

/*Discography*/
.wrapper2{
  display: grid;
  grid-template-columns: 1fr 1fr;
}
#ShenDeShen{
  width: 100%;
}
.wrapper2 table{
  width: 100%;
}
.album1 th{
  background-color: cadetblue;
  color: white;
  padding: 8px;
  text-align: left;
}
#date,#album-name{
  padding: 8px; 
}
#no-padding{
  padding: 0;
}
#small-table td{
  padding: 5px;
}
#small-table tr:nth-child(even){background-color: lightsteelblue}

@media (max-width:640px){
  .wrapper2{
    grid-template-columns: auto;
    grid-template-rows: auto;
    width: 100%;
  }
  #ShenDeShen img{
    width: 100%;
  }
}
@media (min-width:641px) and (max-width:800px){
  #ShenDeShen img{
    max-width: 300px;
  }
}




/* https://blog.teamtreehouse.com/create-an-absolute-basic-mobile-css-responsive-navigation-menu */