nav {
  margin: 0;
  padding: 0;
  background-color: #000000;
  max-height: 100%;
  color: #ffffff;
  margin: 0;
  padding: 0;
  word-wrap: break-word !important;
  font-family: 'roboto', sans-serif;
  z-index: 9999;
  position: -webkit-sticky;  // required for Safari
    position: sticky;
    top: 0; // required as well.
}

nav a { color: #FFF; }

nav a:hover{color:#FFF}

}

nav p { text-align: center; }
 .toggle, [id^=drop] {
 display: none;
}

#logo {
  display: block;
  padding-top: 11px;
  padding-right: 0px;
  padding-bottom: 6px;
  padding-left: 12px;
  float: center;
  font-size: 20px;
  line-height: 47px;
}

nav:after {
  content: "";
  display: table;
  clear: both;
}

nav ul {
  float: right;
  padding: 0;
  margin: 0;
  list-style: none;
  position: relative;
  z-index: 9999;
    display: inline; /* to fix IE's doubled float-margin bug */
}

nav ul li {
  margin: 0px;
  display: inline-block;
  float: left;
  z-index: 9999;
  background-color: #000000;
}

nav a {
  display: block;
  padding: 0 18px;
  color: #FFF;
  font-size: 13px;
  line-height: 47px;
  z-index: 9999;
  text-decoration: none;
}

nav ul li ul li:hover { background: #d20000; }

nav a:hover { background-color: #d20000; }

nav ul ul {
z-index: 9999;
  display: none;
  position: absolute;
  top: 47px;
}

nav ul li:hover > ul { display: inherit; }

nav ul ul li {
  width: 250px;
  float: none;
  display: list-item;
  position: relative;
  background-color: #313030;
}

nav ul ul ul li {
  position: relative;
  top: -47px;
  left: 250px;
  background-color: #313030;
}

nav li > a:after { content: url("https://www.Jesusfreakhideout.com/images/caretsm.png"); }

nav li:hover > a:after { content: url("https://www.Jesusfreakhideout.com/images/carethoversm.png"); }

nav li > a:only-child:after { content: ''; }

nav ul ul li > a:after { content: url("https://www.Jesusfreakhideout.com/images/caretside.png"); }

nav ul ul li:hover > a:after { content: ''; }

nav li:hover ul.last, nav li.sfhover ul.last {
    left: auto;
    right: 4px; /* you might want to change this */
}

/* Media Queries
--------------------------------------------- */

@media all and (max-width : 1076px) {

#logo {
  display: block;
  padding: 0;
  width: 100%;
  text-align: center;
  float: none;
}

nav { margin: 0;
	max-height: calc(100% - 55px);
  overflow-y: auto;
}

.toggle + a,
 .menu { display: none; }

.toggle {
  display: block;
  background-color: #000000;
  padding: 0 15px;
  color: #FFF;
  font-size: 12px;
  line-height: 45px;
  text-decoration: none;
  border: none;
}
.main {
  display: block;
  background-color: #000000;
  padding: 0 15px;
  color: #FFF;
  font-size: 12px;
  line-height: 45px;
  text-decoration: none;
  border: none;
}

.toggle:hover { background-color: #d20000; }

[id^=drop]:checked + ul { display: block; }

nav ul li {
  display: block;
  width: 100%;
}

nav ul ul .toggle,
 nav ul ul a { padding: 0 35px;  }

nav ul ul ul a { padding: 0 70px; }

nav a:hover  { background-color: #d20000; }
 nav ul ul ul a { background-color: #313030; }

nav ul li ul li .toggle,
 nav ul ul a { background-color: #313030; }

nav ul ul {
  float: none;
  position: static;
  color: #ffffff;
}

nav ul ul li:hover > ul,
nav ul li:hover > ul { display: none; }

nav ul ul li {
  display: block;
  width: 100%;
}

nav ul ul ul li { position: static;
background-color: #313030;
}
}


@media all and (max-width : 330px) {

nav ul li {
  display: block;
  width: 94%;
}

}