*,
*::after,
*::before {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --forBeforeColor: #fff;
    --scaleBig: scaleX(0);
}

.header {
    display: flex;
    justify-content: center;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    right: 0;
}

.header-inner {
    width: 100%;
    max-width: 1500px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: .8s;
}

.header ul {
    list-style: none;
    display: flex;
}

.header ul li a {
    text-decoration: none;
    color: white;
    padding: 10px 20px;
    margin: 0 1px;
    border-right: 1px solid gray;
    font-size: 17px;
    position: relative;
}
  
.header ul li a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    border-radius: 4px;
    background-color: var(--forBeforeColor);
    bottom: 0;
    left: 0;
    transform-origin: right;
    transform: var(--scaleBig);
    transition: transform .3s ease-in-out;
  }
  
.header ul li a:hover::before {
    transform-origin: left;
    transform: scaleX(1);
}

.logo {
    margin-left: 20px;
}

.logo img{
    max-width: 250px;
    width: 100%;
}

.active_bar {
    background-color: white;
    transition: .8s;
}