
/** HOUSE **/

#house {
  width: 100%;
  height: 515px;
  position: relative;
}


#house {
  width: 100%;
}
/*
#house .cast {
    display: none;
}*/

#house .sec {
  width: 100%;
  position: static;
}

#house .sec h2 {
  text-align: left;
  line-height: 19px;
}

#house .sec .links {
  display: none;
}

.pointos {
  display: none;
}

#house .sec#sec04 {
  top: 135px;
  top: 405px;
  left: 0px;
}

#house .sec#sec05 {
  top: 405px;
  left: 0px;
}
#house .sec#sec05 {
  top: 540px;
  left: 0px;
}
#house .sec#sec06 {
  top: 675px;
  left: 0px;
}
#house .sec#sec08 {
  top: 810px;
  left: 0px;
}

#house .cast img {
  width: 100%;
  height: auto;
}
@media (min-width: 1170px) {
  #house {
    margin: 80px auto 200px;
    width: 860px;
  }
}


#house .sec {
  position: absolute;

  color: #EEE;
  font-size: 1.1em;
  cursor: pointer;
  z-index: 3;
  text-align: left;
  overflow: hidden;
  padding:20px 5px 20px 50%;

}

#house .sec.show .text {
  display: block;
  max-height: 104px;
  overflow: hidden;
}
@media (min-width: 1170px) {
  #house .sec {

    width:450px;
    right: auto;
    /*text-align: center;*/
    padding: 0;
    right:-140px;
    overflow: visible;
  }

  #house .sec .links {
    position: absolute;
    display: block;
    height: 1px;
    width: 0;
    /*right: -50%;*/
    overflow: hidden;
    min-height: 100px;

  }

  #house .sec .links:before {
    content: "";
    width: 90%;
    height: 2px;
    background: #ff145b;
    position: absolute;
    top: 0;
    right: 0;
  }

  #house .sec .links:after {
    content: "";
    height: 352px;
    width: 2px;
    background: #ff145b;
    position: absolute;
    top: -5px;
    left: 0;
    transform: rotate(15deg);
  }
}

#house .sec .text {
  display: block;
  color: #aaa;
  font-size: 14px;
  border: 0;
  margin: 0;
  padding: 15px 0;

  text-align: left;
}

@media (min-width: 1170px) {
  #house .sec .text {
    display: none;
    /*width: 200%;*/

    left: -61%;
  }
  #house #sec05 .text {
    padding-left: 35%;
  }
  #house #sec04 .text {
    padding-left: 20%;
  }
}

#house .sec .text:after {
  display: none;
}

#house .sec .title {
  font-size: 12px;
  color: #aaa;
  display: none;
  text-transform: uppercase;

}
#house .sec.show .title{
  display: block;
}
#house .sec h2 {
  margin: 0;
  padding: 0;
  text-align: left;
  font-size: 1em;
  font-weight: 100;
  color: #fff;

}

#house .sec#sec02 {
  top: 135px;
  left: 0;
}

@media (max-width: 1170px) {
  #house .sec#sec02 {
    background: rgba(4, 233, 214, 0.04);
    border-top: 1px solid #00ffff;
  }

  #house .sec#sec02 h2 {
    color: #00ffff;
  }
}

@media (min-width: 1170px) {
  #house .sec#sec02 {
    top: 35%;
    left: -140px;
    /*width: 200px;*/
  }
}

#house .sec#sec02.show h2 {
  color: #00ffff;
  position: relative;
}

#house .sec#sec02.show .links *{
  background: #00c1c1;
}
#house .sec.show .links *{

  width: 10px;
  height: 10px;
  transition: all 1s;
  border: 1px solid #ffffff;
  border-radius: 29px;
  z-index: 2;
  position:absolute;
}
#house .sec.sec-bottom.show .links{
  display:flex;

}
#house .sec.sec-right.show  .links{

  justify-content: flex-end;
}
#house .sec.sec-bottom.show .links{
  display:flex;
  align-items:flex-end;
}

#house .sec.show h2:after{
  z-index: 2;
}

