* {
  box-sizing: border-box;
}

img{
  width:100%;
}

.overlay {
  height: 100%;
  min-height:100vh;
  background-color: rgba(255,255,255, 0.1);
  margin-left:17%;
  margin-right:17%;
  padding-top:10px;
  z-index: 0;
}

@font-face {
	font-family: "CandideCondensedRegular";
	src: url("/ui/Candide-CondensedMedium.ttf");
}

.candide-condensed-regular {
	font-family: "CandideCondensedRegular", serif;
	font-weight: 400;
	font-style: normal;
}

@font-face {
	font-family: "BalooChettan";
	src: url("/ui/BalooChettan2-SemiBold_37.ttf");
}

.baloo-chettan {
	font-family: "BalooChettan", sans-serif;
	font-weight: 400;
	font-style: normal;
}

html {
  background-color:#010101;
}

body {
  margin: 0;
  font-family: "CandideCondensedRegular", serif;
}

.textcontainer {
  border: 0.5px solid #111;
  background-color:#aaa;
  color:#111;
  margin-left:17%;
  margin-right:17%;
}

.textcontainer h1{
  text-align:center;
}

.textcontainer p, .textcontainer h1, .textcontainer h2, .textcontainer h3{
  margin-left:2%;
  margin-right:2%;
}

.header {
  border: 0.5px solid #111;
  background-color:#aaa;
  color:#111;
  margin-left:17%;
  margin-right:17%;
  text-align:center;
  margin-bottom:10px;
  padding-bottom:10px;
}

/* Style the buttons */
.btn {
  border: none;
  outline: none;
  padding: 10px 16px;
  background-color: #f1f1f1;
  cursor: pointer;
  font-size: 18px;
}

.btn:hover {
  background-color: #ddd;
}

.btn.active {
  background-color: #666;
  color: white;
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  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.9); /* Black w/ opacity */
}

/* Modal Content (image) */
.modal-content {
  margin: auto;
  display: block;
  text-align:center;
}

.center-fit {
            max-height: 100vh;
            margin: auto;
}

/* Caption of Modal Image */
#caption {
  margin: auto;
  padding: 10px;
  display: block;
  max-width: 50vw;
  text-align: center;
  color: #111;
  height: fit-content;
  width:fit-content;
  bottom:10vh;
  position: relative;
  z-index:5;
  border: 1px #111 solid;
  background-color: rgba(255,255,255,0.5);
}

/* Add Animation */
.modal-content, #caption {  
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.6s;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
  from {-webkit-transform:scale(0)} 
  to {-webkit-transform:scale(1)}
}

@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}

/* The Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
  .modal-content {
    width: 100%;
  }
  
}
.container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: masonry;
  grid-gap: 4px;
  margin-left:1%;
  margin-right:1%;
}

@media screen and (max-width:500px) {
	div.sidenav{
	  width:100%;
	  height:fit-content;
	  position:relative;
	}
	div.sidenav2{
	  visibility:hidden;
	}
	div.sidenav2 a{
	  visibility:visible;
	  position:relative;
	  left:-8.5%;
	}
	div.overlay {
  margin:0;
	}
	div.textcontainer {
  margin-left:7%;
  margin-right:7%;
	}
}

 