header {
  position: fixed;
  top: 0;
  left: 0;
  background: white;
  display: flex;
  align-items: center;
  z-index: 100;

  width: 100%;
}

header::before {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 1.25%;
  width: 97.5%;
  height: 0.5px;
  background-color: black;
}

header .logo-box {
  position: absolute;
  top: 50%;
  transform: translate(0, -50%);
}

header .logo-box img {
  height: 100%;
}

header nav {
  position: fixed;
}

header nav ul {
  list-style-type: none;
  display: flex;
  align-items: center;
}

header nav ul a {
  color: black;
  text-decoration: none;
}

header nav ul a {
  display: inline-block;
}

header nav ul a:hover li {
  text-decoration: underline;
}

.button {
  position: fixed;
  visibility: visible;
  align-items: center;

  cursor: pointer;
  z-index: 100;
}

#active-menu-button {
  background: url(../../img/header/menu-button.png);
  background-position: center;
  background-repeat: no-repeat;
}

#disactive-menu-button {
  position: absolute;
  background: url(../../img/header/close-button.png);
  background-position: center;
  background-repeat: no-repeat;
}

.sidebar {
  position: fixed;
  visibility: visible;

  display: flex;
  flex-direction: column;

  width: 100%;
  height: 100%;
  top: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 10;

  transform: translateX(100%);

  background: rgba(255, 255, 255, 0.6);

  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.sidebar.active {
  transform: translateX(0);
  transition: 0.2s;
}

.sidebar ul {
  list-style: none;
  display: flex;
  justify-content: left;
  align-items: start;
  flex-direction: column;
  visibility: hidden;
}

.sidebar.active ul {
  visibility: visible;
  margin-left: 10%;
}

.sidebar ul li a {
  color: black;

  font-weight: 700;
  font-style: normal;
  line-height: normal;
  text-decoration: none;
}

.sidebar ul li a:hover {
  text-decoration: underline;
  text-decoration-color: red;
}

.sidebar .main-box {
  display: flex;
  flex-direction: row;

  justify-content: space-between;
}

.sidebar .main-box .main-logo-box {
  display: flex;
  justify-content: center;
  align-items: center;
}

.sidebar .main-box .navigation-box {
  position: relative;

  display: flex;
  align-items: center;
}

.sidebar .main-box .navigation-box::before {
  content: "";
  position: absolute;
  background-color: black;
}

.sidebar .under-box {
  position: absolute;

  display: flex;
  justify-content: center;
  align-items: center;

  width: 100%;

  left: 0;
}

.sidebar .under-box .boxes-box {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 500px;
}

.sidebar .under-box .boxes-box .box .img-box {
  width: 100%;

  display: flex;
  justify-content: center;
  align-items: center;
}

.sidebar .under-box .boxes-box .box .img-box a {
  transition: 0.2s;

  display: flex;
  justify-content: center;
  align-items: center;

  height: 2em;
}

.sidebar .under-box .boxes-box .box .img-box a img {
  height: 100%;
}

.sidebar .under-box .boxes-box .box .img-box a:hover {
  transform: scale(1.1);
}

/* ---------------------------------DESKTOP-VERSION--------------------------------------- */
@media (min-width: 1025px) {
  main {
    margin-top: 4vw;
  }

  header {
    height: 4vw;
    font-size: 1vw;
  }

  header .logo-box {
    left: 30px;
    height: 2.4em;
  }

  .sidebar.active ul li {
    margin: 0.5em 0;
    font-size: 0.75em;
  }

  .sidebar.active ul li a:hover {
    text-underline-offset: 0.3em;
  }

  #active-menu-button {
    top: 1vw;
    right: 20px;
    background-size: 1.5vw;
  }

  #disactive-menu-button {
    top: 4vw;
    right: 20px;
    background-size: 1.5vw;
  }

  .button {
    width: 2vw;
    height: 2vw;
  }

  .sidebar .main-box {
    width: 100%;
    padding: 5em 0;
  }

  .sidebar .main-box .main-logo-box {
    display: flex;

    width: 50%;
  }

  .sidebar .main-box .main-logo-box .img-box {
    width: 50%;
  }

  .sidebar .main-box .main-logo-box .img-box img {
    width: 100%;
  }

  .sidebar .main-box .navigation-box {
    width: 50%;
  }

  .sidebar .main-box .navigation-box::before {
    left: 0;
    top: -5%;
    height: 110%;
    width: 3px;
  }

  .sidebar .under-box {
    font-size: 15px;
    bottom: 30px;
  }

  .sidebar .under-box .boxes-box .box {
    width: 22.5%;
  }
}

/* ----------------------------------MOBILE-VERSION--------------------------------------- */
@media (max-width: 1025px) {
  main {
    margin-top: 60px;
  }

  header {
    justify-content: left;
    height: 60px;
  }

  header .logo-box {
    position: relative;
    top: 20px;
    left: 20px;
    height: 40px;
  }

  .sidebar {
    top: 0;
    font-size: 18px;
  }

  .button {
    visibility: visible;
  }

  .sidebar ul {
    padding: 0;
  }

  .sidebar ul li {
    margin: 0.5em 0;
  }

  .sidebar ul li a {
    font-size: 0.6em;
    text-decoration-thickness: 0.1em !important;
  }

  .sidebar ul li a:hover {
    text-underline-offset: 0.3em;
  }

  #active-menu-button {
    top: 15px;
    right: 24px;
    background-size: 26px;
  }

  #disactive-menu-button {
    top: 80px;
    right: 20px;
    background-size: 26px;
  }

  .button {
    width: 30px;
    height: 30px;
  }

  .sidebar .main-box {
    width: 95%;

    padding: 5em 0;

    /*remove when wanna use line*/
    /*
    padding-left: 5%;
    */
  }

  .sidebar .main-box .main-logo-box {
    display: none;
  }

  .sidebar .main-box .navigation-box {
    width: 95%;

    display: flex;
    justify-content: center;
    align-items: center;
  }

  .sidebar .main-box .navigation-box::before {
    left: 0;
    top: -50%;
    height: 200%;
    width: 2px;

    /*remove line*/
    display: none;
  }

  .sidebar .under-box {
    bottom: 40px;
  }

  .sidebar .under-box .boxes-box .box {
    width: 17.5%;
    font-size: 0.675em;
  }
}
