/**************
|  style.css  |
**************/

@import url('https://fonts.googleapis.com/css2?family=Rubik+Mono+One&display=swap');

body {
	background-color: #111;
	letter-spacing: 0.11rem;
	font-family: sans-serif;
	text-align: center;
	font-size: 22px;
	color: #ddd;
	width: 380px;
	margin: auto;
}

header {
	width: 99%;
	text-align: center;
	margin: auto;
	display: flex;
	align-items: center;
	justify-content: space-evenly;
}

header img {
	display: block;
	width: 40px;
}

header h1 {
	font-family: "Rubik Mono One", serif;
	color: rgb(254, 42, 35);
	font-style: normal;
	font-weight: 400;
	font-size: 25px;
	padding: 10px 0;
}

/* The cells in Ruby's Cube which
are divs with the following ids. */
#tl,
#tc,
#tr,
#ml,
#mc,
#mr,
#bl,
#bc,
#br {
	width: 100px;
	height: 100px;
	display: inline-block;
	border: 1px solid #222;
	border-radius: 6px;
	cursor: pointer;
}

/* The text below the cube 
and the button area. */
.btn,
.messages {
	margin: 25px 0;
	width: auto;
	height: auto;
	display: block;
	border: none;
}

/* The button itself. */
#btn1,
#btn2,
#btn3 {
	background-color: rgb(0, 100, 210);
	border: 2px solid #ddd;
	border-radius: 6px;
	letter-spacing: 3px;
	cursor: pointer;
	font-size: 20px;
	width: 190px;
	height: 48px;
	padding: 10px;
	color: #ddd;
	display: none;
	/* We will show and hide the 
  buttons by changing the display 
  style with our JavaScript. */
}

#btn2 {
	width: 120px;
}

#btn3 {
	height: 70px;
}

/* The next three style rules help 
to keep our button looking pretty. */
button:hover {
	cursor: pointer;
}

button:active {
	outline: none;
}

button:focus {
	outline: none;
}

/* Media queries for all the many
different device display widths. */

@media (max-width: 1350px) {
	#titlebar {
		width: 35%;
	}
}

@media (max-width: 1250px) {
	#titlebar {
		width: 40%;
	}
}

@media (max-width: 1150px) {
	#titlebar {
		width: 45%;
	}
}

@media (max-width: 1000px) {
	#titlebar {
		width: 50%;
	}
}

@media (max-width: 900px) {
	#titlebar {
		width: 55%;
		font-size: 22px;
		margin-bottom: 10px;
	}
}

@media (max-width: 750px) {
	#titlebar {
		width: 60%;
		font-size: 20px;
	}

	#titlebar img {
		width: 80px;
	}
}

@media (max-width: 600px) {
	#titlebar {
		width: 70%;
		font-size: 16px;
	}
}

@media (max-width: 500px) {
	#titlebar {
		width: 80%;
	}
}

@media (max-width: 400px) {
	#titlebar img {
		width: 60px;
	}

	#tl,
	#tc,
	#tr,
	#ml,
	#mc,
	#mr,
	#bl,
	#bc,
	#br {
		width: 80px;
		height: 80px;
	}

	#btn1,
	#btn2 {
		margin-top: 5px;
	}
}

@media (max-width: 370px) {
	#titlebar {
		width: 90%;
		font-size: 14px;
	}

	#titlebar img {
		width: 60px;
	}
}
