:root {
	--h:98vh;
	--w:98vw;
	--katsSayiD:1.22;
	--katsSayiM:1.01;
}

*{
	box-sizing:border-box;
	user-select: none;
}
body{
	font-family: 'Poppins';
	margin:0;
    height: 100vh;
	color:#fff;
	user-select: none;
	-webkit-user-select: none; /* Safari */
	-webkit-tap-highlight-color: rgba(0,0,0,0);
	overscroll-behavior-y: contain;
	/*background: #c3bdb5;*/
    background: url('../img/room-1.png?id=1');
    background-color: rgba(255, 255, 255, 0.2);
    background-blend-mode: lighten;
}
#game-border{
    border: 0px solid #000;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

	overflow:hidden;
}
#model{
	position:absolute;
}
#model div{
	position:relative;
	width:100%;
	height:100%;
	position:absolute;
	top:0;
	left:0;
}

#body{
	background: URL("../img/body.png");
	background-size: auto 100%;
	background-repeat: no-repeat;
	background-position: center;
}

#hair{
	background: URL("");
	background-size: auto 100%;
	background-repeat: no-repeat;
	background-position: center;
}
#tops{
	background: URL("");
	background-size: auto 100%;
	background-repeat: no-repeat;
	background-position: center;
	z-index:5;
}
#bottoms{
	background: URL("");
	background-size: auto 100%;
	background-repeat: no-repeat;
	background-position: center;
}
#shoes{
	background: URL("");
	background-size: auto 100%;
	background-repeat: no-repeat;
	background-position: center;
}

#wardrobe{
	position:absolute;
	right:0;
}
#wardrobe-div{
	position:relative;
}

#wardrobe div{
	position:relative;
}
#wardrobe .left{
	position:absolute;
	background: url('../img/button-left.png');
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: center;
	top:0;
	left:0;
	height:100%;
	margin:0;
	text-align: center;
	color: #f00;
}
#wardrobe .right{
	position:absolute;
	background: url('../img/button-right.png');
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: center;
	top:0;
	right:0;
	height:100%;
	margin:0;
	text-align: center;
	color: #f00;
}

#shelves{
	position:relative;
	background:#ff8cd4;
}
.active{
	background:#c72189;
}
.passive{
	background:#ff8cd4;
}

#shelves div{
	width:25%;
	text-align:center;
	display:inline-block;
	float:left;
	cursor:pointer;
}
#shelf-1{
    background-image: url("../img/button-hairs.png");
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: center;	
}
#shelf-2{
    background-image: url("../img/button-tops.png");
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: center;	
}
#shelf-3{
    background-image: url("../img/button-bottoms.png");
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: center;	
}
#shelf-4{
    background-image: url("../img/button-shoes.png");
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: center;	
}

#w-hair{
	background: URL("../img/hair-0.png");
    background-size: auto 250%;
    background-repeat: no-repeat;
    background-position: center top;
	overflow:hidden;
}

#w-tops{
	background: URL("../img/tops-0.png");
    background-size: auto 400%;
    background-repeat: no-repeat;
    background-position: center 38%;
	overflow:hidden;
}

#w-bottoms{
	background: URL("../img/bottoms-0.png");
    background-size: auto 400%;
    background-repeat: no-repeat;
    background-position: center 60%;
	overflow:hidden;
}
#w-shoes{
	background: URL("../img/shoes-0.png");
    background-size: auto 500%;
    background-repeat: no-repeat;
    background-position: center 90%;
	overflow:hidden;
}
#w-shelf{
	position:absolute !important;
	background: rgb(255,255,255,0.6);
}
#w-shelf div{
	display:inline-block;
	cursor:pointer;
}
#message{
	position: absolute;
	display:none;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color:#fff;

	background:#ffaaf7;
	text-align:center;
	color:#452005;
	/* background: URL("../img/message-back.png"); */
	background-size: 100% auto;
	background-repeat: no-repeat;
	background-position: center;
	z-index:99;
}
#message-title{
	font-weight:bold;
	background: URL("../img/message-title.png");
	background-size: auto 100%;
	background-repeat: no-repeat;
	background-position: center;
	color:#441908;
}
#message-message{
	margin:auto;
	width:90%;
	font-weight:bold;
}
#message .close{
	position: absolute;
	background: #c72189;
	cursor:pointer;
}
#message .ok{
	font-weight:bold;
	position: absolute;
	background: #4cbb48;
	cursor:pointer;
}
#message .cancel{
	font-weight:bold;
	position: absolute;
	background: #c72189;
	cursor:pointer;
}

#restart{
	position: absolute;
	background: url('../img/button-restart.png');
	background-size: auto 100%;
	border-radius: 50%;
	cursor:pointer;
	z-index:99;
}

