/* ----------------------- global ----------------------- */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  background-color: #fcf8e2;
}

img {
  border: 0;
}

a {
  text-decoration: none;
  color: #00457E;
}

a:hover {
  text-decoration: underline;
}

a:visited {
  color: gray;
}

dfn {
  display: none;
}

h1 {
  margin-top: 0;
}

p {
  margin: 0;
}

/* ----------------------- wrapper ----------------------- */
#wrapper {
  position: relative;
  width: 555px;
  min-height: 100%;
  margin: 0 auto;
  background-color: white;
}

/* ----------------------- header ----------------------- */
#header {
  position: absolute;
  width: 165px;
  height: 165px;
  left: 195px;
  top: 272px;
  text-align: center;
}

/* ----------------------- content ----------------------- */
#content-top,
#content {
  width: 518px;
  height: 58px;
  margin: 0 auto;
  box-sizing: border-box;
}

#content-top {
  height: 21px;
  background: #e4e2e4 url('/uploads/images/slogan-top.gif') no-repeat top left;
}

#content {
  color: #00457e;
  font-size: 13px;
  font-weight: bold;
  text-align: center;

  background: #e4e2e4 url('/uploads/images/slogan-bottom.gif') no-repeat bottom left;
  display: flex;
  flex-direction: column;
  justify-content: center;

}
/* ----------------------- menu ----------------------- */
#menu {
  overflow: hidden;
}

#menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#menu li {
  width: 165px;
  height: 165px;
  float: left;
  margin: 15px 0 0 15px;
  position: relative;
  background-image: url('/uploads/images/button.gif');
  background-repeat: no-repeat;
  background-position: center top;
  text-align: center;
}

#menu li.middle {
  width: 165px;
  height: 165px;
  float: left;
  margin: 15px 0 0 15px;
  position: relative;
  background-image: url('/uploads/images/logo.gif');
  background-repeat: no-repeat;
  background-position: center top;
  text-align: center;
}

#menu li.small {
  width: 165px;
  height: 55px;
  background-image: url('/uploads/images/button-small.gif');
  background-position: center top;
  float: left;
  text-align: center;
}

li.small a span {
  position: absolute;
  bottom: 21px;
}

#menu li a {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* align items top */
  align-items: center; /* horizontal centering */
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: #00457E;
  font-weight: bold;
  font-size: 11px;
  padding-top: 5px; /* spacing from top */
  box-sizing: border-box;
}

#menu li a:hover {
  text-decoration: underline;
}

#menu li a img.menu-pictogram {
  display: block;
  max-width: 80px; /* or whatever fits */
  max-height: 80px;
  margin-bottom: 5px; /* spacing between image and text */
}

#menu li a span {
  display: block;
  text-align: center;
}

/* Vertical internal menu */
#internal-menu {
  width: 240px;
  height: 461px;
  margin: 20px 0;
}

#internal-menu ul {
  list-style: none;
  /* możesz zmienić */
  width: 240px;
  height: 461px;
  margin: 0;
  padding: 0;
  display: block;
}

#internal-menu li {
  margin-bottom: 10px;
}

#internal-menu li a {
  display: block;
  padding: 8px 12px;
  background: #e4e2e4;
  color: #00457E;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
}

#internal-menu li a:hover {
  background: #d0ced0;
}

#internal-menu li.active a {
  background: #00457E;
  color: white;
}

/* ----------------------- footer ----------------------- */
.clear {
  clear: both;
  height: 20px;
}

#footer {
  position: absolute;
  width: 100%;
  bottom: 0;
  font-size: 11px;
  color: grey;
}

#footer p {
  margin: 0 5px;
}

p.lps {
  float: left;
}

p.nx {
  float: right;
}

p.meander {
  clear: both;
  float: right;
}

p.nx a,
p.meander a {
  color: grey;
  text-decoration: none;
}