@media (min-width: 1170px) {
  #house .sec#sec02.show:after {
    animation: 3s sec04shadow forwards;
  }
  #house .sec#sec02.show.delay h2:after {
    animation: blickDelay 2s infinite;
  }

  #house .sec#sec02.show .links, #house .sec#sec06.show .links  {
    animation: 2s sec02links forwards;
    /*left: -112px;*/
    right: auto;
  }

  #house .sec#sec02.show .links:before,#house .sec#sec06.show .links:before {
    content: "";
    width:91%;
    height: 2px;
    background: #00ffff;
    position: absolute;
    top: 0;
    right: auto;
    left: 0;
  }


  #house .sec#sec02.show .links:after,
  #house .sec#sec06.show .links:after{
    content: "";
    height: 352px;
    width: 2px;
    background: #00ffff;
    position: absolute;
    top: -7px;
    right: -9px;
    transform: rotate(-16deg);
    left: auto;
  }
  #house .sec#sec06.show .links:before,
  #house .sec#sec06.show .links:after{
    background:#795548;
  }
}

#house .sec#sec02:after {
  background: #00ffff;
}

@media (max-width: 1170px) {
  #house .sec#sec04 {
    background: rgba(255, 1, 234, 0.04);
    border-top: 1px solid #ff145b;
  }
  #house .sec#sec04 h2 {
    color: #ff145b;
  }
  #house .sec#sec06 {
    background: rgba(255, 1, 234, 0.04);
    border-top: 1px solid #7e5b4f;
  }
  #house .sec#sec07 {
    background: rgba(255, 1, 234, 0.04);
    border-top: 1px solid #a2d037;
    top:0;
  }
  #house .sec#sec08 {
    background: rgb(235, 230, 225);
    border-top: 1px solid rgb(105, 81, 82);
  }
}
#house .sec#sec04 h2,
#house .sec#sec05 h2,
#house .sec#sec07 h2{
  text-align:right;
}
#house .sec#sec04.show h2 {
  color: #ff145b;
}
#house .sec#sec06.show h2 {
  color: #795548;
}
#house .sec#sec07.show h2 {
  color: #9fcf30;
}

@media (min-width: 1170px) {
  #house .sec#sec04.show.delay h2:after,
  #house .sec#sec07.show.delay h2:after {
    animation: blickDelay 2s infinite;
  }
  #house .sec#sec04.show .links,
  #house .sec#sec07.show .links {
    animation: 2s sec04links forwards;
  }
  #house .sec#sec04.show .links:before,
  #house .sec#sec07.show .links:before {
    content: "";
    /*width: 90%;*/
    height: 2px;
    background: #ff145b;
    position: absolute;
    top: 0;
    right: 0;
  }
  #house .sec#sec07.show .links:before {
    background:#9fcf30;
  }

  #house .sec#sec04.show .links:after,
  #house .sec#sec07.show .links:after {
    content: "";
    height: 83px;
    width: 2px;
    background: #ff145b;
    position: absolute;
    top: -2px;
    left: 32px;
    transform: rotate(18deg);
  }
  #house .sec#sec07.show .links:after{
    transform: rotate(27deg);
    background: #9fcf30;
    top: -6px;
    left: 37px;
  }
  #house .sec#sec05 {
    top: 60%;
    top: 70%;
    left:auto;
  }

}

#house .sec#sec04:after {
  background: #ff145b;
}

@media (max-width: 1170px) {
  #house .sec#sec05 {
    background: rgba(244, 137, 0, 0.04);
    border-top: 1px solid #ff6700;
  }

  #house .sec#sec05 h2 {
    color: #ff6700;
  }
}

#house .sec#sec05 h2 {
  position: relative;
}
#house .sec#sec05.show h2 {
  color: #ff6700;
}



@media (min-width: 1170px) {
  #house .sec#sec05.show h2:after {
    animation: 3s sec04shadow forwards;
  }
}

#house .sec#sec05.show:after {
  display: block;
}

@media (min-width: 1170px) {
  #house .sec#sec05.show.delay h2:after {
    animation: blickDelay 2s infinite;
  }
  #house .sec#sec04{
    left:auto;
    top:auto;
  }
  
  #house .sec#sec08{
    top: 70%;
    left: -140px;
  }
  #house .sec#sec08 .pointos{
    display: none;
  }
  
}

@media (min-width: 1170px) {
  #house .sec#sec05.show .links {
    animation: 2s sec05links forwards;
  }

  #house .sec#sec05.show .links:before {

    width:82.8%;
    background: #ff6700;

    top: 0;
    right: 0;
  }

  #house .sec#sec05.show .links:after {
    background: #ff6700;
    top: -22px;
    left: 44px;
    transform: rotate(45deg);
    height: 109px;
  }
}

