@import url('../../css/common.css');

/* #region variables */

:root {
	--corporative-color: #33f;
	--corporative-color-hover: #55f;
	--image-width-l: 150px;
	--image-width-m: 130px;
	--image-width-s: 120px;
}

/* #endregion */

/* #region @font-face */

@font-face {
	font-display: block;
	font-family: 'open-sans';
	font-weight: 400;
	src: url('../font/open-sans/open-sans-regular.ttf') format('truetype');
	src: url('../font/open-sans/open-sans-regular.eot');
	src: url('../font/open-sans/open-sans-regular.eot?#iefix') format('embedded-opentype'),
		url('../font/open-sans/open-sans-regular.woff') format('woff'),
		url('../font/open-sans/open-sans-regular.woff2') format('woff'),
		url('../font/open-sans/open-sans-regular.ttf') format('truetype'),
		url('../font/open-sans/open-sans-regular.svg#svgFontName') format('svg');
}

/* #endregion */

/* #region html */

html {
	font-size: 16px;

	body {
		background-color: #000;
		color: #fff;
		display: flex;
		flex-direction: column;
		font-family: open-sans, sans-serif;
		margin: 0;
		min-height: 100vh;
		min-width: 360px;
		overflow-y: scroll;
		padding: 0;

		&&::-webkit-scrollbar {
			width: 20px;
		}

		&&::-webkit-scrollbar-track {
			background: #222;
		}

		&&::-webkit-scrollbar-thumb {
			background-color: #555;
			border: 1px solid #666;
			border-radius: 6px;
		}
	}

	a {
		color: var(--corporative-color);
		text-decoration: none;

		&&:hover {
			color: var(--corporative-color-hover);
			text-decoration: underline;
		}
	}

	main {
		display: flex;
		flex-direction: column;
		flex-grow: 1;
		padding-top: 80px;

		> * {
			animation: fadeIn 0.5s ease-in-out;
			display: none;
			flex: 1;
		}

		> .visible {
			display: flex;
		}

		> .dataErrorLogoImage {
			display: block;
			height: 80px;
			left: 0px;
			position: fixed;
			top: 0px;
		}
	}
}

/* #endregion */

/* #region PhotoSwipe */

.pswp.pswp--open {
	backdrop-filter: blur(7px) opacity(0);
	transition: backdrop-filter 500ms;
}

.pswp.pswp--open.pswp--ui-visible {
	backdrop-filter: blur(7px) opacity(1);
}

.pswp .pswp__bg {
	background-color: #222 !important;
}

.pswp .pswp__counter {
	white-space: nowrap;
}

.pswp .pswp__link-button {
	overflow: hidden;
}

.pswp .pswp__link-button > .copyLinkToClipboard {
	animation: fadeInOut 2s ease-in-out 1;
	background-color: #fff;
	border-radius: 5px;
	color: #000;
	display: none;
	font-weight: normal;
	max-width: 150px;
	opacity: 0;
	padding: 10px;
	pointer-events: none;
	position: absolute;
}

.pswp .pswp__link-button > .copyLinkToClipboard:before {
	border: 10px solid transparent;
	border-bottom-color: #fff;
	content: '';
	left: 15px;
	pointer-events: none;
	position: absolute;
	top: -18px;
}

.pswp .pswp__link-button.linkButtonMessageVisible > .copyLinkToClipboard {
	display: block;
}

/* #endregion */

/* #region @keyframes */

@keyframes fadeInOut {
	0% {
		opacity: 0;
	}

	10% {
		opacity: 1;
	}

	90% {
		opacity: 1;
	}

	100% {
		opacity: 0;
	}
}

/* #endregion */

/* #region @media screen */

@media screen and (min-width: 480px) {
	:root {
		--image-width-s: 150px;
	}
}

@media screen and (min-width: 992px) {
	:root {
		--image-width-s: 175px;
	}
}

/* #endregion */