/*reset*/
* {border:0; padding:0; margin:0; outline: 0; box-sizing: border-box;/* width = border+padding+content */}

/* all */
.flLeft {float:left;}
.flRight {float:right;}
.red, .err {color:#B50012;}
.green, .info {color:#693;}
.err, .info {margin:10px 0;}
.bold {font-weight:bold;}
.right {text-align:right;}
.center {text-align:center;}
.left {text-align:left;}
.none {display:none;}
.pointer {cursor:pointer;}
.top {vertical-align:top;}
.uppercase {text-transform:uppercase;}
.nowrap {white-space:nowrap;}

html {font-size:100%; line-height:1.7;}
body {font-family:'Trebuchet MS', Arial, sans-serif; font-size:0.87em; background:#FFF;
    color:#5F5F5F; overflow:auto; /*cursor:default;*/ text-align:center;
    -webkit-tap-highlight-color: rgba(0,0,0,0);}
.maxWebWidth {max-width:1100px; margin:0px auto; padding:0 10px;}
p {padding:4px 0px;}
p.indent, .indent {text-indent:2em;}
a {color:#5F5F5F;}
a:hover, a.act {color:#AFAFAF;}
a.aimg:hover {color:#5F5F5F; opacity:0.5;}
a {-webkit-transition:color 0.4s, opacity 0.4s, background 0.4s; transition:color 0.4s, opacity 0.4s, background 0.4s;}

.fullwidth {width:100%;}

h1 {font-size:2em; margin:15px 0 30px 0; font-weight:normal; text-align:left;}
  h1 span {font-size:80%;}
h2 {font-size:1.5em; margin:15px 0 7px 0; font-weight:normal;}
h3 {font-size:1.3em; margin:7px 0; font-weight:normal;}
ul {margin-left:1.5em;}

ul.list {list-style-type:none; list-style-image:url('/images/icons/list.svg');}
ul.listf {list-style-type:none; list-style-image:url('/images/icons/listf.svg');}

/* header ----------------------------------------------------------------------------------------------*/
.links {text-align:right; list-style-type:none; font-size:110%; line-height:0; margin:7px 0;}
.links li {display:inline-block;}
.links li:nth-child(3) {border-left:solid #9F9F9F 1px; padding:0 2px 0 5px; margin:0 5px 0 3px;}
/*.links li:nth-child(n+3) {border-left:solid #9F9F9F 1px; padding-left:5px; margin-left:5px; border-right:solid #9F9F9F 1px; padding-right:6px; margin-right:6px;}*/
.links li a {text-decoration:none; display:block; padding:0 2px; margin:0 2px;}
#logo {width:100%; max-width:270px; height:auto;}
.shBl {display:none; line-height:1; padding:6px 0 3px;} 
.menuBox {border-bottom:solid #9F9F9F 1px;}
#mainMenu {text-align:right; list-style-type:none; line-height:1;}
#mainMenu li {display:inline-block;}
#mainMenu li a {text-decoration:none; display:block; padding:0.5em 5px; margin-left:10px; 
  background:#FFF; position:relative; top:1em;}

/* footer ----------------------------------------------------------------------------------------------*/
#footer {margin-bottom:70px;}
#footer .maxWebWidth {text-align:right; font-size:90%; border-top:solid #9F9F9F 1px; }
#footer a {text-decoration:none;}
#footer span.wd {padding:2px 1px 0px 24px; background:url('/images/webdesign.svg') no-repeat center left;}

/* kontakt ----------------------------------------------------------------------------------------------*/
.lem {background:url('/images/lem.jpg') no-repeat right bottom; padding-bottom:280px;}
.contactInfo {margin-top:40px;}
.contactInfo a.email {text-decoration:none; padding-left:26px; background:url('/images/email.svg') no-repeat left center;}
.contactInfo p {line-height:1.0; margin:5px 0 0 5px;}
.contactInfo p a {display:inline-block; margin-right:7px;}
.contactInfo p a:last-child img {position:relative; top:5px;}

/* o mne ----------------------------------------------------------------------------------------------*/
.aboutDesc, .aboutPhoto {width:50%; margin-bottom:50px;}
.aboutDesc {float:right; padding-left:25px; text-align:left;}
.aboutDesc p {width:100%; max-width:450px;}
.aboutPhoto {float:left; padding-right:25px; text-align:right;}
.aboutPhoto img {width:100%; max-width:300px; height:auto; border:solid #9F9F9F 1px;}

/* portfolio ----------------------------------------------------------------------------------------------*/
.portfolio {text-align:left; clear:left;} 
.portfolio div {width:23%; margin:10px 1%; display:inline-block; text-align:center; float:left;}
.portfolio div:nth-child(4n+1) {clear:left;}
.portfolio div img {width:100%; height:auto; border:dotted #CFCFCF 1px; box-shadow:1px 1px 2px #DFDFDF;}
.portfolio div h3 {font-size:1.4em; font-weight:normal; font-style:italic; line-height:1.2;}

/* projects ----------------------------------------------------------------------------------------------*/
.project {text-align:left; margin-bottom:15px; border:dotted #9F9F9F 1px; padding:7px; float:left; width:100%;}
.project h3 {font-size:1.4em; margin:0; padding:0 10px; font-weight:normal; font-style:italic;}
.project img {border:dotted #CFCFCF 1px; box-shadow:1px 1px 2px #DFDFDF;}
.project div.desc {float:left; width:25%; margin-right:1%; max-width:300px; text-align:center; display:inline-block;}
.project div.desc img {width:100%;}
.project div.projectBox {float:right; width:74%; padding:0 5px;}
.project div.projectBox div {line-height:1.4; width:23%; max-width:200px; margin:0 1%; text-align:center; float:left;}
.project div.projectBox div:nth-child(4n+1) {clear:left;}
.project div.projectBox div img {width:100%;}
.project div.projectBox div p {font-size:90%;}
.project p.more {text-align:left;}

/* modal-thumb ----------------------------------------------------------------------------------------------*/
a.mod {cursor:pointer;}
img.imgModal {visibility:hidden; position:absolute; top:0; left:0; overflow:hidden; cursor:pointer; border:solid #9F9F9F 1px; z-index:1000;} 
a.noModal {cursor:default;}
#overlay {display:none; position:fixed; overflow:hidden; top:0; left:0; width:100%; height:100%; 
  z-index:500; text-align:left; background:#FFF; opacity:0.5; filter:alpha(opacity = 50);}

/* TOP */
#back-top img {position:fixed; bottom:30px; right:30px; opacity:0.5; z-index:1100;}

/* LOADER */
#loader {display:none; position:absolute; border: 9px solid #F3F3F3; border-top: 9px solid #5F5F5F;
  border-radius: 50%; width: 50px; height: 50px; animation: spin 2s linear infinite;; z-index:600;}
  @keyframes spin {
      0% {transform: rotate(0deg);}
      100% {transform: rotate(360deg);}
  }

/* errordocument ----------------------------------------------------------------------------------------------*/
.errordocument {width:100%; max-width:800px; text-align:left; margin:0px auto; padding:0 10px;}
.errordocument ul {margin:3px 0 3px 25px; list-style-type:none; list-style-image:url('/images/icons/list.svg');}
.errordocument img {float:right; margin:15px 0 20px 0; width:90%; max-width:200px;}

/* paginate ----------------------------------------------------------------------------------------------------*/
.paginate {margin:7px 0;}
.paginate a, .paginate span {font-size:85%; text-decoration:none; display:inline-block; line-height:1; border-radius:50%; width:1.8em; padding:0.4em 0; text-align:center;}
.paginate a:not(.bnn):hover {background:#E0E0E0; color:#5F5F5F;}
.paginate span {border-radius:50%; background:#6F6F6F; color:#FFF;}


/* RWD ================================================================================================================================= */
@media screen and (max-width:768px) {
  /* o mne */
  .aboutDesc {width:60%; padding-left:10px;}
  .aboutPhoto {width:40%; padding-right:10px;}
  /* portfolio */
  .portfolio div {width:31%; }
  .portfolio div:nth-child(4n+1) {clear:none;}
  .portfolio div:nth-child(3n+1) {clear:left;}
  /* project */
  .project div.desc {width:33%;}
  .project div.projectBox {width:66%;}
  .project div.projectBox div {width:31%;}
  .project div.projectBox div:nth-child(4n+1) {clear:none;}
  .project div.projectBox div:nth-child(3n+1) {clear:left;}
  
}
@media screen and (max-width:480px) {
  /* header */
  .links {margin-bottom:15px;}
  .menuBox {border-bottom:dotted #CFCFCF 1px;}
  .shBl {display:block; background:#F7F7F7; margin-top:10px; border-top:dotted #CFCFCF 1px;}
  #mainMenu {display:none; text-align:center;}
  #mainMenu li {display:block; border-top:dotted #CFCFCF 1px;}
  #mainMenu li a {position:static; top:0; margin:0; display:inline-block; padding:10px 0;}
  h1 {text-align:center;}
  /* o mne */
  .aboutDesc, .aboutPhoto {float:none;}
  .aboutDesc {width:100%; padding-left:10px;}
  .aboutPhoto {width:100%; padding-right:10px;}
  /* portfolio */
  .portfolio div {width:48%; }
  .portfolio div:nth-child(3n+1) {clear:none;}
  .portfolio div:nth-child(2n+1) {clear:left;}
  /* project */
  .project {text-align:center;}
  .project div.desc {width:100%; max-width:230px; float:none;}
  .project div.projectBox {width:100%; float:none;}
  .project p.more {clear:both;}
}
@media screen and (max-width:320px) {
  /* portfolio */
  .portfolio {text-align:center;}
  .portfolio div {width:100%; max-width:250px; float:none;}
  .portfolio div:nth-child(3n+1) {clear:none;}
  .portfolio div:nth-child(2n+1) {clear:none;}
  /* project */
  .project div.projectBox div {width:48%;}
  .project div.projectBox div:nth-child(3n+1) {clear:none;}
  .project div.projectBox div:nth-child(2n+1) {clear:left;}
}
