/* Akwarium.net.pl forum: retain the original aquatic banner and warm palette
   while using SMF 2.1's responsive layout and accessible templates. */
:root {
  --akwarium-rust: #8a3d18;
  --akwarium-rust-dark: #642b13;
  --akwarium-sand: #f2f0e8;
  --akwarium-line: #d8d3c7;
  --akwarium-text: #383a37;
}
body {
  background: #e8e7df;
  color: var(--akwarium-text);
  font-family: Arial, Helvetica, sans-serif;
}
#header {
  min-height: 100px;
  padding: 0;
  align-items: center;
}
h1.forumtitle {
  flex: 0 1 800px;
  width: 100%;
  max-width: 800px;
  height: auto;
  min-height: 100px;
  margin: 0;
  padding: 0;
  background: url('../images/akwarium-forum-logo.jpg') left center / contain no-repeat;
  font-size: 0;
  line-height: 0;
}
h1.forumtitle a {
  display: block;
  width: 100%;
  height: 100px;
  color: transparent;
  text-shadow: none;
}
#top_section { background: #f8f7f2; border-color: var(--akwarium-line); }
#main_menu { background: var(--akwarium-rust); }
#main_menu .active a, #main_menu a:hover { background: var(--akwarium-rust-dark); }
#main_menu a { color: #fff; }
#main_menu .dropmenu li ul,
#main_menu .dropmenu li ul ul,
#adm_submenus .dropmenu li ul,
#adm_submenus .dropmenu li ul ul {
  background: #fbfaf6;
  border-color: #cfc6b8;
}
#main_menu .dropmenu li li a,
#main_menu .dropmenu li li a:visited,
#adm_submenus .dropmenu li li a,
#adm_submenus .dropmenu li li a:visited {
  color: #382d26;
  background: transparent;
  text-shadow: none;
}
#main_menu .dropmenu li li:hover > a,
#main_menu .dropmenu li li a:focus,
#main_menu .dropmenu li li a:hover,
#adm_submenus .dropmenu li li:hover > a,
#adm_submenus .dropmenu li li a:focus,
#adm_submenus .dropmenu li li a:hover {
  color: #382d26;
  background: #eadfcd;
  border-color: #d3c4af;
  text-shadow: none;
}
#wrapper { border-color: var(--akwarium-line); border-radius: 4px; box-shadow: 0 2px 8px rgba(45, 39, 29, .08); }
.cat_bar, .title_bar { background: var(--akwarium-rust); border-color: var(--akwarium-rust-dark); }
.title_bar { color: #fff; }
#topic_header {
  background: var(--akwarium-rust);
  color: #fff;
}
#topic_header a,
#topic_header a:visited,
#topic_header a:hover,
#topic_header .main_icons::before {
  color: #fff;
}
.cat_bar .catbg, .title_bar .titlebg { color: #fff; }
.title_bar .titlebg,
.title_bar .titlebg a,
.title_bar .titlebg a:visited,
.title_bar .titlebg a:hover,
.cat_bar h3,
.cat_bar h3 a,
.cat_bar h3 a:visited,
.cat_bar h3 a:hover {
  color: #fff;
}
.windowbg, .windowbg2, .roundframe, .content {
  border-color: var(--akwarium-line);
}
.windowbg { background: #fff; }
.windowbg2, .roundframe { background: var(--akwarium-sand); }
a, a:visited { color: #78401f; }
a:hover { color: #a34a1d; }
#footer { color: #66645e; }
.board_icon a.board_icon_legacy {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto;
  background-image: none !important;
  background-color: #fff;
  border: 1px solid #e4e1d8;
  border-radius: 3px;
}
.board_icon a.board_icon_legacy img {
  display: block;
  max-width: 45px;
  max-height: 45px;
  width: auto;
  height: auto;
  object-fit: contain;
  background: transparent;
}
@media (max-width: 620px) {
  #header { min-height: 0; }
  h1.forumtitle { min-height: 0; height: auto; aspect-ratio: 8 / 1; background-size: 100% auto; }
  h1.forumtitle a { height: 100%; min-height: 0; }
}

/* Shared portal navigation around the SMF theme. */
.forum-site-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
}
.forum-site-layout > .sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow: auto;
  background: #173d38;
  color: #e7efea;
  padding: 20px 14px 16px;
  display: flex;
  flex-direction: column;
}
.forum-site-layout .site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .01em;
  padding: 1px 7px 18px;
  border-bottom: 1px solid #ffffff27;
}
.forum-site-layout .site-brand:hover { text-decoration: none; }
.forum-site-layout .brand-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #cfdfd0;
  color: #173d38;
  font-size: 25px;
}
.forum-site-layout .nav-group { padding: 14px 0 4px; }
.forum-site-layout .nav-group h2 {
  margin: 0 8px 6px;
  color: #a9c5b7;
  font-size: 11px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.forum-site-layout .nav-group ul { margin: 0; padding: 0; list-style: none; }
.forum-site-layout .nav-group a {
  display: block;
  border-radius: 5px;
  padding: 5px 8px;
  color: #e6eee8;
  font-size: 13.5px;
  line-height: 1.35;
}
.forum-site-layout .nav-group a:hover,
.forum-site-layout .nav-group a:focus {
  background: #ffffff19;
  color: #fff;
  text-decoration: none;
}
.forum-site-layout .sidebar-foot {
  margin-top: auto;
  border-top: 1px solid #ffffff27;
  padding: 12px 8px 0;
  color: #a9c5b7;
  font-size: 11px;
}
.forum-main-column { min-width: 0; }
.forum-main-column #top_section .inner_wrap,
.forum-main-column #wrapper,
.forum-main-column #header,
.forum-main-column #footer .inner_wrap {
  width: calc(100% - 48px);
  max-width: 1200px;
}
@media (max-width: 800px) {
  .forum-site-layout { grid-template-columns: minmax(0, 1fr); }
  .forum-site-layout > .sidebar {
    position: relative;
    height: auto;
    overflow: visible;
    padding: 12px 14px;
  }
  .forum-site-layout .nav-group ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .forum-site-layout .sidebar-foot { display: none; }
  .forum-main-column #top_section .inner_wrap,
  .forum-main-column #wrapper,
  .forum-main-column #header,
  .forum-main-column #footer .inner_wrap {
    width: calc(100% - 24px);
  }
}
