/*
------------------------------------------
Prettier login screen by u/TheEpicSnowWolf
based on code by u/bass-blowfish
------------------------------------------
*/

/* CONFIGURATION AREA */
#join-game, .watermark {
  /* Replace "url(data:image...)" with "url("PATH_TO YOUR_IMAGE")".
     Keep as is if you don't want to add images. */
  --login-world-logo: url("./ui/Dragonlance-Logo.png");
  --login-footer-logo: url("./ui/dnd.png");

  /* Change this to adjust the size of the footer logo */
  --login-footer-logo-height: 30px;

  /* Here you can change the base and hover color for the buttons
     on the login form. */
  --login-button-color: rgb(54,1,1);
  --login-button-color-hover: rgb(124,44,21);
  --login-background-color: rgb(126,77,50);

  /* Change to "inherit" if you want to keep the text title.
     You then also need to remove the "World Logo" declaration. */
  --login-show-text-title: none;
}

/* World Logo - REMOVE THIS IF YOU WANT A TEXT TITLE */
#join-game #world-title {
  background: var(--login-world-logo);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  height: 200px !important;
  border: none;
  box-shadow: none;
}

/* Footer Logo */
body.vtt.players .watermark:before {
  display: block;
  content: " ";
  background: var(--login-footer-logo);
  background-repeat: no-repeat;
  background-position: center;
  width: 100%;
  height: var(--login-footer-logo-height);
  margin-top: calc(calc(var(--login-footer-logo-height) * -1) - 15px);
  margin-bottom: 5px;
}

/* Hide world description and session info */
#join-game .right.flexcol, #join-game .app:not(#world-title) h1, #join-game .left.flexcol .app:nth-of-type(2) {
  display: none;
  }

/* World title visibility */
#join-game #world-title h1 {
  display: var(--login-show-text-title);
}

/* Login mask width and position */
#join-game {
  width: 400px !important;
  top: calc(50% - 400px) !important;
 
}
/* Restyle box */
#join-game .app {
  background: var(--login-background-color);
}
/* Restyle inputs */
#join-game input, #join-game select, #join-game button {
  min-height: 40px;
  padding: 10px !important;
  border: none !important;
  font-size: 15px;
  width: 100%;
}

/* Restyle buttons */
#join-game button {
  background: var(--login-button-color);
  border: none;
  color: #fff;
  margin-bottom: 0px !important;
}

#join-game button:hover {
  background: var(--login-button-color-hover);
  box-shadow: none;
}

/* Top align form labels */
#join-game .form-group {
  clear: both;
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
  margin-top: 0;
  overflow: hidden;
}

#join-game .form-group label {
  line-height: 31px;
  width: 100%;
}

/* Hide placeholder text */
#join-game input[type="password"]::placeholder {
  color:transparent;
}

/* Change login button icon */
#join-game button[name="join"] i.fas.fa-check {
  display: none;
}

#join-game button[name="join"]:after {
  content: "\1F846";
}

#join-game.app {
  max-height: 100%;
  background-color: none;
  border-radius: 0px;
  margin: 0px 0;
  padding: 0.5em;
  color: transparent;
  z-index: var(--z-index-app);
  transform-origin: top left;
  background: transparent;
  border: none;
  box-shadow: none;
  outline: none;
  margin-bottom: 0px;
}

/* Animate Login Block 
.left.flexcol {
	position: relative;
	margin: 0px auto 0;
	background: linear-gradient(45deg, #000, #272727, #000);
}

.app {
  max-height: 100%;
  background: linear-gradient(10deg, #ff0000, #ff5a00, #ff9a00, #ffce00, #ffe808, #ffce00, #ff9a00, #ff5a00, #ff0000 );
  border-radius: 0px;
  box-shadow: 0 0 0px #000;
  margin: 0px 0;
  padding: 0.5em;
  color: none;
  z-index: var(--z-index-app);
  transform-origin: top left;

}
.left.flexcol:before, .left.flexcol:after {
	content: '';
	position: absolute;
	left: -2px;
	top: -2px;
	background: linear-gradient(10deg, #ff0000, #ff5a00, #ff9a00, #ffce00, #ffe808, #ffce00, #ff9a00, #ff5a00, #ff0000 );
	background-size: 400%;
	width: calc(100% + 4px);
	height: calc(100% + 4px);
	z-index: -1;
	animation: steam 5s ease infinite;
}

@keyframes steam {
	0% {
		background-position: 0 0;
	}
	50% {
		background-position: 400% 0;
	}
	100% {
		background-position: 0 0;
	}
}

@keyframes title {
	0% {
		background-position: 0 0;
	}
	50% {
		background-position: 100% 0;
	}
	100% {
		background-position: 0 0;
	}
}

.left.flexcol:after {
	filter: blur(50px);
	*/
}