﻿
:root {
    --menu-height: 105px;
}

.main-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    height: var(--menu-height);
    text-transform: uppercase;
    font-family: bold;
    font-size: 1.3rem;
    z-index: 10;
    background-color: #fff;
}

    .main-panel .menu {
        position: relative;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-content: center;
        justify-content: space-between;
        align-items: stretch;
        background-color: #fff;
        height: var(--menu-height);
        max-width: var(--page-width);
        width: 100%;
    }

        .main-panel .menu .logo {
            width: 320px;
            display: flex;
            height: var(--menu-height);
        }

            .main-panel .menu .logo img {
                width: 280px;
                cursor: pointer;
            }

        .main-panel .menu .options {
            flex: 1;
            display: flex;
            flex-direction: row;
            flex-wrap: nowrap;
            align-content: center;
            justify-content: flex-end;
            align-items: center;
            gap: 25px;
        }

            .main-panel .menu .options > * {
                position: relative;
                padding: 0 20px;
                font-size: 1.2rem;
                cursor: pointer;
                height: 40px;
                display: flex;
                flex-direction: column;
                flex-wrap: nowrap;
                align-content: center;
                justify-content: center;
                align-items: center;
                overflow: visible;
                background-color: #fff;
                z-index: 0;
            }

                .main-panel .menu .options > *::before {
                    content: '';
                    position: absolute;
                    bottom: 0;
                    left: 0%;
                    width: 30%;
                    height: 40px;
                    background-color: var(--green-light);
                    transform: skewX(0deg) translateX(170%);
                    transform-origin: top left;
                    transition: transform 0.5s ease, opacity 0.5s ease;
                    z-index: -1;
                    opacity: 0;
                }

                .main-panel .menu .options > *.active::before {
                    transform: skewX(-25deg) translateX(50%);
                    opacity: 1;
                }

                .main-panel .menu .options > *:hover::before {
                    transform: skewX(-25deg) translateX(50%);
                    opacity: 1;
                }


#contactBtn {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--green-light);
    width: 190px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    height: var(--menu-height);
    cursor: pointer;
}


@media (max-width: 1630px) {

    :root {
        --menu-height: 150px;
    }

    .main-panel .menu {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-content: center;
        justify-content: center;
        align-items: center;
        padding-top: 20px;
    }

        .main-panel .menu .logo {
            flex: 1;
            height: auto;
        }

        .main-panel .menu .options {
            flex: 1;
        }
}

@media (max-width: 1200px) {

    .main-panel .menu {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-content: flex-start;
        justify-content: center;
        align-items: flex-start;
        padding: 0 50px;
    }
}

@media (max-width: 935px) {

    .main-panel .menu .options {
        width: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-content: center;
        justify-content: space-around;
    }

    #contactBtn {
        height: 50%;
    }
}


@media (max-width: 550px) {
	.main-panel .menu .logo img {
		width: 220px;
	}
}
