:root {
  --accentcolor: rgb(92, 100, 90);
  --backgroundcolor: #333;
  --color: #333;
}

*,
*:before,
*:after {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body,
html {
  height: 100%;
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Cormorant Garamond", sans-serif;
  font-size: 24px;
  font-weight: normal;
  line-height: 180%;
  color: var(--color);
  background-color: var(--backgroundcolor);
  background-image: url("images/red_shadow.jpg");
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
}

#main {
  position: absolute;
  padding: 0;
  top: 0;
  bottom: 0;
  width: 100%;
}

p {
  margin-bottom: 20px;
}

h1 {
  position: relative;
  font-family: inherit;
  font-size: 30px;
  padding: 0;
  margin: 0;
  margin-bottom: 20px;
}

h2 {
  font-size: 24px;
  font-weight: normal;
  text-transform: uppercase;
}

a {
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #333;
}

a:hover {
  color: var(--accentcolor);
}

#klarawrap {
  position: fixed;
  bottom: 100px;
  left: 100px;
  height: auto;
  border: 0px solid #CCC;
  text-align: center;
}

#namn {
  position: relative;
  font-size: 80px;
  color: var(--backgroundcolor);
  font-weight: 300;
  z-index: 2;
  display: block;
}

#klarabild {
  width: 260px;
  height: auto;
  border-radius: 50%;
  margin-bottom: 50px;
  display: none;
}

table {
  border-collapse: collapse;
}

.tablelist td {
  height: auto;
  padding-bottom: 10px;
  border: 0px solid #ccc;
  vertical-align: top;
}

.tablelist td:first-child {
  padding-right: 100px;
}

.tablelist td:last-child {
  white-space: nowrap;
}

.trspacer td {
  height: 30px;
}

.cvtitle td {
  text-transform: uppercase;
}

#cvinfo {
  position: relative;
  border: 0px solid #ccc;
  margin-bottom: 20px;
  display: none;
}

#pagewrap {
  position: absolute;
  left: 40px;
  top: 40px;
  right: 40px;
  min-height: 80%;
  padding: 80px;
  padding-top: 160px;
  background-color: rgba(255, 255, 255, 0.9);
  display: none;
  z-index: 2;
}

.bodytext {
  position: relative;
  border-top: 0px solid #ccc;
  padding: 0;
  max-width: 800px;
  width: 100%;
  background-color: transparent;
}

#closebutton,
#uplink {
  position: absolute;
  border: none;
  z-index: 2;
  cursor: pointer;
  width: 60px;
  height: auto;
}

#closebutton {
  top: 30px;
  right: 30px;
}

#uplink {
  right: 30px;
  bottom: 30px;
}

#closebutton:hover,
#uplink:hover {
  opacity: 0.8;
}

#myVideo {
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  z-index: 1;
}

#klaraimg {
  width: 200px;
  margin-bottom: 20px;
}

/* MENU */

#menuwrap {
  position: fixed;
  top: 0;
  width: 100%;
  left: 0;
  right: 0;
  min-height: 400px;
  height: 100%;
  padding: 80px;
  display: none;
  background-color: var(--backgroundcolor);
}

#menu {
  position: relative;
  display: inline-block;
  border: 0px solid #ccc;
  width: 100%;
}

#menu ul {
  margin: 0;
  padding: 0;
}

#menu li {
  position: relative;
  list-style-type: none;
  height: auto;
  margin: 0 0 15px 0;
  border: 0px solid #000;
  white-space: nowrap;
  display: block;
}

#menu a {
  color: inherit;
  border: none;
  font-size: 26px !important;
  text-decoration: none;
  font-weight: 300;
  line-height: 100%;
  font-family: inherit;
  text-transform: uppercase;
  background-color: transparent;
  padding: 5px;
  color: #fff;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.5s ease;
}

#menu a:hover {
  background-color: var(--accentcolor);
  padding-left: 20px;
  padding-right: 20px;
}

#menubuttonwrap {
  position: absolute;
  top: -4px;
  right: 20px;
  z-index: 1;
  cursor: pointer;
  display: block;
  line-height: 0;
  background-color: var(--backgroundcolor);
  border-radius: 4px;
  padding-top: 26px;
  padding-bottom: 30px;
  clip-path: polygon(0 0%, 100% 0, 100% 80%, 0% 100%);
}

#menubutton {
  position: relative;
  width: 80px;
  height: auto;
}

#menuclosebutton {
  position: absolute;
  top: 30px;
  right: 30px;
  z-index: 1;
  width: 60px;
  cursor: pointer;
  display: block;
}

/* END MENU */

/* ICONS */
.material-icons.md-14 {
  font-size: 14px;
}

.material-icons.md-16 {
  font-size: 16px;
}

.material-icons.md-18 {
  font-size: 18px;
}

.material-icons.md-24 {
  font-size: 24px;
}

.material-icons.md-36 {
  font-size: 36px;
}

.material-icons.md-48 {
  font-size: 48px;
}

.material-icons.md-60 {
  font-size: 60px;
}

/* END ICONS */

@media screen and (max-width: 900px) {

  body {
    font-size: 20px;
  }

  #menuwrap {
    padding-left: 30px;
  }

  #klarawrap {
    position: fixed;
    bottom: 100px;
    left: 0;
    right: 0;
    border: 0px solid #CCC;
    text-align: center;
  }

  #namn {
    position: relative;
    font-size: 70px;
    color: var(--backgroundcolor);
    font-weight: 300;
    z-index: 2;
    display: inlin-block;
  }

  #klarabild {
    width: 250px;
    height: auto;
    border-radius: 50%;
    margin-bottom: 50px;
  }

  #pagewrap {
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    min-height: 100%;
    padding: 40px;
    padding-top: 100px;
    background-color: #fff;
  }

  #closebutton {
    width: 60px;
    top: 20px;
    right: 20px;
    border: 0px solid #ccc;
  }

  #uplink {
    width: 60px;
    bottom: 20px;
    right: 20px;
  }

  .tablelist td {
    font-size: 14px;
    height: auto;
    padding-bottom: 10px;
    border: 0px solid #ccc;
    vertical-align: top;
  }

  .tablelist td:first-child {
    padding-right: 20px;
  }

  .tablelist td:last-child {
    white-space: nowrap;
  }

  .trspacer td {
    height: 30px;
  }

}

@media screen and (max-width: 900px) {
  #klarabild {
    width: 200px;
    margin-bottom: 30px;
  }

  #namn {
    font-size: 50px;
  }
}

@media print {
  body {
    background-image: none;
    font-size: 12pt;
  }

  #pagewrap {
    width: auto;
    padding: 0;
  }

  #menuwrap {
    display: none;
  }

  #main {
    padding: 0;
  }

  .bodytext {
    padding: 0;
    width: 100%;
  }

  #cvinfo {
    display: block;
  }

  a {
    border: none;
  }

  #uplink {
    display: none;
  }

  #icons {
    display: none;
  }

  .material-icons {
    display: none;
  }

  #closebutton {
    display: none;
  }
}

@page {
  margin: 2cm;
}