@media screen and (max-width: 800px) {

body {font-family: Arial, Helvetica, sans-serif;}

img {
  max-width: 100%;
  padding:0px;
  border:0px none;
  border-radius: 4px;
}

#myImg, #myImg02 {
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

#myImg:hover, #myImg02:hover {opacity: 0.7;}
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* 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.9); /* Black w/ opacity */
}

/* Modal Content (image) */
.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
}

/* Caption of Modal Image */
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

/* 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%;
  }
}

/* Responsive layout - when the screen is less than 800px wide, make the two columns stack on top of each other instead of next to each other */

@media screen and (max-width: 800px) {

#container {
  min-width: 100%;
  background-color:rgba(0, 0, 255, 0.5);
}

.row {   
    flex-direction: column;
	min-width: 100%;
  }

.leftside {
	min-width: 100%;
	border: none;
  }

.centrecol {
	min-width: 100%;
	border: none;
  }
  
.rightside {
	display: none;
	min-width: 100%;
	border: none;
}

.lefthand {
	float:none;
	min-width: 100%;
	margin: 0px auto;
}
 
.righthand {
	float:none;
	min-width: 100%;
	margin: 0px auto;
}
 
.maintext, .maintext1, .maintext2, .maintext3, .maintext4, .maintext5, .maintext6 {
	display: block;
	text-align:justify;
	font-weight:normal;
    overflow:visible;
	padding:10px;
	border: 0px none;
	margin:0px auto;
}

.mainpanel {
  min-width: 100%;
  background-color: rgba(90,90,0,0.3);
}

.mainpanel2 {
  min-width: 100%;
  background-color: rgba(0,0,0,0.3);
}

}

@media screen and (max-width: 800px) {
  .topnav a, .dropdown .btn {
/*  .topnav a:not(:first-child), .dropdown .btn { */
    display: none;
  }
  .topnav a.icon {
    float: left;
    display: block;
	border-radius: 100%;
	padding:5px 10px 5px 10px;
  }
}

@media screen and (max-width: 800px) {
  .topnav.responsive {
	position: relative;
	top: -10px;
	left: -18px;
	max-width: 160px;
  overflow: visible;
}
  .topnav.responsive .icon {
    position:absolute;
    left: 40px;
    top: 10px;
	width: auto;
	padding:2px 10px;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
	width: 100%;
 	padding: 0px 15px 3px 8px;
 }
  .topnav.responsive .dropdown {
  	float: none;
	width: 100%;
	top:0px;
	}
  .topnav.responsive .dropdown-content {
  	position: relative;
	width: 100%;
	top: 0px;
	overflow: visible;
	}
  .topnav.responsive .dropdown-content a {
  	position: relative;
	width: 100%;
	padding-top: 2px;
	padding-bottom: 2px;
	}
  .topnav.responsive .dropdown .btn {
    display: block;
    width: 100%;
    text-align: left;
	overflow: visible;
  }
.topnav.responsive .totop {
	width: 50px;
	margin: 15px 0px 0px 10px;
	padding:8px 5px 5px 5px;
}
}

/* Responsive layout - when the screen is less than 400px wide, make the navigation links stack on top of each other instead of next to each other */
@media screen and (max-width: 400px) {
  .navbar a {
    float: none;
    width: 100%;
  }
}

