html, body { height: auto; min-height: 100%; background: #fff; }
html { overflow: auto; font-size: 16px; font-family: "Roboto", sans-serif; height: 100%; }
body { font-size: 1rem; margin: 0; padding-bottom: 3rem; box-sizing: border-box; }

.clear { clear: both; }
.clearfix::after { content: ""; display: table; clear: both; }

img { border: 0; }

/* Input */
input[type="text"],
input[type="email"] { border: 1px solid rgb(238, 238, 238); padding: 8px; box-sizing: border-box; }
.distance-unit { position: absolute; top: 8px; right: 10px; }

/* Material design overrides */
md-checkbox.md-default-theme ._md-icon,
md-checkbox ._md-icon { border-color: rgba(0,0,0,0.2); }
md-input-container { padding: 0; }
md-input-container,
md-select { border: 1px solid rgb(238, 238, 238); display: inline-block; }
md-input-container .md-errors-spacer { min-height: auto; min-width: auto; }
md-input-container .md-input[disabled] { background: rgb(238, 238, 238); }
md-input-container label { font-weight: normal !important; }

md-dialog { max-width: 800px; }

ix-counter { display: inline-block; }
ix-counter .ix-counter-wrapper { padding: 1px; background: #D4CDC7; color: #D4CDC7; font-weight: 500; }
ix-counter .ix-counter-wrapper.positive { background: #9EC73D; }
ix-counter .ix-counter-wrapper * { vertical-align: middle; }
ix-counter .ix-counter-wrapper span { color: #9B8C7C; text-decoration: none; }
ix-counter .ix-counter-wrapper .ix-counter-action { display: inline-block; cursor: pointer; width: 1.4rem; height: 1.4rem; text-align: center; background: #fff; padding: 0; }
ix-counter .ix-counter-wrapper.positive .ix-counter-action { color: #9EC73D; }
ix-counter .ix-counter-wrapper .ix-counter-decrement { margin-right: 8px; }
ix-counter .ix-counter-wrapper .ix-counter-increment { margin-left: 8px; }

.ix-show-invalid md-autocomplete.ix-invalid,
.ix-show-invalid md-input-container.ix-invalid,
.ix-show-invalid md-select.ix-invalid,
.ix-show-invalid md-radio-group.ix-invalid { border: 1px solid #ff3333; }

.ix-strike { text-decoration: line-through; }

    /* Buttons */
.btn { padding: 7px 15px; border-radius: 5px; color: #fff; display: inline-block; cursor: pointer; }
.btn.btn-green { background-color: #00AE9A; }
.btn.btn-dark { background-color: #6C6C6C; }
a.btn { text-decoration: none; color: #fff; }
input.btn,
button.btn { border: 0; }
.btn:disabled,
.btn.disabled { cursor: not-allowed; opacity: 0.3; }
/*
*[ix-info] { text-decoration: underline; color: #000 !important; cursor: pointer; }
*[ix-info]:hover { text-decoration: dashed !important; color: rgb(255,179,102) !important; }
*/
.stripes { background-image: url(../img/bg.png); background-size: 20px; }

.info-super { font-weight: bold; /*display: inline-block; width: 1.3em; height: 1.3em; line-height: 1.3em; text-align: center; background: #FFBD50; color: #fff; cursor: pointer; border-radius: 50%;*/ }

*[ix-info], *[ix-info-ajax] { cursor: pointer; }
*[ix-info]:hover, *[ix-info-ajax]:hover { text-decoration: underline !important; }

/* Hide by default */
header, footer { display: none; }
#header, #footer, #content { max-width: 1280px; margin: 0 auto; box-sizing: border-box; }

/* Logo */
.logo-name h1 { font-family: Rajdhani, sans-serif; text-transform: uppercase; margin: 0; background-color: #9EC73D; box-shadow: 3px 3px 0 0 #D4CDC7; color: #fff; font-weight: normal; display: inline-block; }
.logo-name h2 { font-family: Courgette, sans-serif; color: #9B8C7C; font-weight: normal; }

/* Header */
header { }
header #logo,
header #status { display: inline-block; vertical-align: middle; }
header #logo { width: 60%; }
header #logo img { display: inline-block; border: 0; height: 108px; width: auto; vertical-align: middle; }
header #logo .logo-name { display: inline-block; text-align: center; vertical-align: middle; margin-left: 20px; }
header #logo .logo-name h1 { padding: 5px 10px 1px; font-size: 2.5rem; line-height: 2.5rem; }
header #logo .logo-name h2 { margin: 2px 0 0; font-size: 2rem; }
header #status { width: 40%; text-align: right; }
header #status span { color: #FF6D6D; font-weight: 600; display: inline-block; vertical-align: bottom; padding: 0 5px 5px 0; }
header #status ul { margin: 0; padding: 0; list-style: none; display: inline-block; vertical-align: middle; }
header #status ul li { display: inline-block; margin: 0 3px; background-image: url(../img/battery-grey.png); width: 14px; height: 38px; background-size: 100%; }
header #status ul li.active { background-image: url(../img/battery-blue.png); }
header #status ul li:first-child { margin-left: 0; }
header #status ul li:last-child { margin-right: 0; }
#header { padding: 15px 40px; }
#header::before { content: ''; height: 100%; display: inline-block; vertical-align: middle; }

/* Footer */
footer { position: fixed; bottom: 0; left: 0; right: 0; background-color: #fff; }
footer a { display: inline-block; height: 100%; }
footer a img { height: 100%; width: auto; display: block; }
#footer { height: 3rem; padding: 8px 40px; position: relative; }

    /* Wrapper */
#content { padding: 20px; box-sizing: border-box; z-index: 0; position: relative; }
#content #content-loading { background: rgba(255, 255, 255, 0.7); position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 999; }
#content #content-loading .ix-loader { top: 50%; left: 50%; margin-top: -64px; margin-left: -64px; position: absolute; }

/* IX Switch */
.ix-switch { text-transform: uppercase; float: right; background-color: #FF6D6D; color: #fff; position: relative; height: 1.4em; width: 4em; text-align: right; border-radius: 1em; padding: 0.1em 0.4em; box-sizing: border-box; cursor: pointer; }
.ix-switch span:first-child { display: none; }
.ix-switch.active { background-color: #9EC73D; text-align: left; }
.ix-switch.active span:first-child { display: block; }
.ix-switch.active span:last-child { display: none; }
.ix-switch::after { border-radius: 50%; height: 1.2em; width: 1.2em; position: absolute; content: ''; display: block; top: 0.1em; left: 0.1em; background: #fff; }
.ix-switch.active::after { left: auto; right: 0.1em; }

/* Form */
.form-boxed { border: 1px solid #DBDBDB; padding: 20px; margin: 25px 0; border-radius: 7.5px; }
.form-boxed h3 { margin-top: 0; }

.form-boxed ul { list-style: none; padding: 0; }

.form-error-wrapper { text-align: center; }
.form-error-wrapper .form-error { margin-bottom: 15px; display: inline-block; padding: 7px 10px; border: 2px solid rgb(140,81,0); border-radius: 5px; }

.md-dialog-content h2 { margin: 0 0 20px; }
.md-dialog-content label { display: block; }
.md-dialog-content md-input-container { border: 1px solid rgb(238, 238, 238); display: inline-block; padding: 0; width: 100%; }
.md-dialog-content md-input-container .md-input { padding: 4px 4% 3px; width: 92%; box-sizing: inherit; }
.md-dialog-content md-input-container .md-errors-spacer { min-height: auto; }
.md-dialog-content md-select { border: 1px solid rgb(238, 238, 238); display: inline-block; width: 100%; }
.md-dialog-content md-select-value { padding: 6px 6px 5px; }

.ix-loader { width: 128px; height: 128px; display: block; margin: 0 auto; background-image: url(data:image/gif;base64,R0lGODlhgACAAKIAAP///93d3bu7u5mZmQAA/wAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFBQAEACwCAAIAfAB8AAAD/0i63P4wygYqmDjrzbtflvWNZGliYXiubKuloivPLlzReD7al+7/Eh5wSFQIi8hHYBkwHUmD6CD5YTJLz49USuVYraRsZ7vtar7XnQ1Kjpoz6LRHvGlz35O4nEPP2O94EnpNc2sef1OBGIOFMId/inB6jSmPdpGScR19EoiYmZobnBCIiZ95k6KGGp6ni4wvqxilrqBfqo6skLW2YBmjDa28r6Eosp27w8Rov8ekycqoqUHODrTRvXsQwArC2NLF29UM19/LtxO5yJd4Au4CK7DUNxPebG4e7+8n8iv2WmQ66BtoYpo/dvfacBjIkITBE9DGlMvAsOIIZjIUAixliv9ixYZVtLUos5GjwI8gzc3iCGghypQqrbFsme8lwZgLZtIcYfNmTJ34WPTUZw5oRxdD9w0z6iOpO15MgTh1BTTJUKos39jE+o/KS64IFVmsFfYT0aU7capdy7at27dw48qdS7eu3bt480I02vUbX2F/JxYNDImw4GiGE/P9qbhxVpWOI/eFKtlNZbWXuzlmG1mv58+gQ4seTbq06dOoU6vGQZJy0FNlMcV+czhQ7SQmYd8eMhPs5BxVdfcGEtV3buDBXQ+fURxx8oM6MT9P+Fh6dOrH2zavc13u9JXVJb520Vp8dvC76wXMuN5Sepm/1WtkEZHDefnzR9Qvsd9+/wi8+en3X0ntYVcSdAE+UN4zs7ln24CaLagghIxBaGF8kFGoIYV+Ybghh841GIyI5ICIFoklJsigihmimJOLEbLYIYwxSgigiZ+8l2KB+Ml4oo/w8dijjcrouCORKwIpnJIjMnkkksalNeR4fuBIm5UEYImhIlsGCeWNNJphpJdSTlkml1jWeOY6TnaRpppUctcmFW9mGSaZceYopH9zkjnjUe59iR5pdapWa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AnurtLvb6wTMbHsUq4wrrFwSzDzcrLtknW16tI2tvERt6pv0fi48jh5h/U6Zs77EXSN/BE8jP09ZFA+PmhP/xvJgAMSGBgQINvEK5ReIZhQ3QEMTBLAAAh+QQFBQAEACwCAB8AMABXAAAD50i6DA4syklre87qTbHn4OaNYSmNqKmiqVqyrcvBsazRpH3jmC7yD98OCBF2iEXjBKmsAJsWHDQKmw571l8my+16v+CweEwum8+hgHrNbrvbtrd8znbR73MVfg838f8BeoB7doN0cYZvaIuMjY6PkJGSk2gClgJml5pjmp2YYJ6dX6GeXaShWaeoVqqlU62ir7CXqbOWrLafsrNctjIDwAMWvC7BwRWtNsbGFKc+y8fNsTrQ0dK3QtXAYtrCYd3eYN3c49/a5NVj5eLn5u3s6e7x8NDo9fbL+Mzy9/T5+tvUzdN3Zp+GBAAh+QQJBQAEACwCAAIAfAB8AAAD/0i63P4wykmrvTjrzbv/YCiOZGmeaKqubOu+cCzPdArcQK2TOL7/nl4PSMwIfcUk5YhUOh3M5nNKiOaoWCuWqt1Ou16l9RpOgsvEMdocXbOZ7nQ7DjzTaeq7zq6P5fszfIASAYUBIYKDDoaGIImKC4ySH3OQEJKYHZWWi5iZG0ecEZ6eHEOio6SfqCaqpaytrpOwJLKztCO2jLi1uoW8Ir6/wCHCxMG2x7muysukzb230M6H09bX2Nna29zd3t/g4cAC5OXm5+jn3Ons7eba7vHt2fL16tj2+QL0+vXw/e7WAUwnrqDBgwgTKlzIsKHDh2gGSBwAccHEixAvaqTYcFCjRoYeNyoM6REhyZIHT4o0qPIjy5YTTcKUmHImx5cwE85cmJPnSYckK66sSAAj0aNIkypdyrSp06dQo0qdSrWq1atYs2rdyrWr169gwxZJAAA7); }

/* Start Landing */
#landing { display: none; position: absolute; width: 100%; height: 100%; background: #fff; top: 0; left: 0; z-index: 1; text-align: center; padding-top: 200px; box-sizing: border-box; transition: 1s; }
#landing #landing-wrapper { padding: 5px 0 25px; }
#landing #landing-logo { max-width: 600px; margin: -100px auto 0; }
#landing #landing-logo img { max-width: 300px; }
#landing #landing-logo h1 { font-size: 4rem; margin-top: 10px; line-height: 1; padding: 5px 10px 0; }
#landing #landing-logo h2 { font-size: 3rem; margin: 10px 0 0; }
#landing #landing-action { color: #6EAAE3; font-size: 2rem; max-width: 500px; margin: 25px auto; }
#landing #landing-action span,
#landing #landing-action div { display: inline-block; vertical-align: middle; }
#landing #landing-action span { font-family: Courgette, sans-serif; text-align: right; width: 73%; }
#landing #landing-action div { font-family: Rajdhani, sans-serif; background: #6EAAE3; margin: 15px 0 15px 3%; padding: 0 1%; cursor: pointer; text-transform: uppercase; font-size: 1.25em; color: #fff; position: relative; }
#landing #landing-action div::after { display: inline-block; content: ''; position: absolute; right: -20px; top: 50%; margin-top: -35px; width: 0; height: 0; border-top: 35px solid transparent; border-bottom: 35px solid transparent; border-left: 20px solid #6EAAE3; }
#landing #landing-logo-bebat { max-height: 30px; }

/* House content */
.house-wrapper { max-width: 984px; left: 50%; margin-left: -492px; position: relative; padding-top: 32px; }
.house-content { position: absolute; left: 430px; top: -10px; padding-right: 20px; }

/* House */
#housing { position: relative; list-style: none; margin: 0; padding: 0; height: 500px; }
#housing li { border: 10px solid #E0DFDE; height: 150px; text-align: center; position: absolute; box-sizing: border-box; }
#housing li::before { content: ''; height: 100%; display: inline-block; vertical-align: bottom; }
#housing li:not(.inactive):hover { /*border-color: #9EC73D;*/ z-index: 20 !important; cursor: pointer; box-shadow: 0 0 10px 2px rgba(0,0,0,0.1); }
#housing li span { display: block; position: absolute; top: -5px; left: -3px; box-shadow: 3px 3px 0 0 #D4CDC7; font-family: Courgette, sans-serif; background: #6EAAE3; color: #fff; padding: 3px 10px; }
#housing li.inactive span { background-color: #D4CDC7; }
#housing li.done span,
#housing li.inactive.done span { background-color: #9B8C7C; }
#housing li.selected span { background-color: #FF6D6D; }
#housing li.selected span::before { content: ''; border: solid #fff; border-width: 0 2px 2px 0; height: 10px; width: 4px; transform: rotateZ(45deg); margin-right: 7px; display: inline-block; }
#housing li img { display: inline-block; vertical-align: bottom; max-width: 96%; max-height: 96%; height: auto; }
#housing li.inactive:not(.done) img { opacity: 0.4; }

#housing li#room-attic img { max-width: 145px; } /* 30% */
#housing li#room-basement img { max-width: 175px; } /* 30% */
#housing li#room-bathroom1 img { max-width: 123px; } /* 22.3% */
#housing li#room-bedroom1 img { max-width: 123px; } /* 22.3% */
#housing li#room-bedroom2 img { max-width: 96px; } /* 22.3% */
#housing li#room-bedroom3 img { max-width: 96px; } /* 22.3% */
#housing li#room-bedroom4 img { max-width: 110px; } /* 22.3% */
#housing li#room-diningroom img { max-width: 124px; } /* 22.3% */
#housing li#room-entrancehall img { max-width: 83px; } /* 22.3% */
#housing li#room-garage img { max-width: 73px; } /* 22.3% */
#housing li#room-gardenhouse img { max-width: 96px; } /* 22.3% */
#housing li#room-kitchen img { max-width: 125px; } /* 22.3% */
#housing li#room-livingroom img { max-width: 173px; } /* 22.3% */
#housing li#room-office img { max-width: 78px; } /* 22.3% */
#housing li#room-playroom img { max-width: 65px; } /* 22.3% */

#housing li#room-bathroom2 img { max-width: 98px; } /* 22.3% */
#housing li#room-storage img { max-width: 98px; } /* 22.3% */

#housing li#room-attic { top: 0; left: 0; width: 310px; height: 110px; z-index: 1; }
#housing li#room-basement { top: 380px; left: 0; width: 310px; height: 120px; z-index: 15; }
#housing li#room-bathroom1 { top: 100px; left: 0; width: 160px; z-index: 2; }
#housing li#room-bedroom1 { top: 100px; left: 150px; width: 160px; z-index: 3; }
#housing li#room-bedroom2 { top: 100px; left: 300px; width: 145px; z-index: 4; }
#housing li#room-bedroom3 { top: 100px; left: 435px; width: 145px; z-index: 5; }
#housing li#room-bedroom4 { top: 100px; left: 570px; width: 145px; z-index: 6; }
#housing li#room-diningroom { top: 240px; left: 435px; width: 145px; z-index: 11; }
#housing li#room-entrancehall { top: 240px; left: 0; width: 105px; z-index: 8; }
#housing li#room-garage { top: 240px; left: 845px; width: 130px; z-index: 14; }
#housing li#room-gardenhouse { top: 400px; left: 590px; width: 145px; height: 100px; }
#housing li#room-kitchen { top: 240px; left: 300px; width: 145px; z-index: 10; }
#housing li#room-livingroom { top: 240px; left: 95px; width: 215px; z-index: 9; }
#housing li#room-office { top: 240px; left: 570px; width: 145px; z-index: 12; }
#housing li#room-playroom { top: 100px; left: 705px; width: 150px; z-index: 7; }

#housing li#room-bathroom2 { top: 240px; left: 705px; width: 150px; z-index: 13; }
#housing li#room-storage { top: 100px; left: 845px; width: 130px; z-index: 8; }

#housing.housing-apartment { margin: 0 auto; max-width: 715px; height: 560px; }
#housing.housing-apartment li#room-diningroom { left: 300px; z-index: 10; }
#housing.housing-apartment li#room-kitchen { left: 435px; z-index: 11; }
#housing.housing-apartment li#room-garage { top: 410px; left: 300px; }
#housing.housing-apartment li#room-office { top: 100px; left: 570px; z-index: 8; }
#housing.housing-apartment li#room-storage { top: 240px; left: 570px; width: 145px; z-index: 12; }

#housing.housing-studio { max-width: 850px; margin: 0 auto; height: 425px; }
#housing.housing-studio li#room-bathroom1 { top: 100px; left: 705px; width: 145px; }
#housing.housing-studio li#room-bedroom1 { top: 100px; left: 570px; width: 145px; }
#housing.housing-studio li#room-diningroom { top: 100px; left: 300px; }
#housing.housing-studio li#room-entrancehall { top: 100px; left: 0; }
#housing.housing-studio li#room-kitchen { top: 100px; left: 435px; }
#housing.housing-studio li#room-livingroom { top: 100px; left: 95px; }
#housing.housing-studio li#room-storage { top: 275px; left: 300px; }
#housing.housing-studio li#room-garage { top: 275px; left: 450px; }

/* Actions */
#actions { position: absolute; top: -1.15rem; right: 40px; }
#actions .btn { text-transform: uppercase; color: #fff; margin-left: 10px; padding: 6px 10px 2px; font-size: 1.4rem; font-weight: 500; border-radius: 0; height: 2.3rem; line-height: 1; }
#actions #action-submit { background-color: #C5DE8A; position: relative; }
#actions #action-submit::after { display: inline-block; content: ''; position: absolute; right: -20px; top: 50%; margin-top: -1.15rem; width: 0; height: 0; border-top: 1.15rem solid transparent; border-bottom: 1.15rem solid transparent; border-left: 20px solid #C5DE8A; }
#actions #actions-error { position: absolute; left: 0; margin-left: -425px; bottom: 0; width: 400px; background: #FFBD50; color: #fff; text-transform: uppercase; font-weight: 500; border-radius: 5px; padding: 4px 7px; }
#actions #actions-error::after { display: inline-block; content: ''; position: absolute; right: -10px; bottom: 1.15rem; width: 0; height: 0; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 10px solid #FFBD50; }
#actions #actions-error #actions-error-close { height: 1.2rem; line-height: 1.2rem; width: 1.2rem; position: absolute; left: -0.7em; top: -0.7em; background: #FF6D6D; color: #fff; border-radius: 5px; text-align: center; text-transform: lowercase; cursor: pointer; }

@media (max-width: 200px) {

}

/* Start */
#start { max-width: 400px; margin: 0 auto; }
#start h3 { background: #FF6D6D; font-family: Courgette, sans-serif; padding: 3px 10px; border-radius: 5px; display: inline-block; font-size: 1.4rem; color: #fff; margin-bottom: 0; font-weight: normal; }
#start p { }

/* Extra */
#extra { max-width: 500px; margin: 0 auto; }
#extra h3 { background: #FF6D6D; font-family: Courgette, sans-serif; padding: 3px 10px; border-radius: 5px; display: inline-block; font-size: 1.4rem; color: #fff; margin-bottom: 0; font-weight: normal; }
#extra p { }

#info { max-width: 500px; margin: 0 auto; }
#info h3 { font-size: 1.75rem; font-weight: normal; }

/* Rooms */
#rooms .house-content { max-width: 400px; }
#rooms .house-content h3 { background: #FF6D6D; font-family: Courgette, sans-serif; padding: 3px 10px; border-radius: 5px; display: inline-block; font-size: 1.4rem; color: #fff; margin-bottom: 0; font-weight: normal; }
#rooms .house-content p { padding-left: 10px; }

/* Storage */
#storage {}
#storage #storage-wrapper { max-width: 600px; margin: 0 auto; }
#storage #storage-wrapper h3 { padding: 10px 25px; margin: 0; border-bottom: 3px solid #9B8C7C; font-weight: 500; }
#storage #storage-wrapper ul { list-style: none; padding: 0; margin: 0; }
#storage #storage-wrapper ul li { padding: 10px 25px; border-bottom: 3px dotted #9B8C7C; }
#storage #storage-wrapper ul li label { display: block; }
#storage #storage-wrapper ul li input { display: none; }
#storage #storage-wrapper ul li .switch { float: right; }

/* Random */
#random .house-content { max-width: 375px; text-align: center; z-index: 3; }
#random .house-content img { display: inline-block; max-height: 50px; width: auto; border: 0; animation: spin infinite linear 1.5s reverse; }
#random .house-content h3 { background: #FF6D6D; font-family: Courgette, sans-serif; padding: 3px 10px; border-radius: 5px; display: inline-block; font-size: 1.4rem; color: #fff; margin: 5px 0 0; font-weight: normal; }
#random #random-shade { z-index: 2; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background-color: rgba(255, 255, 255, 0.7); }
#random #housing { z-index: 1; }

/* Select */
#select #select-wrapper { text-align: center; margin: 0 auto; max-width: 660px; }
#select h3 { margin: 25px 10px; font-weight: normal; text-align: left; }
#select #housing { height: auto; }
#select #housing li { position: relative; display: inline-block; margin: 0 10px; width: 100%; max-width: 200px; height: 150px !important; top: 0 !important; left: 0 !important; }

/* Room pages */
.room #room-wrapper { margin: 0 auto; max-width: 600px; }
.room #room-header { margin-bottom: 15px; }
.room #room-header-left { float: left; width: 30%; text-align: right; }
.room #room-header-left h3 { background: #FF6D6D; padding: 3px 10px; border-radius: 5px; display: inline-block; font-size: 1.4rem; color: #fff; margin: 0; font-weight: normal; text-transform: uppercase; }
.room #room-header-left img { display: inline-block; max-height: 70px; margin-top: 10px; }
.room #room-header-right { float: right; width: 67.5%; margin-left: 2.5%; font-size: 1.1rem; }
.room #room-header-right p { font-weight: 500; }
.room #room-header-right p:first-child { margin-top: 0; }
.room #room-header-right p.alert { color: rgba(48, 40 ,27, 0.52); padding-left: 25px; position: relative; }
.room #room-header-right p.alert::before { background-color: rgba(48, 40 ,27, 0.52); color: #fff; content: '!'; display: inline-block; width: 20px; height: 20px; font-weight: bold; position: absolute; top: 0; left: 0; border-radius: 50%; text-align: center; }

.room #appliances-counter {}
.room #appliances-counter h4 { background-color: #6EAAE3; padding: 3px 10px; border-radius: 5px; font-size: 1.4rem; color: #fff; margin: 0; font-weight: normal; text-transform: uppercase; }
.room #appliances-counter .appliances-counter-left { float: left; width: 17%; margin-right: 1%; }
.room #appliances-counter .appliances-counter-right { float: right; width: 82%; }

.room #appliance-themes { padding: 0; margin: 0; list-style: none; display: flex; flex-flow: row wrap; }
.room #appliance-themes li { display: inline-block; cursor: pointer; border: 1px solid rgba(155, 140, 124, 0.6); padding: 10px 2%; width: 15.6667%; margin: 5px 0.5%; box-sizing: border-box; text-align: center; position: relative; }
.room #appliance-themes li.selected { border: 2px solid #9EC73D; }
.room #appliance-themes li:hover { border-color: rgb(155, 140, 124); }
.room #appliance-themes li[ix-appliance-type-count]::before { content: attr(ix-appliance-type-count); background: #FF6D6D; color: #fff; padding: 2px 5px; border-radius: 5px; top: 5px; right: 5px; display: inline-block; position: absolute; }
.room #appliance-themes li[ix-appliance-type-count="0"]::before { display: none; }
.room #appliance-themes li .appliance-theme-image { background-color: #9B8C7C; border-radius: 50%; max-width: 55px; margin-bottom: 2px; box-sizing: border-box; padding: 5%; display: inline-block; }
.room #appliance-themes li .appliance-theme-image img { height: auto; width: 100%; display: block; }
.room #appliance-themes li .appliance-theme-label { color: #9B8C7C; font-size: 0.9rem; }
/*.room #appliance-themes li.selected { background-color: #9B8C7C; }
.room #appliance-themes li.selected .appliance-theme-label { color: #fff; }*/
.room #appliance-themes li.selected .appliance-theme-image,
.room #appliance-themes li.selection .appliance-theme-image { background-color: #9EC73D; }

.room #appliance-type-counters { padding: 0; margin: 0; list-style: none; display: flex; flex-flow: row wrap; }
.room #appliance-type-counters li { display: inline-block; border: 1px solid rgba(155, 140, 124, 0.6); padding: 7.5px 1%; width: 49%; margin: 5px 0.5%; box-sizing: border-box; color: #9B8C7C; font-size: 0.9rem; }
.room #appliance-type-counters li .appliance-type-label {  }
.room #appliance-type-counters li ix-counter { float: right; margin-left: 10px; }
.room #appliance-type-counters li .appliance-type-counters-works { margin-top: 10px; }
.room #appliance-type-counters li .appliance-type-counters-works .appliance-type-label { font-style: italic; }

.table-3 { max-width: 600px; text-align: center; border-collapse: collapse; margin: 0 auto; }
.table-3 td:first-child { text-align: left; }
.table-3 thead th,
.table-3 tfoot td { padding: 10px 5px; }
.table-3 thead th { border-bottom: 3px solid #9B8C7C; font-weight: 400; color: #9B8C7C; }
.table-3 tbody td { padding: 10px 20px; border-bottom: 3px dotted #9B8C7C; }
.table-3 tbody td:first-child { width: auto !important; }
.table-3 tbody td input { display: none; }
.table-3 tfoot .btn { background-color: #FFBD50; text-transform: uppercase; font-weight: 500; padding: 4px 15px; }

#appliances-usage .ix-switch { float: none; margin: 0 auto; }
#appliances-usage .appliances-usage-table-header { text-align: left; font-weight: bold; }
#appliances-usage .appliances-usage-table-header img { width: 40px; display: inline-block; height: auto; vertical-align: bottom; margin-right: 5px; }
#appliances-usage .appliances-usage-table-header span { vertical-align: bottom; }
#appliances-usage .table-3 { margin-bottom: 25px; width: 100%; }
#appliances-usage .table-3 td { width: 4em; }
#appliances-usage .table-3 .new td { background: rgba(255, 189, 80, 0.2); }

#room-appliances-usage-new { position: fixed; background: rgba(255, 255, 255, 0.7); top: 0; left: 0; width: 100%; height: 100%; padding-bottom: 4rem; box-sizing: border-box; overflow-y: auto; }
#room-appliances-usage-count-wrapper { background: #FFBD50; color: #fff; position: relative; width: 96%; margin: 2%; }
#room-appliances-usage-count-wrapper h2 { background-color: #ff8b1a; color: #fff; text-transform: uppercase; font-size: 1.5rem; margin: 0; padding: 10px 20px; text-align: center; position: relative; }
#room-appliances-usage-count-wrapper h2 .close { display: inline-block; height: 100%; position: absolute; border-left: 1px solid rgba(255, 255, 255, 0.6); box-sizing: border-box; padding: 10px 20px; right: 0; top: 0; font-weight: 300; cursor: pointer; }
#room-appliances-usage-new #appliances-counter { padding: 20px; }
#room-appliances-usage-new #appliances-counter h4 { background-color: #ff8b1a; }
#room-appliances-usage-new #appliance-themes li { border: 1px solid rgba(255, 255, 255, 0.6); }
#room-appliances-usage-new #appliance-themes li .appliance-theme-label { color: #fff; font-weight: 500; }
#room-appliances-usage-new #appliance-themes li .appliance-theme-image { background-color: #fff; }
#room-appliances-usage-new #appliance-themes li.selected .appliance-theme-image,
#room-appliances-usage-new #appliance-themes li.selection .appliance-theme-image { background-color: #ff8b1a; }
#room-appliances-usage-new #appliance-type-counters li { color: #fff; border: 1px solid rgba(255, 255, 255, 0.6); font-weight: 500; }
#room-appliances-usage-new #appliance-type-counters li ix-counter .positive span,
#room-appliances-usage-new #appliance-type-counters li ix-counter .negative span { color: #fff; }
#room-appliances-usage-new #room-appliances-usage-count-btn { background-color: #ff8b1a; float: right; margin: 0 20px 20px 0; }

#room-appliances-usage-new ix-counter .ix-counter-wrapper { padding: 1px; background: rgba(255, 255, 255, 0.6); color: #fff; font-weight: 500; }
#room-appliances-usage-new ix-counter .ix-counter-wrapper.positive { background: #ff8b1a; }
#room-appliances-usage-new ix-counter .ix-counter-wrapper * { vertical-align: middle; }
#room-appliances-usage-new ix-counter .ix-counter-wrapper span { color: #9B8C7C; text-decoration: none; }
#room-appliances-usage-new ix-counter .ix-counter-wrapper .ix-counter-action { display: inline-block; cursor: pointer; width: 1.4rem; height: 1.4rem; text-align: center; background: #FFBD50; padding: 0; }
#room-appliances-usage-new ix-counter .ix-counter-wrapper.positive .ix-counter-action { color: #ff8b1a; }

#room-batteries #room-batteries-loose-none { max-width: 500px; text-align: left; font-size: 1.5rem; color: #9B8C7C; margin: 25px auto; font-weight: 400; }

.room-batteries-info-content img { max-height: 120px; width: auto; display: inline-block; border: 0; }

#socio ul { list-style: none; margin: 50px 0 0; padding: 0; width: 100%; }
#socio ul li {}
#socio ul li > div { width: 50%; padding: 20px; box-sizing: border-box; display: inline-block; vertical-align: middle; }
#socio ul li > div:first-child { /*float: left;*/ text-align: right; font-weight: bold; font-size: 1.1rem; }
#socio ul li > div:last-child { /*float: right;*/ }
#socio ul li #socio-ages {  }
#socio ul li #socio-ages md-select { margin-right: 5px; vertical-align: middle; }
#socio ul li #socio-ages md-select .md-select-value { min-width: 50px; }
#socio ul li #socio-ages .socio-ages-btn { border: 1px solid #D4CDC7; height: 26px; width: 26px; line-height: 26px; text-align: center; cursor: pointer; display: inline-block; color: #D4CDC7; }
#socio ul li md-radio-button { margin: 0 10px 0 0; padding: 4px 8px; background: #fff; border: 1px solid #D4CDC7; display: inline-block; }
#socio ul li md-radio-button .md-container { left: 10px; }
#socio ul li md-radio-button.md-checked { background: #9EC73D; color: #fff; }
#socio ul li md-radio-button.md-default-theme.md-checked .md-off,
#socio ul li md-radio-button.md-checked .md-off { border-color: #fff; }
/*#socio ul li md-radio-button.md-default-theme.md-checked .md-ink-ripple,
#socio ul li md-radio-button.md-checked .md-ink-ripple,*/
#socio ul li md-radio-button.md-default-theme .md-on,
#socio ul li md-radio-button .md-on { background-color: #fff; }
#socio ul li md-select { margin: 0; border: 0; padding: 1px; background: #D4CDC7; }
#socio ul li md-select.md-default-theme .md-select-value,
#socio ul li md-select .md-select-value { border: 0; padding: 1px; min-width: 120px; }
#socio ul li md-select .md-select-value .md-select-icon { background: #fff; margin-right: 0; height: 26px; width: 26px; transform: none; }
#socio ul li md-select .md-select-value .md-select-icon:after { top: 5px; text-align: center; color: #D4CDC7; }
#socio ul li ix-counter .ix-counter-wrapper { padding: 2px; }
#socio ul li ix-counter .ix-counter-wrapper .ix-counter-action { width: 1.6rem; height: 1.6rem; line-height: 1.6rem; }

#done-wrapper { max-width: 600px; margin: 50px auto 0; text-align: center; }
#done-wrapper #done-thumbs { max-width: 200px; display: block; margin: 0 auto 25px; }
#done-wrapper h1,
#done-wrapper h2 { font-size: 1.6rem; font-weight: 500; text-transform: uppercase; color: #fff; border-radius: 5px; padding: 4px 12px; display: inline-block; margin: 10px 0 0; }
#done-wrapper h1 { background-color: #FF6D6D; }
#done-wrapper h2 { background-color: #FFBD50; }
#done-wrapper p { font-weight: bold; font-size: 1.2rem; }
#done-wrapper #done-retake { max-width: 100px; cursor: pointer; }

@media (max-width: 63em) {
    header #logo img { height: 60px; }
    header #logo .logo-name h1 { font-size: 2rem; line-height: 2rem; }
    header #logo .logo-name h2 { font-size: 1.5rem; }
    header #status ul li { width: 9px; height: 24px; }

    .house-wrapper { max-width: 664px; margin-left: -332px; padding: 0; }
    .house-content { position: relative; left: auto; top: auto; padding: 0 0 10px; }

    #housing li#room-entrancehall img { max-width: 73px; }

    #housing { height: 640px; }
    #housing li#room-attic { width: 280px; }
    #housing li#room-basement { top: 520px; width: 280px; }
    #housing li#room-bathroom1 { top: 240px; left: 0; width: 145px; z-index: 4; }
    #housing li#room-bedroom1 { left: 0; width: 145px; }
    #housing li#room-bedroom2 { left: 135px; width: 145px; }
    #housing li#room-bedroom3 { left: 270px; }
    #housing li#room-bedroom4 { left: 405px; width: 145px; }
    #housing li#room-diningroom { left: 135px; width: 145px; }
    #housing li#room-entrancehall { top: 380px; width: 95px;}
    #housing li#room-garage { top: 380px; left: 540px; width: 124px; }
    #housing li#room-gardenhouse { top: 540px; left: 500px; }
    #housing li#room-kitchen { top: 380px; left: 270px; z-index: 13; }
    #housing li#room-livingroom { top: 380px; left: 85px; width: 195px; z-index: 12; }
    #housing li#room-office { left: 270px; }
    #housing li#room-playroom { top: 240px; left: 405px; width: 145px; }

    #housing li#room-bathroom2 { top: 380px; left: 405px; }
    #housing li#room-storage { top: 240px; left: 540px; width: 124px; }

    #housing.housing-apartment { height: 595px; }
    #housing.housing-apartment li#room-bedroom1 { top: 0; }
    #housing.housing-apartment li#room-bedroom2 { top: 0; }
    #housing.housing-apartment li#room-bedroom3 { top: 0; }
    #housing.housing-apartment li#room-bathroom1 { top: 140px; }
    #housing.housing-apartment li#room-office { top: 140px; left: 135px; }
    #housing.housing-apartment li#room-storage { top: 140px; left: 270px; z-index: 8; }
    #housing.housing-apartment li#room-entrancehall { top: 280px; }
    #housing.housing-apartment li#room-livingroom { top: 280px; }
    #housing.housing-apartment li#room-diningroom { top: 280px; left: 270px; z-index: 13; }
    #housing.housing-apartment li#room-kitchen { top: 280px; left: 405px; z-index: 13; }
    #housing.housing-apartment li#room-garage { top: 445px; left: 0; }

    #housing.housing-studio { height: 460px; }
    #housing.housing-studio li#room-entrancehall { top: 140px; }
    #housing.housing-studio li#room-livingroom { top: 140px; left: 85px; }
    #housing.housing-studio li#room-diningroom { top: 140px; left: 270px; }
    #housing.housing-studio li#room-kitchen { top: 140px; left: 405px; }
    #housing.housing-studio li#room-bedroom1 { top: 0; left: 0; }
    #housing.housing-studio li#room-bathroom1 { top: 0; left: 135px; }
    #housing.housing-studio li#room-storage { top: 310px; left: 0; }
    #housing.housing-studio li#room-garage { top: 310px; left: 145px; }

    #rooms .house-content { max-width: none; }
    #rooms .house-content h3 { margin: 0; }

    .room #appliances-counter .appliances-counter-left { float: none; margin: 0; text-align: center; width: 100%; }
    .room #appliances-counter .appliances-counter-right { width: 100%; float: none; }
    .room #appliances-counter h4 { margin: 10px 0; }
}

@media (max-width: 44em) {
    header #logo { width: 90%; }
    header #status { width: 10%; }
    header #status ul { display: none; }
    #header { padding: 10px; }

    #landing { padding-top: 100px; }
    #landing #landing-logo img { max-width: 200px; }
    #landing #landing-logo h1 { font-size: 3rem; }
    #landing #landing-logo h2 { font-size: 1.5rem; }
    #landing #landing-action { font-size: 1.3rem; margin: 15px auto 35px; }
    #landing #landing-action span { text-align: center; width: 100%; }
    #landing #landing-action div { width: auto; margin: 25px 0 0; padding: 5px 15px 4px; font-size: 1.4em; }
    #landing #landing-action div::after {  }

    #content { padding: 20px 10px; }

    .house-wrapper { max-width: 416px; margin-left: -208px; }

    #housing { height: 670px; }
    #housing li { height: 110px; }
    #housing li span { padding: 2px 7px; }
    #housing li#room-attic img { max-width: 111px; }
    #housing li#room-basement img { max-width: 141px; }
    #housing li#room-bathroom1 img { max-width: 94px; }
    #housing li#room-bedroom1 img { max-width: 94px; }
    #housing li#room-bedroom2 img { max-width: 73px; }
    #housing li#room-bedroom3 img { max-width: 73px; }
    #housing li#room-bedroom4 img { max-width: 84px; }
    #housing li#room-diningroom img { max-width: 95px; }
    #housing li#room-entrancehall img { max-width: 63px; }
    #housing li#room-garage img { max-width: 56px; }
    #housing li#room-gardenhouse img { max-width: 73px; }
    #housing li#room-kitchen img { max-width: 107px; }
    #housing li#room-livingroom img { max-width: 133px; }
    #housing li#room-office img { max-width: 59px; }
    #housing li#room-playroom img { max-width: 49px; }

    #housing li#room-bathroom2 img { max-width: 68px; }
    #housing li#room-storage img { max-width: 73px; }

    #housing li#room-attic { width: 280px; height: 90px; }
    #housing li#room-basement { top: 480px; width: 280px; height: 90px; }
    #housing li#room-bathroom1 { top: 280px; z-index: 13; }
    #housing li#room-bedroom1 { top: 80px; width: 145px; }
    #housing li#room-bedroom2 { top: 80px; left: 135px; }
    #housing li#room-bedroom3 { top: 80px; left: 270px; z-index: 6; }
    #housing li#room-bedroom4 { top: 0; left: 270px; height: 90px; z-index: 5; }
    #housing li#room-diningroom { top: 280px; left: 135px; z-index: 14; }
    #housing li#room-entrancehall { width: 100px; z-index: 13; }
    #housing li#room-garage { top: 480px; left: 270px; height: 90px; width: 145px; z-index: 16; }
    #housing li#room-gardenhouse { top: 580px; left: 0; height: 90px; width: 150px; }
    #housing li#room-kitchen { top: 280px; left: 270px; z-index: 14; }
    #housing li#room-livingroom { left: 90px; width: 190px; z-index: 15; }
    #housing li#room-office { top: 180px; left: 0; }
    #housing li#room-playroom { top: 180px; left: 135px; z-index: 13; }

    #housing li#room-bathroom2 { left: 270px; width: 145px; z-index: 15; }
    #housing li#room-storage { top: 180px; left: 270px; width: 145px; z-index: 13; }

    #housing.housing-apartment { height: 615px; }
    #housing.housing-apartment li#room-bedroom1 { top: 0; }
    #housing.housing-apartment li#room-bedroom2 { top: 0; }
    #housing.housing-apartment li#room-bedroom3 { top: 100px; left: 0; }
    #housing.housing-apartment li#room-office { top: 100px; left: 135px; }
    #housing.housing-apartment li#room-bathroom1 { top: 200px; z-index: 8; }
    #housing.housing-apartment li#room-storage { top: 200px; left: 135px; }
    #housing.housing-apartment li#room-diningroom { top: 300px; left: 0; }
    #housing.housing-apartment li#room-kitchen { top: 300px; left: 135px; }
    #housing.housing-apartment li#room-entrancehall { top: 400px; }
    #housing.housing-apartment li#room-livingroom { top: 400px; }
    #housing.housing-apartment li#room-garage { top: 525px; }

    #housing.housing-studio { height: 460px; }
    #housing.housing-studio li#room-entrancehall { top: 200px; }
    #housing.housing-studio li#room-livingroom { top: 200px; left: 90px; }
    #housing.housing-studio li#room-diningroom { top: 100px; left: 0; }
    #housing.housing-studio li#room-kitchen { top: 100px; left: 135px; }
    #housing.housing-studio li#room-storage { top: 325px; left: 0; width: 135px; }
    #housing.housing-studio li#room-garage { top: 325px; left: 145px; width: 135px; height: 110px; }

    #select #housing li { height: 110px !important; margin-bottom: 15px; }

    .room #room-header-left,
    .room #room-header-right { float: none; width: 100%; margin: 0; text-align: left; }
    .room #room-header-left br { display: none; }
    .room #room-header-left h3 { font-size: 1.2rem; vertical-align: middle; margin: 0 10px 10px 0; }
    .room #room-header-left img { margin: 0 0 10px; max-height: 40px; vertical-align: middle;}
    .room #room-header-right { font-size: 1rem; }

    .room #appliance-themes li { width: 24%; margin: 3px 0.5%; }
    .room #appliance-type-counters { display: block; }
    .room #appliance-type-counters li { display: block; width: 100%;  margin: 5px 0; }

    #room-appliances-usage-count-wrapper h2 { text-align: left; font-size: 1.3rem; padding: 10px; }

    #done-wrapper { margin-top: 0; }
    #done-wrapper #done-thumbs { max-width: 150px; }
    #done-wrapper h1,
    #done-wrapper h2 { font-size: 1.3rem; }
    #done-wrapper p { font-size: 1rem; }
    #done-wrapper #done-retake { max-width: 75px; }

    #actions #actions-error { margin-left: 0; width: 408px; bottom: 3rem; left: auto; right: -20px; }
    #actions #actions-error::after { bottom: -14px; right: 3rem; border-top: 10px solid #FFBD50; border-left: 4px solid transparent; border-right: 4px solid transparent; }

    #footer { height: 2.5rem; padding: 8px 10px; }
    #actions { top: -0.5rem; right: 25px; }
}

@media (max-width: 28em) {
    header #logo { width: 100%; text-align: center; }
    header #logo .logo-name { margin-left: 10px; }
    header #logo .logo-name h1 { font-size: 1.5rem; line-height: 1.5rem; padding: 3px 5px 1px; }
    header #logo .logo-name h2 { font-size: 1.25rem; }
    header #status { width: 100%; text-align: center; margin-top: 10px; }
    header #status span { padding: 3px 7px 2px; }
    #header { padding: 10px 10px 5px; }

    #landing { padding-top: 75px; }
    #landing #landing-logo { margin-top: -70px; }
    #landing #landing-logo img { max-width: 150px; }
    #landing #landing-logo h1 { font-size: 2rem; }
    #landing #landing-logo h2 { font-size: 1.5rem; }
    #landing #landing-action { padding: 0 15px; }

    .house-wrapper { max-width: 280px; margin-left: -140px; }

    #housing { height: 930px; }
    #housing li#room-attic {  }
    #housing li#room-basement { top: 740px; z-index: 17; }
    #housing li#room-bathroom1 { top: 340px; z-index: 14; }
    #housing li#room-bedroom1 { height: 90px; }
    #housing li#room-bedroom2 { height: 90px; }
    #housing li#room-bedroom3 { top: 160px; left: 0; height: 90px; }
    #housing li#room-bedroom4 { top: 160px; left: 135px; }
    #housing li#room-diningroom { top: 440px; z-index: 15; }
    #housing li#room-entrancehall { top: 540px; z-index: 15; }
    #housing li#room-garage { top: 640px; left: 135px; height: 110px; }
    #housing li#room-gardenhouse { top: 840px; left: 87px; }
    #housing li#room-kitchen { top: 440px; left: 0; }
    #housing li#room-livingroom { top: 540px; }
    #housing li#room-office { top: 340px; left: 135px; z-index: 14; }
    #housing li#room-playroom { top: 240px; left: 0; }

    #housing li#room-bathroom2 { top: 640px; left: 0; z-index: 15; }
    #housing li#room-storage { top: 240px; left: 135px; }

    #housing.housing-apartment {  }
    #housing.housing-apartment li#room-bedroom1 { height: 110px; }
    #housing.housing-apartment li#room-bedroom2 { height: 110px; }
    #housing.housing-apartment li#room-bedroom3 { height: 110px; }
    #housing.housing-apartment li#room-garage { height: 90px; }

    .room #appliance-themes li { width: 32.333%; }

    .table-3 tbody td { padding: 10px 5px; }

    .ix-switch { width: 3rem; height: 1rem; font-size: 0.8rem; }
    .ix-switch::after { height: 0.8rem; width: 0.8rem; }

    #appliances-usage .table-3 td { width: 3em; }

    #room-batteries ix-counter .ix-counter-wrapper .ix-counter-decrement { margin-right: 2px; }
    #room-batteries ix-counter .ix-counter-wrapper .ix-counter-increment { margin-left: 2px; }

    #socio ul { margin: 0; }
    #socio ul li { margin-top: 10px; }
    #socio ul li > div { padding: 5px; width: 100%; }
    #socio ul li > div:first-child { text-align: left; }

    #done-wrapper h1,
    #done-wrapper h2 { font-size: 1.1rem; }

    #actions #actions-error { width: 285px; }
}

@media (min-width: 80em) {
    .house-wrapper { max-width: 1240px; margin-left: 0; left: 0; }
    #housing li#room-gardenhouse { top: 260px; left: 1070px; width: 170px; height: 130px; }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}