.imdiv {
   aspect-ratio:1/1;
   overflow:hidden;
}
.imdiv .imdiv-i {
   overflow:hidden;
   width:100%;
   height:100%;
   justify-content:center;
   align-items: center;
   display:flex;
}
.imdiv .imdiv-i img {
   max-width:100%;
   max-height:100%;
   object-fit:scale-down;
   position:relative;
}

.smallbutton {
   font-size: 15px;
   padding: 4px;
}

.w3-content {
   max-width: 1400px;
}

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: 120px;background: black;
}
/* Add a left margin to the "page content" that matches the width of the sidebar (120px) */
#main {
   position: relative;
   margin-left: 120px;
   min-height: 100vh;
}
footer {
   position: absolute;
   bottom: 0;
   width: 100%;
   
}
nav p {
   margin:0px 12px 0px 2px;
   font-size: 18px;
   font-variant: small-caps;
   font-weight: bold;
}

/* ===== modal login form ===== */
.modal {
  display: block; /* default opened */
  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.4); /* Black w/ opacity */
  padding-top: 160px;
}

/* Modal Content/Box */
.modal-content {
  background-color: #fefefe;
  margin: 5px auto; /* 15% from the top and centered */
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
  max-width: 500px;
}

/* The Close Button */
.close {
  /* Position it in the top right corner outside of the modal */
  position: absolute;
  right: 25px;
  top: 0;
  color: #000;
  font-size: 35px;
  font-weight: bold;
}

/* Close button on hover */
.close:hover,
.close:focus {
  color: red;
  cursor: pointer;
}

/* Add Zoom Animation */
.animate {
  -webkit-animation: animatezoom 0.6s;
  animation: animatezoom 0.6s
}

@-webkit-keyframes animatezoom {
  from { -webkit-transform: scale(0) }
  to { -webkit-transform: scale(1) }
}

@keyframes animatezoom {
  from { transform: scale(0) }
  to { transform: scale(1) }
}

/* Full-width input fields */
input[type=text], input[type=password], input[type=email], textarea {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  box-sizing: border-box;
}
input[type=checkbox] {
  width: 20px;
  padding: 0px;
  margin: 5px 5px 5px 0px;
  display: inline-block;
}

/* Set a style for all buttons */
button {
  background-color: #04AA6D;
  color: white;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  cursor: pointer;
  width: 100%;
}

button:hover {
  opacity: 0.8;
}

/* Extra styles for the cancel button */
/*.cancelbtn {
  width: auto;
  padding: 10px 18px;
  background-color: #f44336;
}*/

/* Center the image and position the close button */

.container {
  padding: 16px;
}

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