/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
* {
    -webkit-tap-highlight-color: rgba(0,0,0,0); /* make transparent link selection, adjust last value opacity 0 to 1.0 */
}

body {
    -webkit-touch-callout: none;                /* prevent callout to copy image, etc when tap to hold */
    -webkit-text-size-adjust: none;             /* prevent webkit from resizing text to fit */
    -webkit-user-select: none;                  /* prevent copy paste, to allow, change 'none' to 'text' */
    background-color:#c4cbf5;
    background-image:linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%);
    font-family: system-ui, -apple-system, -apple-system-font, 'Segoe UI', 'Roboto', sans-serif;
    font-size:12px;
    height:100vh;
    margin:0px;
    padding:0px;
    /* Padding to avoid the "unsafe" areas behind notches in the screen */
    padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-right, 0px);
    width:100%;
}

/* Portrait layout (default) */
.app {
    position:absolute;             /* position in the center of the screen */
    left:50%;
    top:50%;
    height:50px;                   /* text area height */
    width:225px;                   /* text area width */
    text-align:center;
    padding:180px 0px 0px 0px;     /* image height is 200px (bottom 20px are overlapped with text) */
    margin:-115px 0px 0px -112px;  /* offset vertical: half of image height and text area height */
                                   /* offset horizontal: half of text area width */
}

/* Landscape layout (with min-width) */
@media screen and (min-aspect-ratio: 1/1) and (min-width:400px) {
    .app {
        background-position:left center;
        padding:75px 0px 75px 170px;  /* padding-top + padding-bottom + text area = image height */
        margin:-90px 0px 0px -198px;  /* offset vertical: half of image height */
                                      /* offset horizontal: half of image width and text area width */
    }
}

h1 {
    font-size:24px;
    font-weight:normal;
    margin:0px;
    overflow:visible;
    padding:0px;
    text-align:center;
}

.mdl-layout-title {
    padding-left: 10px;
}

.mdl-layout__drawer {
  width: 26vw !important;
  left: -13vw !important;
}

.table-responsive {
    overflow: auto;
}

.table-responsive th {
    vertical-align: top !important;
	padding-top: 10px !important;
}

.mdl-layout__drawer.is-visible {
  left: 0 !important;
}

.mdl-layout__header-row {
    padding: 0 16px 0 60px !important;
}
.mdl-layout__header-row a {
    display:contents;
}

#title_bild {
	margin-right: 10px;
	max-height: 2em;
}

a.no_deco, a.no_deco span {
	text-decoration:none;
	color: inherit;
}

.event {
    border-radius:4px;
    -webkit-border-radius:4px;
    color:#FFFFFF;
    font-size:12px;
    margin:0px 30px;
    padding:2px 0px;
}

.event.listening {
    background-color:#333333;
    display:block;
}

.event.received {
    background-color:#4B946A;
    display:none;
}

@keyframes fade {
    from { opacity: 1.0; }
    50% { opacity: 0.4; }
    to { opacity: 1.0; }
}
 
@-webkit-keyframes fade {
    from { opacity: 1.0; }
    50% { opacity: 0.4; }
    to { opacity: 1.0; }
}
 
.blink {
    animation:fade 3000ms infinite;
    -webkit-animation:fade 3000ms infinite;
}

/* webmasting */

a {
	text-decoration:none !important;
}
nav a {
    color: inherit;
}

.wm_button {
	background-color: rgb(103,58,183) !important;
    color: rgb(255,255,255) !important;
}
#nichtAngemeldet, #nichtPWA {
	margin: 50px 25vw;
	display:none;
}

#sammlungChip {
	background-color: #3f51b5;
    max-width: 90%;
    min-height: 5vh;
    color: #fff;
    height: fit-content;
	white-space: pre-wrap; 
}

#dialog_SharedLinks {
	width: 50vw;
}


#neuButton, #neuButton_off {
	height: 40px;
    min-width: 40px;
    width: 40px;
    margin-left: 20px;
	display:table;
}
#neuButton i, #neuButton_off i {
	display: table-cell;
    vertical-align: middle;
    text-align: center;
}

