.menu {
    position: fixed;
    padding: 10px;
    z-index: 9;
    display: block;
    line-height: 1.2;
    padding-top: 15px;
}

.menu-left-top .menu-works h1 {
    transition: color 0.5s ease-in-out, font-weight 0.5s ease-in-out;
}

.menu-left-top .menu-works h1:hover {
    color: var(--works) !important;
}

.menu-left-top .menu-press h1 {
    transition: color 0.5s ease-in-out, font-weight 0.5s ease-in-out;
}

.menu-left-top .menu-press h1:hover {
    color: var(--press) !important;
}

.menu-left-top .menu-cv h1 {
    transition: color 0.5s ease-in-out, font-weight 0.5s ease-in-out;
}

.menu-left-top .menu-cv h1:hover {
    color: var(--cv) !important;
}

.menu-right-bottom .menu-about h1 {
    transition: color 0.5s ease-in-out, font-weight 0.5s ease-in-out;
}

.menu-right-bottom .menu-about h1:hover {
    color: var(--about) !important;
}

.menu-right-bottom .menu-contact h1 {
    transition: color 0.5s ease-in-out, font-weight 0.5s ease-in-out;
}

.menu-right-bottom .menu-contact h1:hover {
    color: var(--contact) !important;
}

.menu-left-top {
    top: 64px;
    left: 0;
}

.menu-left-top h1 {
    font-weight: 800;
    padding: 0;
    margin: 0;
    color: var(--text-color);
}

.menu-left-top h1:hover {
    font-weight: 600;
}

.menu-left-bottom {
    bottom: 49px;
    left: 0;
    /* display: none; */
}

.menu-left-bottom h1 {
    font-weight: 800;
    padding: 0;
    margin: 0;
    color: var(--text-color);
    transition: font-weight 0.5s ease-in-out;
}

.menu-left-bottom a {
    display: none;
}

.menu-left-bottom h1:hover {
    font-weight: 600;
}

.menu-right-bottom {
    bottom: 49px;
    right: 0;
    text-align: right;
}

.menu-right-bottom h1 {
    font-weight: 800;
    padding: 0;
    margin: 0;
    color: var(--text-color);
}

.menu-right-bottom h1:hover {
    font-weight: 600;
}

.menu-left-top,
.menu-right-bottom {
    display: flex;
    flex-direction: column;
}

@media (max-width: 900px) {
    .menu-left-top,
    .menu-right-bottom {
        display: none !important;
    }
}

.mobile-menu {
    position: fixed !important;
    display: none !important;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 0;
    top: 0;
    padding-right: 10px;
    margin-top: 13px;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.centered-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(238, 238, 238, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 100;
    line-height: 1.2;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease;
}
.centered-menu h1 {
    margin: 0 !important;
    line-height: 1.2;
}

.centered-menu .menu-works h1 {
    transition: color 0.5s ease-in-out, font-weight 0.5s ease-in-out;
}

.centered-menu .menu-works h1:hover {
    color: var(--works) !important;
}

.centered-menu .menu-press h1 {
    transition: color 0.5s ease-in-out, font-weight 0.5s ease-in-out;
}

.centered-menu .menu-press h1:hover {
    color: var(--press) !important;
}

.centered-menu .menu-cv h1 {
    transition: color 0.5s ease-in-out, font-weight 0.5s ease-in-out;
}

.centered-menu .menu-cv h1:hover {
    color: var(--cv) !important;
}

.centered-menu .menu-about h1 {
    transition: color 0.5s ease-in-out, font-weight 0.5s ease-in-out;
}

.centered-menu .menu-about h1:hover {
    color: var(--about) !important;
}

.centered-menu .menu-contact h1 {
    transition: color 0.5s ease-in-out, font-weight 0.5s ease-in-out;
}

.centered-menu .menu-contact h1:hover {
    color: var(--contact) !important;
}

.centered-menu.show {
    visibility: visible;
    opacity: 1;
}

.x-sign {
    position: absolute;
    top: 5px;
    right: -10px;
    margin: 0;
    padding: 0;
    width: 50px;
    height: 50px;
}

.x-sign .line {
    transition: transform 0.5s ease-in-out;
}

.x-sign:hover .line {
    transform: rotate(0deg);
}

.line {
    position: absolute;
    width: 30px;
    height: 5px;
    background: var(--text-color);
    top: 50%;
    left: 0;
    transform-origin: center;
}

.line:first-child {
    transform: rotate(45deg);
}

.line:last-child {
    transform: rotate(-45deg);
}

.centered-menu h1 {
    font-weight: 800;
}

.centered-menu h1:hover {
    font-weight: 600;
}

.centered-menu .works h1 {
    transition: color 0.5s ease-in-out, font-weight 0.5s ease-in-out;
}

.centered-menu .works h1:hover {
    color: var(--works) !important;
}

.centered-menu .press h1 {
    transition: color 0.5s ease-in-out, font-weight 0.5s ease-in-out;
}

.centered-menu .press h1:hover {
    color: var(--press) !important;
}

.centered-menu .cv h1 {
    transition: color 0.5s ease-in-out, font-weight 0.5s ease-in-out;
}

.centered-menu .cv h1:hover {
    color: var(--cv) !important;
}

.centered-menu .about h1 {
    transition: color 0.5s ease-in-out, font-weight 0.5s ease-in-out;
}

.centered-menu .about h1:hover {
    color: var(--about) !important;
}

.centered-menu .contact h1 {
    transition: color 0.5s ease-in-out, font-weight 0.5s ease-in-out;
}

.centered-menu .contact h1:hover {
    color: var(--contact) !important;
}

.centered-menu a {
    display: block;
    text-decoration: none;
    text-align: center;
    padding: 0;
    margin: 0;
}

.hamburger-icon {
    width: 30px;
    height: 5px;
    background-color: var(--text-color);
    margin: 6px 0;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.mobile-menu:hover .hamburger-icon:nth-child(1) {
    transform: translateY(11px) rotate(90deg);
}

.mobile-menu:hover .hamburger-icon:nth-child(2) {
    opacity: 0.0;
}

.mobile-menu:hover .hamburger-icon:nth-child(3) {
    transform: translateY(-11px) rotate(0deg);
}

@media (max-width: 900px) {
    .mobile-menu {
        display: block !important;
    }
}