

body {
  background: linear-gradient(to bottom right,#111234,#5b57a6) ;
  color:aliceblue;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  cursor: url(cursor.cur), auto;
  font-size: 1.5rem;
}

h1, h2, h3 {
  color:#FED766;
  margin: .3rem;
}

a {
  position: relative;
  display: inline-block;
  transition: opacity 0.25s;
  color:#FED766
}
a:visited {
  color: gold;
  text-decoration: none;
}
a:visited:hover {
  color: orange;
}


 /* The sidebar menu */
 .sidenav {
  height: 100%; /* Full-height: remove this if you want "auto" height */
  width: 20%; /* Set the width of the sidebar */
  position: fixed; /* Fixed Sidebar (stay in place on scroll) */
  z-index: 1; /* Stay on top */
  top: 0; /* Stay at the top */
  left: 0;
  background-color: #b98ea7;
  overflow-x: hidden; /* Disable horizontal scroll */
  padding-top: 20px;
}

.rightpic {
  height: 100%; /* Full-height: remove this if you want "auto" height */
  width: 20%; /* Set the width of the sidebar */
  position: fixed; /* Fixed Sidebar (stay in place on scroll) */
  z-index: 1; /* Stay on top */
  top: 0; /* Stay at the top */
  right: 0;
  background-color: #b98ea7;
  overflow-x: hidden; /* Disable horizontal scroll */
  overflow-y: hidden; /* Disable vertical scroll */
}

.divbg {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

/* The navigation menu links */
.sidenav a {
  padding: 6px 8px 6px 16px;
  text-decoration: none;
  font-size: 2rem;
  color: #fff;
  display: block;
  transition: .25s;
}

/* When you mouse over the navigation links, change their color */
.sidenav a:hover {
  color: #f0d3f7;
  transform: scale(1.05);
}

/* Style page content */
.main {
  margin-left: 23%; /* Same as the width of the sidebar */
  margin-right: 23%;
  padding: 0px 10px;
}

/*Images in the sidebar*/
.sidebar {
max-width:275px;
}

/*Banners that span the screen*/
.banner {
  max-width:98%;
}

/*Photogrid*/
.grid { 
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-gap: 20px;
  align-items: stretch;
  font-size:large;
  }

 /* Size 721x721*/
.grid img {
  border: 1px solid #ccc;
  box-shadow: 2px 2px 6px 0px  rgba(0,0,0,0.3);
  max-width: 100%;
  transition:.25s;
}

.grid a {
  position: relative;
  display: inline-block;
  transition: opacity 0.25s;
  color:#fff
}
.grid:a:visited {
  color: #fff;
  text-decoration: none;
}
.grid:a:visited:hover {
  color: #fff;
}


.img-caption {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 50%; /* 50% from top */
  left: 50%; /* 50% from left */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align:left;
  transform: translate(-50%, -50%) scale(0); /* to center the text, scale(0) to doesn't show text  */
  transform-origin: center;
  transition: 0.25s;
}

.grid a:hover .img-caption {
  transform: translate(-50%, -50%) scale(1); /* to center the text, scale(1) to show text  */
  transform-origin: center;
  transition: 0.25s;
}

.grid a:hover img {
  opacity: 0.25;
  filter:brightness(50%)
}


.container {
  height:500px;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  align-content:stretch;
}

.scroll {
  width: 20%;
  overflow: scroll; /* This is the key!! */
  border: 1px white solid;
  padding: 10px;
  font-size: large;
  flex: 1;
}
.alternate {
  background-color: #5c58a7;
  padding-top:1px;
  padding-bottom: 1px;
  margin: 1px 0;
}
.frame {
  flex:3;
}







/* On smaller screens, where height is less than 450px, change the style of the sidebar (less padding and a smaller font size) */
@media screen and (max-width: 800px) {
  .sidenav {
    padding-top: 15px;
    width:40%
  }
  .sidenav a {font-size: 1.2rem;}
  .main {margin-left:40%; margin-right:2%;}
  .sidebar {width: 90%;}
  .rightpic {display:none;}
  body {font-size: 1rem;}
} 
