@media only screen and (max-width : 1087px) {
  html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
  }
}

@media only screen and (max-width : 600px) {
  /* Any image in div 'img-container' will scale to a max of 300px wide */
  .img-container { width: 300px; display: inline-block; text-align: center;}
  .img-container img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }
  .img-container iframe, object, embed, div, span, p, table, tr, th, td, img, ul {
    max-width: 100% !important;
    width: auto;
    object-fit: contain;
  }
  .img-container-small { width: 260px; display: inline-block; text-align: center;}
  .img-container-small img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }
  .img-container-small iframe, object, embed, div, span, p, table, tr, th, td, ul {
    max-width: 100%;
    width: auto;
    object-fit: contain;
  }
}

@media only screen and (min-width : 601px) {
  /* Any image in div 'img-container' will scale to a max of 300px wide */
  /*
  .img-container { width: 98%; display: inline-block; text-align: center;}
  .img-container img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }
  .img-container iframe, object, embed, div, span, p, table, tr, th, td, img, ul {
    max-width: 100%;
  }
  .img-container-small { width: 98%; display: inline-block; text-align: center;}
  .img-container-small img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }
  .img-container-small iframe, object, embed, div, span, p, table, tr, th, td, ul {
    max-width: 100%;
  }
  */ 
}

/* Body tag */
.holy-grail {
  display: flex;
  flex-direction: column;
  margin: 0px !important;
  padding: 0px !important;
  background-color: #230000;
  min-width: 320px !important;
}

img {
  border-style: none;
}

.holy-grail__body {
  display: flex;
  flex-direction: column;
  margin-top: 0px;
  margin: 0px;
  padding: 0px;
}

.holy-grail__sidebar {
  /* nothing at narrow screens */
}

.holy-grail__sidebar--first {
  order: 1;
  background-color: #230000;
  color: #E0E0E0;
  min-height: 100%;
}

.holy-grail__sidebar--second {
  order: 3;
  background-color: #230000;
  color: #E0E0E0;
  min-height: 100%;
}

.holy-grail__content {
  order: 2;
  background-color: #000000;
  color: #E0E0E0;
  display: flex;
  margin: 0px;
  padding: 0px;
  min-height: 100%;
}

@media all and ( min-width: 0px ) {

  .holy-grail__body {
    flex-direction: row;
  }

  .holy-grail__sidebar {
    flex: 0 0 0px;
  }

  .holy-grail__content {
    flex: 1;
  }

}

@media all and ( min-width: 1088px) {

  .holy-grail__body {
    flex-direction: row;
  }

  .holy-grail__sidebar {
    flex: 0 0 170px;
  }

  .holy-grail__content {
    flex: 1;
  }

}

@media all and ( min-width: 1300px ) {

  .holy-grail__body {
    flex-direction: row;
  }

  .holy-grail__sidebar {
    flex: 0 0 240px;
  }

  .holy-grail__content {
    flex: 1;
  }

}

