/* For Both Screen and Print Media */
@media screen, print {
  /* Set Default Link Colours */
  a:link {color: #9999FF}
  a:active {color: #DDDDFF}
  a:visited {color: #9999FF}

  /* Set Default Font Style and Size */
  body {
    font: 78%/1.5 arial, helvetica, serif;
    text-align: center;
  }

  /* Paragraph Formatting Rules */
  .just {
    text-align: justify;
    text-justify: inter-word;
  }

  .left {
    text-align: left;
  }

  .center {
    text-align: center;
  }

  /* Links at the Bottom of DIV's */
  .bottomlink {
    padding-bottom: 10px;
  }

  /* Expanding Arrow Rules */
  .expand_arrow {
    padding: 5px;
    float: right;
  }

  /* Main Content Container AKA: The Page */
  #content {
    margin-left: 1em;
    margin-right: 1em;
    padding: 20px 0;
    clear: left;
    color: #FFFFFF;
    text-align: center;
  }

  /* Homepage Style */
  .home_box {
    display: inline-block;
    margin-left: .5em;
    margin-right: .5em;
    vertical-align: top;
  }

  .home_box table {
    padding: .25em;
    background: #3F3F3F;
    width: 100%;
  }

  #home_left {
    width: 17%;
    min-width: 220px;
  }

  #home_center {
    min-width: 520px;
  }

  #home_right {
    width: 17%;
    min-width: 220px;
  }

  /* Homepage 'Box' Styles */
  #forum_menu, #article_menu, #gallery_menu, #weave_menu, #link_menu {
    padding: .25em;
    width: 95%;
    background: #3F3F3F;
    text-align: center;
  }

  #headline_menu, #users_online {
    padding: .25em;
    width: 90%;
    text-align: left;
  }

  /* Website Page-Level Content Holders */
  .mainpage {
    text-align: center;
    background: #3F3F3F;
    margin: 0 auto;
    width: 90%;
  }

  .mainpage div {
    padding: 10px 30px;
  }

  .block_it {
    display: inline-block;
  }

  /* Link Rules for Links within the Home Page Boxes Blue Bar, the 'H3' Blue Bar, and the Footer Blue Bar */
  .menubox h3 a, .box_bar a, .mainpage h3 a, #footerbar a, #site_bar a {
    /* text-align: center;
    background: #BBBBBB; */
    color: #4B4B7C;
    /* padding: 3px;
    border-radius: 7.5px;
    text-decoration: none; */
    font-weight: bold;
  }

  .menubox h3 a:hover, .box_bar a:hover, .mainpage h3 a:hover, #footerbar a:hover, #site_bar a:hover {
    /* background: #999999; */
    color: #DDDDFF;
  }

  /* The 'H3' Blue Bar */
  .box_bar {
    font-size: 100%;
    margin:0;
    padding: 0 0 3px;
    background: #9999FF;
    color: #000;
    text-align: center;
    font-weight: bold;
  }

  div.boxtop {
    background: #3F3F3F;
    margin-bottom: 20px;
  }

  .menubox {
    text-align: center;
  }

  .menubox table {
    margin: auto;
  }

  .menubox_titlebar {
    color: #4B4B7C;
  }

  .menubox_box {
    color: #FFFFFF;
    background: #0A0A0A;
  }

  .menubox_box th {
    padding: 0.25em;
    color: #FFFFFF;
    background: #5F5F5F;
    text-align: right;
  }

  .menubox_box td {
    padding: 0.25em;
    color: #FFFFFF;
    background: #3F3F3F;
    text-align: left;
  }

  .menubox_box td.box_row1 {
    color: #FFFFFF;
    background: #5F5F5F;
  }

  .menubox_box td.box_row2 {
    color: #FFFFFF;
    background: #3F3F3F;
  }

  .gallerybox {
    color: #FFFFFF;
    background: #0A0A0A;
  }

  .gallerybox td {
    padding: 0.25em;
    color: #FFFFFF;
    background: #3F3F3F;
    text-align: center;
    vertical-align: top;
  }

  #article_body {
    text-align: left;
  }

  /* BBCode Tables */
  .bb_table {
    border: 2px solid #3F3F3F;
  }

  .bb_table td {
    border: 1px solid #3F3F3F;
  }

  /* Background Colour for "Letter" selection grids */
  .select_letter {
    text-align: center;
    margin: 10px auto;
    overflow: auto;
    width: 90%;
  }

  .select_letter div {
    display: inline-block;
    width: 3.5%;
    background: #333333;
  }

  /* "Letter" Individual Clickable */
  .select_letter a {
    display: block;
    text-decoration: none;
  }

  /* Style for the AR Info Popup "Link" */
  .ar_info {
    cursor: help;
    border-bottom: 1px dotted #9999FF;
  }

  /* Style for the Glossary Item Links */
  .glossary_item {
    cursor: help;
    text-decoration: none;
    border-bottom: 1px dashed #9999FF;
  }

  a.glossary_item:link {color: #FFFFFF}
  a.glossary_item:active {color: #DDDDFF}
  a.glossary_item:visited {color: #FFFFFF}

  /* Standard HR Rule */
  hr.default {
    border: 0;
    background-color: #9999FF;
    height: 2px;
    width: 75%;
  }

  /* Favourite Icon */
  .fav_icon {
    height: 24px;
    width: 24px;
    border: 0;
  }

  /* Favourite Icon DIV */
  .fav_icon_holder {
    vertical-align: top;
    font-size: 75%;
    text-align: right;
    float: right;
  }
}

/* For Screen Only */
@media screen {
  /* Set Hover Style */
  a:hover {
    color: #DDDDFF;
    text-decoration: none;
  }

  /* Set Body Colours and Spacing */
  body {
    background: #0A0A0A;
    color: #FFFFFF;
    padding: 0;
    margin: 0;
  }

  /* Header Container */
  #header {
    margin-top: 1em;
    margin-left: 1em;
    margin-right: 1em;
  }

  /* Sub Header Container */
  #content {
    margin-left: 1em;
    margin-right: 1em;
    padding: 20px 0;
    clear: left;
    color: #FFFFFF;
    text-align: center;
  }

  /* Header Itself */
  #mail_header {
    width: 57em;
    background: #000000;
    color: #FFFFFF;
    text-align: left;
    border: 1px solid #3F3F3F;
    margin: 0 auto;
  }

  /* MAIL Logo Image */
  #header_image {
    width: 242px;
    height: 105px;
  }

  /* BEGIN Menu Stuff */
  /* Main Menu */
  #mail_menu {
    width: 56em;
    color: #FFFFFF;
    text-align: center;
    margin: 0 auto;
  }

  #nav_menu {
    display: inline-block;
  }

  #nav_menu ul {
    float: left;
    width: 55em;
    list-style: none;
    line-height: 1;
    background: #1A1A1A;
    font-weight: bold;
    padding: 0;
    border: solid #3F3F3F;
    border-width: 1px 0;
    margin: 0 0 1em 0;
  }

  #nav_menu a {
    display: block;
    width: 10em;
    w\idth: 6em;
    color: #9999FF;
    text-decoration: none;
    padding: 0.25em 2em;
  }

  #nav_menu a.expand {
    background: url(/images/mail3/rightarrow.gif) center right no-repeat;
  }

  #nav_menu a.expand2 {
    background: url(/images/mail3/downarrow.gif) center right no-repeat;
  }

  #nav_menu li {
    float: left;
    padding: 0;
    width: 10em;
    background: #333333;
    list-style: none;
  }

  #nav_menu li ul {
    position: absolute;
    left: -999em;
    height: auto;
    width: 14.4em;
    w\idth: 13.9em;
    font-weight: normal;
    border-width: 0.3em;
    margin: 0;
  }

  #nav_menu li li {
    padding-right: 1em;
    width: 13em
  }

  #nav_menu li ul a {
    width: 13em;
    w\idth: 9em;
  }

  #nav_menu li ul ul {
    margin: -1.75em 0 0 14em;
  }

  #nav_menu li:hover ul ul, #nav_menu li:hover ul ul ul, #nav_menu li.sfhover ul ul, #nav_menu li.sfhover ul ul ul {
    left: -999em;
  }

  #nav_menu li:hover ul, #nav_menu li li:hover ul, #nav_menu li li li:hover ul, #nav_menu li.sfhover ul, #nav_menu li li.sfhover ul, #nav_menu li li li.sfhover ul {
   left: auto;
  }

  #nav_menu li:hover, #nav_menu li.sfhover {
   background: #3D3D3D;
  }

  /* Username Rules */
  #userid {
    color: #6B6BB2;
    background: #3D3D3D;
    text-align: center;
    margin: 0 auto;
  }

  /* For '---' Menu Spacers */
  .menu_spacer {
    color: #FFFFFF;
    background: #3D3D3D;
    text-align: center;
    margin: 0 auto;
  }
  /* END Menu Stuff */

  /* Site Message Bar */
  #site_bar {
    display: inline-block;
    width: 90%;
    margin-top: 20px;
    padding: 0 0 3px 3px;
    background: #9999FF;
    color: #000;
    text-align: center;
    font-weight: bold;
  }

  /* Individual Section Headers */
  #section_header {
    display: inline-block;
    margin-top: 20px;
    text-align: center;
  }

  /* Footer Container*/
  #footer {
    margin-left: 1em;
    margin-right: 1em;
    clear: left;
    text-align: left;
  }

  /* Footer Blue Bar */
  #footerbar {
    color: #000000;
    background: #9999FF;
    text-align: left;
  }

  /* Left Footer DIV */
  #footer_left {
    text-align: left;
    float: left;
    vertical-align: top;
  }

  /* Right Footer DIV */
  #footer_right {
    text-align: right;
    float: right;
    vertical-align: top;
  }

  /* BEGIN Expander CSS */
  .hide{
    display: none;
  }

  .show{
    display: inline;
  }

  /* Change the Cursor */
  .expand_arrow {
    cursor: pointer;
  }
  /* END Expander CSS */

  /* Articles Header/Body Page Layout */
  #article_header {
    width: 91%;
    margin: auto;
  }

  #article_title {
    font-size: 250%;
    font-weight: bold;
  }

  #article_body {
    border: 2px solid #3F3F3F;
    width: 90%;
    margin: auto;
    padding: 2px;
  }

  /* Weave/Article AutoComplete DIV */
  #autocomplete_div{
    position: absolute;
    width: 185px;
    height: 90px;
    visibility: hidden;
    background-color: white;
  }

  /* Hover Colour for "Letter" selection grids */
  .select_letter td:hover {
    background: #3D3D3D;
  }

  /* Rounded Corner Classes */
  .round_bottom {
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
  }

  .round_top {
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
  }

  .round_right {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
  }

  .round_left {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
  }

  .round_all {
    border-radius: 10px;
  }

  .round_tl {
    border-top-left-radius: 10px;
  }

  .round_tr {
    border-top-right-radius: 10px;
  }

  .round_bl {
    border-bottom-left-radius: 10px;
  }

  .round_br {
    border-bottom-right-radius: 10px;
  }

  /* Hide Print Only Stuff */
  .print_only {
    display: none;
    height: 0;
  }
}

/* For Print Only */
@media print {
  /* Hide Header, Section Header, Site Message Bar, Footer and AutoComplete Box */
  #header, #section_header, #site_bar, #footerbar, #footer_left, #footer_right, #autocomplete_div, #article_header, .no_print, .fav_icon_holder {
    display: none;
    height: 0;
  }

  /* Make Articles Fill the Page*/
  #article_body {
    width: 100%;
  }

  /* Remove Underline from Links */
  a {
    text-decoration: none;
  }
}