@font-face {
    font-family: "Civette";
    src: url("./images/fonts/Civette-Regular.otf") format("opentype");
    font-display: swap;
    font-weight: normal;
    font-style: normal;
}

:root { /* color definitions */
	--page-bg:	rgb(25,25,25);
	--canvas-bg: rgb(255,255,255);
	--button-bg: #fdedf0;
	--button-text: rgb(0,0,0);
}

body {
	background: var(--page-bg);
	padding: 0;
	margin: 0;
	cursor: url('./images/teardropcursor_2x.png'), auto;
}


/* canvas */
.viewport {
	border: none;
	max-height: 99.6vh; /* maxes out to browser window height */
	background-color: var(--canvas-bg);
	/*image-rendering: crisp-edges;*/
}

.ui-grid {
	display: inline-grid;
	grid-gap: 0;
	grid-template-areas: "buttons canvas";
}
.buttons {
	grid-area: buttons;
}
.viewport {
	grid-area: canvas;
}

/* buttons */
.buttons { /* sidebar container */
	width: 250px;
}

.button {
	display: inline-block;
	min-width: 200px;
	max-width: 100%;
	height: 36px;
	margin: 16px 25px;
	padding: 0 0;
	font-size: 16px;
	border-style: none;
	border-radius: 8px;
	color: var(--button-text);
	background-color: var(--button-bg);
	font-family: "Civette", regular;
	text-align: center;
	text-decoration: none;
}

.label {
	line-height: 36px;
}

.arrow {
	display: inline-block;
	width: 25px;
	height: 100%;
	line-height: 36px;
	background: rgba(0,0,0,0.0);
	color: var(--button-text);
	cursor: pointer;
}
.arrow:hover {
	background-color: #edfcfa;
	cursor: url('./images/glovecursor_2x.png'), auto;
}

.back {
	border-radius: 8px 0 0 8px;
	float: left;
}

.forward {
	border-radius: 0 8px 8px 0;
	float: right;
}

#download .button {
	cursor: url('./images/glovecursor_2x.png'), auto;
}

/* button colors */
.button:nth-child(1) {
	color: #5a4ebf;
}
.button:nth-child(2) {
	color: #bf4e90;
}
.button:nth-child(3) {
	color: #4ea3bf;
}
.button:nth-child(4) {
	color: #504ebf;
}
.button:nth-child(5) {
	color: #bf4e67;
}
.button:nth-child(6) {
	color: #bb4ebf;
}
.button:nth-child(7) {
	color: #4e9dbf;
}
.button:nth-child(8) {
	color: #7c4ebf;
}
.button:nth-child(9) {
	color: #4e5cbf;
}
.button:nth-child(10) {
	color: #bf4e7f;
}
.button:nth-child(11) {
	color: #4e8bbf;
	transition: all ease-in-out 0.1s;
}

.button:nth-child(1):hover {
	color: #924ebf;
}
.button:nth-child(2):hover {
	color: #4e5abf;
}
.button:nth-child(3):hover {
	color: #bf4e63;
}
.button:nth-child(4):hover {
	color: #964ebf;
}
.button:nth-child(5):hover {
	color: #674ebf;
}
.button:nth-child(6):hover {
	color: #4e6bbf;
}
.button:nth-child(7):hover {
	color: #5c4ebf;
}
.button:nth-child(8):hover {
	color: #bf4e85;
}
.button:nth-child(9):hover {
	color: #4e96bf;
}
.button:nth-child(10):hover {
	color: #874ebf;
}
.button:nth-child(11):hover {
	color: #bf4e94;
	letter-spacing: 10px;
	text-indent: 1.5rem;
}


/* bubble */
#bubble {
    position: absolute;
	top: 0;
	left: 0;
    width: 96vh;
	height: 96vh;
    background-image: url("./images/title-bubble-right.png");
	background-position: top right;
	background-repeat: no-repeat;
    background-size: contain;
    z-index: 9;
    animation: floating 1.2s alternate infinite;
    pointer-events: none;
	margin-left: 250px;
}

@keyframes floating {
    0% {
        transform: translateY(1%);
    }
    100% {
        transform: translateY(-1%);
    }
}


/* desktop view */
@media (max-width: 1100px) {
	.buttons {
		position: fixed;
	}
	#bubble {
		margin-left: 0;
	}
}


/* mobile view */
@media (min-width: 200px) and (max-width: 540px) {
	.ui-grid {
		grid-gap: 10px;
		grid-template-columns: 1fr;
		grid-template-areas:"canvas"
							"buttons";
	}
	.mob-grid {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}
	.viewport {	/* maxes out to screen width */
		max-width: 99.6vw;
		max-height: 99.6vw;
	}
	.buttons {
		width: 100%;
		position: relative;
	}
	.button {
		min-width: 40%;
		max-width: 100%;
		height: 28px;
		margin: 10px 12px;
		padding: 0 0;
		font-size: 11px;
	}
	.label {
		line-height: 28px;
	}
	.arrow {
		line-height: 28px;
	}
	#download .button {
		width: 85%;
	}
	#bubble {
		position: absolute;
		top: 0;
		right: 0;
		width: 100%;
		height: 50%;
		margin-left: 0;
	}
}
