/**
 * Styles for the Notes application frontend.
 *
 * (C) Thomas Weber 2021 tom-vibrant@gmx.de
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

/**
 * Tile Layout ///////////////////////////////////////////////////////////////////
 */

.muuri-tile-item {
	position: absolute;

	margin: 5px;
	border-radius: 5px;

	background-color: black;
	z-index: 1;
}

.muuri-tile-item-content {
	position: relative;
	border-radius: 5px;

	width: 100%;
	height: 100%;
	
	padding: 5px;
	
	text-align: center;
	
	background-color: white;
}

.muuri-tile-item.muuri-item-hidden {
	z-index: 0;
}
.muuri-tile-item.muuri-item-releasing {
	z-index: 2;
}
.muuri-tile-item.muuri-item-dragging {
	opacity: 0.2;
	z-index: 3;
}
.muuri-tile-item.muuri-item-dragging .muuri-tile-item-content {
	background: lightblue;
	box-shadow: 0 4px 6px 0 rgba(0, 0, 0, 0.2), 0 6px 12px 0 rgba(0, 0, 0, 0.19);
}
.muuri-tile-item.muuri-item-releasing .muuri-tile-item-content {
	background: lightblue;
	box-shadow: 0 4px 6px 0 rgba(0, 0, 0, 0.2), 0 6px 12px 0 rgba(0, 0, 0, 0.19);
}

.treeitemcontainer-tile {
	position: relative;
	width: 100%;
	height: 100%;
	z-index: 10;
	overflow: hidden;
}

.treeicon-tile {
	cursor: pointer;
	
	position: absolute;
	top: 0px;
	left: 0px;

	color: darkgrey;
}

.treeicon-tile-folder-closed {
	color: grey;
}

.treeitemtext-tile {
	position: absolute;
	top: 50%;
	width: 100%;
	text-align: center;
	
	white-space: nowrap;
    overflow: hidden;
	text-overflow: ellipsis;
	
	transform: translateY(-50%);
	text-shadow: 0px 0px 4px white;
	
	cursor: pointer;
}

.gridSelected-tile {
	background-color: lightblue;
	box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.5), 0 10px 18px 0 rgba(0, 0, 0, 0.48);
}

.gridParentSelected-tile {
	z-index: 10;
}

.moveInto-tile {
	border: 4px solid grey;
}

.tileDragHandle {
	position: absolute;
	top: 0px;
	left: 0px;
	z-index: 20;
	
	display: none;

	border-radius: 5px;

	width: 100%;
	height: 100%;
	
	background-color: red;
	opacity: 0.3;
}

.treeitemIconOverlay-tile {
	position: absolute;
	top: 50%;
	left: 0px;
	transform: translateY(-38%);
	
	width: 100%;
	height: 100%;
	color: #f6f6f6;
	
	letter-spacing: 0;
	text-align: center;
	/*text-shadow: 4px 4px rgba(0,0,0,0.015);*/
}

.treeitemIconOverlay-tile-selected {
	color: #c4e3ed;
}

.doc-label-tile-container {
	position: absolute;
	top: 0;
	right: 0;
}

.doc-label-tile {
	margin-top: 2px;
	margin-left: 2px;
}
