@font-face {
    font-family: vlastnifont;
    src: url("../pismo/pismo.otf"); 
              }

/* general */
div#modal-window h1,
div#modal-window h2,
div#modal-window h4,
div#modal-window h5,
div#modal-window h6 { text-align: center; margin-bottom: 5px; }

/* overlay */
divnic#overlay {
    position: absolute;
    background: #000;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    filter: alpha(opacity=50);
    opacity: .5;
    z-index: 500;
    cursor: pointer;
}

div#overlay.hide { display: none; }

/* modal window */
div#modal-window {
    font-family: vlastnifont;
    background-color: rgba(0, 0, 0, 0.8);
    border: 4px #595436 solid;
    border-radius: 25px;
    position: absolute;
    top: 40%;
    left: 50%;
    z-index: 1000;
    //background: #fefefe;
    padding: 10px 20px;
    box-shadow: 0 0 10px #333;
    -webkit-transition: top .4s ease-in-out;
    -moz-transition: top .4s linear;
    -o-transition: top .4s linear;
    -ms-transition: top .4s ease-out;
    transition: top .4s linear;
    width: 500px;
    ///border: 8px solid #333;
    color: #fff;
}

div#modal-window.hide { top: -1000px; display: block; }

/* close button */
div#modal-window .button {

    background-image: url('../obrazky/close.png');
    background-color: #ffffff;
    background-size: 60% 60%; 
    background-repeat: no-repeat;
    background-position: 50% 50%;
    padding: 5px;
    margin: 5px;
    width: 80px;
    height: 80px;
    //top: 40%;
    left: 40%;
    border: 4px #595436 solid;
    border-radius: 50% 50%;
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 1);
    transform: scale(1);
    animation: pulse 2s infinite;

    //float: right;
    //margin: 3px 0;
    //cursor: pointer;
    //text-decoration: none;
    //font-size: 13px;
    //padding: 4px 10px 4px;
    //color: #333333;
    //text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
    //background-color: #ffffff;
    //background-image: -ms-linear-gradient(top, #ffffff, #e6e6e6);
    //background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));
    //background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
    //background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
    //background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
    //border: 1px solid #cccccc;
    //border-color: #e6e6e6 #e6e6e6 #e6e6e6;
    //border-bottom-color: #e6e6e6;
    //-webkit-border-radius: 4px;
    //-moz-border-radius: 4px;
    //border-radius: 4px;
    //filter: progid:dximagetransform.microsoft.gradient(startColorstr='#ffffff', endColorstr='#e6e6e6', GradientType=0);
    //filter: progid:dximagetransform.microsoft.gradient(enabled=false);
    //-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
    //-moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
    //box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
}

#close {
  background-image: url('./obrazky/close.png');
  background-color: #ffffff;
  background-size: 60% 60%; 
  background-repeat: no-repeat;
  background-position: 50% 50%;
  padding: 5px;
  margin: 5px;
  width: 80px;
  height: 80px;
  //top: 40%;
  //left: 54%;
  border: 4px #A38B30 solid;
  border-radius: 50% 50%;
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 1);
  transform: scale(1);
  animation: pulse 2s infinite;
}

@media screen and (max-width: 960px) {
    div#modal-window { width: 90%; }
    div#modal-window .button { position: absolute; top: 10px; right: 10px; }
}
