:root {
    --bg: linear-gradient(to bottom, #1f1f1f, #4f4f4f);
    --text-color: #f3f3f3;
    --accent-color: #D3AE6B;
    --second-accent-color: #BFC3C7;
    --accent-color-half: rgba(211, 174, 107, 0.5);
    --second-accent-color-half: rgba(191, 195, 199, 0.5);
    --nav-color: #1f1f1f;
}

.italiana-regular {
    font-family: "Italiana", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.montserrat {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(6px);
    transition: all 2s ease;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

body {
    background: var(--bg);
}

header {
    height: 100px;
    padding: 15px 5px;
}

header a {
    width: 70px;
    height: 70px;
}

header img {
    width: 100%;
}

.main {
    padding: 20px 5px;
    min-height: calc(100vh - 200px);
}

.main h1 {
    color: var(--text-color);
    font-size: 40px;
    text-align: center;
    margin: 0;
}

.categories {
    padding-top: 20px;
    gap: 20px;
}

.category:hover {
    cursor: pointer;
    scale: 1.05;
}

.category.active:hover {
    scale: 1;
}

.category {
    height: 160px;
    width: 160px;
    border: 2px solid var(--accent-color);
    border-radius: 40px;
    background-color: var(--accent-color-half);
}

.category-img {
    width: 100%;
    height: calc(100% / 3 * 2);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
}

.category-name {
    width: 100%;
    height: calc(100% / 3);
}

.category-name h3 {
    color: var(--text-color);
    font-size: 32px;
    margin: 0;
}

footer {
    height: 100px;
    padding: 15px 5px;
}

.social-media-links {
    gap: 10px;
}

.social-media-links a {
    height: 40px;
    width: 40px;
}

.social-media-links img {
    width: 100%;
}

/* Menu Page */

.menu-main {
    width: calc(100% - 100px);
    margin: 0 0 0 auto;
}

.menu-main h2 {
    color: var(--text-color);
    font-size: 40px;
    text-align: center;
    margin: 0;
}

.category-container {
    padding-top: 120px;
}

.menu-main .category-container:first-child {
    padding-top: 0;
}

.category-items {
    gap: 30px;
    padding: 30px 5px;
}

.category-item:hover {
    cursor: pointer;
    scale: 1.05;
}

.category-item {
    width: 80%;
    max-width: 300px;
    min-height: 370px;
    background-color: var(--second-accent-color-half);
    border-radius: 50px;
    border: 3px solid var(--second-accent-color);
}

.category-item-img {
    width: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
}

.category-item-img, .category-item-info {
    height: calc((370px - 70px) / 2 );
}

.category-item-name {
    height: 70px;
    padding: 0 5px;
    width: 100%;
    background-color: var(--second-accent-color);
    color: var(--nav-color);
    font-size: 28px;
    text-align: center;
}

.category-item-name h3 {
    margin: 0;
}

.item-description {
    font-size: 18px;
    padding: 5px;
    color: var(--text-color);
}

.category-item-info span {
    color: var(--nav-color);
    font-weight: 500;
    font-size: 20px;
    margin: 0 auto;
    text-align: center;
    display: block;
}

.categories-nav a:hover {
    opacity: 0.5;
}

.categories-nav a {
    height: 55px;
    width: 55px;
    color: var(--text-color);
    text-decoration: none;
    text-align: center;
    margin-bottom: 5px;
}

.categories-nav img {
    width: 100%;
}

.categories-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100px;
    height: 100vh;
    background-color: var(--nav-color);
    box-shadow: 0px 5px 5px var(--text-color);
    padding: 120px 5px 50px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.categories-nav .categories {
    margin-top: 20px;
    height: calc(100vh - 200px); 
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.categories-nav .categories::-webkit-scrollbar {
    width: 6px;
}

.categories-nav .categories::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

.categories-nav .category {
    height: 75px;
    min-height: 75px;
    width: 75px;
    border: 1px solid var(--accent-color);
    border-radius: 18px;
}

.categories-nav .active {
    height: 90px;
    min-height: 90px;
    width: 90px;
    background-color: var(--accent-color);
}

.categories-nav .category-img {
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
}

.categories-nav .category-name h3 {
    font-size: 18px;
}

.categories-nav .active h3 {
    font-size: 20px;
    color: var(--nav-color);
}

.hide-menu:hover, .show-menu:hover {
    opacity: 0.5;
    cursor: pointer;
}

.hide-menu, .show-menu {
    width: 35px;
    height: 35px;
    top: calc(50vh - 17.5px);
}

.hide-menu {
    position: absolute;
    right: -25px;
}

.hide-menu img, .show-menu img {
    width: 100%;
}

.show-menu {
    position: fixed;
    left: 0;
}

.stick {
    position: fixed;
    width: 3px;
    background-color: var(--nav-color);
    height: 100vh;
    left: 0;
    top: 0;
    box-shadow: 0px 5px 5px var(--text-color);
}

/* Modal */

.menu-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--nav-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.menu-modal .header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.menu-modal-content {
    width: 80%;
    max-width: 600px;
    background-color: var(--second-accent-color-half);
    border-radius: 50px;
    overflow-y: auto;
    max-height: calc(100vh - 100px);
    position: relative;
    margin-top: 70px;
}

.menu-modal-content .category-item-img {
    height: 260px;
}

.menu-modal-content .category-item-name {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--second-accent-color);
}

.menu-modal-content .category-item-info {
    padding: 5px;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 0;
    right: 10px;
    font-size: 50px;
    color: var(--text-color);
    cursor: pointer;
}

.modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 10;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.modal-arrow:hover {
    opacity: 1;
    scale: 1.05;
}

.modal-arrow-left {
    left: 5px;
}

.modal-arrow-right {
    right: 5px;
}

.modal-arrow img {
    width: 100%;
    height: 100%;
}

@media (max-width: 420px) {
    .category-item {
        width: 90%;
        min-height: 370px;
    }

    .category-item-name {
        font-size: 24px;
    }

    .item-description {
        font-size: 16px;
    }

    .category-item-info span {
        font-size: 18px;
    }
}

@media (min-width: 700px) {
    header {
        height: 130px;
    }

    header a {
        height: 100px;
        width: 100px;
    }

    .main {
        min-height: calc(100vh - 230px);
    }

    .main h1 {
        font-size: 64px;
    }

    .social-media-links a {
        height: 60px;
        width: 60px;
    }

    .category {
        height: 250px;
        width: 250px;
    }

    .category-name h3 {
        font-size: 46px;
    }

    .categories-nav {
        width: 120px;
    }

    .menu-main {
        width: calc(100% - 120px);
    }

    .category-container {
        padding-top: 150px;
    }

    .menu-modal-content {
        max-height: calc(100vh - 130px);
        margin-top: 100px;
    }

    .menu-modal-content .category-item-info {
        height: 100px;
    }
}

@media (min-width: 1200px) {
    .main h1 {
        font-size: 80px;
    }

    .category {
        height: 300px;
        width: 300px;
    }

    .category-name h3 {
        font-size: 54px;
    }
}