html { height:100%; }
html *
{
   font-size: 15px;
/*   color: #3c4856;
*/   font-family: Roboto,Open Sans,Helvetica Neue,sans-serif !important;
   font-family1: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"  !important;
   font-weight: 400;
   line-height1: 18px;
}
body {
    background-color: #f3f8ff;
    min-height:100%; padding:0; margin:0; position:relative;
}
b {
    font-weight: bold;
}
#rasklad {
    margin-top:35px;
    margin-bottom:25px;
    position:relative;
    border:0px solid black;
}
div.runaDiv {
    border: 1px solid grey;
    border-radius: 20px;
    position:absolute;
    width:100px;
    height:150px;
    background-color: #e5e6e6; /*#C4C6C6*/
}
div.runaDivBig {
    position:absolute;
    width:400px;
    height:600px;
    background-color: #e5e6e6; /*#C4C6C6*/
}
div.rimg {
    margin: 0 auto;
    width:100px;
    height:150px;
    font-size:90px;
    line-height: 140px;
    color:white;
}
div.taroDiv {
    border: 0px solid grey;
    border-radius: 5px;
    position:absolute;
    width:90px;
    height:140px;
}    
div.timg {
    margin: 0 auto;
    width:100px;
    height:140px;
    font-size:40px;
    line-height: 140px;
    text-shadow:  0px 0px 4px grey;
}
div.timgBg {
    position:absolute;
    left:70px;
    top:-12px;
    width:25px;
    max-width:25px;
    max-height:25px;
    font-size:25px;
    line-height: 25px;
    border-radius: 15px;
    font-size:15px;
    color:white;
    z-index: 10;
    opacity:0.7;
}
div.rimgBg {
    position:absolute;
    left:86px;
    top:-5px;
    width:25px;
    max-width:25px;
    max-height:25px;
    font-size:25px;
    line-height: 25px;
    border-radius: 15px;
    font-size:15px;
    color:white;
    z-index: 10;
    opacity:0.7;
}
div.cardName {
   font-size: 70%;
   margin-top: -14px !important;
   z-index: 1;
   position:absolute;
   text-align: center;
/*   width: 100px;*/
/*   text-shadow: 1px 0px 0px white,
		1px 1px 0px white,
		0px 1px 0px white,
		-1px 0px 0px white,
		-1px -1px 0px white,
		0px -1px 0px white;*/
   background-color: white;
   width: max-content;
   left: 50%;
   -webkit-transform: translate(-50%, 0);
   padding-left: 2px;
   padding-right: 2px;
   border-radius: 10%;
}
div.runaName {
   font-size: 70%;
   margin-top: -18px;
   z-index: 11;
   position:absolute;
   text-align: center;
   background-color: white;
   width: max-content;
   left: 50%;
   -webkit-transform: translate(-50%, 0);
   padding-left: 2px;
   padding-right: 2px;
   border-radius: 10%;

}
div.runaNameSmall {
   font-size: 100%;
   left: 480px;
   top: -10px;
   z-index: 11;
   position:absolute;
   text-align: center;
   width: 100px;
   text-shadow: 1px 0px 0px white,
		1px 1px 0px white,
		0px 1px 0px white,
		-1px 0px 0px white,
		-1px -1px 0px white,
		0px -1px 0px white;
}
div.context {
   font-size: 70%;
   margin-top: 5px !important;
   z-index: 10;
   position:absolute;
   text-align: center;
/*   width: 100px;*/
/*   text-shadow: 2px 2px 2px #C2C2C2;*/
   background-color: white;
   width: -webkit-fit-content;
   width: -moz-fit-content;
/*   min-width: 80px;
   max-width: 100px;
   flex-basis: auto;
   flex-grow: 1;*/
   left: 50%;
   -webkit-transform: translate(-50%, 0);
   padding-left: 2px;
   padding-right: 2px;
   border-radius: 10%;
}
div.contextBg {
   display: none;
   font-size: 70%;
   margin-top: 5px;
   z-index: 9;
   position:absolute;
   text-align: center;
   width: 100px;
   -webkit-text-fill-color: black;
   -webkit-text-stroke-color: white;
   -webkit-text-stroke-width: 3px; 
}
img.runa {
    cursor: pointer;
    max-height:110px;
    max-width: 80px;
    margin-bottom:8px;
}
img.taro {
    cursor: pointer;
    max-height:140px;
    max-width: 100px;
    margin-top:0px;
    padding:1px;
    border:1px solid #C2C2C2;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
}
.taroDiv:hover, .runaDiv:hover {
  animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000px;
}

@keyframes 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);
  }
}
img.mirror {
    -moz-transform: scale(-1, 1);
    -webkit-transform: scale(-1, 1);
    -o-transform: scale(-1, 1);
    -ms-transform: scale(-1, 1);
    transform: scale(-1, 1);
}
img.flip {
    -moz-transform: rotate(180deg);
    -webkit-transform: rotate(180deg);
    -o-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
/*    transform: scale(1, -1); */
	transform: rotate(180deg)
}
select.taro {
    width: 120px;
}
h2 {
	font-size:28px;
	line-height:1.2em;
	font-weight:normal;
	color:#3c4856;
	margin-top:13px !important;
	margin-bottom:5px;
}
h2.search {
	margin-top:10px;
	margin-bottom:22px;
}
h2 span {
	color:#009afa;
	font-size:28px;
	}
/*----- tables -----*/
div.table-title {
  text-rendering: optimizeLegibility;
   display: block;
  margin: auto;
/*  max-width: 600px;
*/  padding:0px;
  width: 900px;
}

