body, h1,h2,h3,h4,h5,h6 {font-family: "Montserrat", sans-serif}
.w3-row-padding img {margin-bottom: 12px}
/* Set the width of the sidebar to 120px */
.w3-sidebar {width: 150px;background: #111;}
/* Add a left margin to the "page content" that matches the width of the sidebar (120px) */
#main {margin-left: 150px}
/*Add a title background image*/
    .bgimg {
  background-position: center;
  background-size: cover;
  background-image: url("NanoscaleHorizons.jpg");
  width: 100%;
  height: 450px;
margin : 30px;
padding: -30px;
opacity: 1;
top: 50px;
}

/* Remove margins from "page content" on small screens */
@media only screen and (max-width: 600px) {#main {margin-left: 0}}
    
.container {
  position: relative;
  width: 100%;
}

.slideshow-container {
  position: relative;
  margin: auto;
  padding: 0;
  /* Next & previous buttons */
}

.slideshow-container .mySlides {
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  min-height: 400px;
  display: none;
  padding: 30px 10px;
}

@media (min-width: 768px) {
  .slideshow-container .mySlides {
    min-height: 370px;
  }
}

@media (min-width: 768px) {
  .slideshow-container .mySlides {
    padding: 45px 35px;
  }
}

.slideshow-container .mySlides .text {
  text-align: center;
  color: rgba(255, 255, 255, 0.95);
  font-size: 30px;
  padding: 0 20px;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .slideshow-container .mySlides .text {
    font-size: 3.225rem;
  }
}

.slideshow-container .bg1 {
  background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.25))), url("../img/slide-1.jpg");
  background-image: linear-gradient(rgba(0, 0, 0, 0.25)), url("pictures/Slideshow/slide1.png");
  background-repeat: no-repeat;
  background-size: cover;
}

.slideshow-container .bg2 {
  background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.45))), url("../img/slide-2.jpg");
  background-image: linear-gradient(rgba(0, 0, 0, 0.45)), url("pictures/Slideshow/slide1.png");
  background-repeat: no-repeat;
  background-size: cover;
}

.slideshow-container .bg3 {
  background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.25))), url("../img/slide-3.jpg");
  background-image: linear-gradient(rgba(0, 0, 0, 0.25)), url("pictures/Slideshow/slide1.png");
  background-repeat: no-repeat;
  background-size: cover;
}

.slideshow-container .prev, .slideshow-container .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  -webkit-transition: 0.6s ease;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.slideshow-container .next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.slideshow-container .prev:hover, .slideshow-container .next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Fading animation */
.fade {
  -webkit-animation-name: fade;
          animation-name: fade;
  -webkit-animation-duration: 1.5s;
          animation-duration: 1.5s;
}

@-webkit-keyframes fade {
  from {
    opacity: .4;
  }
  to {
    opacity: 1;
  }
}

@keyframes fade {
  from {
    opacity: .4;
  }
  to {
    opacity: 1;
  }
}

/* On smaller screens, decrease text size */
@media only screen and (max-width: 300px) {
  .prev, .next {
    font-size: 11px;
  }
}
























.overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: .15s ease;
  background-color: whitesmoke;
}

.container:hover .overlay {
  opacity: 0.7;
}

.text {
  color: black;
  font-size: 14px;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  text-align: left;
}



 