body {
  min-height: 100vh;
  color: white;
  background-color : black;
  overflow: show;
  margin-top: 0px;
  font-family: "Helvetica", "Arial";
  font-size: 1.2em;
}

p{
  margin-top: 0px;
  margin-bottom: 0px;
}

#box_wrapper{
  width: 90%;
  display: flex; /* flexible layout for columns OR rows */
  flex-direction: column;
  margin-left: auto;
  margin-right: auto;
}

#box1{
  margin-top : 40px;
  width: 100%;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  border-top: 0px;
}
/* banner related */
#banner_img{
    width: 100%;
}

/* newsticker related */
#box2{
  width: 100%;
  max-width: 700px;
  margin-top: 5px;
  margin-bottom: 10px;
  display: flex;
  flex-flow: row nowrap;
  margin-left: auto;
  margin-right: auto;
  max-height: 1.2em;
}
.newsticker_container{
  overflow: hidden;
}

.newsticker{
  white-space: nowrap;
  box-sizing: content-box;
  animation: scrollLeft 10s linear infinite;
}

.ticker_item{
  display: inline-block;
}

@keyframes scrollLeft{
  0%{
    visibility: visible;
    transform: translate3d(0, 0, 0);
  }
  100%{
    transform: translate3d(-100%, 0, 0);
  }
}

/* actual page contents */
#box3{
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  border-top: 0px;
  height: 100%;
  display: flex;
  flex-direction: row;
}

/* p with white outline */
.top_box{
  font-family: "Arial";
  font-weight: bold;
  border: 2px solid white;
  border-radius: 20px;
  padding-left: 7px;
  padding-right: 7px;
  padding-top: 7px;
  padding-bottom: 3px;
  max-width: 400px;
}

.top_box_mirror{
  text-align: end;
  margin-left: auto;
  margin-right: 0;
}

/*first column */
#box4{
  margin-left: auto;
  width: 50%;
  max-width: 500px;
}

/* used in box4a, bo4b and box5 */
.container_box{
  border-left: 1px solid white;
  padding: 5px;
  padding-left: 0px;
  overflow: scroll;
  margin-bottom: 10px;
  max-width:600px;
}

#box4a p{
  padding-left: 5px;

}

#box4a{
  padding-right: 5px;
}

/*cool pages list */
#box4b{
  padding-right: 5px;
}

#pages_container{
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
}

.page_entry{
  display: flex;
  flex-direction: column;
  align-items: center;
  height: auto;
  width: 160px;
}

#about_me_img{
  width: 160px;
  height: 160px;
}
#music_reccomend_img{
  width: 160px;
  height: 160px;
}

/* blog-post list related */
#box5{
  margin-right: auto;
  max-width: 500px;
  padding-left: 5px;
  width: 50%;
}

.blog_entry{
  margin-left: 5px;
  margin-bottom: 15px;
  border-left: 1px solid white;
  padding-left: 3px;
  overflow: hidden;
}

.blog_entry .title{
  font-size: 1.1em;
}

.blog_entry .desc{
  font-size: 0.8em;
  padding-left: 7px;
}

.blog_entry .date{
  font-size: 1.0em;
  float: right;
}

/* footer related */
footer{
  display: flex;
  justify-content: center;
}
/* media queries */
@media screen and (max-width: 500px){
  #box_wrapper{
    width: 95%;
  }
  #box1{
    max-width: 95%;
  }

  #box2{
    font-size: 0.9em;
  }
  #box3{
    flex-direction: column;
  }
  #box4{
    margin: 0;
    max-height: 70%;
    width: 100%;
  }
  #box4a{
    max-height: 50%;
    padding: 0;
  }

  #pages_container{
    justify-content: auto;
  }
  #about_me{
    margin-right: 10px;
  }
  
  #music_recommend{
    margin-right: 10px;
  }

  #box4b{
    max-height: 100%;
    padding: 0;
  }
  #box5{
    margin: 0;
    max-height: 100%;
    padding: 0;
    width: 100%;
  }

  .container_box{
    width: 100%;
  }
  .top_box{
    max-width: 500px;
  }

  .top_box_mirror{
    margin-right: auto;
    margin-left: 0;
  }
}

