﻿/* ========== Reset og basis ========== */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
}

html, body {
  height: 100%;
}

body {
  padding: 0;
  margin: 0;
  background-color: #3AAA35;
  line-height: 1.2em;
  font-size: 1em;
  color: #000;
  font-family: Arial, Helvetica, sans-serif;
  background-image: url('../images/top-bg.jpg');
  background-repeat: repeat-x;
}

/* ========== Header ========== */
#header {
  background-color: #0A3F6F;
  background-image: url('../images/TAPCERT_web_top_150px_clean.png');
  background-repeat: no-repeat;
  background-position: left center;
  height: 150px;
  width: 100%;
  position: relative;
  z-index: 10;
}

.header-text {
  color: white;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 22%;
  transform: translate(-50%, -50%);
  width: 90%;
  line-height: 1.4;
}

/* ========== Dropdown menu ========== */
#topNavigation {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* ========== Hovedlayout ========== */
#outerWrapper {
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

#contentWrapper {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  background: url('../images/content-bg.jpg') repeat-y;
  background-color: white;
  background-size: auto 100%;
  min-height: 100%;
  box-sizing: border-box;
}

/* ========== Sidemenu ========== */
#leftColumn1 {
  width: 220px;
  flex-shrink: 0;
  padding: 10px;
  background-color: transparent;
  color: white;
  box-sizing: border-box;
  position: sticky;
  top: 0;
  align-self: flex-start;
  z-index: 1;
}

#leftBackground {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 220px;
  background-color: #173F71;
  z-index: 0;
}

#leftColumn1 p {
  font-size: 0.85em;
}

#leftColumn1 ul {
  list-style: none;
  padding-left: 0;
}

#leftColumn1 a {
  color: white;
  text-decoration: none;
}

#leftColumn1 h2 {
  color: white;
}

/* ========== Main content ========== */
#content {
  flex-grow: 1 1 auto;
  min-width: 0;
  padding: 20px;
  background-color: white;
  box-sizing: border-box;
  background-image: url('../images/TAPlogo_transparent.png'); /* Skift til det ønskede billede */
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: scroll; /* Følger med ved scroll */
  position: relative;
}

.content-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}

#content > * {
  position: relative;
  z-index: 1;
}

/* ========== Footer ========== */
#footer {
  width: 100%;
  background-color: #302F30;
  color: white;
  padding: 20px 0;
  text-align: center;
  position: relative;
  margin-top: auto;
}

#footer p {
  margin: 5px 0;
}

.footer-logo-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
}

.footer-logo-wrapper img {
  max-width: 100%;
  height: auto;
}

/* ========== Billeder og diverse ========== */
body img {
  border: 0;
  text-decoration: none;
}

.imglft {
  padding: 5px 10px 5px 0px;
  float: left;
}

.imgrgt {
  padding: 5px 0px 5px 10px;
  float: right;
}

.imgctr {
  display: block;
  margin: 0px auto;
}

.hidden {
  display: none;
}

.unhidden {
  display: block;
}

.ctr {
  text-align: center;
}

.smltxt {
  font-size: small;
}

.tinytxt {
  font-size: 0.75em;
}

/* ========== Form styling ========== */
form fieldset {
  padding: 1em;
  font: 80%/1 sans-serif;
  border: 1px solid #3AAA35;
}

form fieldset label {
  width: 15%;
  margin-right: 0.5em;
  padding-top: 0.2em;
  text-align: right;
  font-weight: bold;
}

form fieldset legend {
  padding: 0.2em 0.5em;
  border: 1px solid #353c48;
  color: #fff;
  font-size: 90%;
  background-color: #1D71B8;
  font-variant: small-caps;
  text-align: right;
}

.button {
  font: normal 90% Verdana, serif;
  height: 22px;
  border: 1px solid #000;
  background-color: #1D71B8;
  color: white;
}

#WLSearchBoxDiv {
  margin: 1em;
}

/* ========== Links ========== */
a:link {
  font-weight: bold;
  color: #1D72B8;
  text-decoration: underline;
  background: transparent;
}
a:visited {
  font-weight: bold;
  color: #878787;
  text-decoration: underline;
  background: transparent;
}
a:hover {
  font-weight: bold;
  text-decoration: none;
  background: #fff;
  color: #95C11F;
}
a:active {
  font-weight: bold;
  text-decoration: underline;
  background: #878787;
  color: #000;
}
a:focus {
  color: #1D71B8;
}
