/*************************************************************************
TNG GENSTYLES OVERRIDES
*************************************************************************/
body.public {
  color: #000;
  background-color: #ffffff;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding: 1em;
}

/* header: secondary page heading text */
.header {
  color: #333;
}

/* Admin page links */
a.admincell:hover, a.leftlink:hover {
  background-color: #ccc;
}

/*small boxes for letters on the surnames page, also for pagination on other pages*/
.snlink {
  background-color: #eee;
}

a.snlink:hover, .snlinkact, .adminnav .snlinkact {
  background-color: #eee;
  color: #000;
}

/*admin tabs - inactive */
#tngnav a {
  color: #333;
  background: #ddd;
}

/*active tab*/
#tngnav a:hover {
  background: #ddd;
  color: #990000;
}

/*active tab*/
#tngnav a.here {
  background-color: #333;
  color: #fff;
}

div.icons {
  display: none;
}

/* links not otherwise styled */
a:link {
  color: #000;
}

a:visited {
  color: #000;
}

a:hover {
  color: #990000;
}

a:active {
  color: #000;
}

.LB_window {
  background: #eee;
}

.slidedown {
  background: #eee;
}

div.menucontainer {
  margin-bottom: 5px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

div.innercontainer, ul.tngdd .langmenu, ul.tngdd .stubmenu {
  background-color: #ddd;
}

ul.tngdd .menulink {
  background: #ddd url(../img/ArrowDown.gif) 2px 8px no-repeat;
}

ul.tngdd .menulink:hover, ul.tngdd .menuhover {
  background: #333 url(../img/arrowdown2.gif) 2px 8px no-repeat;
}

/*************************************************************************
CUSTOM HEADER (TOPMENU) STYLES - TOP NAV BAR AND TITLE
*************************************************************************/
/* Add a black background color to the top navigation */
.topnav {
  background-color: #333;
  overflow: hidden;
  margin-bottom: 10px;
}

/* Style the links inside the navigation bar */
.topnav a {
  float: left;
  display: block;
  color: #fff;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

/* Change the color of links on hover */
.topnav a:hover {
  background-color: #ddd;
  color: black;
}

/* Add an active class to highlight the current page */
.topnav a.active {
  background-color: #737373;
  color: white;
}

/* Hide the link that should open and close the topnav on small screens */
.topnav .icon {
  display: none;
}

/* The "responsive" class is added to the topnav with JavaScript when the screen narrows */
@media screen and (max-width: 600px) {
  .topnav a:not(:first-child) {
    display: none;
  }

  .topnav a.icon {
    float: right;
    display: block;
  }

  .topnav.responsive {
    position: relative;
  }

  .topnav.responsive a.icon {
    position: absolute;
    right: 0;
    top: 0;
  }

  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}

/* EINHEITLICHE ABSTÄNDE & SCHRIFT FÜR DEN HAUPTITEL AUF ALLEN SEITEN */
.maintitle {
  text-align: center;
  font-family: 'MerriweatherLocal', serif !important;
  color: #333;
  font-size: 2.4rem !important;
  margin-top: 25px !important;
  margin-bottom: 25px !important;
}

@media screen and (max-width: 600px) {
  .maintitle {
    font-size: 2rem !important;
    margin-top: 15px !important;
    margin-bottom: 15px !important;
  }

  .stubmenu-rt {
    display: none;
  }
}
@media screen and (max-width: 300px) {
  .maintitle {
    font-size: 1.5rem !important;
  }
}

/*************************************************************************
HOME PAGE STYLES
*************************************************************************/
.main-image {
  width: 99%;
  max-width: 1100px;
  display: block;
  margin-top: 18px;
  margin-left: auto;
  margin-right: auto;
}

div.welcome {
  box-sizing: border-box;
  width: 100%;
  text-align: center;
  font-style: italic;
  font-size: 120%;
}

.page {
  padding: 10px 10px 6px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.rightBox {
  box-sizing: border-box;
  float: right;
  margin-left: 1em;
}

.leftBox {
  box-sizing: border-box;
  float: left;
  margin-right: 1em;
}

.clear {
  clear: both;
}

.article {
  box-sizing: border-box;
  font-size: 16px;
  background: #eee;
  padding: 8px;
}

@media screen and (max-width: 600px) {
  .article {
    font-size: 14px;
  }
}

.bottom-panel {
  box-sizing: border-box;
  font-size: 12px;
  min-height: 150px;
  padding: 1em;
  color: #ddd;
  background-color: #333;
}

.bottom-panel-cell {
  box-sizing: border-box;
  min-width: 33%;
}

.bottom-panel a:link {
  color: #fff;
}

.bottom-panel a:visited {
  color: #fff;
}

.bottom-panel a:hover {
  color: orange;
}

.bottom-panel a:active {
  color: #fff;
}

.bottom-panel ul li {
  line-height: 200%;
}

.bottom-panel ul {
  list-style: none;
}

@media screen and (max-width: 600px) {
  .bottom-panel-cell {
    float: left;
    clear: both;
  }

  ul.tngdd ul.last {
    left: 0px;
  }
}

.astable {
  display: table;
}

.asrow {
  display: table-row;
}

.ascell {
  display: table-cell;
  vertical-align: top;
}

/*************************************************************************
INCLUDED CONTENT PAGES
*************************************************************************/
.page2, .folio, .history, .clippings, #c1col {
  background-color: #eee;
  border: 1px solid #aaa;
  padding: 10px 10px 6px;
  -moz-border-radius: 10px;
  -webkit-border-radius: 10px;
  border-radius: 10px;
  font-size: 14px;
}

.templatefooter {
  padding-top: 6px;
  text-align: center;
  font-size: 80%;
}

.photoCenter {
  text-align: center;
  margin: 0;
  max-width: 1100px;
  min-width: 200px;
}

.photoCenter img {
  width: 100%;
}