﻿@import url('colors.css');

:root {
    --nav-item-padding: 0.5em;

   
}

body {

    
    
}


.skip-nav-keyboard {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px;
    z-index: 100;
}

    .skip-nav-keyboard:focus {
        top: 0;
    }

.nav-container {
    background-color: #202020;
    background-image: url('../images/background-gray2.jpg');
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 0.5rem;
    /*padding-bottom: 0.5rem;*/
    flex-wrap: wrap;
    justify-content: space-between;
    /*background-color: var(--RPMMaroon);*/
    opacity: 1;
    /*border-bottom: 1px solid #dee2e6 !important;*/
    border-bottom: 2px solid var(--RPMSilverLight);
    width: 100%;
    /*margin-right: auto;
    margin-left: auto;*/
    margin: 0;
    /* padding-left: 0.75rem;
    padding-right: 0.75rem;*/
    z-index: 2;
    position: sticky;
}



.nav-primary {
    width: 100%;
    
}


.nav-header {

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    height: 100%;

    position: relative;
   
    

}


.nav-logo {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-bottom: 0.5rem;
    padding-top: 0.5rem;
    text-decoration: none;
    /*height: 100%;*/
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20%;
   
}

    .nav-logo:hover {
        background-color: var(--RPMGreyHover);
    }


.nav-logo img {
    max-width: 100%;
    max-height: 100%;
}
/*#RPMLogo {
    width: 12vw;
}*/

.nav-collapse-toggle {
    color: rgba(255, 255, 255, .55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    background-color: transparent;
    border-radius: 0.25rem;
    padding: 0.25rem 0.75rem;
    transition: box-shadow 0.15s ease-in-out;
    margin: 0;
   
    
}

.nav-collapse-toggle-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}

.nav-collapse {
    justify-content: space-between;
    flex-grow: 1;
    align-items: center;
    flex-basis: 100%;
    
    display: none;
    height: 0;
    opacity: 0;
    overflow: hidden;
    transition: height 0.3s ease, opacity 0.3s ease;

}

    .nav-collapse.hiding {
        opacity: 0;
        height: 0;
        transition: opacity 0.3s ease, height 0.3s ease;
    }

    .nav-collapse.temp-visibility {
    
        visibility: hidden;
        display: block;
    }

    .nav-collapse.show {
        display: flex;
        height: auto;
        opacity: 1;
        visibility: visible;
    }

.nav-list {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
    background-color: rgba(0, 0, 0, 0.25);
}

.nav-link {
    display: block;
    color: white;
    text-decoration: none;
    font-weight: bold;
    width: 100%;
    height: 100%;
    padding: var(--nav-item-padding);

    
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out;
}

.nav-link:hover {
    color: var(--RPMSilver);
}


.nav-item {
    width: 100%;
    /*position: relative;*/
    /*border: 2px solid;*/
    border-bottom: 2px solid rgba(255, 255, 255, 0.50);
    
}


    .nav-item:hover {
        background-color: var(--RPMGreyHover);
    }

  


.nav-dropdown-toggle {
    width: 100%;
    background-color: transparent;
    border: none;
    color: white;
    font-weight: bold;
    font-size: inherit;
    font-family: inherit;
    padding: var(--nav-item-padding);
    height: 100%;
    text-align: left;
    position: relative;
}

    .nav-dropdown-toggle.active {
        background-color: var(--RPMGreyHover);
    }

    .nav-dropdown-toggle span::after {
        content: '▼'; /* Unicode character for a downward chevron */
        position: absolute;
        /*right: 1em;*/
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.75em;
        pointer-events: none; 
        padding-left: 0.75rem;
        color: white;
    }
    



@media (min-width: 576px) {


    .nav-container {
        justify-content: flex-start;
        flex-wrap: nowrap;
        /*height: 12vh;*/
        padding: 0;

        display: flex;
        flex-direction: column;

        
        
    }

    .nav-primary {
        display: flex;
        flex-direction: row;
        align-items: center;
        height: 10vh;
    }

    .nav-collapse-toggle {
        display: none;
    }

    .nav-header {
        display: inherit;
        height: inherit;
        width: 20%;
        /* width: 100%;*/
    }
    .nav-logo {
        height: inherit;
        width: 100%;
        
    }

    .nav-logo img {
        /*width: 100%;*/
        max-width: 100%;
        max-height: 100%;

    }

    .nav-collapse {
        display: flex;
        flex-basis: auto;
        opacity: 1;
        overflow: visible;
     
        height: 100%;
       
    }

    .nav-list {
        height: 100%;
        flex-direction: row;
        justify-content: space-evenly;
        align-items: center;
        margin: 0;
        background-color: transparent;
    }


    .nav-item {
        height: 100%;
        border: none;
        /*position: relative;*/
    }

    

    .nav-item > * {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-grow: 1;

    }

    
    .nav-link {
       /* height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-grow: 1;*/
    }

   




  
}


