@charset "utf-8";
/* Main */
body {
  	font-family: "Lato", sans-serif;
  	background-color: #09111f;
	padding: 0px;
	margin: 0px;
}

#logo {
   position: absolute;
   top: 0;
   left: 0;
   width: 160px;
   height: 160px;
   z-index: 2000; /* higher than everything else */
}

header {
	height: 48px;
	z-index: 120;
}

#mainnav{
	background-color: #1a2f56;
	float: right;
	width: 100%;
	text-align: right;
	height: 48px;
}

#subnav{
	background-color: #444;
	float: right;
	width: 100%;
	text-align: right;
	height: 30px;
}

header nav ul {
	list-style: none;
	float: right;
}

#mainnav ul li {
	float: left;
	color: #f1f1f1;
	font-size: 24px;
	text-align: left;
	margin-right: 25px;
	letter-spacing: 2px;
	font-weight: 200;
	opacity: 60%;
	transition: all 0.15s linear;
	text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

#mainnav ul li a{
	color: #f1f1f1;
	text-decoration: none;
}

#subnav ul li {
	float: left;
	color: #f1f1f1;
	font-size: 16px;
	text-align: left;
	margin-right: 25px;
	font-weight: 400;
	opacity: 60%;
	transition: all 0.15s linear;
	text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

#subnav ul li a {
	text-decoration: none;
	color: #f1f1f1;
}

#mainnav ul li:hover, #subnav ul li:hover {
	opacity: 100%;
}

/* sidenav: below header and full height (minus header) */
.sidenav {
  position: absolute;
  top: 48px;                     /* same as header height */
  left: 0;
  width: 160px;
  height: calc(100% - 48px);     /* full height under header */
  background: #3ea435;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;                   /* lower than your #logo (which should be > 100) */
}

/* repeated dark triangles overlaying the right edge */
.sidenav::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;                      /* align to the right edge of the sidebar */
  width: 20px;                   /* width occupied by the triangle pattern */
  height: 100%;
  pointer-events: none;
  z-index: 1;                    /* keep it behind the text but above the green background */

  /* inline SVG data-url that paints the dark triangles (fill = body color #09111f encoded as %2309111f) */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 40'><polygon points='0,0 20,10 0,20' fill='%2309111f'/><polygon points='0,20 20,30 0,40' fill='%2309111f'/></svg>");
  background-repeat: repeat-y;
	transform: scaleX(-1);
  background-size: 20px 40px;    /* controls triangle width/height - tweak to change size */
}

.sidenav .marquee-wrapper {
   transform: rotate(-90deg); /* rotate container once */
   transform-origin: center;
   white-space: nowrap;
   display: inline-block;
}

.sidenav .marquee {
   display: inline-block;
   animation: marquee 48s linear infinite;
}

.sidenav .marquee span {
   font-size: 64px;
   color: #f1f1f1;
   opacity: 60%;
   margin-right: 50px; /* spacing between repeats */
	text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

/* Scroll animation along X-axis */
@keyframes marquee {
   0%   { transform: translateX(100%); }
   100% { transform: translateX(-100%); }
}

.main {
  	margin-left: 160px; /* Same as the width of the sidenav */
  	font-size: 28px; /* Increased text to enable scrolling */
  	padding: 0px 10px;
  	color: #f1f1f1;
}

.item {
	display: flex;
}

.item .image {
	flex: 1;
	box-sizing: border-box;
}

.item .desc {
	flex: 1;
	flex-grow: 2;
	box-sizing: border-box;
}

.desc a {
	color: #235D1E;
	text-decoration: none;
	opacity: 60%;
	transition: all 0.3s ease;
}

.desc a:hover {
	color: #3EA435;
	opacity: 100%;
}

@media screen and (max-height: 450px) {
  	.sidenav {padding-top: 15px;}
}