body.moshi{
	background-color: #FFFFF0;
}
.type_keisan {
	background-color: royalblue;
}

.type_mojishiki{
	background-color: darkorange;
}

.type_kansuu {
	background-color: deeppink;
}

.type_houteishiki {
	background-color: darkgreen;
}

.type_renritsu{
	background-color: sienna;
}

.type_heimen{
	background-color: purple;
}

.type_rittai{
	background-color: crimson;
}

.type_bunshou{
	background-color:darkslategrey;
}
.type_kakuritsu{
	background-color: darkgoldenrod;
}
.type_data{
	background-color:blueviolet;
}
.type_sakuzu{
	background-color: darkred;
}
.type_seisuu{
	background-color:darkslategrey;
}
.type_insuu{
	background-color:#7a4171;
}
.type_sonota{
	background-color: darkslategray;
}

.type_pref{
	background-color:peru;
	margin-right:1em;
}
.color_td{
	color:white;
	text-align:center;
}

.type_level{
	padding:0.1em 1em;
	color:black;
	border-radius:20px;
	background-color:yellow;
	margin-left:1em;
}

.color_td_level{
	color:black;
	padding:0.2em;
}

.color_level_1
{
	background-color:khaki;
}

.color_level_2
{
	background-color:yellow;
}
.color_level_3
{
	background-color:sandybrown;
}
.color_level_4
{
	background-color:peru;
}

.type_button {
	padding:0.1em 1em;
	color:white;
	border-radius:20px;
}

div.allprob-block div.prob-block-row {
	height:30px;
	display:flex;
	flex-direction: row;
	justify-content: space-around;
	margin:1em 0.5em;
}

div.allprob-block div.block-prob{
	width:41%;
	height:30px;
	text-align:center;
}
div.allprob-block div.block-pref{
	width:19%;
	color:black;
	text-align:center;
	padding:2px 0 2px 0;
}
div.allprob-block div.block-type{
	width:20%;
	color:white;
	font-size:smaller;
	text-align:center;
	padding:4px 0 2px 0;
}
div.allprob-block div.block-level{
	width:20%;
	text-align:center;
	font-size:smaller;
	padding:4px 0 2px 0;
}

.block-prob-a {
	color:darkslategrey;
	text-decoration:none;
	font-size:20px;
	vertical-align: middle;
}

.prob-right {
	height:22px;
	margin-left:5px;
	margin-right:5px;
	vertical-align: middle;
}

.info{
	margin-bottom:1em;
}

div.prob h1 {
	border-bottom:2px solid darkcyan;
	margin-top:1em;
	margin-bottom:1em;
}

div.prob h2{
	border-left:20px solid dodgerblue;
	padding-left:10px;
	margin-bottom:1em;
}


div.ans h1 {
	border-bottom:2px solid darkcyan;
	margin-top:1em;
	margin-bottom:1em;
}

div.ans h2.prob{
	border-left:20px solid dodgerblue;
	padding-left:10px;
	margin-bottom:1em;
}

div.ans h2.ans{
	border-left:20px solid green;
	padding-left:10px;
	margin-top:2em;
	margin-bottom:1em;
}

div.ans h2.howto{
	border-left:20px solid orange;
	padding-left:10px;
	margin-top:2em;
	margin-bottom:1em;
}

button a {
	text-decoration:none;
	color:white;
}

div.allprob-block{
	width:100%;
	border:1px solid darkcyan;
	border-radius:5px;
	background-color:lightcyan;
	filter:drop-shadow(5px 5px 5px rgba(0,0,0,0.5));
}

.prob-block {
	border:1px solid dodgerblue;
	border-radius:10px;
	background-color: #fafaff;
	padding:0.5em 1em;
}

.ans-block {
	border:1px solid green;
	border-radius:10px;
	background-color: #fafffa;
	padding:0.5em 1em;

}

.howto-block {
	border:1px solid orange;
	border-radius:10px;
	background-color: #fffbfa;
	padding:0.5em 1em;

}

.button-upper {
	width:100%;
	margin-top:1em;
	margin-bottom:1em;
}
.button-lower {
	margin-top:1em;
	margin-bottom:1em;
	display:flex;
	flex-direction: row;
	justify-content: space-around;
}

