* {
  box-sizing: border-box;
}

*::-webkit-scrollbar {
  width: 0 !important;
}

* {
  box-sizing: border-box;
  scrollbar-width: none;
  overflow: -moz-scrollbars-none;
  -ms-overflow-style: none;
}

body, html {
  background-color: rgba(190, 190, 190, 1);
  font-family: 'Noto Serif TC', serif;
  font-size: 1em;
  overflow-x: hidden;
  padding: 0px;
  margin: 0px;
}

/* TYPOGRAPHY–––––––––––––––––––––––––––––––––––––– */

p {
  max-width: 1000px;
  padding: 0em 1em 0em;
}

.chi{
  margin-left: auto;
}

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

/* MAIN LAYOUT–––––––––––––––––––––––––––––––––––––––––– */

.flexbox-container {
  display: flex;
}

.main {
  width: 100%;
}

.sidebar, .sidebar-right {
  flex-basis: auto;
  min-width: 220px;
}

.sidebar-right {
  min-width: initial;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.audio_button{
  /* flex: 1; */
}


header, footer {
  text-align: center;
}

.audio_button, .project_title{
  cursor: pointer;
}

/*THUMBNAIL-GRID––––––––––––––––––––––––––––––––––––––––––––*/

.thumbnail_container {
  position: relative;
  width: 50%;
  padding-bottom: 50%;
  float: left;
}

.thumbnail {
  position: absolute;
  width: 100%;
  height: 100%;
  text-align: center;
}

.thumbnail img {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}

img {
  max-height: 100%;
  max-width: 100%;
}

.project_title{
  font-weight: 700;
}


/*SIDE-MENU––––––––––––––––––––––––––––––––––––––––––––––*/
ul {
  padding: 0px;
  margin: 0px;
}

#info_card a, header a, footer a, span, .audio_button, .project_title, .project_hidden, .thumbnail {
  display: block;
  border: 3px outset rgba(190, 190, 190, 1);
}

#info_card a, header a, footer a, span, .project_title, .audio_button{
  padding: 5px 10px 6px;
}

/*COLOR––––––––––––––––––––––––––––––––––––––––––––––*/

#info, #work, #contact, .project_hidden, .audio_button{
        background-color: rgba(190, 190, 190, 0.9);}
#p1   { background-color: lavender;}
#p2   { background-color: greenyellow;}
#p3   { background-color: darkorange;}
#p4   { background-color: yellow;}
#p5   { background-color: hotpink;}
#mail { background-color: crimson;}
#insta{ background-color: mediumslateblue;}
#bio  { background-color: aquamarine;}
#cv   { background-color: brown;}

/* ––––––––––––––––––––––––––––––––––––––––––––––––– */

@media only screen and (max-width: 1200px) {
  .thumbnail_container {
    width: 100%;
    padding-bottom: 100%;
  }
}

@media only screen and (max-width: 800px) {

  .project_hidden, .hidden, .contact_hidden, .work_hidden {
    display: none;
    margin: none;
  }

  .main {
    border-left: 0px;
    border-right: 0px;
  }

  .sidebar, .sidebar-right {
    min-width: initial;
    max-width: 100%;
  }

  .sidebar-right {
    width: 100%;
    display: flex;
    flex-direction: row;
  }

  .audio_button{
    flex: 1;
  }

  .flexbox-container {
    flex-direction: column;
  }

  #info_card {
    max-width: 100%;
    min-width: 100%;
    width: 100%;
    overflow-y: scroll;
  }
