html {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
}
body {
	height: 100%;
	margin: 0;
	padding: 0;
	font-family: "Segoe UI", sans-serif;
	overflow-y: scroll;
	/*background: #504e4f;*/

	background: var(--site-bg);

	--site-bg: hsl(264 60% 21% / 1);
	--content-bg: hsl(264 40% 95% / 1);
	--menu-bg: #2d105a;
	--content-width: min(960px, 100vw);
	--content-left: calc((100vw - var(--content-width)) * 0.50);
	--header-height: 176px;
}

/*@media (min-width: 960px) {
	body {
		background-image: url(petteri-background.jpg?2);
		background-size: cover;
		background-position: center;
		background-attachment: fixed;
	}
}*/

#root {
	height: 100%;
}
#main {
	display: block;
	color: #181818;
	padding-top: var(--header-height);
	padding-bottom: var(--header-height);
}
template {
	display: none !important;
}
#top {
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	z-index: 10;
}
#content {
	max-width: var(--content-width);
	background: var(--content-bg);
	margin-left: var(--content-left);
	min-height: 100%;
	overflow-anchor: none;
}
#top-bar {
	max-width: var(--content-width);
	margin-left: var(--content-left);
	color: #eee;
	font-size: 13px;
}
#header {
	background-color: var(--site-bg);
	height: var(--header-height);
	position: relative;
	overflow: hidden;
}
#logo {
	color: hsl(124 15% 65% / 1);
	mix-blend-mode: color-dodge;
	position: absolute;
	font-size: 32px;
	font-weight: 500;
	top: 38px;
	left: 30px;
	letter-spacing: 1px;
	text-shadow: 1px 2px rgba(0, 0, 0, 0.75);
	user-select: none;
}
video {
	display: none;
}
#header-opener {
	display: none;
	color: #fff;
	background-color: var(--menu-bg);
	height: 44px;
	padding-left: 30px;
	font-size: 18px;
	line-height: 44px;
	cursor: default;
	user-select: none;
	-webkit-user-select: none;
}
#header-closer {
	display: none;
	color: #fff;
	background-color: var(--menu-bg);
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 44px;
	padding-left: 30px;
	font-size: 18px;
	line-height: 44px;
	cursor: default;
	z-index: 100;
	user-select: none;
	-webkit-user-select: none;
}
#header-opener .glyphicon, #header-closer .glyphicon {
	display: inline-block;
	min-width: 20px;
	vertical-align: -1px;
}

#now-playing {
	position: absolute;
	left: 0;
	padding-left: 262px;
	padding-right: 60px;
	width: 100%;
	top: 0;
	height: calc(var(--header-height) - 41px);
	overflow: hidden;
	padding-top: 2.5%;
	/*opacity: 0;*/
	text-shadow: 1px 1px 6px RGBA(0,0,0,0.5);
	/*transition: opacity 0.4s;
	-webkit-transition: opacity 0.4s;
	-moz-transition: opacity 0.4s;*/
}
#now-playing-thumbnail {
	width: 240px;
	height: 135px;
	position: absolute;
	left: 0;
	top: 0;
	
	overflow: hidden;
    
	transform: translateZ(0px);
	-webkit-transform: translateZ(0px);
	-moz-transform: translateZ(0px);
}

#now-playing-thumbnail .videoplayer {
	width: 100%;
	height: 100%;
}

.modal-header {
	min-height: 58px;
}

.modal-title {
	width: 90%;
}

.modal-header input {
	font-size: 18px;
	position: absolute;
	left: 11px;
	top: 13px;
	width: calc(100% - 100px);
	line-height: 28px;
	padding-left: 5px;
	border: none;
	background: transparent;
}

.info-dialog .modal-background {
	position: fixed;
	width: 100%;
	height: 100%;
	background: linear-gradient(rgba(61, 60, 60, 0.66), rgba(61, 60, 60, 0.85));
}
.info-dialog .modal-dialog {
	transition: transform 0.2s;
}

.modal-dialog.message-box {
	margin-top: max(50px, calc(45dvh - 140px));
	max-width: 550px;
}
.modal-dialog.message-box .modal-header {
	min-height: 50px;
	padding: 12px 15px;
}
.modal-dialog.message-box button.close {
	top: 10px;
	width: 28px;
	height: 28px;
}
.modal-dialog.message-box .modal-body {
	min-height: 120px;
	line-height: 160%;
}
.modal-dialog.message-box .modal-footer {
	padding: 11px 15px;
	min-height: 56px;
}

