@charset "UTF-8";

*, *:before, *:after {
  box-sizing: border-box;
}

body {
  font-size: 1em;
  font-family: Permanent Marker,Roboto,Helvetica,Arial,sans-serif;
  background-color: #333;
  color: white;
}

html {
  min-height: 100%;
}

.centered-element {
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Home Page */

.home-menu {
  position: relative;
  margin: 0 auto;
  width: 480px;
  text-align: end;
}

.home-menu a {
  text-decoration: none;
  color: #e9692c;
  font-size: 1.5em;
}

.home-body {
  background-image:  url("/images/front-page.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.home-logo-img {
  width: 480px;
}

.home-browse-button {
  background-color: #e9692c;
  color: white;
  padding: 12px 25px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  border-radius: 5px;
  margin: auto;
}

/*-----*/

/* Top Menu */

.top-menu-container {
  text-align: center;
  height: 80px;
  display: flex;
  color: white;
  align-items: baseline;
}

ul.top-menu-container {
  padding-left: 50px;
  list-style: none;
}

ul.top-menu-container li{
  font-family: Permanent Marker,Roboto,Helvetica,Arial,sans-serif;
  display: inline;
  font-size: 28px;
}

ul.top-menu-container li.top-menu-title { 
  font-size: 42px;
}

ul.top-menu-container li+li:before {
  font-family: Arial,sans-serif;
  padding: 8px;
  color: white;
  font-size: 28px;
  content: ">";
}

ul.top-menu-container li a {
  color: white;
  text-decoration: none;
}

ul.top-menu-container li a:hover {
  color: #f6d8ba;
  text-decoration: none;
}

/*-----*/

/*  Menu */

#page-content {
  position: relative;
  margin: 0 auto;
}


#page-header {
	height: 40px;
	padding-top: 20px;
	max-width: 1250px;
	margin: 0 auto;
}


.menu-link {
	font-size: 32px;
	text-decoration: none;
    color: white;
}

.menu-link-right
{
  float:right;
  padding-right: 20px;
  font-family: Permanent Marker,Roboto,Helvetica,Arial,sans-serif;
}

.menu-link-left
{
  float:left;
  padding-left: 20px;
  font-family: Arial,sans-serif;
}

/*-----*/

/* Browse Page */

#gallery-container {
	width: 100%;
	max-width: 800px;
	margin: 20px auto;
}

#page-browse-header {
	height: 90px;
  padding-top: 20px;
  margin-bottom: 20px;
}

.photo-browse-front {
	height: 250px;
  width: 375px;
  display: block;
}

.photo-browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

.col-left {
  justify-self: end;
}

.col-right {
  justify-self: start;
}

.col-center {
  justify-self: center;
  align-self: center;
}

.photo-browse-link	{
	padding:5px; 
	margin:5px; 
	border:1px solid #ccc; 
	display: block;
}

.photo-browse-link:hover { 
	border-color:#999;
}

.photo-caption-container {
  position: relative;
  width: 100%;
}

.photo-caption-text {
background-color: rgb(0, 0, 0, 0.5);
position: absolute;
bottom: 0;
color: white;
width: 100%;
font-family: Permanent Marker,Roboto,Helvetica,Arial,sans-serif;
padding: 5px 0;
text-align: left;
opacity: 1;
transition: 0.6s;
}

.photo-caption-container:hover .photo-caption-text {
  opacity: 0;
}

/*-----*/

/* Photo Gallery */

.gallery-photo {
  width: 60%;
  margin: 0 auto;
  display: block;
  padding: 20px;
}

.gallery-lb-overlay {
	width: 0px;
	height: 0px;
	position: fixed;
	overflow: hidden;
	left: 0px;
	top: 0px;
	padding: 0px;
	z-index: 99;
	text-align: center;
	background: rgba(0, 0, 0, 1.0);
}

.gallery-lb-overlay img {
	max-height: 95%;
  max-width: 95%;
	position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
	box-shadow: 0px 2px 7px rgba(0,0,0,0.2);
	transition: opacity 0.5s linear;
}

/*
.gallery-lb-overlay img:hover {
  transform: scale(1.5);
}*/

.gallery-lb-overlay > div {
	position: relative;
	color: rgba(27,54,81,0.8);
	width: 550px;
	height: 80px;
	margin: 40px auto 0px auto;
	text-shadow: 0px 1px 1px rgba(255,255,255,0.6);
}