.c-hamburger {
  display: block;
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
  width: 60px;
  height: 60px;
  font-size: 0;
  text-indent: -9999px;
  appearance: none;
  box-shadow: none;
  border-radius: none;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.c-hamburger:focus {
  outline: none;
}

.c-hamburger span {
  display: block;
  position: absolute;
  top: 28px;
  left: 11px;
  right: 11px;
  height: 5px;
  background: #E0E0E0;
}

.c-hamburger span::before,
.c-hamburger span::after {
  position: absolute;
  display: block;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: #FFFFFF;
  content: "";
}

.c-hamburger span::before {
  top: -10px;
}

.c-hamburger span::after {
  bottom: -10px;
}

.c-hamburger--htx {
  background-color: #000000;
}

.c-hamburger--htx span {
  transition: background 0s 0.3s;
}

.c-hamburger--htx span::before,
.c-hamburger--htx span::after {
  transition-duration: 0.3s, 0.3s;
  transition-delay: 0.3s, 0s;
}

.c-hamburger--htx span::before {
  transition-property: top, transform;
}

.c-hamburger--htx span::after {
  transition-property: bottom, transform;
}

/* active state, i.e. menu open */
.c-hamburger--htx.is-active {
  background-color: #eb0101;
}

.c-hamburger--htx.is-active span {
  background: none;
}

.c-hamburger--htx.is-active span::before {
  top: 0;
  transform: rotate(45deg);
}

.c-hamburger--htx.is-active span::after {
  bottom: 0;
  transform: rotate(-45deg);
}

.c-hamburger--htx.is-active span::before,
.c-hamburger--htx.is-active span::after {
  transition-delay: 0s, 0.3s;
}

/* Forms and buttons */
.forminput, .textinput, .radiobutton, .checkbox, .textarea {
  font-size: 18px;
  font-color: white;
  font-family: 'Droid Sans', sans-serif, Georgia, serif, arial, helvetica;
  color: white;
  background-color: #230000;
  border: 1px white solid;
}
.layout_form {
  font-size: 14px;
  font-color: white;
  font-family: 'Droid Sans', sans-serif, Georgia, serif, arial, helvetica;
  vertical-align: middle;
  color: white;
  background-color: #230000;
  border: 1px white solid;
  border-radius: 3px;
  background: url(/images/drop_down_arrow.png) 170px / 22px no-repeat #230000;
  -webkit-appearance: none;
  -moz-appearance: none;
  text-indent: 1px;
  text-overflow: '';
  width: 200px;
  padding: 2px 0 2px 10px;
  margin: 0;
}
.layout_form select {
   background: transparent;
}
.layout_form select::-ms-expand { /* IE */
  display: none;
}
.layout_form option {
  width:200px;
  margin: 0;
  padding: 2px 0 2px 10px;
}
form {
  margin: 0px;
  padding: 0px;
}

a:link		{ color: #eb0101; text-decoration: underline; }
a:visited	{ color: #eb0101; text-decoration: underline; }
a:active	{ color: #ffffff; text-decoration: underline; }
a:hover	    { color: #ffffff; text-decoration: bold; }

a.no-style:link		{ color: #ffffff; text-decoration: none; }
a.no-style:visited	{ color: #ffffff; text-decoration: none; }
a.no-style:active	{ color: #ffffff; text-decoration: none; }
a.no-style:hover	{ color: #ffffff; text-decoration: none; }

a.h-link1:link		{ color: #eb0101; text-decoration: none; }
a.h-link1:visited	{ color: #eb0101; text-decoration: none; }
a.h-link1:active	{ color: #ffffff; text-decoration: underline; font-style: italic;  }
a.h-link1:hover	    { color: #ffffff; text-decoration: underline; font-style: italic; }

a.h-link2:link		{ color: #ec6363; text-decoration: none; }
a.h-link2:visited	{ color: #ec6363; text-decoration: none; }
a.h-link2:active	{ color: #ffffff; text-decoration: underline;  font-style: italic; }
a.h-link2:hover	    { color: #ffffff; text-decoration: underline;  font-style: italic; }

a.notification-link:link          { color: white; text-decoration: underline; }
a.notification-link:visited       { color: white; text-decoration: underline; }
a.notification-link:active        { color: white; text-decoration: underline; font-style: italic; }
a.notification-link:hover         { color: white; text-decoration: underline; font-style: italic; }

/* Generally used for links you don't want underlined */
a.menu:link		{ color: #FFFFFF; text-decoration: none; }
a.menu:visited	{ color: #FFFFFF; text-decoration: none; }
a.menu:active	{ color: #eb0101; text-decoration: none; }
a.menu:hover	{ color: #eb0101; text-decoration: none; }

/* Special Link colors. Open Link Directory, etc. */
a.special:link          { color: #F000F0; text-decoration: underline; }
a.special:visited       { color: #F000F0; text-decoration: underline; }
a.special:active        { color: #eb0101; text-decoration: underline; }
a.special:hover         { color: #eb0101; text-decoration: underline; }

hr {
  display: flex;
  flex-direction: row;
  border:0;
  background-color:red;
  color: red;
  height: 1px;
}
hr.footer-line {
  text-align: center;
  height:30px;
  min-width:260px;
  max-width: 340px;
  background-color:black;
}
hr.body-line {
  text-align: center;
  height:30px;
  background-color:black;
}
hr.body-line:after, hr.footer-line:after {
  content: "Vampire Rave";
  flex: 1 1;
  border-top: 4px double red;
  border-bottom: 4px double red;
  color: red;
  margin: auto;
  padding:2px 0;
  font-family: 'Droid Sans', sans-serif, Georgia, Verdana, Arial, Helvetica;
  font-size: 13px;
}

table {
  text-align: left;
  color: #E0E0E0;
  font-family: 'Droid Sans', sans-serif, Georgia, Verdana, Arial, Helvetica;
  font-size:18px;
  font-weight:normal;
  table-layout:fixed;
  word-break: break-word;
  word-wrap:break-word;
  overflow-wrap: break-word;
}
td {
  word-break: break-word;
  word-wrap:break-word;
  overflow-wrap: break-word;
}
div {
  color: #E0E0E0;
}
p {
  margin: 0;
  padding: 0;
}
.textarea	{
  text-align:justify;
  color:White;
  font-family: 'Droid Sans', sans-serif, Georgia, Verdana, Arial, Helvetica;
  font-size:18px;
  font-weight:normal;
}

/* For the smaller page text */
.footer	{
  text-align:justify;
  color:White;
  font-family: 'Roboto:700', Georgia,serif,Verdana,Arial,Helvetica;
  font-size:0.95em;
  font-weight:normal;
}

/* The Forum */
.forum_table { background-color: black; table-layout:fixed;}
.forum_td { background-color: #600000; word-wrap:break-word;}
.forum_closed { background-color: #300000; }
.forum_text { color: white; }
a.forum:link { color: white; text-decoration: none; }
a.forum:visited { color: white; text-decoration: none; }
a.forum:active { color: red; text-decoration: none; }
a.forum:hover { color: red; text-decoration: none; }
.forum_back { background-color: #151515; }
.forum_rip_back { background-color: #080808; }
.forum-quote {
  background-color: #080808;
  padding: 20px 10px 20px 0px;
  border-radius: 6px;
  border: 1px solid red;
  width:96%;
}
.forum-block {
  margin-top:0px;
  margin-right:0px;
  margin-bottom:0px;
}
.forum-preview { border:1px solid yellow; }
/* End Forum */

/* Journals - The Comment area */
.journal_comment_table {
  background-color: #800000;
  text-color: white;
  text-align: justify;
  color: white;
  font-family: 'Droid Sans', sans-serif, Georgia, Verdana, Arial, Helvetica;
  font-size: 8pt;
  font-weight: normal;
}
.journal_comment_div {
  border: 1px solid red;
  padding: 0px;
  background: #000000;
  text-align:justify;
  color: white;
  font-family: 'Droid Sans', sans-serif, Georgia, Verdana, Arial, Helvetica;
  font-size: 10pt;
  font-weight: normal;
}
a.journal_comment:link		{
  color: #FFFFFF;
  text-decoration: none;
  font-size: 8pt;
  font-family: 'Droid Sans', sans-serif, Georgia, Verdana, Arial, Helvetica;
}
a.journal_comment:visited	{
  color: #FFFFFF;
  text-decoration: none;
  font-size: 8pt;
  font-family: 'Droid Sans', sans-serif, Georgia, Verdana, Arial, Helvetica;
}
a.journal_comment:active	{
  color: #ff0000;
  text-decoration: none;
  font-size: 8pt;
  font-family: 'Droid Sans', sans-serif, Georgia, Verdana, Arial, Helvetica;
}
a.journal_comment:hover	    {
  color: #ff0000;
  text-decoration: none;
  font-size: 8pt;
  font-family: 'Droid Sans', sans-serif, Georgia, Verdana, Arial, Helvetica;
}
/* End Journal Formatting */

/* For various |, [, and ] symbols throughout the site */
.divider { color: white; }

/* Table Outlines */
.tablewindows { background-color: #C60000; table-layout:fixed;}
.tablewindows td { word-wrap:break-word; }

/* Table insides */
.tdwindows { background-color: black; table-layout:fixed;}
.tdwindows td { word-wrap:break-word; }

/* Profile Page. The Description Box and Description area */
.tabledescription { background-color: red; }
.tddescription { background-color: black; }

/* Fonts */
/* Success/Good messages */
.success { color: lime; }
/* Failure/Bad messages */
.error { color: red; }
/* Warning color. Usually yellow */
.warn { color: yellow; }

/* Only used for "The Ultimate Vampire Resource & Directory in Logo menu */
h1 {
  color: #ffffff;
  font-family: 'Droid Sans', sans-serif, Georgia, Verdana, Arial, Helvetica;
  font-size: 0.39em;
  text-align: center;
  font-weight: bold;
  margin: 0px;
  padding: 0px;
}

h3 {
  color: #E0E0E0;
  font-family: 'Fjalla One', sans-serif, Georgia, Verdana, Arial, Helvetica;
  font-size: 40px;
  text-align: center;
  margin: 0px;
  padding: 20px 0px;
}

/* Popup message screen */
.cancel-message { display:block; margin-right: -10px; position:relative; float: right; top:3px; right:2px; background-color:black; color:black; height:30px; width:35px; font-size:30px; text-decoration:none; text-align:center; font-weight:bold; }
a.cancel-message:link { background-color: transparent; color: red; text-decoration: none; }
a.cancel-message:visited { background-color: transparent; color: red; text-decoration: none; }
a.cancel-message:hover { background-color: transparent; color: red; text-decoration: none; }
a.cancel-message:active { background-color: transparent; color: red; text-decoration: none; }
#overlay {
  display:none;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  z-index: 60;
  background:rgba(0,0,0,0.6);
}
#social-window {
  display:none;
  padding: 0px 10px 10px 10px;
  position: fixed;
  top: 4%;
  left: 2%;
  background-color: #000000;
  border-radius: 12px;
  border-style: solid;
  border-width: 5px;
  border-color: red;
  text-align: center;
  z-index: 61; /* 1 higher than the overlay layer */
}
#login-window {
  display:none;
  padding: 0px 10px 10px 10px;
  position:fixed;
  top:50%;
  left:50%;
  transform: translate(-50%, -50%);
  background-color: #000000;
  border-radius: 12px;
  border-style: solid;
  border-width: 5px;
  border-color: red;
  text-align: center;
  z-index: 61;
}
#message-window {
  display:none;
  padding: 0px 10px 10px 10px;
  position:fixed;
  top:50%;
  left:50%;
  transform: translate(-50%, -50%);
  background-color: #000000;
  border-radius: 12px;
  border-style: solid;
  border-width: 5px;
  border-color: red;
  text-align: center;
  z-index: 61;
}

/* //////////////////////////////////////////// NAVIGATION MENU //////////////////////////////////////////// */
nav {
  margin: 0;
  font-family: 'Droid Sans', sans-serif, Helvetica, Arial, "Lucida Grande", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  width: 340px;
  -webkit-box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
     -moz-box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
          box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

.menu-item {
  background: #170000;
}

h4 { margin: 0; }

/*Menu Header Styles*/
.menu-item h4 {
  border-bottom: 1px solid rgba(0,0,0,0.3);
  border-top: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  padding: 7px 12px;

  /*Gradient*/
  background: #a90303; /* Old browsers */
  background: -moz-linear-gradient(top, #a90303 0%, #8f0202 44%, #6d0000 100%); /* FF3.6+ */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#a90303), color-stop(44%,#8f0202), color-stop(100%,#6d0000)); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(top, #a90303 0%,#8f0202 44%,#6d0000 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(top, #a90303 0%,#8f0202 44%,#6d0000 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(top, #a90303 0%,#8f0202 44%,#6d0000 100%); /* IE10+ */
  background: linear-gradient(top, #a90303 0%,#8f0202 44%,#6d0000 100%); /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a90303', endColorstr='#6d0000',GradientType=0 ); /* IE6-9 */
}

.menu-item h4:hover {
  background: #cc0000; /* Old browsers */
  background: -moz-linear-gradient(top,  #cc0000 0%, #6d0000 100%); /* FF3.6+ */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#cc0000), color-stop(100%,#6d0000)); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(top,  #cc0000 0%,#6d0000 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(top,  #cc0000 0%,#6d0000 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(top,  #cc0000 0%,#6d0000 100%); /* IE10+ */
  background: linear-gradient(top,  #cc0000 0%,#6d0000 100%); /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#cc0000', endColorstr='#6d0000',GradientType=0 ); /* IE6-9 */

}

.menu-item h4 a {
  color: white;
  display: block;
  text-decoration: none;
  min-width: 330px;
}

/*ul Styles*/
.menu-item ul {
  background: #170000;
  font-size: 14px;
  line-height: 30px;
  height: 0px;
  list-style-type: none;
  overflow: hidden;
  padding: 0px;
  margin: 0px;

  /*Animation*/
  -webkit-transition: height 1s ease;
     -moz-transition: height 1s ease;
       -o-transition: height 1s ease;
      -ms-transition: height 1s ease;
          transition: height 1s ease;
}

.menu-item ul a {
  margin-left: 20px;
  text-decoration: none;
  color: white;
  display: block;
  width: 340px;
}

/*li Styles*/
.menu-item li {
  border-bottom: 1px solid #eee;
}

.menu-item li:hover {
  background: #8a3333;
  overflow: hidden;
}

/*First Item Styles*/
.alpha {
  margin: 10px 10px 10px 10px;
}

/* ////////////////////////// Message Center Formatting ////////////////////////// */
.stitched {
  background: black;
  border: 1px dashed red;
  border-radius: 5px;
  margin-top: 6px;
}
.mc-link-spans {
  background-color:#a20202;
  color:white;
  border: white 1px solid;
  font-family:Verdana,Arial,Helvetica;
  font-size:12px;
}
.mc-link-spans:hover {
  background-color:#d00202;
}
a.mc:link		{ text-decoration: none; }
a.mc:visited	{ text-decoration: none; }
a.mc:active	    { text-decoration: none; }
a.mc:hover		{ text-decoration: none; }
/* Top and bottom drop down menus, box navigation */
.mc-menu {
  border-top: 1px white solid;
  margin:0;
  padding:0;
  width:320px;
  font-size:16px;
  font-weight:bold;
}
.mc-menu a:hover {
  cursor: pointer;
}
.mc-menu ul {
  background: url(/images/drop_down_arrow.png) 290px / 22px no-repeat #a20202;
  height:36px;
  list-style:none;
  margin:0;
  padding:0;
}
.mc-menu table { line-height:32px; }
.mc-menu li a{
  border-left: 1px white solid;
  border-right: 1px white solid;
  border-bottom: 1px white solid;
  color:#ffffff;
  display:block;
  font-weight:normal;
  line-height:36px;
  margin:0px;
  padding:0px 40px 0px 15px;
  height:36px;
  font-size:14px;
  font-style:normal;
  text-align:left;
  text-decoration:none;
}
.mc-menu li a:hover, .mc-menu ul li:hover a{
    color:#FFFFFF;
    text-decoration:none;
}
.mc-menu li li {
    display:block;
    float:left;
    margin:0px;
    padding:0px;
    width:320px;
}
.mc-menu li ul{
    background:#cc0202;
    display:none;
    height:auto;
    padding:0px;
    margin:0px;
    border:0px;
    position:absolute;
    width:320px;
    z-index:1;
}
.mc-menu li:hover li a{
    background:none;
}
.mc-menu li ul a{
    display:block;
    height:36px;
    font-size:14px;
    font-style:normal;
    margin:0px;
    padding:0px 40px 0px 15px;
    text-align:left;
}
.mc-menu li ul a:hover, .mc-menu li ul li:hover a{
    color:#ffffff;
    text-decoration:none;
    background-color:red;
}
#nothing {
    color:white !important;
    text-decoration:bold !important;
    background-color:black !important;
}
.mc-menu2 {
  border-top: 1px white solid;
  margin:0;
  padding:0;
  width:320px;
  font-size:16px;
  font-weight:bold;
}
.mc-menu2 a:hover {
  cursor: pointer;
}
.mc-menu2 ul {
  background: url(/images/drop_down_arrow.png) 290px / 22px no-repeat #a20202;
  height:36px;
  list-style:none;
  margin:0;
  padding:0;
}
.mc-menu2 table { line-height:32px; }
.mc-menu2 li a{
  border-left: 1px white solid;
  border-right: 1px white solid;
  border-bottom: 1px white solid;
  color:#ffffff;
  display:block;
  font-weight:normal;
  line-height:36px;
  margin:0px;
  padding:0px 40px 0px 15px;
  height:36px;
  font-size:14px;
  font-style:normal;
  text-align:left;
  text-decoration:none;
}
.mc-menu2 li a:hover, .mc-menu2 ul li:hover a{
    color:#FFFFFF;
    text-decoration:none;
}
.mc-menu2 li li {
    display:block;
    float:left;
    margin:0px;
    padding:0px;
    width:320px;
}
.mc-menu2 li ul{
    background:#cc0202;
    display:none;
    height:auto;
    padding:0px;
    margin:0px;
    border:0px;
    position:absolute;
    width:320px;
    z-index:1;
}
.mc-menu2 li:hover li a{
    background:none;
}
.mc-menu2 li ul a{
    display:block;
    height:36px;
    font-size:14px;
    font-style:normal;
    margin:0px;
    padding:0px 40px 0px 15px;
    text-align:left;
}
.mc-menu2 li ul a:hover, .mc-menu2 li ul li:hover a{
    color:#ffffff;
    text-decoration:none;
    background-color:red;
}
/* custom file upload button */
div.upload {
    width: 100px;
    height: 34px;
    background: url(/inc/layouts/images/phantasm/upload_icon.png) no-repeat;
    overflow: hidden;
	cursor: pointer;
}
div.upload input {
    display: inline !important;
    width: 62px !important;
    height: 50px !important;
    opacity: 0 !important;
    overflow: hidden !important;
    cursor: pointer;
}

/* Report a Bug */
.shading { background-color:#101010; }
.shade1  { background-color:#4c0000; }
.shade2  { background-color:#1f0000; }

/* Vampire Database, Profiles, Journals, etc, alternating background colors */
.db-div-1 { background-color:#151515; }
.db-div-2 { background-color:#080808; }

/* New Markers */
.new-marker {
  display: inline-block;
  border: 2px red solid;
  border-radius: 6px;
  font-size: 14px;
  color: white;
  font-family: 'Droid Sans', sans-serif, Georgia, serif, arial, helvetica;
  vertical-align: middle;
  padding: 4px 5px 3px 5px;
  margin-top:4px;
  font-weight:bold;
  background-color:black;
}

/* Profile description box */
.profile-description {
  border-radius:6px;
  border: 1px solid red;
}

/* Journal Comments */
.journal-comments {
  background-color:#110000;
  border:1px solid red;
}
.journal-comment-line {
  color: red;
  background-color: red;
}

/* VR Chat */
.chat-channel-list {
  border: solid 1px;
  border-color: red;
}
.chat-window {
  border: solid 1px;
  border-color: red;
}
