.nav_bar {
    background-color: var(--pcolor);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    height: 75px;
}
.nav_bar nav {
    width: 100%;
    height: 100%;
}
.nav_bar nav ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
    padding-right: 40px;
    box-sizing: border-box;
}
.nav_bar nav ul li {
    padding: 0 15px 0 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    box-sizing: border-box;
}
.nav_bar nav ul li:first-child {
    position: absolute;
    left: 40px;
}
.nav_bar nav ul li a, .nav_bar nav ul li p {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav_bar nav ul li a p::after{
    content: "";
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 0;
    height: 2px;
    background-color: var(--bgb);
    transition: var(--transition);
    transform-origin: center;
    border-radius: var(--border-radius);
}
.nav_bar nav ul li a p:hover::after{
    width: 100%;
    transform: translateX(-50%) scaleX(1);
}
.nav_bar nav ul li a {
    color: var(--bgb);
    font-weight: bold;
    font-size: 20px;
}
.nav_bar nav ul .hamburger {
    width: 50px;
    height: 50px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.nav_bar nav ul .hamburger div {
    content: "";
    width: 80%;
    height: 5px;
    margin: 3px 0 3px 0;
    background-color: var(--bgb);
    border-radius: 10px;
    transition: var(--transition);
}
.nav_bar nav ul .hamburger.open {
    justify-content: space-around;
    margin: 0;
    background-color: var(--bgb);
    border-radius: 50%;
}
.nav_bar nav ul .hamburger.open div:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
    transition: var(--transition);
    background-color: var(--pcolor);
}
.nav_bar nav ul .hamburger.open div:nth-child(2) {
    display: none;
    transition: var(--transition);
}
.nav_bar nav ul .hamburger.open div:nth-child(3) {
    transform: rotate(-45deg) translate(9px, -8px);
    transition: var(--transition);
    background-color: var(--pcolor);
}

.side_bar {
    display: none;
    position: fixed;
    top: 75px;
    left: 100%;
    width: 100%;
    height: calc(100vh - 75px);
    background-color: var(--pcolor);
    z-index: 1000;
    transition: transform 0.5s ease-in-out;
}
header.open#side_bar{
    display: block;
    transform: translateX(-100%);
    transition: transform 0.5s ease-in-out;
}
.side_bar nav {
    width: 100%;
    height: 90%;
}
.side_bar nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;;
    width: 100%;
    height: 90%;
}
.side_bar nav ul li a {
    color: var(--bgb);
    font-weight: bold;
    font-size: 20px;
}

@media (max-width: 900px) {
    #side_bar {
        display: flex;
    }
    .nav_bar nav ul .hamburger {
        display: flex;
    }
    #nav_bar {
        display: none;
    }
}
@media (max-height: 650px) {
    .nav_bar {
        height: 60px;
    }
    .side_bar {
        top: 60px;
        height: calc(100vh - 60px);
    }
}