
/* The Modal (background) */
.pva-modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 0px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: hidden;
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.pva-modal-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  border: 0px;/*1px solid #888; */
  width: 100%;
  max-width: 640px;
  overflow: hidden;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
  -webkit-animation-name: pva-animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: pva-animatetop;
  animation-duration: 0.4s
}

/* Add Animation */
@-webkit-keyframes pva-animatetop {
  from {top:-300px; opacity:0} 
  to {top:0; opacity:1}
}

@keyframes pva-animatetop {
  from {top:-300px; opacity:0}
  to {top:0; opacity:1}
}

/* The Close Button */
.pva-close {
  color: white;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.pva-close:hover,
.pva-close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.pva-modal-header {
  padding: 0px;
  background-color: #5cb85c;
  color: white;
}

/*.pva-modal-body {padding: 2px 16px;}*/
.pva-modal-body {padding: 0; margin: 0;}

.pva-modal-footer {
  padding: 0px;
  background-color: #5cb85c;
  color: white;
}

/* VTO Modal Container */
#pva-myModal {
  z-index: 2;
  transition: all .5s cubic-bezier(0.075, 0.82, 0.165, 1);
}

/* VTO Modal */
#pva-myModal .pva-myModal {
  opacity: 0;
  transform: translateY(-1rem);
  transition: all .3s cubic-bezier(0.075, 0.82, 0.165, 1);
  transition-delay: .2s;
}

/* VTO Modal Container Styles */
.pva-myModal-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  /*align-items: center;*/
}

/* VTO Modal Body Styles */
.pva-myModal {
  z-index: 100000;
  background-color: white;
  width: 100%;
  max-width: 640px;
  /*height: 100%;*/
  /*height: 320px;*/
  /*max-height: calc(100vh - 200px) !important;*/
  /*max-height: 480px;*/
  padding: 0;
  border-radius: 0px;
}

#pva_view_close_button {
  width: 32px; 
  height: 32px; 
  padding: 0px; 
  fill: rgb(255, 255, 255); 
  background-color: rgb(34, 34, 34); 
  border: 0px solid rgb(255, 255, 255); 
  text-shadow: rgb(0, 0, 0) 0px 1px 0px; 
  text-align: center; 
  vertical-align: middle; 
  border-radius: 100%; 
  box-sizing: content-box; 
  position: absolute; 
  top: 5px; 
  right: 5px;
  opacity: 0.85; 
  cursor: pointer; 
  z-index: 2; 
  transition: all 0.2s ease 0s;
}

#pva_close_button {
  width: 12px; 
  height: 12px; 
  position: absolute; 
  top: 50%; 
  left: 50%; 
  transform: translate(-50%, -50%);
}

#pva-vto-header {
  max-height: 50px;
  height: 50px;
  padding: 0;
  color: white;
  background-color: black;
  font-family: 'Raleway', sans-serif !important;
  font-size: 20px;
}
#pva-vto-header div#pva-vto-title {
  font-family: 'Raleway', sans-serif !important;
  padding: 10px;
}

#pva-vto-catalog {
  z-index:10;
  display:block;
  position:relative;
  top: 0px;/*-8px;*/
  background-color: white;
}

.frameclicked:hover {
  cursor: pointer;
}

/* For portrait, we want the catalog on the bottom */
@media screen and (orientation: portrait) {
  #pva-vto-catalog {
    width: 100%;
  }
}

@media screen and (orientation: landscape) and (min-height: 500px){
  #pva-vto-catalog {
    width: 100%;
  }
}