@import 'colorsJM.css';

.NavigationMenu {
    /* Already styled, additional styles if needed */
}

    .NavigationMenu > img {
        width: 100%; /* Ensures the image takes the full width of the parent */
    }

.NavigationTileBars {
    width: 100%; /* Takes the full width of its parent */
    display: none;
    flex-direction: column; /* Stacks children vertically */
    align-items: center; /* Centers children horizontally */
    position: relative; /* Required for positioning pseudo-elements */
    overflow: hidden; /* Ensures the borders don't extend outside the element */
    background-color: var(--colorA);
}

.NavigationTileContainer {
    width: 100%; /* Takes the full width of its parent */
    display: flex; /* Enables Flexbox */
    flex-direction: column; /* Stacks children vertically */
    align-items: center; /* Centers children horizontally */
    position: relative; /* Required for positioning pseudo-elements */
    overflow: hidden; /* Ensures the borders don't extend outside the element */
    background-color: var(--colorA);
}

.NavigationTileContent {
    width: 100%; /* Takes the full width of its parent */
    display: flex; /* Enables Flexbox */
    flex-direction: column; /* Stacks children vertically */
    align-items: center; /* Centers children horizontally */
    justify-content: center; /* Centers children vertically */
    text-decoration: none; /* Optional: Removes underline from the link */
    color: inherit; /* Optional: Inherits the text color */
    padding-top: 0.5em;
    padding-bottom: 0.5em;
}

.NavigationTileContentFrame {
}

    .NavigationTileContentFrame::before {
        content: '';
        position: absolute;
        border: 0.25em solid transparent;
        border-color: transparent transparent transparent transparent; /* change 'black' to your desired frame color */
        box-sizing: border-box;
        transition: all 1s ease; /* Animation effect for 1 second */
    }

    .NavigationTileContentFrame::after {
        content: '';
        position: absolute;
        border: 0.25em solid transparent;
        border-color: transparent transparent transparent transparent; /* change 'black' to your desired frame color */
        box-sizing: border-box;
        transition: all 1s ease; /* Animation effect for 1 second */
    }

    .NavigationTileContentFrame::before {
        top: 0;
        left: 0;
        width: 0;
        height: 0;
    }

    .NavigationTileContentFrame::after {
        bottom: 0;
        right: 0;
        width: 0;
        height: 0;
    }

    .NavigationTileContentFrame:hover {
        background-color: var(--colorB);
    }

        .NavigationTileContentFrame:hover::before {
            border: 0.25em solid transparent;
            border-color: var(--colorC) transparent transparent var(--colorC); /* change 'black' to your desired frame color */
            bottom: 0;
            right: 0;
            width: 66%;
            height: 33%;
        }

        .NavigationTileContentFrame:hover::after {
            border: 0.25em solid transparent;
            border-color: transparent var(--colorC) var(--colorC) transparent; /* change 'black' to your desired frame color */
            bottom: 0;
            right: 0;
            width: 66%;
            height: 33%;
        }

.NavigationTileContent i {
    display: block; /* Makes each child take a full line */
    text-align: center; /* Centers the text/icons */
    color: var(--colorTextNav);
    font-size: 3em;
}

.NavigationTileContent label {
    display: block; /* Makes each child take a full line */
    text-align: center; /* Centers the text/icons */
    color: var(--colorTextNav);
    font-size: 1.2em;
}


@media only screen and (min-width: 451px) and (max-width: 850px) {
    .NavigationTileBars {
        display: flex;
    }

    .NavigationTileContainer {
        display: none;
    }



    .NavigationMenu > img {
        width: 100%; /* Ensures the image takes the full width of the parent */
        display: none;
    }
}


@media only screen and (max-width: 450px) {
    .NavigationTileBars {
        display: flex;
    }

    .NavigationTileContainer {
        display: none;
    }

    .NavigationTileContent {
        flex-direction: row; /* Stacks children vertically */
    }

    .NavigationMenu > img {
        width: 100%; /* Ensures the image takes the full width of the parent */
        display: none;
    }

    .NavigationTileContent i {
        font-size: 2em;
    }

    .NavigationTileContent label {
        padding-left: 0.5em;
    }
}