/*** Table Styles **/

.table-fill {
  background: white;
  border-radius:7px;
  border-collapse: collapse;
/*  height: 320px;
*/  margin: auto;
/*  max-width: 600px;
*/  padding:0px;
  width: 100%;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  animation: float 5s infinite;
}

.table-fill th {
  color:#ffffff;
/*  background:#6c7ae0;
*/  background:#297dce;
  font-size:18px;
  font-weight: 400;
  padding:12px;
  text-align:left;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  vertical-align:middle;
}

.table-fill th:first-child {
  border-top-left-radius:7px;
}
 
.table-fill th:last-child {
  border-top-right-radius:7px;
  border-right:none;
}

.table-fill tr {
  border-top: 1px solid #C1C3D1;
  border-bottom: 1px solid #f2f2f2;
  color:#666666;
  font-size:14px;
  font-weight:normal;
  text-shadow: 0 1px 1px rgba(256, 256, 256, 0.1);
}
 
.table-fill tr:hover td {
  background:#ececff;/*#4E5066*/
  cursor: pointer;
  color:#666666;
}
 
.table-fill tr:first-child {
  border-top:none;
}

.table-fill tr:last-child {
  border-bottom:none;
}
 
.table-fill tr:last-child td:first-child {
  border-bottom-left-radius:7px;
}
 
.table-fill tr:last-child td:last-child {
  border-bottom-right-radius:7px;
}

.table-fill td {
  color:#666666;
  font-size:14px;
  background:#FFFFFF;
  padding:14px;
  text-align:left;
  vertical-align:middle;
  font-weight:400;
/*  text-shadow: -1px -1px 1px rgba(0, 0, 0, 0.1);
*/
}

.table-fill td:last-child {
  border-right: 0px;
}

.table-fill th.text-left {
  text-align: left;
}

.table-fill th.text-center {
  text-align: center;
}

.table-fill th.text-right {
  text-align: right;
}

.table-fill td.text-left {
  text-align: left;
}

.table-fill td.text-center {
  text-align: center;
}

.table-fill td.text-right {
  text-align: right;
}

.atd {
/*	color:#0056b3;
*/	color:#337ab7;
	text-decoration: none;
	margin: 0px;
	transition: all 0.4s;
	-webkit-transition: all 0.4s;
  -o-transition: all 0.4s;
  -moz-transition: all 0.4s;
}

.atd:focus {
	outline: none !important;
}

.atd:hover {
/*	color:#0056b3;
*/	color:#337ab7;
	text-decoration: none;
}
/*==========================================*/

td {
  padding-bottom:4px;
}

.manara {
  color: #fb3569;
}

/*** footer ***/
body::after {
  content: '';
  display: block;
  height: 20px;
}

footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 20px;
  font-size:11px;
  vertical-align:middle;
  display: table-cell;
}
/*** увеличение по клику на картинке ***/
/* увеличенная картинка */
#magnify {
  display: none;
 
  /* position: absolute; upd: 24.10.2016 */
  position: fixed;
  max-width: 600px;
  height: auto;
  z-index: 9999;
}
 
#magnify img {
  width: 100%;
}
 
/* затемняющий фон */
#overlay {
  display: none;
 
  background: #000;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  opacity: 0.5;
  z-index: 9990;
}
 
/* кнопка закрытия */
#close-popup {
  width: 30px;
  height: 30px;
 
  background: #FFFFFF;
  border: 1px solid #AFAFAF;
  border-radius: 15px;
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 15px;
}
 
#close-popup i {
  width: 30px;
  height: 30px;
  background: url(https://codernote.ru/files/cross.png) no-repeat center center;
  background-size: 16px 16px;
  display: block;
}
 
@keyframes rota {
 25% { transform: rotate(360deg); }
}
 
#close-popup:hover {
  animation: rota 4s infinite normal;
  -webkit-animation-iteration-count: 1;
  animation-iteration-count: 1;
}
/*--------------------*/

.form-button {
	padding: .4em .7em;
    border: 0;
    border-radius: .1875em;
    background-color: #3085d6;
    box-shadow: none;
    color: #fff;
    font-size: 1.125em;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
	min-width: 44px;
	margin-left: 4px;
	margin-right: 4px;
}
.form-button:hover {
    background-color: #297dce; }
  .form-button:focus {
    outline: none;
    box-shadow: 0 0 0 0.125em #f2f4f6, 0 0 0 0.25em #a7adb2; }
  .form-button::-moz-focus-inner {
    border: 0; }
  .form-button:active {
    background-color: #236bb0; }
.btn-del {
	background: #d33 url('../img/icn-trash.png') no-repeat center;
}
.btn-save {
	background: #218838 url('../img/icn-save.png') no-repeat center;
}
.btn-new {
	background: #297dce url('../img/icn-new.png') no-repeat center;
}
.btn-show {
	background: #297dce url('../img/icn-show.png') no-repeat center;
}
.btn-help {
	background: #DD8033 url('../img/icn-help.png') no-repeat center;
}
.btn-export {
	background: #297dce url('../img/icn-export.png') no-repeat center;
}
.btn-jpg {
	background: #297dce url('../img/icn-jpg.png') no-repeat center;
}
.btn-pdf {
	background: #297dce url('../img/icn-pdf.png') no-repeat center;
}
.btn-search {
	background: #297dce url('../img/icn-search.png') no-repeat center;
}
.btn-send {
	background: #297dce url('../img/icn-send.png') no-repeat center;
}
.btn-plus {
	background: #218838 url('../img/icn-plus.png') no-repeat center;
}