/* menu.css */

#menu {
    display: flex;
    margin: 0 auto;
    width: 100%;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
}

.nav {
    margin-top: 15px;
    padding-bottom: 20px;
    display: flex;
    align-items: center;
}

.menu {
    list-style-type: none;
    visibility: visible;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    z-index: auto;
    align-content: flex-start;
    align-items: flex-start;
    justify-items: flex-start;
    padding: 0 120px 0 0;
}

.menu-items {
    display: flex;
    justify-content: center;
    background: #89CFF0;
    height: 3em;
    width: 100%;
    z-index: 10000;
}

.menu-items > p {
    padding: 0 2rem;
    font-weight: 700;
}

.menu-items > p > a:hover {
    color: #931b32;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    background: #89CFF0;
    padding-left: 1rem;
    border-radius: 10px;
}

@media only screen and (max-width: 1450px) {

    .menu-items {
        display: flex;
        align-items: flex-end;
        flex-direction: column;
        background: #89CFF0;
        display: none;
        height: auto;
    }

    .hamburger {
        display: block;
        padding: 1rem;
        font-size: 2rem;
        position: fixed;
        right: 0;
        top: 0;
        z-index: 1000;
    }

    #menu-label {
        display: none;
        text-decoration-line: underline;
        font-size: 1rem;
        font-weight: 600;
    }

    .menu-items > p {
        font-weight: 700;
        margin: 0;
        line-height: 1.5;
        font-size: 1rem;
    }
}

@media only screen and (max-width: 600px) {
  .menu-items {
        display: flex;
        justify-content: center;
        flex-direction: column;
        background: #89CFF0;
        display: none;
    }
    
       .menu-items {
        display: none;
    }
}
.menu-item {
    width: 100%;
    padding: 0.4em 1em;
    outline: none;
    position: relative;
    background-color: transparent;
    /*transition: background-color 0.3s ease-in-out;*/
    color: black;
}

.sub-menu {
    width: 300px;
    visibility: hidden;
    list-style-type: none;
    position: absolute;
    top: 100%;
    left: 15%;
    background-color: #89CFF0;
    color: white;
    box-shadow: 2px 2px 2px black;
    border: 1px solid black;
    z-index: 1;
}

.normal {
    color: black;
    margin: 0;
    padding: 0;
    font-size: 1rem;
}



.footer-menu-item > a {
	color: #000;	
}

.footer-menu-item > a:hover {
    color: white;
    background-color: #931b32;
    border-radius: 5px;;
}

.highlight {
    color: white;
    background-color: #931b32;
    padding: 0.25rem 1rem;
    border-radius: 5px;
    font-size: 1rem;
}

.sub-item {
    width: 100%;
   /* padding: 0.3em 0; */
    background-color: #89CFF0;
    outline: none;
    /* transition: background-color 0.3s ease-in-out; */
    color: black;
}

.sub-item.highlight {
    background-color: #931b32;
    border-radius: 0;
}

.highlight:hover,
.highlight:focus,
.menu-item:focus,
.menu-item:hover,
.sub-item:focus,
.sub-item:hover,
.sub-item:focus-within {
    color: white;
   /* transition-delay: 0.25s; */
}

.menu-item:focus .highlight > a,
.menu-item:hover .highlight > a,
.sub-item:focus > a,
.sub-item:hover > a,
a:focus {
    color: white;
 /*   transition-delay: 0.25s; */
}
/*
.menu-item:focus > a,
.menu-item:hover > a,
.menu-item:focus > p,
.menu-item:hover > p {
    animation: wiggle 2s;
  /*  transition-delay: 0.25s; */
}

@keyframes wiggle {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }

    40% {
        transform: translate(1px, -1px) rotate(1deg);
    }

    50% {
        transform: translate(-1px, 2px) rotate(-1deg);
    }

    60% {
        transform: translate(-3px, 1px) rotate(0deg);
    }

    70% {
        transform: translate(3px, 1px) rotate(-1deg);
    }

    80% {
        transform: translate(-1px, -1px) rotate(1deg);
    }

    90% {
        transform: translate(1px, 2px) rotate(0deg);
    }

    100% {
        transform: translate(1px, -2px) rotate(-1deg);
    }
}
*/

.highlight:hover,
.highlight:focus,
.menu-item:hover,
.menu-item:focus {

    /* transition: 500ms ease all; */
    outline: none;
}

.sub-item:hover,
.sub-item:focus {
    /* transition: 500ms ease all; */
    /* border-radius: 1rem; */
    background: #931b32;
    color: white;
   /* transition-delay: 0.25s; */
}

.menu-item:focus > .highlight .sub-menu,
.menu-item:hover > .highlight .sub-menu,
.menu-item:focus > .sub-menu,
.menu-item:hover > .sub-menu,
.menu-item:focus-within,
.sub-item:focus > .sub-menu,
.sub-item:hover > .sub-menu,
.sub-item:focus-within {
    visibility: visible;
   /* transition-delay: 0.25s; */
}


@media only screen and (max-width: 1950px) {
    .menu-item {
        font-size: 1rem;
        padding: 0;
    }
    
    #main-menu {
        position: absolute;
        top: 6.5rem;
        width: 100%;
        border: 0;
    }
    
    .sub-menu {
        left: 21%;
        top: 80px;
        width: 8rem;
        padding-inline-start: 0;
    }
}

@media only screen and (max-width: 1620px) {
    
    #main-menu {
        position: absolute;
        top: 6.5rem;
        width: 100%;
        border: 0;
    }
}

@media only screen and (max-width: 1610px) {
    .menu-item {
        font-size: 1rem;
        padding: 0.4em 0.4em;
    }
    
    #main-menu {
        position: absolute;
        top: 7.5rem;
        width: 100%;
        border: 0;
    }
}

@media only screen and (max-width: 1400px) {
    .menu-item {
        font-size: 1rem;
        padding: 0.4em 0;
    }
    
    #main-menu {
        position: absolute;
        top: 6.5rem;
        width: 100%;
        border: 0;
    }
}

@media only screen and (min-width: 1450px) {
    .nav {
        padding-top: 0;
        margin-top: 0;
        padding-bottom: 0;
        flex-grow: 1;
        justify-content: space-around;
    }


    .menu {
        visibility: visible;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        padding: 0;
        width: 100%;
    }

    .menu:focus,
    .menu:hover {
        background-color: #89CFF0;
      /*  transition-delay: 0.25s; */
    }

    .sub-menu-highlight {
        left: 21%;
        top: 72px;
        width: 9rem;
        padding-inline-start: 0;
    }
    
    .sub-menu-normal {
        left: 21%;
        top: 46px;
        width: 9rem;
        padding-inline-start: 0;
    }
    
    .menu-item:hover,
    .menu-item:focus,
    .sub-item:hover,
    .sub-item:focus {
        /* border-radius: 5px; */
     /*   transition-delay: 0.25s; */
    }

    .flex-center {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: row;
    }

    .sub-menu > .flex-center {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        flex-direction: row;
    }

    .normal {
        color: black;
        margin: 0;
        padding: 0.25rem 1rem;
        font-size: 1rem;
    }

    .normal > a {
        color: black;
        margin: 0;
       /* padding: 0 0 0 .5rem; */
        font-size: 1rem;
    }

    .highlight {
        color: white;
        background-color: #931b32;
        border-radius: 5px;
        font-size: 1rem;
    }
}

@media(max-width: 1023px) {
    .nav {
        height: 0;
    }

    .menu-item,
    .sub-item > a {
        font-size: 1rem;
    }

    .sub-menu {
        left: 25%;
        width: 200px;
    }

}
