:root {
  --sidebar-width: 13vw;
  --navbar-height: 20vw;
  --column-min-width: 384px;
  --navbar-entries: 5;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2.0em;
  background-color: #222;
  color: #CCC;
  text-align: center;
}

h1 {
  margin-left: 0;
  margin-top: 0;
  margin-bottom: 0;
  margin-right: 0;
  padding: 0px 0px;
  background-color: #222;
  color: #CCC;
}

h2 {
  margin-left: 0;
  margin-top: 10px;
  margin-bottom: 10px;
  margin-right: 0;
  padding: 0px, 0px;
  background-color: #222;
  color: #CCC;
}

h3 {
  margin-top: 0;
  margin-bottom: 0;
  color: #CCC;
}

h6 {
  margin-top: 0;
  margin-bottom: 16px;
  color: #CCC;
}

a {
  color: #FFB;
}

.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Navbar container */
.navbar {
 overflow: hidden;
 background-color: #333;
 font-family: Arial;
 position: fixed;
 top: 0;
 left: 0;
 width: 100%;
 height: var(--navbar-height);
}

/* Links inside the navbar */
.navbar a {
 float: left;
 font-size: 16px;
 color: white;
 text-align: center;
 padding: 0;
 padding-top: 4vw;
 padding-bottom: 4vw;
 text-decoration: none;
 filter: brightness(100%);
 width: 20%;
 height: auto;
}

.navbar img {
  width: auto;
  height: 100%;
}

/* Add a red background color to navbar links on hover */
.navbar a:hover {
 filter: brightness(125%);
}

/* Style the sidebar - fixed full height */
.sidebar {
  height: 100%;
  width: var(--sidebar-width);
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: #333;
  overflow-x: hidden;
  padding-left: 0;
  padding-top: 0;
}

/* Style sidebar links */
.sidebar a {
  padding-left: 10px;
  padding-top: 0px;
  padding-right: 10px;
  padding-bottom: 0px;
  margin-top: 10px;
  margin-left: 0;
  text-decoration: none;
  font-size: 20px;
  color: #818181;
  display: block;
  filter: brightness(100%);
}

.sidebar img {
  width: 100%;
  height: auto;
}

/* Style links on mouse-over */
.sidebar a:hover {
  color: #f1f1f1;
  filter: brightness(125%)
}

.center {
  display: flex;
  justify-content: center;
}

/* Style the main content */
.main {
  margin-left: var(--sidebar-width); /* Same as the width of the sidenav */
  margin-top: 0;
  padding: 0px 10px;
  background-color: #222;
  color: #CCC;
  font-size: 2.0em;
  scroll-padding-top: 0;
}

.column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--column-min-width), 1fr));
  height: auto;
  gap: 10px;
}

.big_column {
  float: left;
  width: 66%;
  margin-right: 1%;
}

.small_column {
  float: left;
  width: 33%;
}
.entry {
  width: 50%;
}

.float {
  float: left;
  width: 50%;
  height: auto;
}

.full {
  width: 100%;
  height: auto;
}

.padded {
  padding-right: 10px;
  border-right: 10px;
  border-left: 10px;
  text-align: left;
}

.container
{
  width: 1fr;
  margin: 10px;
}

.video_container {
  aspect-ratio: 16 / 9;
  height: auto;
  width: 100%;
  border: none;
  padding-bottom: 10px;
}

.subsite_container {
  width: 100%;
  height: 100%;
  border: none;
}

/* settings for extra small screens */
/*@media (max-width: 480px) {
  .hidden-xs {
    display: none !important;
  }
  .main {
    margin-left: 0px;
    margin-top: var(--navbar-height);
    font-size: 1.5em;
  }
} */

/* settings for all other screens */
/*@media (min-width: 481px) {
  .visible-xs {
    display: none !important;
  }
  .main {
    margin-left: var(--sidebar-width);
    margin-top: 0;
  }
} */

@media (orientation: portrait) {

  :root {
    --column-min-width: 0.75fr;
  }

  .hidden-xs {
    display: none !important;
  }

  html {
    font-size: 2.5vw;
    scroll-padding-top: var(--navbar-height);
  }

  .main {
    margin-left: 0px;
    margin-top: var(--navbar-height);
  }

  .big_column {
    width: 100%;
  }

  .small_column {
    width: 100%;
  }

}

/* settings for all other screens */
@media (orientation: landscape) {

  :root {
      --column-min-width: 40vw;
  }

  .visible-xs {
    display: none !important;
  }

  html {
    font-size: 0.8em;
    scroll-padding-top: 0;
  }

  .main {
    margin-left: var(--sidebar-width);
    margin-top: 0;
  }

}