/* Landscape */
@media (min-aspect-ratio: 1/1) {
	body{
		background-size: 100%;
		background-position-x: center;
		background-position-y: bottom;		
	}
	#game-border{
		width: calc(var(--h)/3 *4);
		height: var(--h);
	}
	#model{
		width:calc(47vh * var(--katsSayiD));
		height:calc(80vh * var(--katsSayiD));
		top:0;
		left:0;
	}
	#wardrobe{
		top:1vh;
		right:2vh;
		width:calc(50vh);
		height:calc(95vh);
		overflow:hidden;
		border-radius: 2vh;
		box-shadow: 1vh 1vh 1vh 0 rgba(0,0,0,0.3);
	}
	#wardrobe .left{
		width:10vh;
	}
	#wardrobe .right{
		width:10vh;
	}
	
	#w-hair{
		height:10vh;
		display:none !important;		
	}

	#w-tops{
		height:10vh;
		display:none !important;		
	}

	#w-bottoms{
		height:10vh;
		display:none !important;
	}
	#w-shoes{
		height:10vh;
		display:none !important;
	}
	#w-shelf{
		display:block;
		top:7vh;
		left:0;
		width:100%;
		height:90vh;		
	}
	#w-shelf div{
		width: 50%;
		height: 18vh;
		margin: 1vh auto;
		background-position-x: center;
		background-position-y: 8%;
		background-size: 90%;
		background-repeat: no-repeat;
	}	
	
	#shelves{
		height:7vh;
	}
	#shelves div{
		height:7vh;
		line-height:7vh;
	}
	
	#message{
		width:60vh;
		height:30vh;
		border:2px solid #fff;
		border-radius:2vh;
	}
	#message-title{
		width:59vh;
		height:4vh;
		line-height:4vh;
		font-size:5vh;
		margin:2vh auto 1vh auto;
	}
	#message-message{
		font-size:3.5vh;
		line-height:5vh;
	}
	#message .close{
		width:5vh;
		height:5vh;
		line-height:5vh;
		font-size:3vh;
		font-weight:bold;
		top:1vh;
		right:1vh;
		border-radius:1vh;
	}
	#message .ok{
		width:17vh;
		height:7vh;
		line-height:7vh;
		font-size:3vh;
		bottom:3vh;
		left:10vh;
		border-radius:1vh;
	}
	#message .cancel{
		width:17vh;
		height:7vh;
		line-height:7vh;
		font-size:3vh;
		bottom:3vh;
		right:10vh;
		border-radius:1vh;
	}
	#designer{
		position: absolute;
		bottom: 0;
		left: 0;
		color: #af0034;
		font-size: 2vh;		
	}
	#restart{
		box-shadow: 1vh 1vh 1vh 0 rgba(0,0,0,0.3);
		top: 1vh;
		right: 55vh;
		width: 8vh;
		height: 8vh;
	}
}

/* Portrait */
@media (max-aspect-ratio: 1/1) {
	body{
		background-size: auto 100%;
		background-position-x: 35%;
		background-position-y: bottom;		
	}
	#game-border{
		height: 100vh;
		width: 100vw;
	}
	#model{
		width: calc(47vh * var(--katsSayiM));
		height: calc(80vh * var(--katsSayiM));
		bottom: -6vh;
		left: calc((90vw - (47vh * var(--katsSayiM)))/2);
	}
	#wardrobe{
		width:96vw;
		height:37vw;
		top:2vw;
		left:2vw;
		overflow:hidden;
		background: rgb(255,255,255,0.4);
		border-radius: 2vw;
		box-shadow: 1vw 1vw 1vw 0 rgba(0,0,0,0.3);
	}
	#wardrobe .left{
		width: 20vw;
		line-height: 25vw;
		font-size: 30vw;
	}
	#wardrobe .right{
		width: 20vw;
		line-height: 25vw;
		font-size: 30vw;
	}
	#w-hair{
		height:25vw;
		display:block;			
	}

	#w-tops{
		height:25vw;
		display:none;
	}

	#w-bottoms{
		height:25vw;
		display:none;
	}
	#w-shoes{
		height:25vw;
		display:none;
	}
	#w-shelf{
		display:none;		
	}

	#shelves{
		height:12vw;
	}
	#shelves div{
		height:12vw;
		line-height:12vw;
	}
	
	#message{
		width:60vw;
		height:28.8vw;
		border:1px solid #fff;
		border-radius:2vw;
	}
	#message-title{
		width:59vw;
		height:4vw;
		line-height:4vw;
		font-size:4vw;
		margin:1vw auto 2vw auto;
	}
	#message-message{
		font-size:4vw;
		line-height:5vw;
	}
	#message .close{
		width:5vw;
		height:5vw;
		line-height:5vw;
		font-size:3.2vw;
		top:1vw;
		right:1vw;
		border-radius:1vw;
	}
	#message .ok{
		width:18vw;
		height:7vw;
		line-height:7vw;
		font-size:4vw;
		bottom:2vw;
		left:9vw;
		border-radius:1vw;
	}
	#message .cancel{
		width:18vw;
		height:7vw;
		line-height:7vw;
		font-size:4vw;
		bottom:2vw;
		right:9vw;
		border-radius:1vw;
	}
	#designer{
		position: absolute;
		bottom: 0;
		left: 0;
		width:100%;
		text-align:center;
		color: #af0034;
		font-size: 2vw;		
	}
	#restart{
		box-shadow: 1vw 1vw 1vw 0 rgba(0,0,0,0.3);
		top: 42vw;
		left: 2vw;
		width: 10vw;
		height: 10vw;
	}
}