.popup-iframe {
	position: fixed;
	left: 50%;
	top: 50%;
	width: 600px;
	height: 600px;
	margin-left: -300px;
	margin-top: -300px;
}
#header-toner {
	background-size: cover;
	background-position: 50% 46%;
	opacity: 0;
	/*filter: blur(35px) brightness(0.45);*/
	position: absolute;
	width: 97%;
	height: 200%;
	left: 3%;
	top: -50%;
	
	pointer-events: none;
	
	transition: opacity 1.5s;
	-webkit-transition: opacity 1.5s;
	-moz-transition: opacity 1.5s;
	transform: translateZ(0px);
	-webkit-transform: translateZ(0px);
	-moz-transform: translateZ(0px);
	
}
#header-noise {
	position: absolute;
	width: 100%;
	height: 100%;
	background: url(noise-64.jpg) repeat;
	opacity: 0.007;
}

#now-playing-thumbnail .thumb {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	box-sizing: content-box;
	padding: 1px 2px;
	margin-left: -2px;
	margin-top: -1px;
	transition: opacity 0.25s;
}
#now-playing-thumbnail.empty .thumb {
	opacity: 0 !important;
}
#now-playing-header {
	font-style: italic;
	font-size: 11px;
	color: #EEE;
	margin-bottom: 1px;
}
#now-playing-title {
	font-size: 16px;
	display: inline-block;
	color: #FFF;
	word-break: break-word;
	max-height: 64px;
	overflow: hidden;
}
#now-playing-title.compact {
	font-size: 13px;
}
#now-playing-subtitle {
	color: #fff;
	color: RGBA(255,255,255,0.75);
}

#now-playing-controls {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 240px;
	height: 80px;
    user-select: none;
	opacity: 0.6;
}
#now-playing-controls:hover {
	opacity: 1;
}
#now-playing-controls button {
	position: absolute;
	width: 26px;
	height: 24px;
	border-radius: 4px;
}
#volume-up {
	right: 30px;
    bottom: 18px;
}
#volume-down {
	right: 64px;
    bottom: 18px;
}
#fastforward {
    right: 22px;
    bottom: 92px;
}
#volume-indicator {
    position: absolute;
    right: 104px;
    bottom: 18px;
	transition: opacity 0.25s;
	text-shadow: 1px 1px rgba(0,0,0,0.8);
	font-size: 16px;
	color: #fff;
	pointer-events: none;
	text-align: center;
}
#volume-bar-outer {
	position: relative;
    width: 130px;
	margin-top: 3px;
    border: 2px solid #888;
	border-radius: 4px;
}
#volume-middle {
	position: absolute;
	left: 50%;
	top: 2px;
	width: 2px;
	border-radius: 1px;
	margin-left: -1px;
	height: 9px;
	background: rgba(150, 150, 150, 0.6);
}
#volume-bar {
	width: 50%;
	height: 13px;
	border-radius: 2px;
	background: linear-gradient(#eee, #ccc);
}

/* ------------- */


#tabs {
    /*background-color: rgb(199, 199, 199);*/
	color: rgb(15, 15, 15);
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
    min-height: 41px;
	font-family: "Segoe UI", tahoma, sans-serif;
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	cursor: default;
	font-size: 0;
}
#tabs .tab {
	height: 100%;
	width: 25%;
	position: relative;
	top: 3px;
	overflow: hidden;
	display: inline-block;
	padding: 7px 22px 9px 22px;
	font-size: 18px;
	background-color: hsl(264 44% 86% / 0.80);
	background-image: linear-gradient(99deg, rgba(0, 0, 0, 0.02) 65%, rgba(255, 255, 255, 0.04));
	white-space: nowrap;
	transition: top 0.05s linear;
}


#tabs .tab.active {
	top: 0;
	border-radius: 2px 2px 0 0;
	background-image: linear-gradient(177deg, rgb(255 255 255), var(--content-bg) 50%);
}
#tabs .glyphicon {
	margin-right: 8px;
	min-width: 18px;
	vertical-align: -1px;
	color: #333;
}
#main .tab-content {
	padding-top: 22px;
}
#main .tab-content label {
	color: rgb(80,79,79);
}
#main .tab-content p {
	color: #181818;
}
.dropdown-menu a {
	cursor: pointer;
}
input[type=checkbox] {
	vertical-align: -2px;
}

