Mouse in the House by

Stela

On: 3 Jul 2016

<div class="kitchen-container">
    <div class="mouse-container">
        <div class="mouse"></div>
        <div class="tail"></div>
        <div class="ear"></div>
    </div>
    <div class="kitchen">
        <div class="cupboards ground">
            <div class="cupboard"></div>
                <div class="drawers">
                <div class="drawer one"></div>
                <div class="drawer two"></div>
                <div class="drawer three"></div>
                <div class="drawer four"></div>
            </div>
            <div class="oven">
                <div class="knobs">
                <div class="o-knobs">
                    <div class="one"></div>
                    <div class="two"></div>
                </div>
                <div class="hob-knobs">
                    <div class="one"></div>
                    <div class="two"></div>
                    <div class="three"></div>
                    <div class="four"></div>
                </div>
                </div>
                <div class="handle"></div>
                <div class="glass"></div>
                <div class="pot-container">
                    <div class="lid"></div>
                    <div class="pot"></div>
                </div>
                <div class="pan"></div>
            </div>
            <div class="cupboard"></div>
            <div class="cupboard">
                <div class="sink"></div>
            </div>
        </div>
        <div class="cupboards top">
            <div class="cupboard"></div>
            <div class="cupboard"></div>
            <div class="hood"></div>
            <div class="shelves">
                <div class="cupboard"></div>
                <div class="shelf first">
                <div class="cups">
                    <div class="cup one"></div>
                    <div class="cup two"></div>
                    <div class="cup three"></div>
                </div>
                <div class="cups">
                    <div class="cup one"></div>
                    <div class="cup two"></div>
                    <div class="cup three"></div>
                </div>
                <div class="cups">
                    <div class="cup one"></div>
                    <div class="cup two"></div>
                    <div class="cup three"></div>
                </div>
                </div>
            </div>
            <div class="shelves">
                <div class="shelf second">
                <div class="glasses">
                    <div class="glass"></div>
                    <div class="glass"></div>
                </div>
                <div class="plates">
                    <div class="plate"></div>
                    <div class="plate"></div>
                    <div class="plate"></div>
                    <div class="plate"></div>
                </div>
                </div>
                <div class="shelf third">
                <div class="plates">
                    <div class="plate"></div>
                    <div class="plate"></div>
                    <div class="plate"></div>
                    <div class="plate"></div>
                    <div class="plate"></div>
                </div>
                <div class="pot-container">
                    <div class="lid"></div>
                    <div class="pot"></div>
                </div>
                </div>
                <div class="shelf forth"></div>
            </div>
        </div>
        <div class="utensils">
            <div class="hanger"></div>
            <div class="spatula utensil"></div>
            <div class="spoon utensil"></div>
            <div class="slotted-turner utensil">
                <div class="empty"></div>
                <div class="empty"></div>
                <div class="empty"></div>
            </div>
            <div class="glove utensil"></div>
        </div>
    </div>