#house .sec#sec05:after {
  background: #ff6700;
}
#house .sec#sec05.show .links * {
  background: #ff6700;
  top: 64px;
  left: 1px;  
}


@media (max-width: 1170px) {
  #house .sec#sec03 {
    background: rgba(214, 233, 4, 0.04);
    border-top: 1px solid #4575b2;
  }

  #house .sec#sec03 h2 {
    color: #4575b2;
  }
  #house .sec#sec03 {
    top: 270px;
    left: 0px;
  }
}
#house .sec h2{
  position: relative;
      color: #141414;
}

#house #sec03.show .text,#house .sec#sec03 h2 {
  padding-left: 10%;
}
#house .sec#sec03 h2 {
  padding-top:10px;
}
#house .sec#sec03.show h2 {
  color: #4575b2;
}

@media (min-width: 1170px) {
  .pointos{
    display:block;
  }
  #house .cast {
    position: absolute;
    opacity: 0;
    display:block;
  }
  #house .sec#sec03 {
    top: 100%;
    left: 37%;
  }
  #house .sec#sec06 {
    top: 0;
    left: -140px;
    /* width: 200px; */
  }
  #house .sec#sec03.show.delay h2:after {
    animation: blickDelay 2s infinite;
  }
  #house .sec#sec03.show .links {

    animation: 2s sec03links forwards;
  }
  .pointos {
    position: absolute;
    width: 10px;
    height: 10px;
    background: red;
    border-radius: 50%;
    opacity:0;
  }
  .show .pointos{
    animation: 2s points forwards;
  }
  @keyframes points{
    100%{
      opacity:1;
    }
  }
  #house .sec#sec03.show .links:before {
    content: "";
    width: 91%;
    height: 2px;
    background: #4575b2;
    position: absolute;
    bottom: 0;
    /*right: 0;*/
    top: 36px;
    top:50px;
  }

  #house .sec#sec03.show .links:after {
    background: #4575b2;
    transform: rotate(-29deg);
    left: 27px;
    top: 1px;
    height: 54px;
  }

  #house .sec#sec07 {
    top: 164px;
        top: 35%;
    /* left: 0; */
    width: 570px;
  }
  #house #sec07 .text {
    padding-left: 48%;
  }
}


#house .sec#sec03:after,#house #sec03 .links *{
  background: #4575b2;
}

#house .sec.show .text p {
  margin:0;
}





#house .cast svg {
  position: absolute;
  top: 0;
  left: 0;
}



#house .cast.isol svg {
  animation: 3s isol forwards;
}

#house #cast01 {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 10;
  opacity: 1;
}

@media (min-width: 1170px) {
  #house #cast01 {
    background: url("/www/frontend/interactive-house/img/home.png") no-repeat center top;
    background-size: 70% auto;
  }
}

#house #cast02 {
  width: 61%;
  width:50%;
  left: 20%;
  top: 2%;
  /*top:62%;*/
  right: auto;
  position: absolute;
  display: block;
}

#house #cast03 {
  left: 0px;
  top: 25%;
  width: 33%;
  left: 19%;
  top: 58px;
  width: 42%;
}
@media (min-width: 1170px) {


  #house #cast04 {
    top: 7px;
    left: 13%;
    width: 70%;
  }
  #house.open #cast01 {
    animation: 3s cast01 forwards;
  }

  #house.open #cast02 {
    animation: 2s cast02 forwards;
  }

  #house.open #cast03 {
    animation: 2s cast03 forwards;
  }

  #house.open #cast04 {
    animation: 2s cast04 forwards;
  }

  #house.open #cast05 {
    animation: 2s cast05 forwards;
  }
  #house.open #cast06 {
    animation: 2s cast06 forwards;
  }

  #house.close #cast01 {
    opacity: 0;
    animation: 3s cast01Close forwards;
  }

  #house.close #cast02 {
    opacity: 1;
    animation: 2s cast02Close forwards;
  }

  #house.close #cast03 {
    top: 100px;
    left: -200px;
    opacity: 1;
    transform: scale3d(0.8, 1, 1);
    animation: 2s cast03Close forwards;
  }

  #house.close #cast04 {
    top: -70px;
    opacity: 1;
    transform: scale3d(1, 0.9, 1);
    animation: 2s cast04Close forwards;
  }

  #house.close #cast05 {
    right: -40px;
    top: 210px;
    opacity: 1;
    animation: 2s cast05Close forwards;
  }
  #house.close #cast06 {
    right: -40px;
    top: 210px;
    opacity: 1;
    animation: 2s cast06Close forwards;
  }
}