@media (min-width: 992px) {
    .nav-primary {
        display: flex;
        flex-direction: row;
        align-items: center;
        height: 5vh;
    }

    .nav-header {
        width: auto;
    }

    .nav-logo {
        width: inherit;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nav-collapse,
    .nav-collapse.show,
    .nav-collapse.hiding {
        transition: none;
    }
}



.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.40);
    z-index: 1;
    display: none;
}

.overlay.show {
    display: block;
}


.nav-item-submenu {
    position: fixed;
    bottom: 0;
    left: 0;
    /*width: 100vw;*/
    width: 100%;
    height: 100vh;

    background-color: var(--Overlay);
    z-index: 3;

    display: none;
    flex-direction: column;
    justify-content: flex-end;

    
   
}
    .nav-item-submenu.show {
        display: flex;
    }


.nav-item-submenu-header {
    height: 20vh;
    width: 100%;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    font-weight: bold;
    font-size: 1.5em;
    

    color: white;
}

    .nav-item-submenu-header span {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
        width: 100%;
        text-align: center;
        padding-bottom: 0.5rem;
    }



.nav-item-submenu-items {
    overflow-y: scroll;
    max-height: 80%;
    /*background-color: var(--RPMMaroon);*/
    background-color: rgba(0, 0, 0, 0.75);
    position: relative;
  
}

    .nav-item-submenu-items::after {
        content: '';
        position: sticky;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 50px;
        background: linear-gradient(to bottom, rgba(255, 0, 0, 0), var(--RPMMaroonDark));
        pointer-events: none; 
        display: block;
    }
 

.submenu-item {
    /*background-color: black;*/
    background-color: var(--RPMMaroon);
    border: 2px solid var(--RPMSilver);
    padding: 1rem;
    margin: 1%;
    /*flex-grow: 1;*/
    /*height: 25vh;*/
    /*width: 100%;*/
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    
    /*justify-content: space-around;*/
    text-decoration: none;
    overflow: hidden;
}


    .submenu-item.link-only {
        height: auto;
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
        width: 100%;
    }

    .submenu-item:focus {
        background-color: var(--RPMGreyHover);
    }


.submenu-item-icon {
    font-size: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80%;
   

    color: white;
}

    .submenu-item-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding-bottom: 0.1em;
        padding-left: 0.1em;
        padding-right: 0.1em;
       
    }

    .submenu-item-icon.outline img {
        filter: drop-shadow(0 0 0 var(--RPMSilverLight)) drop-shadow(2px 0 0 var(--RPMSilverLight)) drop-shadow(-2px 0 0 var(--RPMSilverLight)) drop-shadow(0 2px 0 var(--RPMSilverLight)) drop-shadow(0 -2px 0 var(--RPMSilverLight))
        ;
        /*brightness(1.5);*/
        /*contrast(1.2)*/
        /*saturate(1.2);*/ /* Adds a 2px white outline and enhances the image */
    }

.filter-saturate {
    filter:
    brightness(1.5)
    saturate(1.5);
}

.submenu-item-text {
    text-decoration: none;
    /*height: 30%;*/
    /*align-items: flex-end;*/
    display: flex;
    text-align: center;
    font-size: 1.5rem;
    /*font-family: 'Copperplate Gothic', sans-serif;*/
    font-family: sans-serif;
    font-weight: bolder;
    /*-webkit-text-stroke: 1px var(--RPMSilver);*/
    color: white;
    margin: 0;
    word-break: break-word;
    hyphens: auto;
}

.submenu-item-subtext {
    font-size: 1rem;
    font-weight: bold;
    font-family: sans-serif;
    text-decoration: none;
    margin-top: 0.25rem;
    margin-bottom: 0;


    color: var(--RPMSilverLight);

}

.submenu-item.link-only {
    justify-content: center;
}

    .submenu-item.link-only .submenu-item-text {
        align-items: center;
    }

.submenu-close-button {
    width: 100%;
    /*height: 10%;*/
    background-color: var(--RPMMaroonDark);
    color: white;
    padding: 0.75em;
    cursor: pointer;
    font-weight: bold;
    font-size: 1em;
    border-radius: 5px;
    border: 2px solid var(--RPMSilver);
   
    /*margin: 1rem;*/
}

    .submenu-close-button:focus {
        background-color: var(--RPMGreyHover);
        border: 2px solid var(--RPMSilverLight);
    }
    
    .submenu-close-button:hover {
        border: 2px solid var(--RPMSilverLight);
    }
    


.submenu-category {
    margin-bottom: 1rem;
}