.widget-title {
	padding-bottom: 15px;
	font-size: 22px;
}

button .glyphicon {
	margin-right: 8px;
}


.lang-block {
	padding-left: 8px;
	padding-right: 8px;
	font-weight: bold;
	min-width: 40px;
	text-align: center;
	background-color: rgb(216, 216, 216);
}

.form-control:focus {
	border-color: #e77794;
	outline: 0;
	-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(233, 102, 102, .6);
	box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(233, 102, 102, .6);
}


/*.btn-primary:focus, #now-playing-controls button:focus {
	outline: 0 !important;
	box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(255, 255, 255, 0.6);
}*/

.form-control.highlight-value:not(:placeholder-shown) {
	background: #fffbdd;
}

/*.btn-dark {
	background-image: linear-gradient(to bottom, #606060 0%, #3e3e3e 100%);
	background-color: #3e3e3e;
	border-color: #202020;
	color: #fff;
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075);
}
.btn-dark:hover {
	color: #fff;
}*/

hr {
	border-top: 1px solid RGBA(0,0,0,0.06);
	border-bottom: 1px solid RGBA(255,255,255,0.5);
}

.modal-content {
	background-color: #f9f9f9;
}
.modal-body {
	background-color: #ebebea;
}
.modal-footer {
	min-height: 65px;
}
.info-dialog .modal-footer button {
	margin-left: 9px !important;
	padding: 6px 14px;
}

.bubble {
	position: fixed;
	left: 10px;
	top: 10px;
	width: 200px;
	margin-top: -60px;
	margin-left: -100px;
	text-align: center;
	z-index: 12;
	animation: bubble-up 0.2s;
	animation-timing-function: ease-out;
	animation-fill-mode: forwards;
	user-select: none;
	cursor: default;
}
.bubble span {
	display: inline-block;
	position: relative;
	background: #000;
	background-color: rgba(0,0,0,0.98);
	color: #FFF;
	padding: 8px 20px 10px 20px;
	border-radius: 5px;
	box-shadow: 3px 3px 12px RGBA(0,0,0,0.25);
	border-top: 1px solid #666;
}
.bubble a {
	color: #f03;
	font-weight: bold;
}
.bubble .bclose {
	position: absolute;
	top: 5px;
	right: 5px;
	font-size: 20px;
	line-height: 21px;
	width: 26px;
	height: 26px;
	text-align: center;
	color: #bbb;
}
.bubble .bclose:hover {
	color: #fff;
}
.bubble .bclose:active {
	color: #666;
}
.context-menu {
	border-radius: 0;
	font-family: "Segoe UI", sans-serif;
	z-index: 1100;
	max-height: 300px;
}
.context-menu li {
	display: block;
}
.context-menu a {
	padding-top: 4px !important;
	padding-bottom: 4px !important;
	padding-left: 30px !important;
}
.context-menu a .glyphicon {
	margin-left: -21px;
}
.dropdown-menu, .dropdown-menu li, .dropdown-menu a {
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	cursor: default;
}
.dropdown-menu {
    min-width: 180px;
	border-radius: 5px;
}

.context-menu.column-context-menu {
	display: flex !important;
	flex-flow: column wrap;
	width: 400px;
}.context-menu.column-context-menu li {
	max-width: 200px !important;
}

button, .modal button.close, .btn, html input[type=button], .radio-inline {
	cursor: default;
}

.modal button.close {
	position: absolute;
	top: 12px;
	right: 15px;
	color: #686868;
	background: #f5f5f5;
	border: 1px solid #ccc;
	width: 32px;
	height: 32px;
	padding-bottom: 2px;
	margin-top: 0;
	border-radius: 3px;
	text-align: center;
	opacity: 1;
	user-select: none;
}

.modal button.close:hover {
	background: #f0f0f0;
}

.modal button.close:active {
	box-shadow: inset 0px 1px 3px #c1c1c1;
	background: #ebebeb;
}

/*#contextMenuHint {
	transition: opacity 1s;
}*/