</div>
/* colours */
/* http://www.colourlovers.com/palette/1302522/50s_Kitchen */
html,
body {
  height: 100%;
  width: 100%;
  background: #FAEDCF;
  margin: 0;
  padding: 0;
}
:before,
:after {
  content: "";
  display: block;
}
.kitchen-container {
  position: relative;
  height: 100%;
  min-height: 500px;
  width: 980px;
  background: #FAEDCF;
  margin: 0 auto;
  overflow: hidden;
}
/* mouse */
.mouse-container {
  position: absolute;
  animation: scared 5s ease-in;
  bottom: 2px;
  right: 44px;
}
.mouse-container .mouse {
  height: 12px;
  width: 20px;
  background: #80756E;
  border-radius: 100% 0 0 0;
}
.mouse-container .mouse:before {
  height: 12px;
  width: 10px;
  position: absolute;
  border-radius: 0 50% 50% 0;
  background: #80756E;
  left: 20px;
}
.mouse-container .tail {
  height: 20px;
  width: 20px;
  position: absolute;
  border-top: 2px solid #80756E;
  border-radius: 50%;
  top: 2px;
  left: 25px;
}
.mouse-container .ear {
  height: 10px;
  width: 6px;
  position: absolute;
  background: #80756E;
  border-radius: 50%;
  top: -1px;
  left: 3px;
}
/* mouse animation */
@keyframes scared {
  0% {
    right: 90px;
    bottom: 207px;
    z-index: 0;
  }
  15% {
    right: 90px;
    bottom: 207px;
    z-index: 0;
  }
  25% {
    right: 400px;
    z-index: 0;
  }
  35% {
    right: 410px;
    z-index: 0;
  }
  40% {
    right: calc(100% - 45px);
    transform: rotate(0deg);
    z-index: 0;
  }
  41% {
    bottom: 207px;
    right: calc(100% - 45px);
    transform: rotate(-90deg);
    z-index: 10;
  }
  50% {
    bottom: 2px;
    right: calc(100% - 45px);
    transform: rotate(-90deg);
    z-index: 10;
  }
  51% {
    bottom: 2px;
    transform: rotate(0deg) rotateY(180deg);
    z-index: 10;
  }
  100% {
    bottom: 2px;
    right: 20px;
    transform: rotate(0deg) rotateY(180deg);
    z-index: 10;
  }
}
/* kitchen */
.kitchen {
  position: relative;
  height: 100%;
  width: 100%;
  margin: 0 auto;
  max-width: 900px;
}
.kitchen .cupboards.ground {
  height: 200px;
  width: 100%;
  position: absolute;
  background: white;
  border-top: 6px solid #B4D1C5;
  display: flex;
  bottom: 0;
  left: 0;
}
.kitchen .cupboards.ground .cupboard {
  position: relative;
  box-sizing: border-box;
  padding: 0;
  background: #B4D1C5;
  border-left: 6px solid #d4e4dd;
  flex: 2;
  /* handles */
}
.kitchen .cupboards.ground .cupboard:last-child {
  background: #94bead;
  transform: rotate(180deg);
}
.kitchen .cupboards.ground .cupboard:first-child {
  background: #9ec3b4;
}
.kitchen .cupboards.ground .cupboard:before {
  box-sizing: border-box;
  padding: 0;
  height: 30px;
  width: 6px;
  position: absolute;
  border: 3px solid #80756E;
  border-radius: 3px;
  top: calc(50% - 15px);
  right: 10px;
}
.kitchen .cupboards.ground .cupboard .sink {
  height: 70px;
  width: 40px;
  position: absolute;
  border-bottom: 8px solid #80756E;
  border-left: 8px solid #80756E;
  border-right: 8px solid transparent;
  border-radius: 0 0 50px 50px;
  bottom: -85px;
  left: 20px;
}
.kitchen .cupboards.ground .oven {
  position: relative;
  background: white;
  flex: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.kitchen .cupboards.ground .oven .knobs {
  box-sizing: border-box;
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  width: 100%;
}
.kitchen .cupboards.ground .oven .knobs .o-knobs {
  display: flex;
}
.kitchen .cupboards.ground .oven .knobs .o-knobs .one,
.kitchen .cupboards.ground .oven .knobs .o-knobs .two {
  height: 12px;
  width: 12px;
  background: #80756E;
  border-radius: 50% 20%;
  margin: 4px;
}
.kitchen .cupboards.ground .oven .knobs .hob-knobs {
  display: flex;
}
.kitchen .cupboards.ground .oven .knobs .hob-knobs .one,
.kitchen .cupboards.ground .oven .knobs .hob-knobs .two,
.kitchen .cupboards.ground .oven .knobs .hob-knobs .three,
.kitchen .cupboards.ground .oven .knobs .hob-knobs .four {
  height: 10px;
  width: 10px;
  background: #80756E;
  border-radius: 50%;
  margin: 6px;
}
.kitchen .cupboards.ground .oven .handle {
  height: 10px;
  width: 80%;
  background: #80756E;
  border-radius: 10px;
  margin: 5px 0;
}
.kitchen .cupboards.ground .oven .glass {
  height: 100px;
  width: 80%;
  background: #e6e0b7;
  border-radius: 10px;
  margin: 12px 0 0 0;
}
.kitchen .cupboards.ground .oven .pot-container .pot {
  position: absolute;
  top: -42px;
  right: 20px;
}
.kitchen .cupboards.ground .oven .pot-container .pot:before {
  position: absolute;
  top: 3px;
  left: -12px;
}
.kitchen .cupboards.ground .oven .pot-container .pot:after {
  position: absolute;
  top: 3px;
  right: -12px;
}
.kitchen .cupboards.ground .oven .pot-container .lid {
  position: absolute;
  top: -47px;
  right: 20px;
}
.kitchen .cupboards.ground .oven .pot-container .lid:before {
  position: absolute;
  top: -5px;
  right: 27px;
}
.kitchen .cupboards.ground .oven .pan {
  width: 70px;
  position: absolute;
  background: #D9CF91;
  border-radius: 0 0 20px 20px;
  height: 14px;
  top: -21px;
  left: 20px;
}
.kitchen .cupboards.ground .oven .pan:before {
  height: 6px;
  width: 40px;
  position: absolute;
  border-radius: 2px;
  background: #ccbe6b;
  top: 0;
  left: -38px;
}
.kitchen .cupboards.ground .drawers {
  box-sizing: border-box;
  padding: 0;
  background: white;
  border-left: 6px solid #B4D1C5;
  border-right: 6px solid #B4D1C5;
  flex: 2;
  display: flex;
  flex-direction: column;
}
.kitchen .cupboards.ground .drawers .drawer {
  flex: 1;
  position: relative;
  /* handles */
}
.kitchen .cupboards.ground .drawers .drawer:nth-child(odd) {
  background: #B4D1C5;
}
.kitchen .cupboards.ground .drawers .drawer:before {
  height: 6px;
  width: 20px;
  position: absolute;
  background: #80756E;
  border-radius: 2px;
  top: calc(50% - 3px);
  left: calc(50% - 10px);
}
.kitchen .cupboards.top {
  height: 180px;
  width: 100%;
  display: flex;
}
.kitchen .cupboards.top .cupboard {
  flex: 2;
  background: #B4D1C5;
  border-left: 6px solid #d4e4dd;
  position: relative;
}
.kitchen .cupboards.top .cupboard:nth-child(2) {
  background: #c4dbd1;
  transform: rotate(180deg);
}
.kitchen .cupboards.top .cupboard:before {
  box-sizing: border-box;
  padding: 0;
  height: 30px;
  width: 6px;
  position: absolute;
  border: 3px solid #80756E;
  border-radius: 3px;
  top: calc(50% - 15px);
  right: 10px;
}
.kitchen .cupboards.top .hood {
  position: relative;
  background: #e4bb9f;
  flex: 3;
}
.kitchen .cupboards.top .hood:after {
  height: 0;
  width: 100%;
  position: absolute;
  border-bottom: 40px solid #dca883;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  bottom: -40px;
  left: -30px;
}
.kitchen .cupboards.top .shelves {
  border-right: 6px solid #B4D1C5;
  display: flex;
  flex-direction: column;
  flex: 2;
}
.kitchen .cupboards.top .shelves .cupboard {
  border: none;
  transform: rotate(180deg);
}
.kitchen .cupboards.top .shelves .shelf {
  align-items: flex-end;
  background: #fcf6e6;
  border-bottom: 6px solid #B4D1C5;
  display: flex;
  justify-content: space-around;
  flex: 1;
}
.kitchen .cupboards.top .shelves .shelf.first {
  align-items: flex-end;
}
.kitchen .cupboards.top .shelves .shelf.first .cups {
  margin: 0 10px;
}
.kitchen .cupboards.top .shelves .shelf.first .cups:nth-child(3) .cup:nth-child(odd) {
  background: #B4D1C5;
}
.kitchen .cupboards.top .shelves .shelf.first .cups:nth-child(3) .cup:nth-child(odd):after {
  border-color: #B4D1C5;
}
.kitchen .cupboards.top .shelves .shelf.first .cups:nth-child(1) .cup:nth-child(2) {
  background: #B4D1C5;
}
.kitchen .cupboards.top .shelves .shelf.first .cups:nth-child(1) .cup:nth-child(2):after {
  border-color: #B4D1C5;
}
.kitchen .cupboards.top .shelves .shelf.first .cups:nth-child(2) .cup:nth-child(odd) {
  background: #D69A6F;
}
.kitchen .cupboards.top .shelves .shelf.first .cups:nth-child(2) .cup:nth-child(odd):after {
  border-color: #D69A6F;
}
.kitchen .cupboards.top .shelves .shelf.first .cups .cup {
  height: 15px;
  width: 30px;
  position: relative;
  background: #D9CF91;
  border-radius: 0 0 100% 100%;
}
.kitchen .cupboards.top .shelves .shelf.first .cups .cup:after {
  height: 10px;
  width: 10px;
  position: absolute;
  box-sizing: border-box;
  border: 3px solid #D9CF91;
  border-radius: 3px;
  right: -7px;
}
.kitchen .cupboards.top .shelves .shelf.second .glasses {
  display: flex;
}
.kitchen .cupboards.top .shelves .shelf.second .glasses .glass {
  height: 35px;
  width: 20px;
  background: #B4D1C5;
  border-radius: 0 6px;
  margin: 0 5px;
}
.kitchen .cupboards.top .shelves .shelf.third .plates .plate {
  width: 45px;
}
.kitchen .cupboards.top .shelves .shelf.third .plates .plate:nth-child(2n) {
  border-color: #80756E;
}
.kitchen .cupboards.top .shelves .shelf.third .pot-container .pot {
  position: relative;
  background: #B4D1C5;
}
.kitchen .cupboards.top .shelves .shelf.third .pot-container .pot:before {
  position: absolute;
  background: #94bead;
  left: -12px;
}
.kitchen .cupboards.top .shelves .shelf.third .pot-container .pot:after {
  position: absolute;
  background: #94bead;
  right: -20%;
}
.kitchen .cupboards.top .shelves .shelf.third .pot-container .lid {
  position: relative;
  background: #94bead;
}
.kitchen .cupboards.top .shelves .shelf.third .pot-container .lid:before {
  position: absolute;
  background: #5a927b;
  top: -6px;
  left: calc(50% - 3px);
}
.kitchen .utensils {
  position: relative;
}
.kitchen .utensils .hanger {
  height: 12px;
  width: 180px;
  background: #b0a9a4;
  margin: 16px 0 0 10px;
}
.kitchen .utensils .utensil {
  position: absolute;
  background: #80756E;
  top: 50px;
}
.kitchen .utensils .utensil:before {
  height: 50px;
  width: 6px;
  position: absolute;
  background: #80756E;
  top: -45px;
  left: 7px;
}
.kitchen .utensils .spatula {
  height: 30px;
  width: 20px;
  border-radius: 12px 12px 0 0;
  left: 20px;
}
.kitchen .utensils .spatula:before {
  left: 7px;
}
.kitchen .utensils .spoon {
  height: 30px;
  width: 20px;
  border-radius: 50% 50%;
  left: 50px;
}
.kitchen .utensils .slotted-turner {
  height: 30px;
  width: 30px;
  border-radius: 100% 100% 0 0;
  left: 80px;
}
.kitchen .utensils .slotted-turner .empty {
  height: 18px;
  width: 3px;
  position: absolute;
  background: #FAEDCF;
}
.kitchen .utensils .slotted-turner .empty:first-child {
  left: 5px;
  bottom: 3px;
}
.kitchen .utensils .slotted-turner .empty:nth-child(2) {
  left: 13px;
  bottom: 3px;
}
.kitchen .utensils .slotted-turner .empty:nth-child(3) {
  left: 21px;
  bottom: 3px;
}
.kitchen .utensils .slotted-turner:before {
  left: 11px;
}
.kitchen .utensils .glove {
  height: 60px;
  width: 40px;
  border-radius: 3px 3px 50% 50%;
  transform: rotate(-40deg);
  top: 10px;
  left: 140px;
}
.kitchen .utensils .glove:before {
  height: 25px;
  width: 15px;
  border-radius: 0 0 50% 50%;
  transform: rotate(50deg);
  left: -12px;
  top: 5px;
}
.kitchen .pot-container .pot {
  height: 35px;
  width: 60px;
  background: #e1b697;
  border-radius: 3px 3px 20px 20px;
}
.kitchen .pot-container .pot:before,
.kitchen .pot-container .pot:after {
  height: 5px;
  width: 12px;
  background: #D69A6F;
  border-radius: 3px;
}
.kitchen .pot-container .lid {
  height: 5px;
  width: 60px;
  background: #D69A6F;
  border-radius: 100% 100% 0 0;
}
.kitchen .pot-container .lid:before {
  height: 6px;
  width: 6px;
  background: #c17137;
  border-radius: 10px;
}
.kitchen .plates {
  margin: 1px;
}
.kitchen .plates .plate {
  height: 3px;
  width: 60px;
  border-bottom: 6px solid #D69A6F;
  border-radius: 40%;
  margin: 0px;
}

80