/* CSS files add styling rules to your content */

body {
  font-family: "Benton Sans", "Helvetica Neue", helvetica, arial, sans-serif;
  background-color: #14344d;
  margin: 0;
}
div.constraint {
    max-width: 1920px;
    margin: auto;
}
#top {
    width: 100%;
    position: relative;
    top: 0;
    z-index: 2;
    background-color: #14344d;
    color: #f2f7fa;
    padding: 0;
}
#mainwrap {
    width: 100%;
    position: relative;
    top: 1rem;
    font-size: 4rem;
    text-align: center;
    z-index: 0;
}
#block {
    position: relative;
    top: 0;
    width: 100%;
    height: 2rem;
    background-color: #14344d;
    z-index: 1;
}
#header {
    width: 100%;
    font-size: 3rem;
    display: inline-block;
    padding-left: 1rem;
}
#main {
    width: 90%;
    font-size: 1.5rem;
    background-color: #f2f7fa;
    text-align: center;
    display: inline-block;
    padding: 1rem;
    margin-bottom: 2rem;
}
#menu {
    width: 100%;
    top: 0;
    font-size: 1.5rem;
    display: inline-block;
    background-color: #8e9aa3;
    text-align: right;
}


/* Pre */
pre {
    display: block;
    unicode-bidi: embed;
    font-family: Monospace;
    white-space: pre-wrap;
    font-size: 1rem;
    text-align: left;
    background-color: #222222;
    color: #FFFFFF;
    padding-left: 1rem;
    padding-right: 1rem;
    margin: 0;
}

#precontain2 {
    width: 80%;
    height: 10rem;
    text-align: center;
    display: inline-block;
    border-radius: 5px;
    overflow: hidden;

}

#precontain {
    width: 100%;
    height: 100%;
    text-align: center;
    display: inline-block;
    overflow: auto;
    margin: 0;
}


/* Constant CSS styles */

ul{
    display: inline;
}
li {
    list-style-type: none;
    display: inline-block;
}
li a{
    display: block;
    color: white;
    text-align: center;
    text-decoration: none;
    background-color: #8e9aa3;
    padding: 0 1rem 0;
}
li a:hover{
    background-color: #b1bec7;
}
h1 {
    font-size: 2rem;
    color: #14344d;
}
h2 {
    font-size: 1.5rem;
    color: #8e9aa3;
}

/* makes images scalable to size */
li img {
      max-width: 100%;
      max-height: 300px;
  }


/* Gallery Model */

#theImg {
  border-radius: 5px;
  cursor: pointer;
  transition: 0.2s;
}

#theImg:hover {opacity: 0.7;}

.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 3; /* Sit on top */
  padding-top: 3rem; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.8); /* Black w/ opacity */
}

.modal-content {
  margin: auto;
  display: block;
  width: auto;
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: .5rem 0;
  height: 2rem;
}

.close {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  color: #f1f1f1;
  font-size: 2rem;
  font-weight: bold;
  transition: 0.2s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
/******* nah
@media only screen and (max-width: 800px){
  .modal-content {
    width: 100%;
    max-width: 800px;
  }
}
********/
  
/* Flex Containers */

.flex-container {
  display: flex;
  flex-direction: row;
  text-align: center;
}

.flex-left {
    flex: 30%;
}

.flex-right {
    flex: 60%;
    margin-right: 10rem;
    vertical-align: middle;
}

/* Responsive layout - makes a one column-layout instead of two-column layout */
@media (max-width: 800px){
  .flex-container {
    flex-direction: column;
  }
  .flex-right {
      margin:auto;
  }
}