body {
    background: white;
    color: #000;
    font-family: Arial, sans-serif;
    font-size: 15px;
}

#container {
    font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
    font-size: 15px;
    background: white;
    margin: auto auto;
    width: 93%;
    height: 500px;
}
.content a {
    text-decoration: none;
    color: #29aafe;
}
.content a:visited {
    color: #29aafe;
 }
.content a:hover {
    color: #2488d0;
    text-decoration: underline;
}

#header-block {
    float: left;
    width: 100%;
}
ul.account {
	margin-top: 14px;
    padding: 4px;
    color: #29aafe;
    font-size: 16px;
    float: right;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0);
    display: inline;
}
ul.account:hover > li.dropdown > ul.dropdown-menu {
    display: block;
}
ul.account:hover {
    background-color: #ffe;
    border: 1px solid #fc8;
    cursor: pointer;
}
li.dropdown {
    float: left;
    position: relative;
    cursor: pointer;
}
ul.dropdown-menu {
    border-radius: 6px;
    background-color: #ffe;
    border: 1px solid #fc8;
    position: absolute;
    left: -4px;
    top: 28px;
    z-index: 1000;
    text-align: left;
    list-style: none;
    background-clip: padding-box;
    box-shadow: 0 6px 12px rgba(0,0,0,.175);
    display: none;
}
ul.dropdown-menu li {
    padding: 4px 12px 4px 12px;
    font-size: 16px;
}
.account a {
    text-decoration: none;
    color: #29aafe;
}
.account a:hover {
    color: #298afe;
}

#menu-block {
    background: white;
    float: left;
    text-align: center;
    font-size: 16px;
    width: 100%;
}
ul {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
}
ul:after {
    display: block;
    content: ' ';
    clear: both;
    float: none;
}
ul.topmenu {
    width: 100%;
    display: table;
}
ul.topmenu > li {
    display: table-cell;
    position: relative;
}
ul.topmenu > li > a {
    display: block;
    padding: 2px;
    color: white;
    background-color: #29aafe;
    text-decoration: none;
}
ul.topmenu > li > a:hover {
    text-decoration: none;
    color: #e0e0e0;
}
ul.submenu {
    display: none;
    position: absolute;
    top: 26px;
    left: 0;
    text-align: left;
    background-color: white;
}
ul.submenu > li {
    display: block;
}
ul.submenu > li > a {
    display: block;
    padding: 3px;
    color: white;
    background-color: #29aafe;
    text-decoration: none;
}
ul.submenu > li > a:hover {
    color: #e0e0e0;
}
ul.topmenu > li:hover > ul.submenu {
    display: block;
}

#profile-block {
    color: #666;
    background: #fff;
    margin-top: 5px;
	min-height: 400px;
    width: 100%;
    float: left;
	text-align: center;
}
.prof-page {
	float: left;
	width: 99%;
	margin: 3px;
	padding-bottom: 6px;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.15);
	background: #f8f8ff;
}

#device-block {
    float: left;
    color: #666;
    background: #fff;
    margin-top: 5px;
    min-height: 400px;
    width: 100%;
    text-align: center;
}
.room {
    background: #ffffcc;
    border: 1px solid #a86;
    margin: 2px;
    padding: 1px;
    border-radius: 6px;
    float: left;
    text-align: center;
}
.room-top {
    width: 95%;
    font-size: 15px;
    text-align: center;
}
.room-item {
    //display: grid;
    //grid-template-columns: repeat(auto-fit, minmax(240px, 2fr));
    //grid-template-rows: repeat(1, minmax(120px, 1fr));
}
.device-item {
    background: wait;
    margin: 1px;
    padding: 6px;
    border: 1px solid #a86;
    border-radius: 5px;
    float: left;
    text-align: left;
    max-width: 300px;
    max-height: 200px;
}
.device-text {
	margin-left: 74px;
	min-width: 160px;
	min-height: 80px;
}
.device-img {
    float: right;
    margin: 3px 3px 3px 0;
}
.cap-line {
	float: left;
}
.cap-img {
    cursor: pointer;
	margin-bottom: -3px;
}

