#json-editor {
	width: 100%;
	height: 100%;
}
body {
/*	border: solid 1px; */
	margin: 0;
	padding: 0px;
}
h1 {
	margin: 5px;
}
#viz-contents label input {
	display: none;
}
li {
	list-style: none;
	text-align: left;
}
input[type=checkbox] {
	margin: auto 7px;
}
/*table tr th {*/
/*	border: solid 1px;*/
/*}*/
table tr td {
	padding: 3px 7px;
}
p {
	top: 5px;
	margin-bottom: 0px;
}
.console {
	width: 90%;
	height: fit-content;
	margin:10px auto;
	padding: 5px;
	background-color: #fff;
	border: 1px solid #ddd;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
}
.console .title{
	display: block;
	height: 30px;
	line-height: 30px;
	margin: -5px;
	text-align: center;
	font-size: 15px;
	font-weight: bold;
	color: #fff;
	background-color: #666;
  border-top-right-radius: 5px;
  border-top-left-radius: 5px;
  -webkit-border-top-right-radius: 5px;
  -webkit-border-top-left-radius: 5px;
  -moz-border-radius-topright: 5px;
  -moz-border-radius-topleft: 5px;
}
#graph-sub-settings .error{
  background:#FDE4E1;
  color: #B10009;
  font-weight: bold;
  overflow: hidden;
  word-wrap: break-word;
  width: 100%;
  width : -webkit-calc(100% + 10px);
  width : calc(100% + 10px);
	margin:5px -5px;
	text-align: center;
}
#graph-sub-settings .success{
 background: #DFF2BF;
 color: #008000;
 font-weight: bold;
 overflow: hidden;
 word-wrap: break-word;
 width: 100%;
 width : -webkit-calc(100% + 10px);
 width : calc(100% + 10px);
 margin: 5px  -5px;
 text-align: center;
}
#viz-contents{
  float: left;
  height : 90%;
  height : -webkit-calc(100% - 60px);
  height : calc(100% - 60px);
  min-height: fit-content;
  width:100%;
  background-color: #eee;
}
#v-contents{
	width: 100%;
	height: 100%;
	padding: 0px;
	margin: 0px auto;
}
#v-contents label{
	display: inline-block;
	height: 15px;
	line-height: 15px;
	color: white;
	background-color: grey;
	padding: 4px;
	margin:4px;
	border-radius: 6px;
}
#v-contents label:hover{
	height: 100%;
	background-color: #999;
}
.v-left{
	float: left;
	height: 100%;
	width: 400px;
	padding: 0px;
  margin-bottom: 0px;
}
.v-right{
	float: left;
	width: 70%;
	width : -webkit-calc(100% - 400px);
	width : calc(100% - 400px);
	padding: 0px;
	background-color: #fff;
}
#data-fitting{
		height: fit-content;
}

#data-fitting .property{
  display: inline-block;
  width: 55%;
  text-align: right;
}
#data-fitting form{
	height: fit-content;
	width: 100%;
	margin-top: 10px;
}
#data-fitting .interval{
  display: inline-block;
  width: 37%;
  text-align: left;
}
#data-fitting .fittingtype{
	display: block;
  margin: 0px auto;
	margin-bottom: 5px;
	height: 20px;
  width: 100%;
}
#data-fitting .fitting-property{
  float: left;
  width: 55%;
	height: 20px;
  margin: 0;
  text-align: right;
}
#data-fitting select{
  float: left;
	height: 20px;
}
#data-fitting .fitting-interval{
  float: left;
  width: 100px;
  padding-left: 10px;
  font-size: 15px;
}
#data-fitting .fitting{
	width: fit-content;
	margin: 5px auto;
}
#data-fitting .interval input[type="text"]{
	width: 50%;
  text-align: right;
}

#data-selection {
	height: 400px;
}
#data-selection .menu{
		display: inline-block;
		width: 100%;
		margin-top:10px;
		text-align: center;
		overflow-x: scroll;
		overflow-y: scroll;
		white-space: nowrap;
}
#data-selection .scroll {
	height: 330px;
	overflow-x: scroll;
	overflow-y: scroll;
	white-space: nowrap;
}

