* {
	padding: 0;
	margin: 0;
	outline: none;
	border: none;
	box-sizing: border-box;
}

body {
	font-family: 'Playpen Sans', sans-serif;
	background-color: #E0E1DD;
	background-size: cover;
	background-repeat: no-repeat;
}

.display-size-warning {
	display: none;
}

/* 
############### Header Start ###############
*/

header {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 30px;
	margin: 30px 30px 0 50px;
}

header p {
	position: relative;
	bottom: 5px;
	text-align: center;
}

/* 
############### Header End ###############
*/

/* 
############### Main start ###############
*/

main {
	justify-content: center;
	margin: 0 35px 0 35px;
}

/* 
* Dials Start
*/

.row-dials {
	margin: 50px 0 50px 0;
	display: grid;
	column-gap: 5px;
	grid-template-columns: auto auto auto auto;
}

.dial-button {
	height: 50px;
	width: 50px;
	background-color: #465A78;
	color: #fff;
	font-size: large;
	padding: 5px;
	border-radius: 100%;
}

.dial-button:hover {
	background-color: #4f6687;
	cursor: pointer;
}

.dial-button:active {
	box-shadow: inset -2px -2px #394a62;
	transform: translateY(2px);
}

/* 
* Dials End
*/

/* 
* Elevators Start
*/

main {
	display: flex;
	gap: 30px;
}

/* 
* Person Start
*/

.person {
	position: absolute;
	top: 3px;
	display: flex;
	flex-direction: column;
	align-items: center;
	opacity: 0;
	z-index: 3;
}

.person-head {
	background-color: #99afd1;
	border-radius: 100%;
	height: 22px;
	width: 22px;
}

.person-upper {
	display: flex;
}

.person-body {
	background-color: #99afd1;
	height: 25px;
	width: 20px;
}

.person-left-arm {
	background-color: #99afd1;
	height: 25px;
	width: 10px;
}

.person-right-arm {
	background-color: #99afd1;
	height: 25px;
	width: 10px;
}

.person-lower {
	display: flex;
	gap: 2px;
}

.person-left-leg {
	background-color: #99afd1;
	height: 30px;
	width: 12px;
}

.person-right-leg {
	background-color: #99afd1;
	height: 30px;
	width: 12px;
}

/* 
* Person End
*/

.elevators-container {
	position: relative;
	top: 30px;
	border: 2px black solid;
	width: 900px;
	height: 500px;
}

.floorlines {
	display: flex;
	flex-direction: column;
	justify-content: space-evenly;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.floorline-4,
.floorline-3,
.floorline-2,
.floorline-1 {
	height: 2px;
	background-color: #000000;
	width: 100%;
}

.elevators {
	display: flex;
	justify-content: space-evenly;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 2;
}

.elevator-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.elevator-line {
	position: absolute;
	background-color: rgba(0, 0, 0, 0.05);
	height: 497px;
	width: 2px;
}

.elevator-container {
	position: absolute;
	margin-top: 416px;
	background-color: #fff;
	height: 80px;
	width: 45px;
	display: flex;
	border-radius: 10px;
	overflow: hidden;
}

/* Door Animation */
.elevator-open .elevator-left {
	transform: translateX(-120%);
}

.elevator-open .elevator-right {
	transform: translateX(120%);
}

.elevator-close .elevator-left,
.elevator-close .elevator-right {
	transform: translateX(0);
}

.elevator-left {
	background-color: #101B2A;
	height: 100%;
	width: 21.5px;
	border-top-left-radius: 10px;
	border-bottom-left-radius: 10px;

	transition: transform 1s ease;
}

.elevator-left-top {
	position: absolute;
	margin: 5px 0 0 1px;
	background-color: #7B8DAA;
	height: 20%;
	width: 19px;
	border-top-left-radius: 5px;
	border-bottom-left-radius: 5px;
}

.elevator-left-bottom {
	position: absolute;
	margin: 0 0 5px 1px;
	left: 0;
	bottom: 0;
	background-color: #7B8DAA;
	height: 20%;
	width: 19px;
	border-top-left-radius: 5px;
	border-bottom-left-radius: 5px;
}

.elevator-right {
	position: absolute;
	right: 0;
	background-color: #101B2A;
	height: 100%;
	width: 21.5px;
	border-top-right-radius: 10px;
	border-bottom-right-radius: 10px;

	transition: transform 1s ease;
}

.elevator-right-top {
	position: absolute;
	margin: 5px 1px 0 0;
	right: 0;
	background-color: #7B8DAA;
	height: 20%;
	width: 19px;
	border-top-right-radius: 5px;
	border-bottom-right-radius: 5px;
}

.elevator-right-bottom {
	position: absolute;
	margin: 0 1px 5px 0;
	bottom: 0;
	right: 0;
	background-color: #7B8DAA;
	height: 20%;
	width: 19px;
	border-top-right-radius: 5px;
	border-bottom-right-radius: 5px;
}

/* 
* Elevators End
*/

/* 
* Floors Start
*/

.floor {
	display: flex;
	flex-direction: column;
}

.floornumber {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	margin: 50px 0 50px 0;
	height: 50px;
	width: 50px;
	background-color: #8aa2c6;
	color: #000000;
	font-size: large;
	padding: 5px;
	border-radius: 25%;
}

/* 
* Floors End
*/

/* 
############### Main End ###############
*/

/* 
* Media Start
*/

@media only screen and (max-width: 1300px) {
	.row-dials {
		grid-template-columns: auto auto;
		gap: 3px;
		margin: 22.5px 0;
	}

	.dial-button {
		height: 30px;
		width: 30px;
		margin: 5px 0 5px 0;
		font-size: small;
	}
}

@media only screen and (max-width: 650px) {

	#elevator-4,
	#elevator-5,
	#elevator-6 {
		display: none;
	}

	main {
		gap: 10px;
		margin: 0 5px 0 5px;
	}
}

@media only screen and (max-width: 400px) {
	header h1 {
		font-size: large;
	}
}

@media only screen and (max-width: 350px) {

	main,
	header {
		display: none;
	}

	.display-size-warning {
		text-align: center;
		display: block;
	}
}

/* 
* Media End
*/