.button-prob2
{
	display:block;
	color:white;
	border:2px solid blue;
	border-radius:5px;
	background-color:mediumblue;
	text-decoration: none;
	text-align:center;
	width:100%;
}
.button-ans2
{
	display:block;
	color:white;
	border:2px solid blue;
	border-radius:10px;
	background-color:royalblue;
	padding-top:0.5em;
	padding-bottom:0.5em;
	text-decoration: none;
	text-align:center;
	width:100%;
}

.button-top2
{
	display:block;
	color:white;
	border:2px solid darkred;
	border-radius:10px;
	background-color:darkorange;
	padding-top:0.5em;
	padding-bottom:0.5em;
	text-decoration: none;
	text-align:center;
	width:100%;
}

.copyright {
	text-align:right;
}

.button-box{
	width:100%;
	display:flex;
	flex-direction: row;
	justify-content: space-around;
}

.prob-buttons,
.ans-buttons 
{
	margin-top:2em;
	margin-bottom:1em;
	width:100%;
}

.figbox{
	display:flex;
	flex-direction: row;
	justify-content: space-around;
	flex-wrap:wrap;
	max-width:100%;
}

.imgbox{
	text-align:center;
	width:400px;
}
@media (min-width: 768px) {
	div.allprob-block,
	#p-box{
		width:80%;
		margin:0 auto;
	}

	.prob-buttons,
	.ans-buttons
	{
		width:100%;
	}
}
@media (min-width: 1024px) {
	div.allprob-block,
	#p-box
	{
		width:50%;
		margin:0 auto;
	}
	.prob-buttons,
	.ans-buttons
	{
		width:50%;
	}
}


.button-prob,
.button-ans,
.button-top,
.button-prev,
.button-next {
  background-color: initial;
  border-radius: 6px;
  box-shadow: rgba(0, 0, 0, 0.1) 0 2px 4px;
  color: #FFFFFF;
  cursor: pointer;
  display: inline-block;
  font-family: Inter,-apple-system,system-ui,Roboto,"Helvetica Neue",Arial,sans-serif;
  height: 40px;
  line-height: 40px;
  outline: 0;
  overflow: hidden;
  padding: 0 20px;
  pointer-events: auto;
  position: relative;
  text-align: center;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  vertical-align: top;
  white-space: nowrap;
  z-index: 9;
  border: 0;
  transition: box-shadow .2s;
  text-decoration: none;
}

.button-ans {
	width:100%;
  	background-image: linear-gradient(-180deg, royalblue, blue);
}

.button-ans:hover {
  box-shadow: rgba(76, 76, 253, 0.5) 0 3px 8px;
  color:lightcyan;
}

.button-prob {
	width:100%;
  	background-image: linear-gradient(-180deg, red, crimson);
}

.button-prob:hover {
  box-shadow: rgba(76, 76, 253, 0.5) 0 3px 8px;
  color:lightcyan;
}

.button-top {
	width:100%;
  	background-image: linear-gradient(-180deg, #FF7E31, #E62C03);
}

.button-top:hover {
  box-shadow: rgba(253, 76, 0, 0.5) 0 3px 8px;
  color:lightcyan;
}


.button-prev {
	background-image: linear-gradient(-180deg, yellowgreen, darkolivegreen);
	width:40%;
}
  
.button-prev:hover {
	box-shadow: rgba(100, 200, 100, 0.5) 0 3px 8px;
	color:lightcyan;
}

.button-next{
	background-image: linear-gradient(-180deg, plum, indigo);
	width:40%;
}

.button-next:hover {
	box-shadow: rgba(200, 200, 100, 0.5) 0 3px 8px;
	color:lightcyan;
}

a.disabled {
	visibility: hidden;
}

.stable {
	border:1px solid black;
	margin: 1em 0;
}

.stable th,
.stable td {
	border:1px solid black;
	text-align:center;
	padding:5px;
}

div.return-row {
	margin-bottom:1em;
	text-align:right;
}

.return {
	background-color:#7a4171;
	padding:0.5em;
	text-decoration:none;
	color:white;
}