#house #cast05 {
  background: url(/www/frontend/interactive-house/img/right.png) no-repeat;
  background-size: 100% auto;
  width: 33%;
  width:30%;
  height: auto;
  position: absolute;
  opacity: 0;
  right: 119px;
  top: 90px;
}
#house #cast06
{
  background: url(/www/frontend/interactive-house/img/floor-up.png) no-repeat;
  background-size: 100% auto;
  width: 30%;
  width:88%;
  width:80%;
  height: auto;
  position: absolute;
  opacity: 0;
  right: 119px;
  top: 0%;
}


#Capa_1 polygon {
  fill: #00ffff;
  stroke: black;
  transition: all 2s;
  cursor: pointer;
}

#Capa_1 polygon:hover {
  fill: #00c1c1;
  stroke: black;
}

#Capa_2, #Links_2 {
  fill: #ff145b;
  stroke: black;
  transition: all 2s;
  cursor: pointer;
}

#Capa_2:hover, #Links_2:hover {
  fill: #d51252;
  stroke: black;
}

#Capa_3 {
  fill: #ff6700;
  stroke: black;
  transition: all 2s;
  cursor: pointer;
}

#Capa_3:hover {
  fill: #dd5800;
  stroke: black;
}

#Capa_4 {
  fill: #4575b2;
  stroke: black;
  transition: all 2s;
  cursor: pointer;
}

#Capa_4:hover {
  fill: #b6b600;
  stroke: black;
}

#Capa_5 {
  fill: #4575b2;
  stroke: black;
  transition: all 2s;
  cursor: pointer;
}

#Capa_5:hover {
  fill: #b6b600;
  stroke: black;
}

@keyframes cast01 {
  50% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

@keyframes cast02 {
  100% {
    opacity: 1;
    top:62%;
  }
}

@keyframes cast03 {
  100% {
    top: 184px;
    top:234px;
    left: 0px;
    left:89px;
    opacity: 1;
    transform: scale3d(0.8, 1, 1);
    width:33%;
  }
}

@keyframes cast04 {
  100% {
    top: -70px;
    top:0;
    opacity: 1;
    transform: scale3d(1, 0.9, 1);
    width:60%;
  }
}

@keyframes cast05 {
  100% {
    right: 153px;
    top: 151px;
    opacity: 1;
    /*transform: scale3d(0.6, 1, 1);*/
  }
}

@keyframes cast06 {
  100% {
    right: 150px;
    top: 150px;
    right: 60px;
    right:126px;
    top: 213px;
    opacity: 1;
    transform: scale3d(0.6, 1, 1);
  }
}

@keyframes cast01Close {
  99% {
    opacity: 1;
  }

  100% {
    opacity: 1;
  }
}

@keyframes cast02Close {
  20% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

@keyframes cast03Close {
  100% {
    top: 25%;
    left: 0px;
    opacity: 0;
    transform: scale3d(1, 1, 1);
  }
}

@keyframes cast04Close {
  100% {
    top: 7px;
    opacity: 0;
    transform: scale3d(1, 1, 1);
  }
}

@keyframes cast05Close {
  100% {
    right: 119px;
    top: 90px;
    opacity: 0;
  }
}
@keyframes cast06Close {
  100% {
    right: 56px;
    top: 40px;
    opacity: 0;
  }
}


@keyframes cast01Close {
  99% {
    opacity: 1; }
  100% {
    opacity: 1; } }
@keyframes cast02Close {
  20% {
    opacity: 0; }
  100% {
    opacity: 0; } }
@keyframes cast03Close {
  100% {
    top: 25%;
    left: 0px;
    opacity: 0;
    transform: scale3d(1, 1, 1); } }
@keyframes cast04Close {
  100% {
    top: 7px;
    opacity: 0;
    transform: scale3d(1, 1, 1); } }
@keyframes cast05Close {
  100% {
    right: 119px;
    top: 90px;
    opacity: 0; } }
@keyframes blinker {
  50% {
    opacity: 0; } }
@keyframes blick {
  100% {
    opacity: 1; } }
@keyframes blickDelay {
  0% {
    opacity: 0.5; }
  50% {
    opacity: 1; }
  100% {
    opacity: 0.5; } }
@keyframes gotop {
  0% {
    opacity: 0; }
  100% {
    opacity: 1; } }
@keyframes isol {
  50% {
    opacity: 0; }
  100% {
    opacity: 1; } }


@keyframes sec04shadow {
  50% {
    opacity: 0; }
  100% {
    opacity: 1; } }
@keyframes sec02before {
  0% {
    width: 0; }
  50% {
    width: 93%; }
  100% {
    width: 93%; } }
@keyframes sec02after {
  50% {
    height: 0; }
  100% {
    right: 0;
    height: 178%;
    transform: rotate(-22deg); } }
@keyframes sec04links {
  50% {
    height: 1px;
    width: 100%; }
  100% {
    height: 158%;
    width: 100%; } 
}
@keyframes sec02links {
  50% {

    width: 100%; }
  100% {

    width: 100%;
  } }
@keyframes sec03links {
  50% {
    height: 1px;
    width: 100%; }
  100% {
    height: 59%;
    width: 100%; } }
@keyframes sec05links {
  50% {
    height: 1px;
    width: 100%; }
  100% {
    height: 59%;
    width: 100%; } }
@keyframes gallery {
  100% {
    transform: scale(1.2, 1.2); } }
@keyframes materialLinks {
  50% {
    height: 1px; }
  100% {
    height: 158%; } }

#house #sec02 .text,#house #sec06 .text {
  padding-right: 9%;
  padding-right:163px;
}

#sec02 .pointos,#sec06 .pointos {
  right: 6px;
  top: 135px;
  background: cyan;
}
#sec06 .pointos{
  background:#795548;
}



