:root {
    
    --rad:16px;
}

#StallOptions .safearea,
#StallTypeDetail .safearea,
#NonFoodStallOptions .safearea,
#TutorialSelectGreens .safearea {
	display: flex;
	align-items: center;
}

/*
	The grid view of the available stall options.
*/
#stall-selector {
	display: grid;
	align-items: center;
	justify-items: center;
	width: 100%;
	height: 100%;
	
	& #stall-options-display {
		position: relative;
		background-color: #bdf;
		padding: 20px 40px;
		border-radius: 20px;
		border: 4px solid black;
		box-shadow: 0px 10px 5px black;
		color: black;
		
		& h1 {
			text-align: center;
		}
		
	}
	
	& #stall-grid {
		width: 100%;
		display: grid;
		grid-template-columns: 1fr 1fr;
		align-items: stretch;
		justify-items: stretch;
		grid-row-gap: 15px;
		grid-column-gap: 40px;
		
		.stall-purchase-option {
			position: relative;
			background-color: white;
			display: grid;
			align-items: center;
			grid-template-columns: 40px 1fr;
			border-radius: 10px;
			padding: 5px;
			border: 2px solid gray;
			box-shadow: 0px 5px 5px rgba( 0,0,0,0.5 );
			
			&:active {
				transform: translate( 0px, 5px );
			}
			
		}
		
		& img {
			width: 40px;
			transform: scale( 200% ) translate( -5px, 0px );
		}
		
		& .stall-title {
			font-size: 14px;
			padding: 0px 10px;
			border-radius: 0px 0px 10px 10px;
			font-weight: bold;
		}

		& .tab-highlighted .stall-title {
		}
		& .tab-highlighted {
			outline: 2px solid black;
			background-color: yellow;
		}

	}
	
	& .checked:before {
		width: 30px;
		height: 30px;
		background-image: url("../images/ui/Check.png");
		background-size: contain;
		background-repeat: no-repeat;
		z-index: 1;
		position: absolute;
		top: -4px;
		right: -4px;
		display: block;
		content: '';
	}
	
	
}



#stall-menu {
/*    overflow: hidden;*/
    padding:0;
    height:auto;
    box-shadow:0 2px 5px 0 rgba(0,0,0,.5);
    display:flex;
    flex-direction: column;
    border-radius:var(--rad);
}

.stall-window {
    position:relative;
    background:white;
    margin:0;
    display:flex;
    flex-flow: column;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
    zmin-height:380px;
    height:auto;
    padding:10px 15px;
    border-radius: var(--rad);
    border:3px solid var(--yellow-dark);
    
}



#NonFoodStallOptions {
	& .stall-window {
		justify-content: space-between;
		text-align: left;
		
		& .minigame-icon {
			width: 100px;
		}

	}
	& .nonfood-buttons {
		width: 100%;
		display: flex;
		gap: 20px;
		justify-content: space-between;
		
		& button {
			padding: 10px;
			flex-grow: 1;
		}
		
	}
}

.stall-window .minigame-icon {
	width: 100px;
}

.stall-buttons {
	display: flex;
	align-items: stretch;
	justify-items: stretch;
	justify-content: space-between;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	width: 100%;
	& > * {
		flex-grow: 1;
	}
}

.stall-description-heading {
    margin:2px auto;
    padding:10px 0 5px 0;
    align-self: flex-start;
    position:relative;
    display:flex;
    align-items: center;
    width:100%;
    border-bottom:1px solid var(--yellow-dark);
    h1 {
        margin:0 auto;
        font-size: 32px;
    }
}
.stall-description-heading-image {
    content:'';
    display:block;
    position:absolute;
    height:120px;
    width:120px;
    top:-95px;
    left:calc(50% - 60px);
    > img {
    	width: 120px;
    	height: 120px;
    }
    
}

#baked-goods-description.stall-description-heading:before {
    background-image: url(../images/stall-icons/baked-goods-icon.png);
}
#eggs-description.stall-description-heading:before {
    background-image: url(../images/stall-icons/eggs-icon.png);
}
#meat-description.stall-description-heading:before {
    background-image: url(../images/stall-icons/meat-icon.png);
}

/*
.stall-description-profit {
    margin:0 auto;
    padding:5px 0;
    display:flex;
    flex-flow: row;
    align-items: center;
    width:100%;
    border-bottom:1px solid var(--yellow-dark);
    
    p {
       width:90%;
    }
}

.stall-description .sub-heading {
    text-transform:uppercase;
    display:block;
    font-weight:bold;
    font-size:95%;
}
.stall-description .cost {
    font-size:140%;
    font-weight: bold;
}
.stall-description ul {
    margin:5px auto;
    font-size:12pt;
}



.stall-description-body {
      margin:0 auto;
    padding:5px 0;
    display:flex;
    flex-flow: column;
    align-items: center;
    width:95%;
}
*/


.stall-description-body {
	display: grid;
	grid-template-columns: 1fr 1fr 2fr;
	grid-template-rows: 1fr auto;
	padding: 20px;
	grid-column-gap: 20px;
	grid-row-gap: 10px;
	grid-auto-flow: column;
	align-items: end;
	
	> :nth-child( 2n+1 ) {
		text-align: center;
		font-weight: bold;
		border-bottom: 1px solid var(--yellow-dark);
		font-variant-caps: small-caps;
		color: var(--yellow-dark);
	}
	
	> :nth-child( 2n ) {
		text-align: center;
		align-self: start;
	}
	
	.built-amount {
		font-size: 150%;
		font-weight: bold;
	}
	
	.cost-amount .cost {
		font-size: 150%;
		font-weight: bold;
	}
	
	& .product-listing {
		display: flex;
		justify-content: center;
		align-items: center;
		gap: 10px;
		& img {
			width: 64px;
			height: 64px;
		}
		& strong {
			font-size: 150%;
		}
	}
	
}

.stall-product-list {
	.stall-product-header {
		text-align: center;
		font-weight: bold;
		align-self: center;
		border-bottom: 1px solid var(--yellow-dark);
		font-variant-caps: small-caps;
		font-size: 120%;
		color: var(--yellow-dark);
	}
	.stall-product-items {
		padding: 5px;
		text-align: center;
	}
	.product-mock {
		display: inline-block;
		margin: 10px;
		width: 50px;
		height: 50px;
		border: 1px solid black;
		background-color: red;
	}
}

.stall-description-confirm button  {
    height:64px;
    min-width: 75%;
    border-radius:32px;
    flex-flow:column;
    margin:0;
    min-width:80%;    
    & span {
        margin:0;
        line-height:1;
    }
    & .stall-price {
        font-size:130%;
    }    
} 

.stall-description-confirm button:before {
    border-radius:30px 0 0 0;
    height:30px;   
}
.stall-menu .close {
    right: -10px;
    top: -10px;
}


#create-stall {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	& :nth-child( 2 ) {
		font-size: 200%;
	}
}