#login-page {
    font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
    font-size: 15px;
    background-color:#e5e7ed;
    width: 90%;
    max-width: 480px;
    margin: 8% auto 5%
}
.login-block {
    margin-top: 10px;
    border: 1px solid rgba(0,0,0,0.15);
    background-color: #fff;
    padding: 40px 40px 40px 40px;
    box-shadow: 0 3px 50px 0 rgba(0,0,0,.1);
    border-radius: 5px
}
.login-block h2 {
    color: #96a2b2;
}
.login-group
{
    margin-top: 15px;
    margin-bottom: 15px;
    text-align: left;
}
.login-group .edit {
    padding-left: 5px;
    border: 1px solid #888;
    height: 38px;
    font-size: 15px;
    border-radius: 6px;
    background-color: #fff;
    margin-top: 2px;
    width: 100%;
    display: block;
}
.login-group .check {
	color: #222;
    cursor: pointer;
}
.login-group .submit {
    background-color: #29aafe;
    width: 100%;
    height: 42px;
    color: #fff;
    font-size: 18px;
    border-radius: 6px;
    border: none;
}
.login-group .submit:hover {
    background-color: #2999fe;
    cursor: pointer;
}
.login-group .submit:active {
    background-color: #2988fe;
    cursor: pointer;
}
.login-group label {
    color: #666;
}
.login-group a {
    color: #29aafe;
    float: right;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.42857143;
}
.login-group a:hover {
    color: #298afe;
}
.login-group a:visited {
    color: #29aafe;
}
.login-group .message {
	text-align: center;
    color: red;
}

.form-group
{
	clear: both;
    text-align: right;
}
.btn {
	float: right;
    border: 1px solid;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    font: normal 15px arial;
    border-radius: 4px;
    text-decoration: none;
    padding: 6px 15px;
    margin-top: 6px;
    margin-right: 6px;
}
.btn-green {
    background-color: #3dc24f;
    border-color: #37af47;
    color: #fff;    
}
.btn-green:hover {
    background-color: #37af47;
    border-color: #2e933c;    
    color: #fff;    
}
.btn-green:active {
    background-color: #398439;
    border-color: #255625;
    color: #fff;    
}
.btn-cloud {
    background-color: transparent;
    border: 1px solid #aaa;
    color: #888;    
}
.btn-cloud:hover {
	color: #666;
	background-color: #eee;
}
.btn-cloud:active {
	color: #444;
	background-color: #d8d8d8;
}
.btn-red {
    background-color: #c66;
    border: 1px solid #a66;
    color: #fff;    
}
.btn-red:hover {
    background-color: #b55;
    border: 1px solid #955;
    color: #fff;    
}
.btn-red:active {
    background-color: #a44;
    border: 1px solid #844;
    color: #fff;    
}
.btn-close {
	color: #888;
    float: right;
    font-size: 24px;
    font-weight: 700;
	text-shadow: 0 1px 0 #fff;
    padding: 0;
    margin-top: -5px;
    cursor: pointer;
    background: 0 0;
    border: 0;
    text-decoration: none;
    outline: none;
}
.btn-close:hover {
    color: #444;
    cursor: pointer;
}
.btn-close:active {
    color: #000;
    cursor: pointer;
}
.img-href {
    float: left;
    border: 1px solid #ccc;
    cursor: pointer;
    border-radius: 4px;
    padding: 1px;
    margin: 2px;
}
.img-href:hover {
    border-color: #888;
}
.img-none {
    float: left;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1px;
    margin: 2px;
}

.inp {
    border: 1px solid #aaa;
    font-size: 15px;
    border-radius: 4px;
    background-color: #fff;
    padding: 7px 5px;
    margin: 3px 5px;
}
.inp-right {
    width: 65%;
}
.inp-full {
    width: 94%;
}
.inp-short {
    width: 12%;
}
.inp-sred {
    width: 29%;
}
.lab {
    margin: 0 5px;
}
.widenum {
    border: 1px solid #aaa;
    border-radius: 3px;
    height: 16px;
    margin: 1px 3px;
    width: 60px;
}

