@import 'colors.css';

.menu-button {
    width: 40px;
    height: 40px;
    cursor: pointer;
    background-color: var(--second-color);
    border: none;
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    transition: all 0.2s;
    z-index: 1000;
}

.menu-button.open {
    left: 300px;
}

.line {
    display: block;
    background-color: var(--primary-color);
    width: 30px;
    height: 2px;
    margin: 7px auto;
}

.disable-page {
    display: none;
    width: 100%;
    height: 100vh;
    z-index: 999;
    background-color: #00000090;
    position: fixed;
    top: 0;
    left: 0;
    transition: all 0.3s;
}

.disable-page.active {
    display: block;
    left: 300px;
}

.lateral-section {
    width: 300px;
    height: 100vh;
    overflow: hidden;
    background-color: var(--second-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.2s;
}

.lateral-section.active {
    left: 0;
}

.profile {
    width: 300px;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.profile-image {
    width: 150px;
    height: 150px;
    background: url('https://i.postimg.cc/76y8GBSb/profile-image.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 50%;
}

.text-profile {
    width: 100%;
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    font-size: 14px;
}

.profesion {
    color: var(--primary-color);
}

.nav {
    width: 100%;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.options-nav {
    border: none;
    background-color: transparent;
    font-size: 20px;
    cursor: pointer;
    position: relative;
}

.options-nav::after {
    display: block;
    position: absolute;
    content: ' ';
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    left: 50%;
    transition: all 0.5s;
}

.options-nav.active,
.options-nav:hover {
    color: var(--primary-color);
}

.options-nav.active::after,
.options-nav:hover::after {
    width: 100%;
    left: 0;
}

@media (max-width: 970px) {
    .menu-button {
        display: block;
    }

    .lateral-section {
        position: fixed;
        top: 0;
        left: -300px;
    }
}

@media (max-width: 345px) {
    .menu-button {
        width: 30px;
        height: 30px;
    }

    .menu-button.open {
        left: 200px;
    }
    
    .line {
        width: 20px;
        margin: 3px auto;
    }

    .lateral-section {
        width: 200px;
    }

    .disable-page.active {
        display: block;
        left: 200px;
    }
}