/* Constants */
:root {
  --main-bg-color: hsla(27, 100%, 65%, 1);
  --main-bg-color2: violet;
  --main-txt-color: black;
}

* {box-sizing: border-box}

body {
  /* Solid color for browers that do not support gradients. */
  background: var(--main-bg-color);
  /* Background gradient */
  background-image: linear-gradient(to right, 
                                    var(--main-bg-color2), 
                                    var(--main-bg-color),
                                    var(--main-bg-color2));
  font-family: "Arial";

  margin: 0;
  padding: 0;
}

footer {
  background: black;
  
  margin-top: 100px;
  width: 100%;
  padding: 10px;
  left: 0;
  bottom: 0;

  font-size: 10px;
  color: white;
  text-align: center;
}

/* Outer level of organization */
.hbar {
  min-height: 10px;
  width: 100%;
  background: black;
}

.navbar {
  width: 50%;
  margin-left: 25%;
  background: black;

  overflow: auto;
  color: white;  
}

.navbar a {
  float: left;
  padding: 10px;
  width: 33.33%;

  /* Text */
  text-align: center;
  color: white;
  text-decoration: none;
}

.navbar a.active {
  background: hsla(27, 0%, 70%, 1);
  color: black;
}

.navbar a:hover {
  background: hsla(27, 0%, 100%, 1);
  color: black;
}

.content {
  margin-left: 25%;
  margin-top: 2em;
  margin-bottom: 8em;
  width: 50%;
}

/* Nested dividers */
.title {
  font-family: "Lucida Console";
  margin-left: 5%;
  text-transform: uppercase;
  font-size: 1.5vw;
}

.textbox {
  background: hsla(27, 0%, 0%, 0.1);
  padding: 3px;
  padding-left: 20px;
  padding-right: 20px;
}

/* Attributes */
.rounded {
  border-radius: 20px;
}
.sticky {
  position: -webkit-sticky; /* For compatibility */
  position: sticky;
  top: 0;
}
.bordered {
  border: 2px solid black;
}

/* Responsive design for devices with smaller screens */
/* Medium sized screen */
@media only screen and (max-width: 1000px) {
  .content, .navbar {
    margin-left: 12.5%;
    width: 75%
  }
}

/* Portrait orientation */
@media only screen and (max-width: 550px) {
  .bordered {
    border: none;
  }
  .hbar {
    min-height: 0;
  }
  .navbar, .content {
    margin-top: 0;
    margin-left: 0;
    width: 100%;
  }
  .navbar a {
    float: none;
    display: block;
    width: 100%;
  }
  .title {
    font-size: 12px;
  }
}

/* Landscape orientation */
@media only screen and (max-height: 550px) {
  /* Disable sticky elements to make more screen space */
  .sticky {
    position: static;
  }
}
