body {
	overflow: hidden;
	height: 100%;
	background-color: #E0AD26;
}

.bgwrapper {
	overflow: hidden;
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: -2;
}

.imgwrapper {
	height: fit-content;
	width: fit-content;
	animation-name: spin;
	animation-duration: 10000ms;
  	animation-iteration-count: infinite;
  	animation-timing-function: linear;
}

.imgwrapper > img{
	mix-blend-mode: overlay;
	border-radius: 50%;
}

#spinningbg {
	position: absolute;
	top: 0;
	left: 0;
	border-radius:50%;
	height: 100%;
	width: 100%;
	box-shadow: 0 0 32px 32px #E0AD26 inset;
}

.winner {
	position: absolute;
	text-align: center;
}

#avatar {
	width: 150px;
	height: 150px;
	border-radius: 10px;
	border: 2px solid black;
	margin-block: 30px;
	animation-name: zoom;
	animation-duration: 1000ms;
	animation-iteration-count: infinite;
	animation-timing-function: linear;
	animation-direction: alternate;
}

.text-pixel {
	font-family: pixellari;
}

.container-fluid:not(.authcard, .widecard) {
	position: absolute;
	z-index: -1;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.authcard {
	background: #B78404;
	border-radius: 10px;
	border: 2px solid #8A6304;
	max-width: 342px;
	padding-block: 20px;
	padding-inline: 50px;
}

.widecard {
	background: #B78404;
	border-radius: 10px;
	border: 2px solid #8A6304;
	max-width: 500px;
	padding-block: 20px;
	padding-inline: 50px;
}

.bottom {
	position: absolute;
	width: 100%;
	bottom: 75px;
}

.centerwrapper {
	position: absolute;
	z-index: -1;
	top: 0;
	left: 0;
	margin-block: auto;
	height: 95%;
	width: 100%;
	align-content: center;
}

.bottom > div {
	display: flex;
}

input[type=text], input[type=password]{
	border-radius: 5px;
	border: 2px solid black;
	width: 239px;
}

.filewrapper {
	border-radius: 5px;
	border: 2px solid black;
	background-color: white;
	width: 100%;
	height: 32px;
	position: relative;
	display: flex;
}

.filewrapper > span {
	position: absolute;
	top: 2px;
	left: 4px;
}

.filewrapper > label {
	position: absolute;
	padding: 4px;
	height: 24px;
	border-radius: 5px;
	right: 4px;
	top: 2px;
	margin-block: auto;
	cursor: pointer;
	transition: background-color 200ms;
	vertical-align: middle;
}

.filewrapper > label:hover {
	background-color: dimgray;
}

.filewrapper > label > img {
	height: 16px;
	vertical-align: top;
}

.header {
	padding: 5px;
	z-index: 2;
	width: 100%;
	height: 60px;
}

#settings {
	position: absolute;
	right: 5px;
	text-decoration: none;
	width: 50px;
	height: 50px;
	border-radius: 50%;
}

#profile {
	border-radius: 50%;
	border: 2px solid black;
	width: 100%;
	height: 100%;
}

#gearwrapper {
	position: absolute;
	opacity: 0;
	top: 0;
	left: 0;
	border-radius: 50%;
	background: rgba(255,255,255,0.4);
	border: 2px solid black;
	width: 100%;
	height: 100%;
	transition: opacity 200ms;
	align-content: center;
	text-align: center;
	vertical-align: middle;
}

#gearwrapper:hover {
	opacity: 1;
}

#gearwrapper > img {
	width: 25px;
	height: 25px;
}

.link {
    background: none!important;
    border: none;
    padding: 0!important;
    /*optional*/
    font-family: arial, sans-serif;
    /*input has OS specific font-family*/
    color: #069;
    text-decoration: underline;
    cursor: pointer;
    display: inline;
}

.button {
	background-color: #0d6efd;
	display: inline-block;
	font: 16px;
    text-decoration: none;
    color: white;
    border-radius: 5px;
    padding: 10px;
    margin-inline: auto;
    cursor: pointer;
    font-family: pixellari;
    box-shadow: -1px 2px #000000;
    border: none;
    text-align: center;
}

.button:hover {
	background-color: #0848A9;
}

.button > img {
	width: 16px;
	vertical-align: middle;
}

.bg-red {
	background-color: #DC3545;
}

.bg-red:hover {
	background-color: #A52732;
}

.w-200px {
	width: 200px;
}

.w-380px {
	width: 380px;
}

#userMedals {
	text-align: center;
	margin-inline: auto;
	width: 200px;
	font-family: pixellari;
}

.game-container {
	position: relative;
	overflow: hidden;
	border-radius: 5px;
  	box-shadow: -1px 2px #000000;
  	max-width: 100%;
  	max-height: 60vh;
}

.game-overlay {
  position: absolute;
  bottom: 0;
  left: -100%;
  right: 0;
  background: rgba(115,22,129,0.8);
  color: white;
  width: 100%;
  height: 100%;
  transition: .5s ease;
  font-family: pixellari;
  text-align: center;
  font-size: 14px;
  padding: 30px;
}

.game-overlay > a {
	color: white;
	position: relative;
	font-size: 16px;
	top: 10%;
}

.game-container:hover .game-overlay {
  left: 0;
}

.leaderboard {
	width: 100%;
}

.leaderboard td, .leaderboard th {
	border: 1px solid gray;
	text-align: center;
	font-family: pixellari;
}

.footer {
	position: absolute;
	bottom: 20px;
	left: 20px;
}

@keyframes spin {

    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes zoom {

	from {
		transform: scale(0.8);
	}
	to {
		transform: scale(1.2);
	}
}

@font-face
{
  font-family: pixellari;
  src: url('fonts/Pixellari.ttf');
}