/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/* 
    Created on : Apr 30, 2018, 4:44:05 PM
    Author     : Administrator
*/
.modalwindow_base {
  position: relative;

  /*z-index:2;*/
  /*width:80em;
  height:42em;*/
  text-align: center;
  border-radius: 5px;
  box-shadow: 0 0px 10px 0px #646464;
  max-height: calc(100vh);
  
    
    display:inline-block;/* important */
  /* esa */
  /*animation: modalwindow_animate_opening 0.5s;*/ }

@keyframes modalwindow_animate_opening {
  0% {
    transform: scale(0); }
  10% {
    transform: scale(0.1); }
  20% {
    transform: scale(0.2); }
  30% {
    transform: scale(0.3); }
  40% {
    transform: scale(0.4); }
  50% {
    transform: scale(0.5); }
  60% {
    transform: scale(0.6); }
  70% {
    transform: scale(0.7); }
  80% {
    transform: scale(0.8); }
  90% {
    transform: scale(0.9); }
  100% {
    transform: scale(1); } }
.modalwindow_base_warning_shake {
  animation: modalwindow_shake 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000px; }

@keyframes modalwindow_shake {
  10%, 90% {
    transform: translate3d(-1px, 0, 0); }
  20%, 80% {
    transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% {
    transform: translate3d(-4px, 0, 0); }
  40%, 60% {
    transform: translate3d(4px, 0, 0); } }
/* HEADER */
.modalwindow_content_default_always > div:nth-of-type(1) {
  border-bottom: 1px solid lightgrey; }

/* content */
.modalwindow_content_default_always > div:nth-of-type(3) {
  margin-top: 2.1em; }

/* content THIS WORKS if not a CSS given for the window for content. But modalwindow_content_default_always IS ALWAYS IN EFFECT*/
.modalwindow_content {
  margin: auto;
  /*width:40%;*/
  min-width: 30em;
  /*height:26em;*/
  max-height: 90vh;
  background-color: white;
  overflow: hidden;
  /*margin-top:10%;*/
  border-radius: inherit;
  box-shadow: 0px 0px 0px 1px lightgrey;
  max-height: calc(100vh - 0.2em);
  overflow-y: auto; 
  
  box-sizing: border-box;
  margin:0;
  padding:0;

  width:100%;

}

.modalwindow_content_header {
  width: 100%;
  height: 3em;
  text-align: left;
  padding-left: 1.2em;
  background-color: #fafafa;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px; 

  font-size:1.4em;
  
  box-sizing: border-box;

}

.modalwindow_content_header_title {
  float: left;
  width: calc(90% -4em);
  margin-bottom: auto;
  margin-top: auto;
  color: #997FA3;
  vertical-align: top;
  letter-spacing: 1px; }

.modalwindow_content_header_title > a {
  text-decoration: none;
  color: #383838;
  /*font-family:OpenSans-Semibold;*/
  font-family: OpenSans-bold; }

/* this part always be there unlike .modalwindow_content_screen */
.modalwindow_content_screen_always {
  overflow: hidden;
  /* DON'T REMOVE THIS */ }

.modalwindow_content_screen {
  position: relative;
  width: 100%;
  /*height:72%;*/
  height: calc(100% - 6.5em);
  /*height:20em;*/
  margin: auto;
  
  /*margin-bottom:1em;*/
  /*z-index:2;*/ }

.modalwindow_content_screen > div 
{
  padding-top: 0.8em;
}

.modalwindow_content_curtain 
{
  position: absolute;
  z-index: 3;
  top: 0;
  visibility: hidden;
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  background-color: rgba(250, 250, 250, 0.85); 
}

.modalwindow_content_extension_responsescreen {
  /*visibility: visible;*/
  background-color: #fafafa; }

.modalwindow_footer {

  padding-top: 0.7em;
  padding-bottom: 0.7em;
  border-top: 1px solid rgba(200, 200, 200, 0.6);
  background-color: #fafafa;
  /*background-color: white;*/
  height: 4.5em;
  box-sizing: border-box;
  font-size:1.4em;
  /*margin-top:1em;*/ }

.modalwindow_close_btn_base {
  color: grey;
  cursor: pointer;
  float: right;
  padding-right: 2em; }

.modalwindow_close_btn {
  display: inline-block;
  padding-right: 0.3em;
  color: inherit; }

.modalwindow_close_btn:hover {
  color: #FFC30E; 
  color:#E43137;
}

.modalwindow_camera_btn {
  display: inline-block;
  padding-right: 0.5em;
  color: inherit; }

.modalwindow_camera_btn:hover {
  color: #81ab1c;
  /*#337ab7;*/ }

.modalwindow_writeus_btn {
  display: inline-block;
  padding-right: 0.5em;
  color: inherit; }

.modalwindow_writeus_btn:hover {
  color: #337ab7; }

.modalwindow_warning_message {
  display: inline-block;
  border: 0px solid rgba(0, 0, 0, 0.1);
  /*width:80%;*/
  vertical-align: top;
  float: left;
  padding-left: 1em;
  visibility: hidden; }

.modalwindow_warning_message > a {
  float: left;
  color: #E43137;
  font-size: 0.8em;
  padding-top: 0.5em; }

.modalwindow_submit_btn {
  display: inline-block;
  border: 1px solid white;
  background-color: lightgrey;
  box-shadow: 0px 0px 1px 1px rgba(237, 233, 239, 0.8);
  border-radius: 5px;
  cursor: pointer;
  letter-spacing: 1px;
  float: right;
  margin-right: 1em;
  height: 2em;
  padding-right: 0.1em;
  padding-left: 0.1em; }

.modalwindow_submit_btn_enabled 
{
  background-color: #b7a1cd;
  background-color: #DF6166;
  background-color: rgba(217,70,239,0.8);/* bg-fuchsia-600  */
  color: white; 
}

.modalwindow_submit_btn_enabled:hover {
  background-color: #FFC30E;
  background-color: #81AB1C;
  background-color: rgb(22 163 74);
  color: white; }

.modalwindow_submit_btn_enabled:active 
{
  border: 1px solid lightgrey;
  box-shadow: 0 0px 5px 0px #b4b4b4; 
}

.modalwindow_submit_btn_label_wrap {
  height: 50%; }

.modalwindow_submit_btn_label {
  font-family: Gotham-Medium;
  text-decoration: none;
  /*color:#484848;*/
  color: inherit;
  padding-left: 0.7em;
  padding-right: 0.7em;
  font-size: 0.9em; }

.modalwindow_footer_icon {
  float: left;
  padding-top: 0.4em;
  padding-left: 1.2em;
  padding-right: 1em;
  color: grey; }

.modalwindow_footer_icon:hover {
  font-weight: bold;
  cursor: pointer;
  color: #81AB1C; }

.modalwindow_video_screen {
  position: absolute;
  visibility: hidden;
  z-index: 4;
  overflow: hidden;
  height: calc(100% - 8.5em);
  width: calc(100% - 0.2em);
  margin-top: 4em;
  background-color: lightblue; }

.modalwindow_video_screen_firefox {
  /*
  height:calc(100vh - 3em);
  width:calc(100vw - 0.2em);
  */
  height: calc(100% - 6.5em);
  width: calc(100% - 0.2em); }

.modalwindow_video_screen_closebutton {
  position: absolute;
  right: -2px;
  /*top:calc(100% - 6em);*/
  top: calc(100% - 5em);
  background-color: rgba(0, 0, 0, 0.4);
  color: lightgrey;
  width: 6em;
  height: 2em;
  /*font-family: Gotham-Rounded-Book; */
  font-family: Gotham-Medium;
  border: 1px solid lightgrey;
  box-shadow: 0px 0px 0px 1px rgba(255, 255, 255, 0.1); }

.modalwindow_video_screen_closebutton:hover {
  color: white;
  cursor: pointer;
  border: 1px solid white; }

.modalwindow_video_screen_closebutton_wrap {
  height: 1em;
  font-size: 0.8em;
  color: inherit; }

.TESTmodalwindow_sharebox_window {
  width: 32em;
  margin: auto;
  /*min-height:14em;*/
  /*z-index:2;*/
  /*width:80em;
  height:42em;*/
  /*text-align: center;*/
  overflow: hidden;
  border-radius: 10px;
  /*box-shadow: 0 0px 10px 0px rgba(100,100,100,1);*/ }

.TESTmodalwindow_sharebox_content_base {
  position: relative;
  /*needed for curtain width*/
  margin: auto;
  /*width:40%;*/
  /*width:32em;
  min-height:14em;*/
  background-color: white;
  overflow: hidden;
  height: 26em;
  /*margin-top:10%;*/
  border: 0px solid red;
  /*box-shadow: 0px 0px 0px 1px lightgrey;*/ }

/* ********************************************************************************
    MOBILE PHONE
********************************************************************************  */
/* mobile - portrait (must be max width)*/
@media only screen and (max-width: 480px)
{
  .modalwindow_base {
    
    position: relative;
    width: calc(100vw - 2px);
    max-height: 100vh; 
    }

  .modalwindow_content {
      
    width: 100%;
    max-height: calc(100vh - 0.2em);
    overflow-y: auto; }

  .modalwindow_content_header {
    width: calc(100% - 0.5em);
    position: absolute;
    z-index: 4; }

  .modalwindow_footer {
    padding-top: 2em;
    padding-bottom: 6em;
    margin-bottom:1em;
    background-color: white;
    border-top: 1px solid transparent;
    height: 6em;
    width:100vw; }

  .modalwindow_close_btn_base {
    padding-right: 1.5em; }

  .modalwindow_warning_message {
    display: block;
    width: 100%; }

  .modalwindow_warning_message > a {
    font-size: 1em;
    padding-top: 0; }

  .modalwindow_submit_btn {
    display: block;
    width: 80%;
    height: 4em;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2em;
    float: none; }

  .modalwindow_submit_btn_label_wrap {
    height: 1.5em;
    font-size: 1.5em;
    /*vertical-align:top;*/
    /*border:1px solid red;*/ }

  /* default - safari */
  .modalwindow_video_screen {
    height: calc(100vh - 7.5em);
    width: calc(100vw - 0.2em); }

  .modalwindow_video_screen_firefox {
    height: calc(100vh - 3em);
    width: calc(100vw - 0.2em); }

  .modalwindow_content_screen_always {
    position: relative;
    top: 2em; }

  .modalwindow_content_screen_always > div {
    /*margin-top:2em;*/ } }
/* ********************************************************************************
    MOBILE PHONE - LANDSCAPE
********************************************************************************  */
/* mobile - landscape (must be min width)*/
@media only screen and (min-width: 481px) and (max-width: 767px)
/*, only screen and (min-device-width: 481px) and (max-device-width: 768px) */
{
  .modalwindow_base {
    position: relative;
    max-height: calc(100vh); }

  .modalwindow_content {
    width: 100%;
    max-height: calc(100vh - 0.2em);
    overflow-y: auto; }

  .modalwindow_content_header {
    font-size:0.9em;
    width: calc(100% - 1.3em);
    position: absolute;
    z-index: 4; }

  .modalwindow_close_btn_base {
    padding-right: 1em; }

  .modalwindow_content_screen_always {
    position: relative;
    top: 2em; }

  .modalwindow_footer {
      font-size:0.9em;
      padding-top: 3em; } }
/* ********************************************************************************
 MEDIUM DEVICE/TABLET - Portrait tablets, 768px and up) 
********************************************************************************  */
/* tablet - portrait (must be min width)*/
@media only screen and (min-width: 768px) and (max-width: 991px)
/*, only screen and (min-device-width: 769px) and (max-device-width: 992px) */
{
  .modalwindow_base {
      
    position: relative;
    max-height: 95vh;
    
    overflow: hidden; }

  .modalwindow_content {
    width: 100%;
    /*max-height: calc(75vh - 0.2em);*/
    max-height: calc(95vh - 0.2em);
    overflow: hidden;
     }

  .modalwindow_content_header {
    width: calc(100% - 1.3em);
    position: absolute;
    z-index: 4; }

  .modalwindow_close_btn_base {
    padding-right: 1em; }

  .modalwindow_footer {
    padding-top: 3em; }

  .modalwindow_content_screen_always {
    position: relative;
    top: 2em;
    max-height: calc(95vh - 7em);
    -webkit-overflow-scrolling: touch;
    overflow-y: scroll; } }
/* ********************************************************************************
 MEDIUM DEVICE/TABLET - Landscape or PC ) 
********************************************************************************  */
/* tablet - portrait (must be min width)*/
/*
@media only screen and (min-width: 992px) and (max-height: 768px), 
       only screen and (min-device-width: 992px) and (max-device-height: 768px)
*/
@media only screen and (min-width: 992px)
/*, only screen and (min-device-width: 992px) */
{
  .modalwindow_base {
    position: relative;
    max-height: calc(95vh);
    overflow: hidden; 
    display:inline-block;
    
  }

  .modalwindow_content {
    width: 100%;
    max-height: calc(95vh - 0.2em);
    overflow: hidden; }

  .modalwindow_content_header {
    width: calc(100% - 1.3em);
    position: absolute;
    z-index: 4; }

  .modalwindow_close_btn_base {
    padding-right: 1em; }

  .modalwindow_footer {
    padding-top: 2em; }

  .modalwindow_content_screen_always {
    position: relative;
    top: 2em;
    max-height: calc(95vh - 7em);
    -webkit-overflow-scrolling: touch;
    overflow-y: scroll; } }

/*# sourceMappingURL=window.css.map */
