
/* Unopened (Nieotwarty) CSS Modal */
.modalcms {
          z-index: 500;
    display: flex;
    position: fixed;
    left: 0;
    top: -100%;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center; 
    opacity: 0;
    -webkit-transition: top 0s .5s, opacity .5s 0s;
    transition: top 0s .5s, opacity .5s 0s;
}

/* Opened CSS Modal */
.modalcms:target {   
    top: 0;
    opacity: 1;
  /*  -webkit-transition: none;
    transition: none;  */
     transition: top .4s;  /* wjazd z góry */
}

/* CSS Modal content */
.modalcms figure {
    width: 80%;
          /* max-width: 600px;   */  
       max-width: 80%;
                   height: 90%;
    position: relative;
                       margin: 5px auto;
    padding: 1.5em; 
                      overflow: auto;
    
    opacity: 0;
    background-color: white;
    -webkit-transition: opacity .5s;
    transition: opacity .5s;
}

/* Dialog modal style */
.modalcms.dialog figure {
    background: #f8f8f8;
    border-radius: 5px;
    padding-top: 10px;
}

/* Dialog modal h2 style */
.modalcms.dialog figure h2 {
    margin-top: 0;
    padding-bottom: 5px;
  /*  border-bottom: 1px solid #eee;  */
}

/* CSS Modal content when opened */
.modalcms:target figure {
    opacity: 1;
}

/* style for small x link inside dialog modal 
Przycisk wyBczajcy modal, z krzy|ykiem wewntrz */
.modalcms.dialog .smallclose {
    position: absolute;
    right: 8px;
    top: 8px;
    font-size: 56px;
    color: blue;
    line-height: 40px;
     text-decoration: none;
         border: 1px solid;
         border-radius: 3px;
    padding: 0 10px 4px 10px;
    background: #f8f8f8;
               z-index: 2;
}

/* veil that covers page when CSS Modal is open */
.modalcms .veil {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    position: fixed;
    background-color: rgba(0,0,0,.7);
    content: "";
    cursor: default;
    visibility: hidden;
    -webkit-transition: all .5s;
    transition: all .5s;
}

/* big "x" at the upper right corner inside veil */
.modalcms .veil::before, .modalcms .veil::after {
    content: "";
    display: block;
    position: fixed;
    width: 50px;
    height: 6;
    background: white;
    top: 50%;
    cursor: pointer;
    text-indent: -1000px;
    z-index: 10;
    top: 30px;
    right: 5px;
    -webkit-transform: rotate(0);
    transform: rotate(0);
    -webkit-transition: all .5s;
    transition: all .5s;
}

/* veil style when CSS Modal is open */
.modalcms:target .veil {
    visibility: visible;
}

/* animate veil "x"  when CSS Modal is open */
.modalcms:target .veil::before, .modalcms:target .veil::after {
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

.modalcms:target .veil::after {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}


.c {
  margin: auto;
         /* max-width: 600px;    */
  max-width: 100%;  
 /* text-align: center; */
}

.p {
  font-size: .9em;
  padding-top: 140px;
}

.formbox {
width: 100%; margin-top: 20px; padding: 15px 12px; border: #ccc 1px solid; border-radius: 5px; background: #fafafa;
}
.pryciskibox {
   width: 97%; display: flex; justify-content: end;
}