#data-spreadsheet{
	height: fit-content;
	width: fit-content;
	min-width: 400px;
	max-width: 97%;
	margin: 10px auto;
	padding: 5px;
}
#data-spreadsheet .tabletitle{
	display: inline-block;
	width: 100px;
	height: 35px;
	line-height: 35px;
	border: 1px solid #ddd;
	margin-bottom: -1px;
	background-color: #eee;
	text-align: center;
	font-size: 15px;
	font-weight: bold;
  border-top-right-radius: 5px;
  border-top-left-radius: 5px;
  -webkit-border-top-right-radius: 5px;
  -webkit-border-top-left-radius: 5px;
  -moz-border-radius-topright: 5px;
  -moz-border-radius-topleft: 5px;
}
#data-spreadsheet .download{
	display: inline-block;
	width: 100%;
}
#data-spreadsheet .filetype{
	width: fit-content;
	display: inline-block;
}
#data-spreadsheet .download p{
	width: fit-content;
	display: inline-block;
}
#data-spreadsheet .download select{
	width: fit-content;
	display: inline-block;
}
#data-spreadsheet .download .downloadbutton{
	display: inline-block;
}
#data-spreadsheet .spreadsheet{
	height: 120px;
	width: fit-content;
	max-width: 100%;
	border: 1px solid #ddd;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-top-left-radius: 0px;
  -webkit-border-top-left-radius: 0px;
  -moz-border-radius-topleft: 0px;
}
.spreadsheet .scroll {
	height: 90%;
	margin:10px;
	overflow-x: scroll;
	overflow-y: scroll;
	white-space: nowrap;
}

#graph-setting {
	height: fit-content;
}
#graph-setting .menu{
		display: block;
		margin-top:10px;
		text-align: center;
		overflow-x: scroll;
		overflow-y: scroll;
		white-space: nowrap;
}
#graph-setting select{
	width: 170px;
}
#graph-setting select#graph-pattern{
	width: fit-content;
}

#graph {
	width: fit-content;
	height: fit-content;
	margin: 0px auto;
}
#graph-sub-settings {
	height: fit-content;
}
#graph-sub-settings .menu{
		display: block;
		margin-top:10px;
		text-align: center;
		overflow-x: scroll;
		overflow-y: scroll;
		white-space: nowrap;
}

#graph-setting-sub {
	width: 100%;
	height: fit-content;
	margin: 20px auto;
}
#graph-setting-sub .editjson{
	font-size: 20px;
	font-weight: bold;
	text-indent: 10px;
	width:95%;
	margin: 0px auto;
	background-color: #777;
	color:#fff;
}

#vis {
	width: fit-content;
	border: 1px solid #ddd;
	border-radius: 5px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-top-left-radius: 0px;
	-webkit-border-top-left-radius: 0px;
	-moz-border-radius-topleft: 0px;
	background-color: #fff;
	padding: 30px;
}
#graph .graphtitle{
	width: 100px;
	height: 35px;
	line-height: 35px;
	border: 1px solid #ddd;
	border-bottom: 1px solid #fff;
	margin-bottom: -5px;
	background-color: #eee;
	text-align: center;
	font-size: 15px;
	font-weight: bold;
  border-top-right-radius: 5px;
  border-top-left-radius: 5px;
  -webkit-border-top-right-radius: 5px;
  -webkit-border-top-left-radius: 5px;
  -moz-border-radius-topright: 5px;
  -moz-border-radius-topleft: 5px;
}
.switch{
	height: 10px;
	margin-top:-15px;
}
.switch input {
    display: none;
}
#v-contents .switch label{
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
		height: 15px;
		background-color: #fff;
}

.switch label:before {
    content: 'ー';
    border-radius: 6px 0 0 6px;
    background: linear-gradient(to bottom, #F0F0F0 0%, #DDD 100%);
    box-shadow: 0px 0px 3px 0px rgba(0,0,0,0.1) inset;
    color: #333;
		padding: 0 3px;
}
.switch label:after {
    content: '- -';
    border-radius: 0 6px 6px 0;
    background: #C30;
    box-shadow: 0px 0px 3px 0px rgba(0,0,0,0.1) inset;
    color: #FFF;
		padding: 0 3px;
}
.switch input + label:hover:before {
    opacity: 0.5;
}
.switch input:checked + label:before {
    background: #9C0;
    color: #FFF;
    opacity: 1;
}
.switch input:checked + label:after {
    background: linear-gradient(to bottom, #F0F0F0 0%, #DDD 100%);
    color: #333;
}
.switch input:checked + label:hover:after {
    opacity: 0.5;
}



/************************************************/
/******************  Gallery   ******************/
/************************************************/
#gallerypage{
	width: 100%;
	height: 100%;
	background-color: #fff;
}
#gallerypage .head{
	width: 80%;
  width: -webkit-calc(80% - 10px) ;
  width: calc(80% - 10px) ;
	height: 40px;
	line-height: 40px;
	font-size: 25px;
	color: #111;
	padding-left: 10px;
	padding-top: 10px;
	margin: 0 auto;
}
#gallerypage .title{
	float: left;
	width: 100px;
}
#gallerypage .category{
	float: left;
	width: 90%;
  width: -webkit-calc(90% - 100px) ;
  width: calc(90% - 100px) ;
}
#gallerypage .tag{
	float: left;
  color: #555;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
	font-size: 12px;
	width: fit-content;
	height: 20px;
	line-height: 20px;
	padding:0 10px;
  border-radius: 10px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
	border: 1px solid #ddd;
	margin: 10px 2px;
	cursor: pointer;
	cursor: hand;
}
#gallerypage .tag.active{
	background-color: #777;
	color: #fff;
}
#gallerypage .tag:hover{
	background-color: #777;
	color: #fff;
}
#gallerylist{
	width: 80%;
	height: 80%;
	margin: 5px auto;
  overflow: hidden;
  overflow-y: scroll;
  text-overflow: ellipsis;
  white-space: nowrap;
	border: 1px solid #eee;
	background-color: #fafafa;
}

