body {
  padding: 0;
  margin: 0;
  font-family: logoFont;
  font-size: 20px;
  color: #eee;
  background-color:#0e100e;
  background-image: url('/images/bg.jpg');
  background-size: 300px;
  overflow-x: hidden;
  min-height: 100vh;
}

@font-face {
  font-family: logoFont;
  src: url(../fonts/Nunito.ttf);
}

.header {
  box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.3);
}

.header ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: rgb(12, 36, 7);
}

.header li {
  float: left;
}

#logoContainer, #userContainer {
  display: flex;
  flex-direction: row;
  position: relative;
}

.header a {
  text-decoration: none;
}

#logo {
  width: 40px;
  height: 40px;
  animation:flower 1.5s steps(50,end) infinite;
  margin: calc(1.5em - 20px);
  background-image: url("/images/qexit.png");
}

@keyframes flower {
  from { background-position:    0px; }
    to { background-position: -2000px; }
}

#logotext {
  display: inline-block;
  color: white;
  text-align: center;
  padding: 0.71rem 1.5rem 0 0;
  text-decoration: none;
  font: 1.5em logoFont;
}

.flexWrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1em;
}

.header li a.menulink {
  display: inline-block;
  color: white;
  text-align: center;
  padding: 0.8em 1.4em;
  text-decoration: none;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #363636;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {background-color: #3f3f3f;}

.menuitem:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

.menuitem.selected .menulink {
  border-bottom: 0.28em solid rgb(255, 210, 0);
  padding-bottom: 0.58em;
  box-sizing: border-box;
}

.dropdown:hover .dropdown-content {
  display: block;
}

#login-div {
  float: right;
}

#page-content {
  margin: 0.5em 1em 0 1em;
}

.elmaTable a, .elmaTableHeader a, .commentContainer a {
  color: rgb(255, 210, 0);
  text-decoration: none;
}

.elmaTable a:hover, .elmaTableHeader a:hover, .commentContainer a:hover {
  color: rgb(255, 230, 0);
  text-decoration: underline;
}

.dl, .commentsButton {
  position: relative;
  float: right;
}

a.dl img, a.commentsButton img {
  position: relative;
  top: 0.10em;
  width: 0.9em;
  height: 0.9em;
}

#replayHeader .dl, #replayHeader .commentsButton {
  margin-left: 0.3em;
  top: 0.22em;
}

.elmaTable {
  table-layout: fixed;
  border-collapse: collapse;
  background-color: #151515;
}

#playerInfoContainer {
  margin: 0.5em;
  font-size: 1.5em;
  display:flex; 
  flex-direction: column;
  align-items: center;
}

.elmaTableHeader {
  margin: 0.5em;
  font-size: 1.5em;
}

.date {
  margin-bottom: 0.2em;
  margin-top: 1.5em;
  margin-left: 0.5em;
}

.elmaTable .tableHeader {
  background-color: #131c11;
}

.elmaTable th, .elmaTable td {
  border: 1px solid rgb(80, 80, 80);
  padding: 0.4em;
}

.elmaTable .columnCenter {
  text-align: center;
  vertical-align: middle;
}

img.medal {
  margin-left: 0.3em;
  position:relative;
  top: 4px;
  width: 1em;
  height: auto;
}

.elmaTable tr:nth-child(even){background-color: #252525;}

#username {
  margin-right: 2em;
}

.avatar {
  width: 2.2em; 
  height: 2.2em;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 50%;
  border: 1px solid rgb(80, 80, 80);
}

#userContainer #userimg {
  position: absolute;
  right: -1em;
  top: -0.4em;
}

.avatar-small {
  width: 1.2em; 
  height: 1.2em;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 50%;
  border: 0.5px solid rgb(80, 80, 80);
  display: inline-block;
  position: relative;
  top: 0.26em;
  margin-right: 0.23em;
}

.avatar-large {
  width: 4em; 
  height: 4em;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 50%;
  border: 1px solid rgb(80, 80, 80);
}

#registerWindow, #loginWindow {
  position: absolute;
  right: 0;
  background-color: #363636;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.formcontainer {
  display: flex;
  flex-direction: column;
}

.formcontainer label {
  margin: 0.2em 1.5em 0.1em 0.2em;
}

.formcontainer input {
  margin: 0.1em 0.3em 0.8em 0.3em;
  font-size: 1em;
  color:black;
}

.formcontainer button {
  background-color: #2a862d; /* Green */
  border: none;
  color: white;
  width: calc(100% - 0.8em);
  height: 2.4em;
  margin: 0.4em;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 1em;
}

.formcontainer button:hover {
  background-color: #3c973f;
}

#uploadWindow, #uploadAvatarWindow {
  display:none;
}

.commentsCounter {
  display: inline-block;
  margin-left: 1px;
  font-size: 0.8em;
}

.semitrans {
  opacity: 0.1;
}

.commentContainer {
  position: absolute;
  background-color:#131c11;
  padding: 0.6em;
  display: flex;
  flex-direction: row;
  min-width: 15em;
  max-width: 22em;
  border: 1px solid rgb(80, 80, 80);
  border-radius: 1em;  
  z-index: 2;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.3);
  align-items:center;
}

.commentData {
  margin-left: 0.5em;
}

.commentUser {
  display: inline-block;
}

.commentDate {
  display: inline-block;
  font-size: 0.8em;
  color:rgb(100, 100, 100);
  margin-left: 0.5em;
}

.commentText {
  margin-top: 0.3em;
}

.commentClose {
  display:none;
  position: absolute;
  cursor: pointer;
  background-image: url("/images/close.svg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  width: 0.8em;
  height: 0.8em;
  top: 0.5em;
  right: 0.5em;
}

.commentInput {
  display:inline-block;
  width: calc(100% - 1.6em);
  font-size: 1em;
  border-radius: 0.25em;
  background-color: beige;
}

.commentInput:focus {
  outline-width: 0;
  outline: none;
}

.commentSubmit {
  display:inline-block;
  cursor: pointer;
  background-image: url("/images/submit.svg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  width: 1.2em;
  height: 1.2em;
  margin-left: 0.3em;
}

#modalOverlay {
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.fade-in {
	opacity: 1;
	animation-name: fadeIn;
	animation-iteration-count: 1;
	animation-timing-function: ease-in-out;
	animation-duration: 0.25s;
}

.pop {
	opacity: 0;
	animation-name: fadeOut;
	animation-iteration-count: 1;
	animation-timing-function: ease-in;
	animation-duration: 0.25s;
}


@keyframes fadeIn {
	0% {
		opacity: 0;
    transform: scale(0.5);
	}
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
	100% {
		opacity: 1;
    transform: scale(1.0);
	}
}

@keyframes fadeOut {
	0% {
		opacity: 1;
    transform: scale(1.0);
	}
	100% {
		opacity: 0;
    transform: scale(0.5);
    display: none;
	}
}