/* Styles for the Demo Wrapper */
html {
  box-sizing: border-box;
  text-rendering: optimizeLegibility;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}
.cf:before,
.cf:after {
  content: " ";
  display: table;
}
.cf:after {
  clear: both;
}
.cf {
  zoom:1;
}
body,html {
  margin: 0;
  overflow-y: auto; /* allow vertical scrolling, especially on mobile */
  -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
  margin-top:0;
  padding-top:0;
  min-height:100%;
}
h3{width:100%;
display:block;
text-align:center;
color:#ffffff;
font-size:14px;
margin-top:-10px;
font-weight:300;
font-family: 'Roboto', sans-serif;
}
    canvas {
      position: fixed;
      top: 0;
      left: 0;
      z-index: -1; /* Behind all content */
    }

#title{display:flex;
	font-size:1.8em;
	font-weight:bold;
color:#000000;
text-align: center;
max-width:400px;height:100px;
min-width:350px;
justify-content: center;
align-items: center;
background:#ffffff;
border-radius:15px;
 padding: 20px;
 margin-top:10px;
margin-bottom:10px;
margin-left:auto;margin-right:auto;
}

/* Adjust title size/height on small screens (e.g. iPhone) so it doesn't overlap doors */
@media (max-width: 480px) {
  #title{
    height:70px;
    font-size:1.4em;
    padding:8px;
  }
}


.demo-content {
  max-width: 400px;
  margin-top: 0px;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 90px;
}

/* Styles for the Advent Calendar */
/* Ensure article is positioning context for doors grid */
article { position: relative; }
ul#adventDoors {
	position: absolute;
	list-style: none;
	padding: 0;
	margin: 0;
	/* Positioned by JS to align exactly over the image */
	top: 0;
	left: 0;
	transform: none;
	z-index: 1; /* below modal */
}
#adventDoors li, #adventDoors li a { z-index: 1; }
#adventDoors li {
	position: absolute;
}
#adventDoors li a {
	color: #fff;
	width: 100%;
	height: 100%;
	font-size: 36px;
	text-align: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-decoration: none;
	border: 1px #fff solid;
}
#adventDoors li a:not(.disabled):hover {
	color: #fff;
	background-color: transparent;
	background-color: rgba(255,255,255,0.1);
}

#adventDoors li a.disabled {
	opacity:0.8;
color: #bebebe;
	cursor: default;
}

/* Past doors (more than 1 day old): show photo thumbnail instead of number */
#adventDoors li a.door-thumb {
	padding: 0;
	overflow: hidden;
	background: #1a1a1a;
	position: relative;
	font-size: 0;
}
#adventDoors li a.door-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	pointer-events: none;
}
#adventDoors li a.door-thumb .door-day {
	position: absolute;
	top: 3px;
	left: 5px;
	font-size: 12px;
	line-height: 1;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0,0,0,0.85);
	font-weight: 600;
	pointer-events: none;
}
#adventDoors li a.door-thumb:not(.disabled):hover {
	background-color: transparent;
	opacity: 0.92;
}


.image-option.is-selected img {
  border-color: #b82830;
  border-width: 3px;
  box-shadow: 0 0 12px rgba(184, 40, 48, 0.35);
  background-color: #fff7f0;
}
#img01 {

  cursor: pointer;
  transition: 0.3s;
border:15px solid #ffffff;
	max-width:400px;
	height:auto;
}

#myImg:hover {opacity: 0.7;}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 10000; /* Ensure modal sits above all page layers */
  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;
  /* Adapt to image orientation: contain within viewport */
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  z-index: 10001; /* Above overlay */
  image-orientation: from-image; /* Respect EXIF orientation in supporting browsers */
}

/* While modal is open, block interactions with doors/grid beneath */
body.modal-open #adventDoors { pointer-events: none; }

/* Caption of Modal Image */


/* Add Animation */
.modal-content{
  -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: 15px;
  color: #f1f1f1;
  font-size: 35px;
  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%;
  }
}