@keyframes bubble-up {
	0% { 
		transform: translate(0,20px);
		opacity: 0;
	}
	100% { 
		transform: translate(0,0);
		opacity: 1;
	}
}




.waveform {
	background-color: rgba(8, 8, 8, 0.08);
	border: 1px solid #ababab;
	border-radius: 4px;
	position: relative;
	height: 66px;
	margin: 0;
	overflow: hidden;
	user-select: none;
	-webkit-user-select: none;
	margin-bottom: 15px;
}


.waveform .start {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	background: rgba(140,140,140,0.6);
	border-right: 1px solid rgba(0,0,0,0.2);
}
.waveform .end {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	background: rgba(140,140,140,0.6);
	border-left: 1px solid rgba(0,0,0,0.2);
}
.waveform:hover .start.hover {
	border-right: 2px solid #4490f4;
}
.waveform:hover .end.hover {
	border-left: 2px solid #4490f4;
}
.waveform img {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	border: 0;
	/*transform: translateZ(0px);*/
}
.waveform .cursor {
	position: absolute;
	height: 100%;
	top: 0;
	width: 1%;
	opacity: 0;
	
	transform: translateZ(0);
	
	/*transition: opacity 0.10s;
	-webkit-transition: opacity 0.10s;*/
	
	background: -moz-linear-gradient(left, rgba(255,0,32,0) 0%, rgba(255,0,32,0.75) 35%, rgba(255,0,32,1) 50%, rgba(255,0,32,0.75) 65%, rgba(255,0,32,0) 100%);
	background: -webkit-linear-gradient(left, rgba(255,0,32,0) 0%, rgba(255,0,32,0.75) 35%, rgba(255,0,32,1) 50%, rgba(255,0,32,0.75) 65%, rgba(255,0,32,0) 100%);
	background: linear-gradient(to right, rgba(255,0,32,0) 0%, rgba(255,0,32,0.75) 35%, rgba(255,0,32,0.9) 50%, rgba(255,0,32,0.75) 65%, rgba(255,0,32,0) 100%);
}
.waveform .cursor-window {
	position: absolute;
	left: 15%;
	top: 0;
	width: 70%;
	height: 100%;
	overflow: hidden;
	pointer-events: none;
}
.waveform .mousecatcher {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
}
.waveform .start, .waveform .end, .waveform img, .waveform .cursor {
	pointer-events: none;
	-o-pointer-events: none;
	-ms-pointer-events: none;
	-moz-pointer-events: none;
	-webkit-pointer-events: none;
}

.playlist {
	padding-bottom: 30px;
}

.playlist .playlist-item {
	position: relative;
	padding: 0 30px;
    /*border-top: 1px solid #d0d0d0;*/
	overflow: hidden;
}

.playlist .playlist-item.removed {
	opacity: 0.4;
}
.playlist .playlist-item a, .playlist .playlist-item span {
	padding: 11px 0;
}
.playlist .playlist-item a {
	display: inline-block;
	color: #222;
}
.playlist .playlist-item span {
	float: right;
	margin-left: 20px;
}
.playlist .playlist-item .glyphicon {
	top: unset;
	line-height: 20px;
}
.playlist .playlist-item .remove {
	padding-left: 8px;
	padding-right: 8px;
	color: #444;
}
.playlist .playlist-item .remove:hover {
	color: #F22;
	background: #fefefe;
}
.playlist .playlist-item .remove:active {
	background-color: transparent;
}
.playlist .playlist-item-status {
	font-weight: bold;
}

.playlist .playlist-item:hover {
	color: #000;
	z-index: 1;
	background-color: rgb(236,236,236);
	box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.playlist .playlist-item:hover a {
	color: #05C;
}

/* history widget */
.history .history-item {
    margin: 14px 0;
}
.history .history-item a {
	padding: 3px 0;
    color: #222;
}
.history .history-item a:hover {
    color: #05C;
}
.history .subtitle {
    color: #777;
    font-size: 13px;
}
/* -------- */

.audio-filters input[type='number'] {
    -moz-appearance: textfield;
}

.audio-filters input::-webkit-outer-spin-button, .audio-filters input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.input-group-btn button:active, .input-group-btn button:focus  {
	box-shadow: none !important;
	outline: none !important;
}

/* --- */
#clicker-game {
	background: #d1d1d1;
}
#clicker-game-canvas {
	background-color: #1d1216;
	background-image: url(clicker/petteri-woolen-sock-800p.jpg);
	background-size: cover;
}

