* {
  box-sizing: border-box;
}

body {
  font-family: Verdana,Arial,sans-serif;
}
  
nav {
  background-color: black;
  width: 100%;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 1;
}

#menu {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  width: 100%;
}

#menu a {
  background-color: black;
  color: white;
  padding: 1em 1.5em;
  text-decoration: none;
}

#menu a:hover {
  color: black;
  background-color: #ddd;
}

.container {
  display: none;
}

.container:hover {
  background-color: #444;
}

.bar1, .bar2, .bar3 {
  width: 20px;
  height: 3px;
  background-color: #fff;
  transition: 0.3s;
}

.bar1 {
    margin: 1px 0px 3px 0px;
}

.bar2 {
    margin: 3px 0px 3px 0px;
}

.bar3 {
    margin: 3px 0px 3px 0px;
}

.change .bar1 {
  -ms-transform: rotate(-45deg) translate(-4px, 4px);
  -webkit-transform: rotate(-45deg) translate(-4px, 4px);
  transform: rotate(-45deg) translate(-4px, 4px);
}

.change .bar2 {
  opacity: 0;
}

.change .bar3 {
  margin: 3px 0px 3px 0px;
  -ms-transform: rotate(45deg) translate(-4.5px, -4.5px);
  -webkit-transform: rotate(45deg) translate(-4.5px, -4.5px);
  transform: rotate(45deg) translate(-4.5px, -4.5px);
}

#welcome-section {
  background-color: #334;
  color: white;
  text-shadow: 0 0 6px #000;
  height: calc(100vh - 3em);
  background-color: #889499;
  background-image: url('bg2.jpg');
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

h1 {
  text-align: center;
  font-size: 3em;
}

h2 {
  text-align: center;
  font-size: 2.5em;
  color: white;
}

#about {
  background-color: #777;
  padding: 1em 2em;
}

#about p {
  color: white;
}

#projects {
  background-color: #333;
  padding-top: 1em;
}

#projects p {
  color: white;
  text-align: center;
  margin: -1.75em 0em 2em 0em;
}

#proj-pics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(15, auto);
  grid-gap: 3px;
}

.project-tile {
  position: relative;
  margin-bottom: 1em;
  padding: 0em;
  background-color: transparent;
  text-align: center;
}

.project-tile img {
  margin-bottom: 1.6em;
  max-height: 160px;
  opacity: 0.75;
}

.project-tile img:hover {
  opacity: 1;
}

.project-tile p {
  margin: 0;
  background: transparent;
  color: white;
  padding: .25em 0em;
  width: 100%;
  position: absolute;
  bottom: 0px;
  right: 0px;
}

#contact {
  background-color: #201a20;
  padding: 0.2em;
}

#contact a, #contact p {
  display: block;
  color: white;
  text-align: center;
  margin-bottom: 1.5em;
}


/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 1em;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: black;
  height: 100vh;
  width: 100vw;
}

/* Modal Content */
.modal-content {
  position: relative;
  background-color: black;
  margin: auto;
  padding: 0;
  width: 85%;
  max-height: calc(100vh - 2em);
  max-width: calc(100vw - 5em);
}

.img-responsive {
  display: block;
  max-height: calc(100vh - 2em);
  max-width: calc(100vw - 5em);
  max-width: 100%;
  margin: 0 auto;
}

/* The Close Button */
.close {
  color: white;
  position: fixed;
  top: 0.4em;
  right: 0.5em;
  font-size: 35px;
  font-weight: bold;
  z-index: 1;
}

.close:hover,
.close:focus {
  color: #999;
  text-decoration: none;
  cursor: pointer;
}

/* Hide the slides by default */
.mySlides {
  display: none;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: fixed;
  bottom: 55%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.3s ease;
  user-select: none;
  -webkit-user-select: none;
}

/* Position the "next button" to the right and shape it */
.next {
  right: 0;
  border-radius: 0.7em 0 0 0.7em;
}

/* Shape "previous button" */
.prev {
  left: 0;
  border-radius: 0 0.7em 0.7em 0;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(100, 100, 100, 0.75);
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* Caption text */
.caption-container {
  text-align: center;
  background-color: black;
  padding: 2px 16px;
  color: white;
}

img.demo {
  opacity: 0.6;
}

.active,
.demo:hover {
  opacity: 1;
}

img.hover-shadow {
  transition: 0.3s;
}

.hover-shadow:hover {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}




@media only screen and (max-width:800px) {
  #proj-pics {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media only screen and (max-width:600px) {
  nav {
    content: "";
    clear: both;
    display: table;
  }
  #proj-pics {
    grid-template-columns: repeat(2, 1fr);
  }
  .project-tile img {
    max-height: 130px;
  }
  .container {
    background-color: black;
    float: right;
    top: 0;
    z-index: 2;
    padding: 1em;
    display: block;
    cursor: pointer;
  }
  #menu {
    display: block;
    position: absolute;
    top: 100%;
    width: 100%;
  }
  .navbar a {
    float: none;
    display: none;
  }
  .navbar.responsive a {
    float: none;
    display: block;
    text-align: left;
    width: 100%;
  }
}

@media only screen and (max-width:400px) {
  #proj-pics {
    grid-template-columns: repeat(1, 1fr);
  }
}
