/* (A) FONT */
html, body { font-family: arial, sans-serif; }

.mainPage {
  width: 800px;
  margin: auto;
}

#calPeriod input, #calPeriod select {
  padding: 10px;
  font-size: 1.1em;
  border: 0;
  outline: none;
  cursor: pointer;
}
#calmonth { width: 180px; }
#calyear { width: 100px; text-align: center; }

/* (C) CALENDAR */
#calwrap {
  display: flex;
  flex-wrap: wrap;
}
.calsq {
  box-sizing: border-box;
  width: 14.28%;
  padding: 5px;
}
.calsq.head {
  color: #fff;
  background: #5250da;
  font-weight: bold;
  text-align: center;
}
.calsq.blank, .calsq.day {
  height: 80px;
  overflow-y: auto;
  border: 1px solid #eee;
}
.calsq.blank { background: #f2f2f2; }
.calnum { color: #888; }
.calevt {
  height: 20px;
  font-size: 0.8em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calevt[data-status="0"] {
  background:
    repeating-linear-gradient(45deg, rgba(0,0,0,0.2) 2px, transparent 2px, transparent 4px),
    #888888 !important;
}

.calninja { display: none; }

/* (D) EVENT FORM */
#calblock {
  position: fixed;
  top: 0; left: 0;
  z-index: 998;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  transition: opacity 0.2s;
  opacity: 0;
  visibility: hidden;
}
#calblock.show {
  opacity: 1;
  visibility: visible;
}
#calform {
  z-index: 999;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  min-width: 320px;
  max-width: 400px;
  background: #fafafa;
  border: 1px solid #ccc;
  padding: 10px;
  width: 320px;
}
#calform label, #calform input, #calform textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 5px;
  resize: none;
}
#calform label { margin-top: 10px; }
#calformsave, #calformdel, #calformcx {
  border: 0;
  color: #fff;
  cursor: pointer;
  padding: 10px 0 !important;
  margin-top: 10px;
}
#calformsave { background: #5250da; }
#calformdel, #calformcx { background: #a22a2a; }

#login,#signup{
width: 400px; border: 1px solid #d6d7da;
padding: 0px 15px 15px 15px;
border-radius: 5px;font-family: arial;
line-height: 18px;color: #333333; font-size: 18px;
background: #ffffff;rgba(200,200,200,0.7) 0 4px 10px -1px;
opacity: 10;
}

#login{float:right;}
/*#signup{float:right;}*/

h3{color:#365D98}
form label{font-weight: bold;}
form label, form input{display: block;margin-bottom: 5px;width: 90%}
form input{
border: solid 1px #666666;padding: 10px;
border: solid 1px #BDC7D8; margin-bottom: 10px
}
.button {
background-color: #5fcf80 ;
border-color: #3ac162;
font-weight: bold;
padding: 10px 12px;
max-width: 100px;
color: #ffffff;
}

.bt_menu{
width: 180px;    
}

.errorMsg{color: #cc0000;margin-bottom: 10px}

#container{width: 700px}
#login,#signup,#wokno{width: 400px; border: 1px solid #d6d7da; padding: 0px 15px 15px 15px; border-radius: 5px;font-family: arial; line-height: 18px;color: #333333; font-size: 18px; background: #ffffff; rgba(200,200,200,0.7) 0 4px 10px -1px}

#login{transform: translate(-50%, -50%);  
       position: fixed; 
       top: 50%; 
       left: 50%;
       display: block;
      }

#signup{transform: translate(-50%, -42%);  
       position: fixed; 
       top: 50%; 
       left: 50%; 
       display: none;
      }

#wokno{transform: translate(-50%, -40%);  
       line-height: 22px;
       width: 600px;
       position: fixed; 
       top: 50%; 
       left: 50%; 
       display: none;
      }

#x {
    position: relative;
    float: right;
    background: red;
	color: white;
    top: 5px;
    right: -5px;
    padding: 5px 10px;
}


h3{color:#365D98} 
form label{font-weight: bold;}
form label, form input{display: block;margin-bottom: 5px;width: 90%}
form input{ border: solid 1px #666666;padding: 5px;border: solid 1px #BDC7D8; margin-bottom: 10px}
.button {
    background-color: #5fcf80 !important;
    border-color: #3ac162 !important;
    font-weight: bold;
    padding: 12px 15px;
    max-width: 100px;
    color: #ffffff;
}

.slideshow {
  list-style-type: none;
}

/** SLIDESHOW **/
.slideshow,
.slideshow:after { 
    top: -16px; /*Not sure why I needed this fix*/
		position: fixed;
    width: 100%;
    height: 100%;
    left: 0px;
    z-index: -1; 
}

.slideshow li span { 
		position: absolute;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    color: transparent;
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: -1;
    animation: imageAnimation 30s linear infinite 0s; 
}



.slideshow li:nth-child(1) span { 
    background-image: url("https://www.caimani.cz/img/01_web2.jpg"); 
}
.slideshow li:nth-child(2) span { 
    background-image: url("https://www.caimani.cz/img/02_web2.jpg");
    animation-delay: 6s; 
}
.slideshow li:nth-child(3) span { 
    background-image: url("https://www.caimani.cz/img/03_web2.jpg");
    animation-delay: 12s; 
}
.slideshow li:nth-child(4) span { 
    background-image: url("https://www.caimani.cz/img/04_web2.jpg");   
    animation-delay: 18s; 
}
.slideshow li:nth-child(5) span { 
    background-image: url("https://www.caimani.cz/img/05_web2.jpg");
    animation-delay: 24s; 
}



@keyframes imageAnimation { 
    0% { opacity: 0; animation-timing-function: ease-in; }
    8% { opacity: 1; animation-timing-function: ease-out; }
    17% { opacity: 1 }
    25% { opacity: 0 }
    100% { opacity: 0 }
}


@keyframes titleAnimation { 
    0% { opacity: 0 }
    8% { opacity: 1 }
    17% { opacity: 1 }
    19% { opacity: 0 }
    100% { opacity: 0 }
}


.no-cssanimations .cb-slideshow li span {
	opacity: 1;
}

button {
  background-color: #4CAF50; /* Green */
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
}

.bubble {
	//height: 100px;
	width: 30%;
	min-width: 200px;
	background: white;
	display: block;
	margin: 0 auto;
	border-radius: 20px;
	margin-top: 20px;
//	margin-right: 30px;
        font-size: 15px;
	text-align: center;
//        float: right;
}

.pointer {
	height: 40px;
	width: 40px;
	background: ivory;
	margin: 0 auto;
	transform: rotate(45deg);
	border-radius: 0 0 12px 0;
	margin-top: -22px;
	position: relative;
	left: calc(0.5vw - 50px);
}

table.t1{
    font-family: arial, sans-serif;
    border-collapse: collapse;
    width: 100%;
}

th.t1{
    border: 2px solid #FFFFFF;
    background-color: #5050FF;
    color: #FFFFFF;
    text-align: center;
    padding: 8px;
}

td.t1{
    border: 1px solid #dddddd;
    text-align: center;
    padding: 8px;
}

tr.t1:nth-child(even) {
    background-color: #dddddd;
}