#sec03 .pointos {
  background: #4575b2;
  left: 10px;
}

#sec04 .pointos {
  background: #ff145b;
  top: 110px;
  left: 16px;
}
#sec05 .pointos {
  top:105px;
  background: #ff6700;
}

#sec07 .pointos {
  top: 106px;
  left: 15px;
  background: #9fcf2f;
}
.sec-text-right *{
  text-align:right !important;
}

@media (max-width: 1170px) {
  #house{
    height:850px;
    height:950px;
  }
  #house .cast img{
    width: auto;
    max-height: 100%;
    max-width: 100%;
  }
  #house .cast {
    width: 25% !important;
    left: 0 !important;
    top: 0 !important;
    opacity:1 !important;
    height: 135px !important;
    position: static !important;
    display:flex !important;
    align-items:center;
    justify-content:center;
    padding:5px;
    background: none !important;
  }
  #house #cast01{
    display:none !important;
  }
  #house .cast:nth-child(2) {
    top: 136px !important;
  }
  #house #cast03 {
    top: 272px !important;
  }
  #house #cast06 {
    top:408px !important;
  }
  #house .cast:nth-child(5) {
    top:544px !important;
  }
  #house .sec .text{
    display:none !important;
  }
  #house .sec,#house .sec h2{
    text-align:right !important;
  }
  #house .sec{
    height: 135px !important;
  }  
  
  #house .sec#sec08,#house .sec#sec06{
    display:none;
  }
  
}
@media (max-width: 680px) {
  #house .cast {
    width: 50% !important;
  }
}
/** HOUSE END **/

#house .sec.show .text{
  display:flex;
  padding: 0;
  padding-top: 2px;
}

#house .sec#sec03 .text,
#house .sec#sec04 .text,
#house .sec#sec05 .text,
#house .sec#sec07 .text{
    justify-content: flex-end;
}
#house .sec.show .text{
  max-height: 120px;
}

.text .img-wrap {
    width: 205px;
    width: 174px;
    position: relative;
}
.text .img-wrap img{
  height:100%;
}
.text .img-wrap:after {
    content: "";
    display: block;
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 25;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 75px 100px;
    border-color: transparent transparent #96ca2d transparent;
    line-height: 0px;

}
.text .more{
    position: absolute;
    right: 20px;
    bottom: 10px;
    font-size: 16px;
    color: white;
    z-index: 30;
}

/* prebarveni na zeleno */
#house .sec.show h2 {
  color: #9fcf30 !important;
}
@media (min-width: 1170px) {
  #house .sec.show .links:before {
    background: #9fcf30 !important;
  }
  #house .sec.show .links:after{
    background: #9fcf30 !important;
  }
}

@media (max-width: 1170px) {
  #house .sec {
    border-top: 1px solid #9fcf30 !important;
  }
}
.pointos {
  background: #9fcf30 !important;
}
