.center {
  margin: auto;
  width: 50%;
  border: 10px solid rgb(25,0,25);
  padding: 10px;
}
.footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 20px;
    background-color: rgb(0,0,0);
    color: rgb(240,240,160);
    margin: 0px;
    display: flex;
    z-index: 10;
    p, h1, h2, h3 {
        color: rgb(240,40,160);
        margin: 0px 20px;
        padding: 0px;
        font-size: 14px;
        display: flex;
    }
}
.pull-left{
    float: left;
    margin-left: 50px;
}
.pull-right{
    float: right;
    margin-right: 50px;
}
body {
    background-color: rgb(50,0,50);
    margin: 0;
    /*min-width: 500px;*/
}
h1,h2,h3,p,img {
  display: block;
  margin: auto;
  width: 80%;
  color: rgb(240,240,160);
  text-align: center;
}
a {
    color: rgb(240,240,160);
    font-weight: bold;
}
.sidebar {
  margin: 0;
  padding: 0;
  width: 200px;
  background-color: rgb(40,0,40);
  position: fixed;
  height: 100%;
  overflow: auto;
}

.sidebar a {
  display: block;
  color: rgb(240,240,160);
  padding: 16px;
  text-decoration: none;
}

.sidebar a.active {
  background-color: rgb(75,75,75);
  color: white;
}

.sidebar a:hover:not(.active) {
  background-color: rgb(50,50,50);
  color: white;
}

div.content {
  margin-left: 200px;
  padding: 1px 16px;
  height: 1000px;
  img {
      width: 500px;
  }
}





@media screen and (max-width: 800px) {
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }
  .sidebar a {float: left;}
  div.content {margin-left: 0;}
}

@media screen and (max-width: 600px) {
  .sidebar a {
    text-align: left;
    float: none;
  }
}



div.pagetitle {
    margin: 10px 100px 0 200px; /*top-right-bottom-left*/
    height: auto;
    /*position: sticky;*/
}
div.page {
    margin: 10px 100px 0 200px; /*top-right-bottom-left*/
    height: auto;
    /*position: sticky;*/
}

div.pagetitle, div.gallerytitle,
        div.indexpage, div.page, div.gallery  {
    /*position: fixed;
    left: 300px;*/
    /*margin-left: 200px;*/
    max-width: 1200px;
    p {
        color: rgb(240,240,240);
        font-size: calc(8px + 0.6vw);
    }
    h1 {
        color: rgb(240,240,240);
        font-size: calc(12px + 0.9vw);
    }
    h2 {
        color: rgb(240,240,240);
        font-size: calc(10px + 0.8vw);
    }
    h3 {
        color: rgb(240,240,240);
        font-size: calc(9px + 0.7vw);
    }
}

/*div.page, div.pagetitle, div.gallery, div.gallerytitle, div.content {
    margin: 0 100px 0 300px;
    max-width: 1000px;
    p,h1,h2,h3 {
        color: rgb(240,240,240);
    }
    h1 {
        font-size: calc(10px + .8vw);
    }*/
/*}*/

table {
  border-collapse: collapse;
  width: auto;
  margin: 0 auto;
}

th {
    color: rgb(255,255,255);
    text-align: left;
}
td {
    color: rgb(240,240,160);
}
th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgb(140,40,140);
}

tr:hover {
    background-color:rgb(40,0,40);;
}



div.gallerytitle {
    top: 10px;
    left: 160px;
    height: auto;
    white-space: wrap;
     /*top-right-bottom-left*/
    margin: 10px 10px 0 200px; /*top-right-bottom-left*/
    /*margin: auto;*/
    /*max-height: 40px;*/
    position: sticky;
    max-width: 1200px;
    background-color: black;
}

div.gallery {
  /* (A1) GRID LAYOUT - 3 IMAGES PER ROW */
  /*position: fixed;*/
  /*top: 80px;*/
  /*top: auto;*/
  margin: 10px 10px 0 200px; /*top-right-bottom-left*/
  /*left: 40px + 10vw;*/
  bottom: 2px;

  height: auto;
  max-width: 1200px;

  overflow-y: scroll;
  /*overflow-x:hidden;*/
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 20px;

  /* (A2) OPTIONAL WIDTH RESTRICT */
  /*top right bottom left*/
  /*margin: 0 auto 0 300px;*/

}

/* (B) GALLERY IMAGES */
.gallery img {
  /* (B1) DIMENSION */
  width: 100%;
  /*max-width: 100%;*/
  /*width: 270px;*/
  height: 40px + 10vw; /* optional */
  /*padding: 20px;*/
  padding: 4px;

  /* (B2) COLORS */
  /*border: 1px solid #ddd;
  background: #fff;*/
  border: 2px rgb(40,20,40);
  background: rgb(120,0,40);

  /* (B3) IMAGE RESIZE */
  /* cover | contain | fill | scale-down */
  object-fit: cover;
}



/* (C) ON SMALL SCREENS - 2 IMAGES PER ROW */
/*@media only screen and (max-width: 1000px) {*/
@media only screen and (max-width: 800px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* (C) ON VERY SMALL SCREENS - 1 IMAGE PER ROW */
/*@media only screen and (max-width: 600px) {*/
@media only screen and (max-width: 600px) {
  .gallery {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}


/* (D) OPTIONAL ZOOM ON HOVER */
.gallery img:hover {
  z-index: 9;
  transform: scale(1.3);
  /* linear | ease | ease-in | ease-out | ease-in-out */
  transition: transform ease 0.5s;
}

/* (E) FULLSCREEN MODE */
.gallery img.full {
  position: fixed;
  top: 0; left: 0; z-index: 999;
  width: 100vw;
  /*height: 100%;*/
  max-height: 100%;
  object-fit: contain;
  /*object-fit: none;*/
  /*background: rgba(0, 0, 0, 0.7);*/
  background: rgba(0, 0, 0, 1);
}
.gallery img.full:hover {
  z-index: 999;
  transform: none;
}



.history {
    a, p, h1, h2, h3, td {
        color: rgb(160,160,160);
    }
    th {
        color: rgb(120,120,120);
    }
    td, th {
        border-bottom: 1px solid rgb(80,80,80);
    }
    tr:hover {
        background-color: transparent;
    }
}