.widestr {
    border: 1px solid #aaa;
    border-radius: 3px;
    height: 21px;
    margin: 1px 3px;
}

.box {
    display: inline-block;
    border: 1px solid #888;
    border-radius: 8px;
    width: 14px;
    height: 14px;
    margin-bottom: -3px;
    cursor: pointer;
}

.tab-cloud {
    width: 100%;
    float: left;
    background-color: transparent;
    text-align: left;
    border: 1px solid #eef;
    border-radius: 6px;
}
.th-cloud {
    text-align: center;
    background: #ddd;
    border-radius: 4px;
    padding: 6px;
}
.td-cloud {
    text-align: left;
    background: #eee;
    border-radius: 4px;
    padding: 6px;
}
.td-center {
    text-align: left;
}
.td-right {
    text-align: right;
}

.col-md {
    width: 100%;
    float: left;
}
.col-left {
    width: 100%;
    float: left;
    text-align: left;
}
.col-half {
    width: 50%;
    float: left;
}
.pad-left {
    float: left;
}
.pad-right {
    float: right;
}
.float-left {
    float: left;
    padding-left: 10px;
}

.modal-fade {
    display: block;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(102,102,102,0.5);
}
.modal-dialog {
    color: #707070;
    font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
    font-size: 15px;
    width: 482px;
    margin: 5% auto;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,.5);
    line-height: 1.42857143;
}
.modal-content {
    float: left;
    width: 100%;
    background-color: #fff;
    border: 1px solid rgba(0,0,0,.2);
    border-radius: 6px;
    box-shadow: 0 3px 9px rgba(0,0,0,.5);
    padding-bottom: 6px;
}
.modal-header {
    float: right;
    width: 96%;
    padding: 5px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}
.modal-title {
    margin: 0;
    line-height: 1.42857143;
}
.modal-body {
    float: left;
    width: 96%;
    text-align: left;
    padding: 12px;
}
.modal-footer {
    float: left;
    width: 100%;
    text-align: right;
    border-top: 1px solid #e5e5e5;
}

#blockly {
    border: 1px solid #888;
    color: #222;
    display: block;
    width: calc(100% - 14px);
    height: 360px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 8px;
    max-width: 1280px;
    max-height: 540px;
}

#line-block {
    background: #29aafe;
    padding: 0;
    height: 2px;
    margin-top: 4px;
    width: 100%;
    float: left;
}

#left-block {
    background: #fff;
    color: #29aafe;
    float: left;
    height: auto;
    box-sizing: border-box;
    width: 17%;
    padding-right: 10px;
}

#content-block {
    background: #fff;
    color: #000;
    float: left;
    height: auto;
    text-indent: 24px;
    box-sizing: border-box;
    min-height: 400px;
    width: 83%;
}

.leftimg {
    float: left;
    width: 100%;
    margin: 5px 10px 5px 0;
}
.rightimg {
    float: right;
    margin: 5px 0 5px 10px;
}
.bigimg {
    max-width: 600px;
}
.mdlimg {
    max-width: 480px;
}
.smlimg {
    max-width: 360px;
}

#clear-block {
    float: left;
    clear: both;
}
 
#footer-block {
    background: #fff;
    color: #29aafe;
    float: left;
    text-align: left;
    width: 100%; 
    font-size: 13px;
}

@media (max-width: 767px) {
	#left-block {
        width: 25%;
	}
	#content-block {
            width: 75%;
	}
	.modal-dialog {
	    width: 360px;
	}
	.col-half {
		float: left;
		width: 100%;
	}
	.td-0 {
		display: none;
	}
	.sz-1 {
	   height: 32px;
	}
}
@media (max-width: 479px) {
	#left-block {
		width: 100%;
	}
	#content-block {
		width: 100%;
	}
	.modal-dialog {
		width: 240px;
	}
	.lab {
		float: left;
	}
	.inp-right {
		width: 94%;
	}
	.td-1 {
		display: none;
	}
	.sz-1 {
	   height: 32px;
	}
}
