/*
	Your home
*/
#Home {
	
	.home-display {
		position: absolute;
		left: 0px;
		top: 0px;
		width: 1024px;
		height: 768px;
		
		/*	Different home backgrounds	*/
		&#home-0 { background-image: url('../images/home/home-0.png'); }
		&#home-1 { background-image: url('../images/home/home-1.png'); }
		&#home-2 { background-image: url('../images/home/home-2.png'); }
		
		/*	The car and its images	*/
		.car-display {
			position: absolute;
			width: 175px;
			height: 300px;

			&#car-1 { background-image: url('../images/home/home-auto-1.png'); }
			&#car-2 { background-image: url('../images/home/home-auto-2.png'); }
			&#car-3 { background-image: url('../images/home/home-auto-3.png'); }
			&#car-4 { background-image: url('../images/home/home-auto-4.png'); }
		}
		
		/*
			Positions your car depending on which home
			you are in. (The car shouldn't show up in the shack,
			but it's rules are here just in case we decide to allow it.)
		*/
		&#home-0 .car-display {
			left: 0px;
			top: 50px;
			filter: brightness( 0.5 );
		}
		&#home-1 .car-display {
			right: 60px;
			top: 330px;
			transform: scale( 0.9 );
		}
		&#home-2 .car-display {
			left: 50px;
			top: 265px;
			transform: scale( 0.7 ) rotate( 90deg );
		}
		
		/*	The bed button.	*/
		#bed {
			position: absolute;
			width: 201px;
			height: 125px;
			background-image: url( '../images/home/bed.png' );
			text-align: center;
			padding: 10px;
			padding-left: 60px;
			padding-bottom: 25px;
			color: white;
			font-weight: bold;
			text-transform: uppercase;
			display: flex;
			flex-direction: column;
			justify-content: space-around;
			align-items: center;
			border-radius: 15px;
			
			/* Text.  First child is "Rest", second is "(End Round)".	*/
			:nth-child(1) {
				font-size: 45px;
			}
			:nth-child(2) {
				font-size: 18px;
			}
		}
		
		&#home-0 #bed { right: 220px; top: 100px; }
		&#home-1 #bed { right:  40px; top: 100px; }
		&#home-2 #bed { right: 278px; top:  90px; }
	
		/*	The ATM button.	*/
		#atm {
			position: absolute;
			width: 202px;
			height: 125px;
			background-image: url( '../images/home/atm.png' );
			text-align: center;
			padding: 10px;
			padding-left: 95px;
			padding-right: 30px;
			padding-top: 30px;
			padding-bottom: 45px;
			color: white;
			font-weight: bold;
			text-transform: uppercase;
			display: flex;
			flex-direction: column;
			justify-content: center;
			align-items: center;
			border-radius: 15px;
			
			/* Text.  First child is "Rest", second is "(End Round)".	*/
			:nth-child(1) {
				font-size: 40px;
			}
			:nth-child(2) {
				font-size: 16px;
			}
		}

		&#home-0 #atm { right: 220px; top: 250px; }
		&#home-1 #atm { right:  40px; top: 250px; }
		&#home-2 #atm { right: 278px; top: 240px; }
	
		
	}

	#home-exit {
			position: absolute;
	left: 0px;
	top: 0px;
	width: 80px;
	height: 81px;
	background-image: url('../images/buttons/button_exit.png');
    background-repeat:no-repeat;
	text-transform: uppercase;
	display: grid;
	align-items: center;
	justify-items: center;
	padding-left: 6px;
	padding-right: 0px;
	font-size: 12px;
	color: black;
	font-weight: bold;
	text-align: center;
	filter: brightness( 0.8 );
    transform-origin: left top;
    transition:all .2s ease-in-out;
	
        &.tab-highlighted {
            filter: none;
            outline: none;
            transform: scale( 1.1 );
            filter: brightness( 1.1 );
        }
	}
	
	
}

#ReceiveCreditCard {
	.glow {
		display: grid;
		width: 300px;
		height: 300px;
		align-items: center;
		justify-items: center;
		background: radial-gradient( closest-side, white 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100% );
	}
	.offer-credit-card {
		border-radius: 10px;
		padding: 30px;
		text-align: center;
		transition: transform 1s ease;
		
		&.taken {
			transform: translate( -100px, 360px ) scale( 0.2 );
		}
		
	}
	.offer-credit-card > div {
		font-size: 24px;
		font-weight: bold;
	}
	.offer-credit-card img {
		border-radius: 30px;
		animation-duration: 0.75s;
		animation-direction: alternate;
		animation-iteration-count: infinite;
		animation-fill-mode: forwards;
		animation-name: credit-card-pulse;
		animation-timing-function: ease-in-out;
		transform-origin: 50% 50%;
		
		&.tab-highlighted {
			filter: brightness( 1.0 );
		}
		
	}
}

@keyframes credit-card-pulse {
	0% {
		transform: scale( 1.0 ) rotate( -5deg );
	}
	100% {
		transform: scale( 1.1 ) rotate( -10deg );
	}
}