.gallery-lb-overlay a.gallery-lb-close {
	background: transparent url(/images/xw.png) no-repeat;
	z-index: 1001;
	color: #fff;
	position: absolute;
  top: 10px;
  left: 99.5%;
	font-size: 15px;
	line-height: 26px;
	text-align: center;
	width: 25px;
	height: 23px;
	overflow: hidden;
	margin-left: -25px;
	opacity: 1;
}

.gallery-lb-prev, .gallery-lb-next{
	text-indent: -9000px;
	position: absolute;
  top: 50%;
	width: 24px;
	height: 25px;
	opacity: 0.8;
}

.gallery-lb-prev:hover, .gallery-lb-next:hover{
	opacity: 1;
}

.gallery-lb-prev{
  right: 98%;
	background: transparent url(/images/arrow_lw.png) no-repeat top left;
}

.gallery-lb-next{
  left: 98%;
	background: transparent url(/images/arrow_rw.png) no-repeat top right;
}

.gallery-lb-overlay:target {
	width: auto;
	height: auto;
	bottom: 0px;
	right: 0px;
	padding: 80px 100px 120px 100px;
}

.gallery-lb-overlay:target img,
.gallery-lb-overlay:target a.gallery-lb-close {
	opacity: 1;
}

.gallery-pagination {
  text-align: center;
  list-style: none;
  align-content: center;
  padding-left: 0px;
}

.gallery-pagination .gallery-page-item {
  display: inline-block;
  margin: 0px 15px;
  background: transparent;
  color: white;
}

.gallery-page-item a {
  text-decoration: none;
  font-weight: bold;
  color: white;
  font-size: 20px;
  font-family: Permanent Marker,Roboto,Helvetica,Arial,sans-serif;
  opacity: 0.7;
}

.gallery-active a {
  opacity: 1;
  font-size: 26px;
}

.gallery-page-item a:hover {
  color: #f6d8ba;
  text-decoration: none;
}
/*-----*/

/* Frontpages Gallery */

.clear {
	clear:both;
}



#books-container {
	width: 100%;
	max-width: 1250px;
	margin: 0 auto;
}

.photo-list {
	list-style-type: none;
	padding: 0;
	margin: 20px;
}

.photo-link	{
	padding:5px; 
	margin:5px; 
	border:1px solid #ccc; 
	display: block;
	float:left;
}

.photo-link:hover { 
	border-color:#999;
}

.photo-front {
	height: 480px;
}

@media (max-width: 480px){
  .photo-front {
	height: 210px;
  }
  
	.menu-link {
		font-size: 16px;
	}
}

/*-----*/


/* Popup */

.overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  transition: opacity 500ms;
  visibility: hidden;
  opacity: 0;
}

.overlay:target {
  visibility: visible;
  opacity: 1;
}

.popup {
  margin: 15px auto;
  padding: 5px;
  background: #fff;
  border-radius: 5px;
  width: 95%;
  height: 95vh;
  position: relative;
  transition: all 200ms ease-in-out;
}

.popup h3 {
  margin: 0px 0px 0px 10px;
  color: #333;
  font-family: FontAwesome, Arial, sans-serif;
}
.popup .close {
  position: absolute;
  top: 10px;
  right: 30px;
  transition: all 200ms;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  color: #333;
}
.popup .close:hover {
  color: #bb0909;
}
.popup .content {
  max-height: 90vh;
  overflow: auto;
}

/*-----*/


/* Book */
.container {
  height: 85vh;
  width: 95%;
  margin: 10px auto;
  border: 2px solid #333;
  box-shadow: 0 0 5px #333;
}

/*-----*/

/* Feedback Page */

.feedback-container {
  position: relative;
  margin: 30px auto;
  width: 400px;
  text-align: justify;
}

input[type=text] {
  padding: 10px;
  margin: 10px 0;
  border: 2px solid #eee;
  border-radius: 5px;
  font-size: 1em;
  font-family: Helvetica,Arial,sans-serif;
  width:100%;
}

textarea {
  padding: 10px;
  margin: 10px 0;
  border: 2px solid #eee;
  border-radius: 5px;
  font-size: 1em;
  font-family: Helvetica,Arial,sans-serif;
  width:100%;
  resize: vertical;
}

input[type=submit] {
  appearance:none;
  /*-webkit-appearance:none;*/
  margin: 10px 0;
  padding:10px;
  border:none;
  background-color:#e9692c;
  color:#fff;
  font-weight:600;
  border-radius:5px;
  font-size: 1em;
  width: 80px;
  cursor: pointer;
}

input[type=submit]:disabled {
  background-color:#fcba9b;
  cursor: auto;
}

.feedback-subject {
  display:none
}

.feedback-error {
  color: #bb0909;
  margin: 0;
  font-size: 0.8em;
}
/*-----*/