.submenu-category-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.5rem;
    text-align: left;
    width: 100%;
    padding: 0.5rem;
    font-family: sans-serif;
    /*background-color: var(--RPMMaroonDark);*/

}






@media (min-width: 576px) {



    .nav-item-submenu {
        position: absolute;
        left: 0;
        top: inherit;
        bottom: inherit;
        /*width: 100vw;*/
        width: 100%;
        height: auto;
        max-height: 80vh;
        /*background-color: var(--RPMMaroon);*/
        background-color: rgba(0, 0, 0, 0.75);
        display: none;
    }

        

    .nav-item-submenu-header {
        /*height: 10vh;*/
        display: none;
    }

   
    .nav-item-submenu-items {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        flex-wrap: wrap;
        /*align-items: center;*/
        background-color: inherit;

        overflow-y: scroll;
      
        width: 100%;
        padding-top: 1em;
        
 

        /*padding-bottom: 3em;*/
    }

        .nav-item-submenu-items::after {
            content: '';
            position: sticky;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 50px; /* Adjust the height as needed */
            background: linear-gradient(to bottom, rgba(255, 0, 0, 0), var(--RPMMaroonDark));
            pointer-events: none; /* Ensure the gradient does not interfere with scrolling */
      
        }

    /* Show submenu when aria-expanded is true */
    .nav-dropdown-toggle[aria-expanded="true"] + .nav-item-submenu {
        display: flex;
    }

    .nav-dropdown-toggle[aria-expanded="true"] {
        /*background-color: var(--RPMMaroon);*/
        background-color: rgba(0, 0, 0, 0.75);
        
    }

    .submenu-close-button {
        width: 100%;
        /*height: 10%;*/
        background-color: var(--RPMMaroonDark);
        color: white;
        padding: 0.75em;
        cursor: pointer;
        font-weight: bold;
        font-size: 1em;

    }
    .submenu-close-button:hover {
        background-color: var(--RPMGreyHover);
    }

    .submenu-category {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
    }


    .submenu-item {
        /*background-color: black;*/
        background-color: var(--RPMMaroon);
        border: 2px solid var(--RPMSilver);
        padding: 0.5rem;
        margin: 2.5%;
        /*flex-grow: 1;*/
        /*height: 20vh;*/
        /*width: 20vw;*/
      
        /*display: flex;
        flex-direction: column;*/
        border-radius: 10px;
        align-items: center;
        /*justify-content: space-around;*/
        text-decoration: none;
        overflow: hidden;
    }

    .submenu-item:hover {
        /*background-color: var(--RPMGreyHover);*/
        border: 2px solid var(--RPMSilverLight);
    }

    .submenu-item.link-only {
        height: auto;
        /*width: 100%;*/
    }

    /*.submenu-item-icon {*/
        /*font-size: clamp(3vw, 5vw, 6vw);*/
        /*max-width: 100%;
        height: 70%;*/
        /*height: 80%;*/
        /*text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        text-decoration: none;
        color: white;*/
    
        /*display: flex;
        align-items: center;
        justify-content: center;*/
        /*height: 70%;*/
        /*object-fit: contain;*/
        /*padding: 0.5em;
        margin: 0.5em;*/

        
    /*}*/

    .submenu-item-icon img {
        width: 100%;
        height: 100%;
    }

    .submenu-item-text {
        text-decoration: none;

        /*height: 20%;*/
        /*align-items: flex-end;*/
        display: flex;
        text-align: center;
       
        /*font-size: clamp(1.25rem, 2rem, 1vw);
        height: 30%;*/
       
    }

    .flex-direction-row {
        flex-direction: row;
        justify-content: flex-start;
    }

  /*  .nav-item:hover > .nav-item-submenu, .nav-item:focus-within > .nav-item-submenu {
        display: flex;
    }*/

    /*.nav-item:hover > .nav-item-submenu,
    .nav-item-submenu:focus-within {
        display: flex;
    }

    .nav-item:focus-within > .nav-dropdown-toggle {
        background-color: var(--RPMGreyHover);
    }
 */




}

@media (min-width: 768px) {

    .submenu-item {
        width: 30vw;
        /*margin: 1%;
    height: 30vh;*/
    }

        .submenu-item.link-only {
            width: 30vw;
        }

}



@media (min-width: 992px) {

    .nav-item {
        font-size: 1.25em;
    }

    .submenu-item {
        width: 30vw;
        /*margin: 1%;
    height: 30vh;*/
    }

        .submenu-item.link-only {
            width: 30vw;
        }
}


@media (min-width: 1200px) {
    .nav-item {
        font-size: 1.5em;
    }

    .submenu-item {
        /* width: 15vw;
    margin: 0.5%;*/
        width: 20vw;
        margin: 0.5%;
    }

        .submenu-item.link-only {
            width: 20vw;
        }


}

   

