html, body{
	height: 100%;
}

body{
	font-family: sans-serif;
	margin: 0;
}

#container{
	width: 100%;
	height: 100%;
	display: grid;
	grid-template-columns: 50% 50%;
	grid-template-rows: 5% 90% 5%;
}

a{
	color: blue;
	text-decoration: none;
}
a:hover{
	text-decoration: underline;
}

/*
 * Header
*/
#header{
	background-color: black;
	color: white;
	grid-column: span 2;
	padding: 0.4em;
	font-size: 1.2em;
}
#header>.button{
	cursor: pointer;
	padding: 0 2em;
}

/*
 * Colour List
*/
#colour-list{
	overflow-y: scroll;
}
#colour-list>ul{
	list-style-type: none;
	margin: 0;
	padding: 0;
}
#colour-list>ul>li{
	cursor: pointer;
	padding: 1em 0.5em;
}
#colour-list>ul>li:nth-child(odd){
	background-color: lightgrey;
}

.colour-palette{
	font-size: 1.2em;
	padding: 5px;
	border-radius: 5px;
}
.colour-palette:before{
	content: "A";
	color: white;
}
.colour-palette:after{
	content: "A";
	color: black;
}

/*
 * Colour Preview
*/
#colour-preview{
	position: relative;
}

#chip{
	position: absolute;
	left: 50%;
	bottom: 2em;
	transform: translateX(-50%);
	padding: 1em;
	border-radius: 2em;
	background-color: white;
	box-shadow: 0 0 10px black;
	width: 90%;
	text-align: center;
}
#aaa{
	position: absolute;
	font-size: 10em;
	white-space: nowrap;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
}
#white-a{
	color: white;
}
#black-a{
	color: black;
}
#last-a{
	color: transparent; /* default value */
}

/*
 * Footer
*/
#footer{
	background-color: darkgrey;
	grid-column: span 2;
	padding: 0.5em;
}

/*
 * Dialog
*/
.dialog{
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: white;
	padding: 1em;
	min-width: 30%;
	min-height: 30%;
	box-shadow: 0 0 15px black;
	border-radius: 5px;
	z-index: 10000;
}
.dialog-header{
	font-size: 1.3em;
	margin-bottom: 0.5em;
}
.dialog-footer{
	margin-top: 0.5em;
	padding-top: 0.5em;
	position: absolute;
	bottom: 1em;
}

/*
 * Colour Picker
*/
.colour-picker-palette{
	font-size: 1.2em;
	padding: 5px;
	border-radius: 5px;
}
.colour-picker-palette>.white-black-a{
	border-right: 1px solid black;
	padding-right: 5px;
	margin-right: 5px;
}
.colour-picker-palette .white{
	color: white;
}
.colour-picker-palette .black{
	color: black;
}