.blob {
	background: black;
	border-radius: 50%;
	box-shadow: 0 0 0 0 rgba(0, 0, 0, 1);
	margin: 10px;
	height: 20px;
	width: 20px;
	transform: scale(1);
	animation: pulse-black 2s infinite;
}

.blob.red {
	background: #ff4081;);
	box-shadow: 0 0 0 0 rgba(255, 82, 82, 1);
	animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
	0% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.7);
	}
	
	70% {
		transform: scale(1);
		box-shadow: 0 0 0 10px rgba(255, 82, 82, 0);
	}
	
	100% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(255, 82, 82, 0);
	}
}

.keineArtikel {
	padding:20px;
}

#quickstart-sign-in{
	min-width:40px;
	padding:;	
}
#loginWrap {
	padding: 0 5px;
}

#userNavi {
	display:none;
}

#BenutzerAnzeigeBild {
	height:50px;
	float: left;
    margin-left: 20px;
}
#userNavi {
	padding:16px;
}
.beschreibung_exerpt {
	height:2em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mdl-layout__content {
	min-height:90vh;
}

.mdl-card {
	margin: 20px auto;
	z-index:-1;
}
.mdl-card__title img {
	max-width:100%;
	max-height:40vh;
	box-shadow: 5px 5px 10px 0px grey;
}
#files {
	width:80%;
	background-size: contain;
    background-repeat: no-repeat;
    background-position: right;
}
#files::placeholder {
	color: rgba(0, 0, 0, 0.26);
}
#uploadBtnContainer {
	width:20%;
}
.updateBild {
	max-width:30%;
}
.grid-container {
  display: grid;
  grid-template-columns: 100%;
  padding: 10px;
}

@media only screen and (max-width: 700px) {
	.mdl-layout-title {
		display: none !important;
	}
	.mdl-layout__drawer {
	  width: 76vw !important;
	  left: -38vw !important;
	}
	#dialog_SharedLinks {
	width: 90vw;
	}
}

@media only screen and (max-width: 1024px) {
	#nichtAngemeldet, #nichtPWA {
	margin: 50px 5vw;
	}
}


@media only screen and (min-width: 700px) {
	.grid-container {
	grid-template-columns: 50% 50%;
	}
	#userNavi {
		display:block;
	}
}

@media only screen and (min-width: 1440px) {
	.grid-container {
	grid-template-columns: 25% 25% 25% 25%;
	}
}

.grid-item {
  height:80vh;
}

/* lightbox */

.thumbnail {
  max-width: 40%;
}


.lightbox {
	/** Default lightbox to hidden */
	display: none;

	/** Position and style */
	position: fixed;
	z-index: 999;
	width: 100%;
	height: 100%;
	text-align: center;
	top: 0;
	left: 0;
	background: rgba(0,0,0,0.8);
	padding-top: calc(64px + 2vh);
}

.lightbox img {
	/** Pad the lightbox image */
	max-width: 90vw;
	max-height: 70vh;
}

.lightbox_text {
	width: 100%;
    margin: auto;
}

.lightbox_close {
    text-align: right;
    width: 100vw;
    position: absolute;
    top: 60px
}

a.lightbox {
	color:#fff;
	text-decoration:none;
}

.lightbox:target {
	/** Remove default browser outline */
	outline: none;

	/** Unhide lightbox **/
	display: block;
}

#spinnerBack {
    position: absolute;
    top: 0;
    left: 0;
    padding-top: 56px;
    width: 100vw;
    height: 100vh;
    z-index: 9999999;
    margin: auto;
    background: rgba(0,0,0,0.5);
}
.mdl-progress {
    width: 100% !important;
    margin: auto;
}

.material-icon-fix {
	position: absolute;
    right: 30px;
}
.share-icon {
	font-size: 1em !important;
}
.deleteFileDoc, .linkkopie, .linkkopie i, .pointer, #neuButton {
	cursor: pointer;
	vertical-align: middle;
}
.subnav {
	font-weight: bold !important;
}
.subnavi {
    padding-top: 0 !important;
    margin-left: 20px !important;
    padding-bottom: 0 !important;
}
.subnav .material-icons {
    margin-right: 5px;
	font-size: 1.5em;
}