.entry {
	padding: 1rem;
}

#addCategory input,
input[name="url"] {
	border: 1px solid #BCBCBC;
	-webkit-appearance: none;
	padding: 0.75em 1em;
}

/*==================== 日付 ====================*/

input[name="date"],
input[name="time"] {
	-webkit-appearance: none;
	appearance: none;
	border: none;
	padding: 0;
	margin: 0;
	background: none;
	color: #BFBFBF;
	font-size: 1.6rem;
}

/*==================== テキスト、画像 ====================*/

.entry .body {
	position: relative;
	border-radius: 0.5em;
	margin: 1rem 0;
	padding: 1.5rem;
}

/* フルスクリーン切り替え */
.entry .body.fullscreen textarea {
	position: fixed;
	z-index: 11;
	left: 0;
	top: 0;
	background: inherit;
	width: 100%;
	height: 100%;
	padding: 2rem 1.5rem;
}

.entry .body button.toggleScreen {
	position: absolute;
	right: 0;
	top: 0;
	color: white;
	padding: 0.5rem;
	font-size: 1.5rem;
}
.entry .body.fullscreen button.toggleScreen {
	position: fixed;
	z-index: 12;
}

.entry .body.fullscreen button.toggleScreen i:first-child,
.entry .body:not(.fullscreen) button.toggleScreen i:last-child {
	display: none;
}



#formEdit textarea,
#formEdit input {
	box-sizing: border-box;
}

textarea[name="text"] {
	border: none;
	width: 100%;
	height: 11em;
	font-size: 1.1rem;
	line-height: 1.5;
	background: none;
}

#images {
	margin: 1rem auto;
}
#images:empty {
	display: none;
}
#images input[type="checkbox"],
#addImageSelector {
	position: fixed;
	visibility: hidden;
}

#images .thum,
#addImages .thum {
	position: relative;
	margin: 1vw;
}

#images .thum label,
#addImages .thum button {
	display: inline-block;
	position: absolute;
	right: 0;
	top: 0;
	background: white;
	border-radius: 50%;
	margin: 0;
	padding: 0.5em;
	transform: translate(30%, -30%);

}

#images input[type="checkbox"]:checked + img {
	opacity: 0.25;
}

#addImageSelector + label {
	color: white;
	font-size: 2.5rem;
}



/*==================== カラー ====================*/

#colors input {
	display: none;
}
#colors {
	display: table;
	border-spacing: 2rem 0;
	margin: 1.5rem auto;
}
#colors label {
	display: table-cell;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
}

/*==================== カテゴリー ====================*/

#categories input[type="checkbox"] {
	display: none;
}
#categories label {
	display: inline-block;
	vertical-align: middle;
	box-sizing: border-box;
	border: 1px solid #ddd;
	border-radius: 0.5em;
	margin: 0.3em;
	padding: 0.6em 1.2em;
	color: #464646;
	background: #E6E6E6;
	font-size: 0.9rem;
}
#categories input[type="checkbox"]:checked + label {
	color: #000;
	border-color: #BCBCBC;
	background: white;
	font-weight: bold;

}

#addCategory {
	margin: 1rem 0;
}
#addCategory input {
	padding-right: 2rem;
	width: 12em;
}

#addCategory button {
	border: none;
	margin: 0;
	background: none;
	transform: translate(-2rem, 0);
}
#categories .addedItem label {
	position: relative;
	padding-right: 2em;
}
#categories .addedItem button {
	position: absolute;
	right: 0.5em;
	top: 50%;
	border: none;
	margin: 0;
	padding: 0;
	background: none;
	transform: translate(0, -50%);
}

/*==================== URL ====================*/

#url {
	border-top: 1px solid #ccc;
	padding: 1rem 0;
}
input[name="url"] {
	width: 100%;
	font-size: 0.8rem;
}

/*==================== 削除 ====================*/

#delete {
	margin-top: 5rem;
}
#delete button i {
	font-size: 2.5rem;
	color: red;
}

/*==================== ステイタス ====================*/

#status {
	position: fixed;
	visibility: hidden;
	z-index: 11;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.25);
	opacity: 0;
}
#status .icon {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	color: white;
	font-size: 3rem;
}

.entry.updating #status {
	visibility: visible;
	opacity: 1;
}
.entry.updating #status .icon i {
	animation-name: rotateLoop;
	animation-duration: 2s;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
}

@keyframes rotateLoop {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(-360deg);
	}
}

.entry:not(.updating) #status i.updating,
.entry.updating #status i.done {
	display: none;
}