#gallerylist .gallery{
	width: 100%;
	height: 100%;
}
#gallerylist a{
	float: left;
	width: 350px;
	height: fit-content;
	margin: 10px;
	padding:5px;
	border: 1px solid #ddd;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
	background-color: #fff;
	cursor: pointer;
	cursor: hand;
}
#gallerylist a:hover{
	background-color: #f5f5f5;
}
#gallerylist label{
	background-color: transparent;
}
#gallerylist .info{
	float: left;
	width: 65%;
	height: fit-content;
  overflow: hidden;
	text-overflow: ellipsis;
}
#gallerylist .datainfo{
	float: left;
  color: #555;
  background-color: #f9f9f9;
	font-size: 10px;
	width: fit-content;
	padding:0px 10px;
  border-radius: 10px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
	border: 1px solid #ddd;
	margin: 2px;
	cursor: pointer;
	cursor: hand;
}
#gallerylist .external{
	background-color: #009966;
	color: #fff;
}
#gallerylist .internal{
	background-color: #f9f9f9;
}
#gallerylist .delete{
	float: right;
  color: #fff;
	background-color: #ececec;
	font-size: 15px;
	width: 15px;
	height: 15px;
	line-height: 15px;
  border-radius: 15px;
  -webkit-border-radius: 15px;
  -moz-border-radius: 15px;
	cursor: pointer;
	cursor: hand;
	margin:0;
	padding:0;
	text-align: center;
}
#gallerylist .public{
	background-color: #999;
	color: #fff;
}
#gallerylist .delete:hover{
	background-color: #FA8072;
}
#gallerylist .name{
	float: left;
	height: 20px;
	line-height: 20px;
	width: 65%;
  width: -webkit-calc(65% - 15px) ;
  width: calc(65% - 15px) ;
	color: #111;
	font-size: 20px;
	margin: 0;
	padding-left: 10px;
	margin-top:5px;
  overflow: hidden;
	text-overflow: ellipsis;
	cursor: pointer;
	cursor: hand;
}
#gallerylist .description{
	float: left;
	height: 45px;
	line-height: 1;
	width: 65%;
  width: -webkit-calc(65% - 30px) ;
  width: calc(65% - 30px) ;
	color: #555;
	font-size: 12px;
	margin: 0;
	padding: 5px 15px;
  overflow: hidden;
	text-overflow: ellipsis;
	word-break: break-all;
	white-space:normal;
	text-align: justify;
	cursor: pointer;
	cursor: hand;
}
#gallerylist .graphimage{
	float: left;
	width: 35%;
	cursor: pointer;
	cursor: hand;
}
#gallerylist .graphimage img{
	width: 120px;
	height: 120px;
}


#v-contents .g-content{
	width: 100%;
}
#v-contents label.g-title{
	float: left;
	width: 30%;
	background-color: transparent;
	color: #111;
	margin: 0;
	padding: 0;
	margin-top: 10px;
	margin-right: 10px;
	text-align: right;
}
#v-contents label.g-title:hover{
	background-color: transparent;
	color: #111;
}
.g-content input{
	width: 70%;
  width: -webkit-calc(70% - 25px) ;
  width: calc(70% - 30px) ;
	margin: 0 5px;
	padding: 0;
	margin-top: 10px;
}
.g-content textarea{
	height: 100px;
	width: 70%;
  width: -webkit-calc(70% - 25px) ;
  width: calc(70% - 30px) ;
	margin: 0 5px;
	margin-top: 10px;
}

#graphview{
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	height: fit-content;
	margin:0px auto;
	gap: 40px;
}
#graphview .item {
	position: relative;
	margin-bottom: 40px;
	width: calc(50% - 20px);
}
.switch-y-scale {
	position: absolute;
	bottom: 12px;
	left: 5vw;
	cursor: pointer;
    padding: 1px 5px;
    border-radius: 5px;
    border: 1px solid lightgrey;
}
#graphview #view{
	width: 100%;
	height: 300px;
	float: left;
	text-align: center;
}

#graphview .chart-header {
    display: flex;
    gap: 20px;
    align-items: baseline;
}
#graphview .figure-name {
	font-weight: bold;
	font-size: 1.1rem;
	margin-bottom: 12px;
}


#view svg{
	height: 100%;
	/*width: 100%;*/
	/*float: left;*/
	text-align: center;
}
.print{
	text-decoration: underline;
}
@media print{
	body {zoom: 50%;}
  #header{display:none;}
}
