header {
    display: flex;
    justify-content: end;
    z-index: 101;
}

ul {
    margin: 0;
    padding: 0;
}

li {
    list-style: none;
}

.main-link {
    margin: 5px 0;
}

.main-link-item {
    cursor: pointer;
    color: #FFFFFF;
}

.light .main-link-item::after {
    content: "";
    border: none;
}

.main-link-item::after {
    content: "";
    border: none;
}

.new-content-container,
.new-content-background {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 0;
    opacity: 0;
    width: 100%;
    height: 100vh;
    transition: right 0.6s ease;
}

.new-content-background {
    background-color: rgba(0, 0, 0, 0.9);
}

.showBackground {
    z-index: 100;
    opacity: 1;
    transition: right 0.6s ease;
}

.new-content {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding: 20px;
    height: 100vh;
    width: 100%;
    transition: 0.6s ease;
    opacity: 0;
}

.new-content__text {
    color: #FFFFFF;
    font-size: 18px;
    line-height: 30px;
    width: 1050px;
    margin-bottom: 80px;
}

.new-content__inner {
    display: flex;
    justify-content: space-between;
    width: 960px;
    margin-bottom: 50px;
    color: #FFFFFF;
}

.new-content-item h3 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.light .new-content-item p a::after,
.light .new-content-links a::after {
    content: "";
    display: block;
    width: 0;
    border-bottom: 1px solid #FFFFFF;
    transition: .3s;
}

.new-content-item p a::after,
.new-content-links a::after {
    content: "";
    display: block;
    width: 0%;
    border-bottom: 1px solid #FFFFFF;
    transition: .3s;
}

.new-content-item p a:hover::after,
.new-content-links a:hover::after {
    width: 100%;
}

.light .new-content-item p {
    color: #FFFFFF;
}

.new-content-item p {
    font-size: 16px;
    line-height: 30px;
    width: 330px;
    color: #FFFFFF;
}

.new-content-item p:last-child {
    margin-bottom: 20px;
}

.light .new-content-links {
    color: #FFFFFF;
}

.new-content-links {
    width: 960px;
    color: #FFFFFF;
}

.new-content-links p {
    font-size: 16px;
    margin-bottom: 30px;
}

.new-content-links-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.new-content-links-inner a {
    font-size: 16px;
    padding-left: 80px;
    position: relative;
}

.new-content-links-inner a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 65px;
    border-bottom: 1px solid #FFFFFF;
}

.new-content-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 120px;
}

.new-content-bottom a {
    margin-right: 40px;
}

.new-content-bottom img {
    width: 20px;
}

.new-content-bottom p {
    margin-bottom: 3px;
    margin-right: 40px;
    font-size: 14px;
}

.new-content-bottom p:last-child {
    margin-right: 0;
}

.contentClose,
.main-link-item {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: transparent;
    cursor: pointer;
}

.contentClose span {
    background-color: #FFFFFF;
    display: block;
    width: 35px;
    height: 1px;
    transition: 0.2s ease;
    transform: rotate(0deg);
}

.contentClose span:first-child {
    transform: rotate(45deg);
    transition: transform 0.6s ease;
}

.contentClose span:last-child {
    transform: rotate(-45deg);
    transition: transform 0.6s ease;
}

.contentCloseActive {
    display: flex;
}

.hideElement {
    opacity: 0!important;
    z-index: 0!important;
    transition: 0.5s ease;
}

.showContent {
    opacity: 1;
    transition: 0.5s ease;
}

.animated-item-header {
    animation: headerSlideIn 3s forwards cubic-bezier(0.1, 0.67, 0.29, 0.98);
    transition: 1s ease;
}

@keyframes headerSlideIn {
    0% {
        transform: translate3d(0, 110%, 0);
        opacity: 0;
    }
    20% {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
    80% {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
    90% {
        transform: translate3d(0, -90%, 0);
        opacity: 0;
    }
    100% {
        transform: translate3d(0, -110%, 0);
        opacity: 0;
    }
}

.new-text-wrapper {
    text-align: right;
    padding-right: 40px;
    width: 160px;
}

@media (max-width: 1300px) {
    .new-content__inner {
        width: 900px;
        margin-bottom: 40px;
    }

    .new-content-item h3 {
        font-size: 24px;
    }

    .new-content-links {
        width: 900px;
    }

    .new-content-bottom {
        margin-top: 80px;
    }
}

@media (max-width: 1024px) {
    .new-content__inner {
        width: 800px;
        margin-bottom: 30px;
    }

    .new-content-item h3 {
        font-size: 20px;
    }

    .new-content-links {
        width: 800px;
    }

    .new-content-links p {
        font-size: 14px;
    }

    .new-content-links-inner a {
        font-size: 14px;
        padding-left: 65px;
    }

    .new-content-links-inner a::before {
        top: 9px;
        width: 55px;
    }

    .new-content-bottom {
        margin-top: 60px;
    }

    .new-content-bottom a {
        margin-right: 20px;
        font-size: 16px;
    }

    .new-content-bottom img {
        width: 15px;
    }

    .new-content-bottom p {
        font-size: 12px;
        margin-right: 20px;
    }
    .new-text-wrapper {
        padding-right: 20px;
    }
}

@media (max-width: 900px) {
    .new-content__inner {
        width: 680px;
        margin-bottom: 30px;
    }

    .new-content-item h3 {
        font-size: 18px;
        margin: 0;
    }

    .new-content-item p {
        font-size: 14px;
        line-height: 20px;
        width: 300px;
    }

    .new-content-links {
        width: 680px;
    }

    .new-content-links p {
        margin-bottom: 20px;
    }

    .new-content-links-inner a {
        padding-left: 45px;
    }

    .new-content-links-inner a::before {
        width: 35px;
    }

    .new-content-bottom {
        margin-top: 40px;
    }

    .new-content-bottom img {
        width: 15px;
    }

    .new-content-bottom p {
        margin-right: 20px;
        margin-bottom: 2px;
    }
}

@media (max-width: 800px) {
    .contentClose,
    .main-link-item {
        right: 30px;
    }
}

@media (max-width: 768px) {
    .new-content__inner {
        width: 350px;
        margin-bottom: 30px;
        flex-direction: column;
    }

    .new-content-item h3 {
        width: 350px;
        margin-bottom: 20px;
    }

    .new-content-item p {
        font-size: 12px;
        line-height: 18px;
        width: 260px;
    }

    .new-content-item p:last-child {
        margin-bottom: 10px;
    }

    .new-content-links {
        width: 350px;
    }

    .new-content-links p {
        margin-bottom: 15px;
    }

    .new-content-links-inner {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .new-content-links-inner a {
        padding-left: 35px;
        width: 130px;
    }

    .new-content-links-inner a::before {
        width: 25px;
        top: 10px;
    }

    .new-content-bottom {
        flex-wrap: wrap;
        width: 150px;
        margin: 40px auto 0;
    }

    .new-content-bottom a {
        margin-left: 10px;
        margin-right: 10px;
    }

    .new-content-bottom p {
        margin-bottom: 0;
        margin-top: 10px;
    }

    .new-text-wrapper {
        padding-right: 0;
        text-align: center;
        width: auto;
    }
}

@media (max-width: 700px) {
    .contentClose,
    .main-link-item {
        right: 25px;
    }

    .contentClose span {
        width: 25px;
        height: 1px;
    }
}

@media (max-width: 600px) {
    .new-content {
        padding: 10px;
    }
}