* {
  margin: 0;
  padding: 0;
}

#container {
  width: 1200px;
  margin: 0 auto;
}

#footer {
  width: 100%;
  clear: both;
  background-color: rgb(51, 51, 51);
  margin-top: 30px;
}

#footer p {
  float: left;
}

.depth {
  height: 40px;
  text-align: right;
  padding-right: 160px;
  background: rgb(234, 234, 234);
  margin-top: 20px;
  line-height: 40px;
}

@media (max-width: 500px) {
  .depth {
    width: 100%;
    margin: 0;
    padding-right: 50px;
  }
}

.depth span {
  color: rgb(102, 102, 102);
  margin-left: 10px;
  font-size: 15px;
  font-weight: bold;
}

@media (min-width: 500px) {
  .main-box {
    width: 1200px;
    margin: 0 auto;
  }

  #header {
    position: relative;
    margin-top: 20px;
    height: 55px;
  }

  .header-item {
    float: left;
  }

  .header-item a {
    color: #555555;
  }

  #header2 {
    display: none;
  }

  .sub-menu {
    background-color: white;
    max-height: 0;
    overflow-y: auto;
    transition: max-height 0.3s ease-in-out;
    position: absolute;
    z-index: 1;
  }

  .has-sub-menu {
    position: relative;
  }

  .has-sub-menu:hover .sub-menu {
    max-height: 200px;
    transition: max-height 0.3s ease-in-out;
  }

  .sub-menu a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
    background-color: white;
    transition: background-color 0.3s ease-in-out;
  }

  .header-item:not(:hover) .sub-menu {
    max-height: 0;
    transition: max-height 0.3s ease-in-out;
  }

  .nav_bar {
    display: flex;
    justify-content: space-between;
    padding-left: 50px;
  }

  /* Profile avatar sizing */
  .img-profile {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
  }

  .header-item {
    flex: 1;
    position: relative;
  }
}

@media (max-width: 500px) {
  .main-box {
    width: 90%;
    margin: 0 auto;
    flex-direction: column;
  }

  #header {
    display: none;
  }

  .header-item {
    float: left;
    margin-right: 10px;
  }

  .header-text {
    margin-left: 80px;
  }

  .header-item a {
    color: #555555;
  }

  #header2 {
    position: relative;
    margin-top: 20px;
    height: 55px;
  }

  .body {
    width: 100vw;
    overflow-x: hidden;
  }

  .table {
    position: relative;
  }
}
