﻿
nav{
      background-color: #999;
      text-decoration: none;
      border: 4px solid #5A181E;
      list-style-type: none;
      border-radius: 4px;
      z-index:999;
}
/* define a fixed width for the entire menu */
.navigation {
        /* position:fixed; */
        /* width: 14vw; */
        /* top: 136px; */
        height: min-content;
        grid-area: nav;
}
nav a:active{
  background-color:#5A181E;
  color:white;

}
/* reset our lists to remove bullet points and padding */
.mainmenu, .submenu {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* make ALL links (main and submenu) have padding and background color */
.mainmenu a {
  display: block;
  background-color: #CCC;
  text-decoration: none;
  padding: 10px;
  color: #000;
    font-size:1.2em;
font-family: "Times New Roman", Times, serif;
background: white; /* For browsers that do not support gradients */
  background: -webkit-linear-gradient(-90deg,#999, white, #999); /* For Safari 5.1 to 6.0 */
  background: -o-linear-gradient(-90deg,#999, white, #999); /* For Opera 11.1 to 12.0 */
  background: -moz-linear-gradient(-90deg,#999, white, #999); /* For Firefox 3.6 to 15 */
  background: linear-gradient(-90deg,#999, White, #999); /* Standard syntax */
}
li {
       list-style-type: none;
}

.mainmenu .socialmedia {
  display: flex;
  align-items: center;
  justify-content: center;
}
.mainmenu .socialmedia a {
  background: none !important;
}

/* add hover behaviour */
.mainmenu a:hover {
 
    color:red !important; 
 /* -webkit-transition: hover 2s ease-in,.5s;*/
     -webkit-transition-delay: 2s; /* Safari */
	 -webkit-transition: color .1s ease-in,.5s;
     -webkit-transition-delay:color none; /* Safari */
    transition-delay: 2s;
}


/* when hovering over a .mainmenu item,
  display the submenu inside it.
  we're changing the submenu's max-height from 0 to 200px;
*/

.mainmenu li:hover .submenu {
  display: block;
  max-height: 500px;
padding-left:35px;
 
}

.submenu li:hover .submenu1 {
  display: block;
  max-height:500px;
  padding-left:35px;

}
/*
  we now overwrite the background-color for .submenu links only.
  CSS reads down the page, so code at the bottom will overwrite the code at the top.
*/

.submenu a, .submenu1 a {
background: white; /* For browsers that do not support gradients */
  background: -webkit-linear-gradient(-90deg,#999, white, #999); /* For Safari 5.1 to 6.0 */
  background: -o-linear-gradient(-90deg,#999, white, #999); /* For Opera 11.1 to 12.0 */
  background: -moz-linear-gradient(-90deg,#999, white, #999); /* For Firefox 3.6 to 15 */
  background: linear-gradient(-90deg,#999, White, #999); /* Standard syntax */

}

/* hover behaviour for links inside .submenu */
.submenu a:hover, .submenu1 a:hover  {
  background-color: #5A181E;
}

/* this is the initial state of all submenus.
  we set it to max-height: 0, and hide the overflowed content.
*/
.submenu, .submenu1 {
  overflow: hidden;
  max-height: 0;
  -webkit-transition: all 1.5s ease-out;
     -webkit-transition-delay: .75s; /* Safari */
    transition-delay: .75s;
}
