@import url('https://fonts.cdnfonts.com/css/nimbus-sans-l');
html {
  font-family: 'Nimbus Sans L', "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Verdana, "Lucida Grande", sans-serif;
  font-weight: 300;
  font-size: 10pt;
}

body {
  background-image: url(../img/shreds.jpeg);
  background-size: 100% auto;
  background-repeat: repeat;
}

a:link {
  color: black;
  text-decoration: underline;
  font-weight: bold;
}

a:hover {
  color: black;
  text-decoration: underline;
  font-size: 1.1em;
  font-weight: bolder;

}

a:active {
  color: black;
  text-decoration: underline;
  font-size: 1.1em;
  font-weight: bolder;
  font-style:italic;
}

a:visited {
  color: black;
}

img {
  border-radius: 5%;
}

p {
  line-height: 1.7em;
  text-indent: 5%;
}

.header {
  background-color: #ccc;
  border-radius: 10px;
  margin: 0.5em;
  padding: 0.2em;
  z-index: 100;
}

.header h1 {
  padding-left: 10%;
}

.navbar {
  background-color: #eee;
  border-radius: 5px;
  margin: 0.5em;
}

.navbar ul {
  list-style: none;
  padding-inline-start: 10px;
}

.navbar li a {
  display: block;
  text-decoration: none;
  padding: 10px;
}

.content {
  margin: 0.5em;
  padding: 20px;
  background-color: #fff;
  word-wrap: break-word;
  border-radius: 5px;
  /* border: 1px inset grey; */
}

.content li {
  padding: 0.75em;
}

@media screen and (orientation : portrait) {

  .navbar {
    position: sticky;
    top:0;
  }

  .navbar ul {
    column-count: 2;
  }
}

@media screen and (orientation : landscape) {
  li {
    font-weight: bolder;
  }

  .header {
    position: sticky;
    top: 0; /* position: sticky, and top: 0 make the scroll/stick effect*/
    max-width: 800px;
  }
  .navbar {
    position: fixed;
    top: 100px;
    left: 20px;
    width: 112px;
    min-width: fit-content;
    min-height: fit-content;
    background-color: #eee;
    overflow-y: auto;
    border-radius: 5px;
    max-height: calc(100vh - 100px);
  }

  .content {
    margin-top: 50px;
    margin-left: 180px;
    padding: 20px;
    background-color: #fff;
    width: 50%;
    max-width: 500px;
    min-width: 200px;
    word-wrap: break-word;
    border-radius: 5px;
  }
}