/*#background-noise {
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	opacity: 0.01;
	background-image: url(noise-64.jpg);
	background-repeat: repeat;
	z-index: -10000;
	pointer-events: none;
}*/

.videoplayer {
    overflow: hidden;
    position: relative;
}

.videoplayer img {
    position: absolute;
    border: none !important;
    outline: none !important;
    pointer-events: none;
    user-select: none;
}

#disconnected {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
	font-size: 18px;
	padding: 6px;
	text-align: center;
    background: #972b22;
	color: #fff;
	text-shadow: 1px 1px 0 #000;
	border-bottom: 2px solid black;
    z-index: 9001;
}
span.ellipsis {
    display: inline-block;
    min-width: 1em;
    text-align: left;
}
#disconnected-panel {
    position: absolute;
    left: 0;
    top: 42%;
    margin-top: -5em;
    width: 100%;
    padding: 2em 3em 1.7em 3em;
    text-align: center;
    background: #701e1e;
    color: #fff;
    font-size: 18px;
    line-height: 140%;
}
body.disconnected #disconnected {
    /*display: block;*/
}

#lava-lamp {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	user-select: none;
	pointer-events: none;
}

canvas.lava-lamp {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	filter: blur(5px);
}


/* extra button color */

.btn-grey {
  color: #ffffff;
  background-color: #555555;
  border-color: #484848;
}
.btn-grey:focus,
.btn-grey.focus {
  color: #ffffff;
  background-color: #3b3b3b;
  border-color: #080808;
}
.btn-grey:hover {
  color: #ffffff;
  background-color: #3b3b3b;
  border-color: #2a2a2a;
}
.btn-grey:active,
.btn-grey.active,
.open > .dropdown-toggle.btn-grey {
  color: #ffffff;
  background-color: #3b3b3b;
  background-image: none;
  border-color: #2a2a2a;
}
.btn-grey.disabled:hover,
.btn-grey[disabled]:hover,
fieldset[disabled] .btn-grey:hover,
.btn-grey.disabled:focus,
.btn-grey[disabled]:focus,
fieldset[disabled] .btn-grey:focus,
.btn-grey.disabled.focus,
.btn-grey[disabled].focus,
fieldset[disabled] .btn-grey.focus {
  background-color: #555555;
  border-color: #484848;
}
.btn-grey .badge {
  color: #555555;
  background-color: #ffffff;
}

.btn-grey {
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2);
  -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075);
}
.btn-grey:active,
.btn-grey.active {
  -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}
.btn-grey.disabled,
.btn-grey[disabled],
fieldset[disabled] .btn-grey {
  -webkit-box-shadow: none;
  box-shadow: none;
}
.btn-grey .badge {
  text-shadow: none;
}

.btn-grey {
  background-image: -webkit-linear-gradient(top, #777777 0%, #585858 100%);
  background-image: -o-linear-gradient(top, #777777 0%, #585858 100%);
  background-image: -webkit-gradient(linear, left top, left bottom, from(#777777), to(#585858));
  background-image: linear-gradient(to bottom, #777777 0%, #585858 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff777777', endColorstr='#ff585858', GradientType=0);
  filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
  background-repeat: repeat-x;
  border-color: #535353;
}
.btn-grey:hover,
.btn-grey:focus {
  background-color: #585858;
  background-position: 0 -15px;
}
.btn-grey:active,
.btn-grey.active {
  background-color: #585858;
  border-color: #535353;
}
.btn-grey.disabled,
.btn-grey[disabled],
fieldset[disabled] .btn-grey,
.btn-grey.disabled:hover,
.btn-grey[disabled]:hover,
fieldset[disabled] .btn-grey:hover,
.btn-grey.disabled:focus,
.btn-grey[disabled]:focus,
fieldset[disabled] .btn-grey:focus,
.btn-grey.disabled.focus,
.btn-grey[disabled].focus,
fieldset[disabled] .btn-grey.focus,
.btn-grey.disabled:active,
.btn-grey[disabled]:active,
fieldset[disabled] .btn-grey:active,
.btn-grey.disabled.active,
.btn-grey[disabled].active,
fieldset[disabled] .btn-grey.active {
  background-color: #585858;
  background-image: none;
}