* {
	box-sizing: border-box;

	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

body {
	background: #9ca5de;
	margin: 0;
}

.base {
	background: #ccd6ee url(images/bg.png) 0 55px no-repeat;
	width: 400px;
	height: 600px;
	position: relative;
	font-family: 'Noto Serif', serif;
	font-size: 19px;
	margin: auto;
}

/********************** Title page *************************/

#titlepage {
	text-align: center;
	color: white;
	font-family: 'Noto Sans', sans-serif;
}

#title {
	position: absolute;
	top: 15px;
	width: 100%;
	font-family: 'Montserrat', sans-serif;
	text-transform: uppercase;
	color: #5a69b4;
	font-size: 75px;
}

#subtitle {
    position: absolute;
    bottom: 90px;
    width: 100%;
    font-size: 20px;
}

#subtitle span.nothing {
	color: #f3bfbf;
}

.info {
	position: absolute;
	width: 100%;
	font-size: 14px;
	color: #cdd6ee;
}

#credits {
	bottom: 60px;
}

#start {
	bottom: 25px;
	opacity: 0; /* appear after a delay */
	transition: opacity 1s;
}

#win {
	position: absolute;
	bottom: 90px;
	width: 100%;
	text-align: center;
	font-family: 'Montserrat', sans-serif;
	text-transform: uppercase;
	color: white;
	font-size: 30px;
	display: none;
}

/********************** Main *************************/

#main {
	padding-top: 90px; /* avoid dialogue margin collapse ¯\_(ツ)_/¯ */
}

.zoe {
	width: 136px;
	height: 224px;
	background: url(images/zoe_blush.png);
	position: absolute;
	top: 229px;
	left: 135px;
}

/********************** Letters *************************/

#hud {
	position: absolute;
	top: 0px;
	left: 0px;
	right: 0px;
	padding: 5px 0 5px 0;
	background: #5a69b4;
	text-align: center;
}

#letters {
	font-size: 16px;
	padding: 3px;
}

#letters > span {
	display: inline-block;
	font-weight: bold;
	background: #9ca5de;
	color: #cdd6ee;
	width: 22px;
	height: 22px;
	text-align: center;
	margin: 2px 0;
	border-radius: 25%;

	display: inline-flex;
	align-items: center;
	justify-content: center;
}

#letters > span.selected {
	color: #5a69b4;
	background: #cdd6ee;
}

/* Buying = buy mode is on */
.buying #letters {
	font-size: 30px;
	padding: 65px 76px 0 76px;
	text-align: left;
}

.buying #letters > span {
	width: 50px;
	height: 50px;
	margin: 6px 3px;
}

/* Buyable = you can actually click and buy this */
#letters > span.buyable {
	cursor: pointer;
	color: white;
	border: 1px solid white;
}

#letters > span.buyable:hover {
	color: #e98b8b;
	border: 1px solid #e98b8b;
	background: #5a69b4;
}

/* Missing = added when hovering over the choice with the missing letter */
#letters > span.missing {
	color: #ffffff;
	border: 2px solid #e98b8b;
}

/********************** Points *************************/

#points {
	background: url("images/heart.png");
	background-size: 100%;
	display: inline-block;
	margin: 10px 8px 10px 6px;
	width: 40px;
	height: 40px;
	padding-top: 5px;
	float: right;
}

#points > span {
	color: white;
	font-weight: bold;
}

.buying #points {
	width: 60px;
	height: 60px;
	padding-top: 10px;
	position: absolute;
	margin-top: 5px;
	left: 165px;
	font-size: 24px;
}

/********************** Dialogue *************************/

#zoe-dialogue {
	padding: 15px 20px 15px 20px;
	border-radius: 30px;
	color: #ffffff;
	background: #5969b4;
	position: relative;
	margin: 0 25px;
}

#zoe-dialogue:after {
	content: "";
	display: block;
	position: absolute;
	bottom: -40px;
	left: 160px;

	width: 0;
	height: 0;
	border: 20px solid transparent;
	border-top-color: #5969b4;
}

#zoe-dialogue.heart {
	background: #e98b8b;
}

#zoe-dialogue.heart:after {
	border-top-color: #e98b8b;
}

#zoe-dialogue .bg {
	color: #5969b4;
}

#zoe-dialogue.heart .bg {
	color: #e98b8b;
}

#player-dialogue {
	position: absolute;
	bottom: 15px;
	left: 20px;
	right: 20px;

	background: white;
	color: #9ca5de;
	padding: 15px;
	text-align: center;
	font-style: italic;
	border-radius: 30px;
}

#player-dialogue span.nothing {
	color: #5a69b4;
	background: #cdd6ee;
	display: inline-block;
	font-weight: bold;
	font-style: normal;
	font-size: 16px;
	width: 22px;
	height: 22px;
	border-radius: 25%;
}

#player-dialogue span.bg {
	color: white;
}

#player-dialogue span.bg span.nothing {
	color: white;
	background: white;
}

/********************** Choices *************************/

#choices {
	position: absolute;
	bottom: 15px;
	left: 5px;
	right: 5px;
	display: flex;
	align-items: stretch;
	justify-content: stretch;
}

.buying #choices {
	bottom: 5px;
}

#choices > div {
	background: #cdd6ee;
	color: #5a69b4;
	flex: 1 1 auto;
	padding: 15px;
	text-align: center;
	margin: 5px;
	border-radius: 10px;
}

#choices > div.available {
	background: white;
	cursor: pointer;
	transition: transform 0.02s;
}

#choices > div.available:hover {
	cursor: pointer;
	transform: translate(0, -4px);
}

#choices > div > span.missing {
	color: #9ca5de;
}

#choices > div:hover > span.missing {
	color: #e98b8b;
}

#choices > #win-restart {
	background: #cdd6ee;
}