:root {
  --site-width: 1100px;
  --content-height: 650px;
  --panel-bg: #282828;
  --panel-edge-light: #3c3c3c;
  --panel-edge-dark: #111;
  --text: #e8eace;
  --link: #fff4c4;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #000;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 0 0 32px;
  color: var(--text);
  background-color: #000;
  background-image: url("essentials/themebuilder_iiu9_website_background.gif");
  background-repeat: repeat-y;
  background-position: top center;
  background-size: 1400px 1px;
  font-family: Verdana, Arial, sans-serif;
  font-size: 12px;
}

.site-shell {
  width: min(var(--site-width), calc(100% - 24px));
  margin: 0 auto;
}

.site-header {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.site-banner {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: contain;
  object-position: center;
}

.top-nav {
  min-height: 40px;
  margin-top: 7px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #3c3c3c;
  border-bottom-color: #111;
  background: linear-gradient(#202020, #101010 54%, #1d1d1d);
  box-shadow: inset 0 0 4px #000;
  white-space: nowrap;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-nav a {
  color: var(--link);
  font-family: Tahoma, Verdana, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  text-shadow: 1px 1px 1px #000;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.nav-separator {
  color: #666;
}

.page-layout {
  width: 100%;
  height: var(--content-height);
  margin-top: 10px;
}

.main-panel {
  width: 100%;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: 40px minmax(0, 1fr);
  border: 1px solid #000;
  background: var(--panel-bg);
  box-shadow: inset 0 0 2px #000;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 40px;
  padding: 0 10px;
  overflow: hidden;
  color: #fff;
  border: 1px solid var(--panel-edge-light);
  border-bottom-color: var(--panel-edge-dark);
  background: linear-gradient(#292929, #1a1a1a 56%, #252525);
  font-weight: 700;
  text-shadow: 1px 1px 1px #000;
}

.ticker {
  width: 100%;
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
}

#content-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  border: 1px solid var(--panel-edge-light);
  border-top: 0;
  background: #282828;
}

@media (max-width: 780px) {
  body {
    background-image: none;
    background-color: #191919;
  }

  .site-shell {
    width: 100%;
  }

  .site-header,
  .site-banner {
    height: auto;
  }

  .top-nav {
    margin-top: 0;
    padding: 10px;
    align-items: flex-start;
    flex-direction: column;
    white-space: normal;
  }

  .nav-group {
    flex-wrap: wrap;
  }

  .page-layout {
    height: 650px;
    padding: 0 8px 8px;
  }
}
