:root{
  /* Define colours inthe global scope: 
   * NB: variable names must begin with -- */
  --header-bg-left:  rgb(17, 17, 33);
  --header-bg-right: rgb(0,145,255);
  --header-title:    rgb(255, 255, 255);
  --header-subtitle: rgb(255, 180, 0);
  
  --footer-bg:       rgba(45, 45, 47, 0.9);
  --footer-text:     white;
  
  --elm-text:        rgb(45, 45, 47);
  --elm-background:  rgb(230, 230, 230);
  
  --link-colour:     var(--elm-text);
  --hover-colour:    rgb(80, 80, 80);
  
  --cover-border:    rgb(220, 220, 220);
  --cover-hover:     rgba(0, 140, 186, 0.5);
}

* {
  font-family: Tahoma, sans-serif;
  font-weight: normal;
  line-height: 1.2em;
  margin: 0px;
}

a:link {
  text-decoration: underline;
  color: var(--link-colour);
}

a:visited {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: var(--hover-colour);
}

a:active {
  text-decoration: underline;
}

/* Tilføj ekstra mellemrum i bunden, så sidefoden ikke overlapper med teksten i det nederste afsnit */
body {
  padding-bottom: 50px;
}

div.header {
  height: 90px;
  background-image: linear-gradient(to right, var(--header-bg-left), var(--header-bg-right));
}

div.footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 15px;
  background: var(--footer-bg);
  color: var(--footer-text);
  text-align: center;
  padding: 10px;
  text-transform: uppercase;
  font: 12px Tahoma, sans-serif;
}

div.header div.title,
div.header div.subtitle {
  position: absolute;
  left: 25%;
}

div.header div.title {
  top: 22px;
  text-transform: uppercase;
  color: var(--header-title);
  font: 32px Tahoma, sans-serif;
  text-transform: uppercase;
}

div.header div.subtitle {
  top: 52px;
  color: var(--header-subtitle);
  font: 20px Tahoma, sans-serif;
}

/*div.content {
  background: var(--elm-background);
}*/

div.content div.elm {
  position: relative;
  left: 25%;
  width: 50%;
  color: var(--elm-text);
  background: var(--elm-background);
  padding-top: 10px;
  padding-left: 10px;
  padding-right: 10px;
  padding-bottom: 10px;
  margin-top: 20px;     /* mellemrum UDEN FOR den grå kasse (top)  */
  margin-bottom: 20px;  /* mellemrum UDEN FOR den grå kasse (bund) */
  border-radius: 10px 10px 10px 10px;
}

div.elm div.date {
  float: right;
  font: 10px Tahoma, sans-serif;
  font-style: italic;
}

div.content div.elm h2 {
  display: block;
  display: table-cell; 
  border-bottom: 2px solid var(--elm-text);
  text-transform: uppercase;
  font: 20px Tahoma, sans-serif;
}

div.content div.elm p {
  padding-top: 3px;
}

img.bookcover {  
  float: left; 
  border: 1px solid var(--cover-border);
  border-radius: 4px;
  padding: 5px;
  width: 100px; /* 10% */
}

img.bookcover:hover {
  box-shadow: 0 0 2px 1px var(--cover-hover);
}

@media all 
and (orientation: portrait) {
  div.content div.elm {
    left: 5%;
    width: 85%;
  }

  div.header div.title,
  div.header div.subtitle {
/*    position: relative; 
    text-align: center; */
    left: 0%;
  }
}

