body {
	margin: 0;
	font-size:16px;
	height: 100%;
	width: 100%;
	padding:0;
	 box-sizing: border-box;
	-webkit-user-select: none; /* Safari */
	-ms-user-select: none; /* IE 10 and IE 11 */
	user-select: none; /* Standard syntax */	
	font-family: "Nova Square", sans-serif;
	justify-content: space-around;
	position: fixed;
	overflow: hidden;
	background-size: cover;
	background-image: url(chess_background.jpg);
	background-position: center;
	color: black;
}

.symbol {
	font-variation-settings: 'FILL' 0;
	transition: font-variation-settings 0.5s;
	cursor: pointer;
}

.symbol:hover {
	font-variation-settings: 'FILL' 1;
}

.button_icon {
	background: #FFCF40;
	width: 36px;
	height: 36px;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 8px;
	margin: 8px;
}

.button_icon:hover {
	background: #BF9B30;
}

.header_container {
	width: calc(100% - 16px);
	height: 50px;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 8px;
	position: absolute;
}

h1 {
	position: absolute;
	color: white;
	z-index: 3;
	margin: 4px;
	font-size: 32px;
	left: 44px;
}

hr {
	background: grey;
	height: 1px;
	border: 0px;
}

p {
	font-size: 18px;
    width: fit-content;
    margin: 4px;
    position: relative;
}

@keyframes more_div_animate {
	0% {bottom: -300px; opacity: 0;}
	100% {bottom: 0px; opacity: 1;}
}

.container {
	background: black;
	color: white;
	display: flex;
}

input {
	border: 2px solid #FFCF40;
	margin: 4px;
	border-radius: 8px;
	padding: 16px;
	outline: 0px;
	width: 285px;
}

input:focus {
	border: 2px solid #BF9B30;
}

.username_class:focus{
	background-image: url('https://chess.noahhirt.co.uk/account/person_focus.svg?v=2');
}

.email_class:focus{
	background-image: url('https://chess.noahhirt.co.uk/account/email_focus.svg?v=2');
}

.password_class:focus{
	background-image: url('https://chess.noahhirt.co.uk/account/password_focus.svg?v=2'), url('https://chess.noahhirt.co.uk/account/visibility_focus.svg?v=2');
}

.password_class_off:focus{
	background-image: url('https://chess.noahhirt.co.uk/account/password_focus.svg?v=2'), url('https://chess.noahhirt.co.uk/account/visibility_off_focus.svg?v=1');
}

.submit {
	background: #FFCF40;
	color: black;
}

.submit:hover {
	background: #BF9B30;
}

.create_account_p  { 
	text-decoration-color: #FFCF40;
}

.create_account_p:hover {
	text-decoration-color: #BF9B30;
}

#game_status {
	font-family: "Jaro", sans-serif;
	font-size: 70px;
	position: absolute;
	top: 0px;
	width: 300px;
	text-align: center;
	left: calc(50% - 150px);
}

.players {
	position: absolute;
	bottom: 20px;
	font-size: 30px;
	text-align: center;
	width: 100%;
	height: fit-content;
}

@media (min-width: 480px) {
	#game_status {
		font-size: 100px;
		width: 440px;
		left: calc(50% - 220px);
	}
}

@media (min-width: 650px) {
	#game_status {
		font-size: 130px;
		width: 600px;
		left: calc(50% - 300px);
	}
}


.loader {
	width: 300px;
	left: calc(50% - 150px);
	height: 6px;
	display: none;
	position: absolute;
	top: 150px;
	background: rgba(255, 255, 255, 0.3);
	overflow: hidden;
	border-radius: 8px;
	/* display:none; */
}
.loader::after {
	content: '';
	width: 100px;
	height: 6px;
	background: black;
	position: absolute;
	top: 0;
	left: 0;
	box-sizing: border-box;
	animation: animloader 2s linear infinite;
}

@keyframes animloader {
  0% {
    left: 0px;
    /* transform: translateX(-150px); */
  }
  100% {
    left: 300px;
    /* transform: translateX(0px); */
  }
}

.start_game_display {
	display: flex;
	position: absolute;
	top: 0px;
	height: 100%;
	width: 100%;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.waiting {
	display:none;
	position: absolute;
	width: 100%;
	height: 100%;
	background: black;
	opacity: 0.75;
	top:0px;
	left: 0px;
	color: white;
	justify-content: center;
	align-items: center;
	flex-direction: column;
}

.awaiting_opponent {
	display: none;
	font-size: 24px;
	color: white;
	justify-content: center;
	align-items: center;
}

#loader2 {
	width: 100px;
	height: 100px;
	justify-content: center;
	align-items: center;
}
   
.loader2 {
	width: 64px;
	height: 64px;
	position: relative;
	background-image:
	linear-gradient(#FFF 16px, transparent 0) ,
	linear-gradient(#FFCF40 16px, transparent 0) ,
	linear-gradient(#FFCF40 16px, transparent 0) ,
	linear-gradient(#FFF 16px, transparent 0);
	background-repeat: no-repeat;
	background-size: 16px 16px;
	background-position: left top , left bottom , right top , right bottom;
	animation: rotate 1s linear infinite;
}
@keyframes rotate {
	0% {
		width: 64px;
		height: 64px;
		transform: rotate(0deg)
	}
	50% {
		width: 30px;
		height: 30px;
		transform: rotate(180deg)
	}
	100% {
		width: 64px;
		height: 64px;
		transform: rotate(360deg)
	}
}

#loading_pieces {
	position: absolute;
	width: 100%;
	height: 100%;
	background: black;
	top:0px;
}

.page_container {
	top: 66px;
	position: absolute;
	width: 50%;
	left: 25%;
	height: calc(100% - 66px);
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.friends_header {
	background: #FFCF40;
	border-radius: 8px;
	padding: 8px;
	margin: 16px;
	z-index: 2;
	font-size: 18;
}

.friends_div {
	background: white;
	width: 249px;
	border: 2px solid #FFCF40;
	position: relative;
	top: -34px;
	padding: 16px;
	border-radius: 8px;
}

.friend {
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.popup_div {
	z-index: 8;
	display: none;
	flex-direction: column;
	width: 350px;
	height: fit-content;
	background: #ffffff;
	border-radius: 8px;
	justify-content: center;
	align-items: center;
}

.popup_overlay {
	position: absolute;
	display: none;
	z-index: 7;
	width: 100%;
	height: 100%;
	top: 0px;
	left: 0px;
	background: black;
	opacity: 50%;
}

.game_invite {
	position: relative;
	background: white;
	display: flex;
	border: 2px solid gold;
	border-radius: 8px;
	padding: 16px;
	top: -35;
	justify-content: space-evenly;
}

.game_invites {
	position: absolute;
	z-index: 6;
	padding: 24px;
	background: rgba(0, 0, 0, 0.8);
	width: calc(100% - 48px);
}

.checkmate_div {
	top: 10px;
	position: absolute;
	left: calc(50% - 175px);
	height: 200px;
	top: calc(50% - 100px);
}

@media (max-width: 370px) {
	.checkmate_div {
		width: calc(100% - 16px);
		left: 8px;
	}
}

.return_home {
	position: absolute;
	top: 0px;
	display: none;
	border: 2px solid;
	padding: 4px;
	margin: 16px;
	border-radius: 8px;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.menu_container {
	display: flex;
	flex-direction: column;
	justify-content: space-evenly;
	align-items: center;
	width: 100%;
	height: calc(100% - 66px);
	top: 66px;
	position: absolute;
}

.bubble_container {
	background: #00000090;
	position: relative;
	display: flex;
	width: 200px;
	height: 200px;
	border-radius: 5em;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border: 2px solid #FFC107;
	color: white;
	cursor: pointer;
	transition: background 0.5s;
}

.index_icon {
	font-variation-settings: "FILL" 0;
	transition: font-variation-settings 0.5s, color 0.5s;
	font-size: 70px;
	color: white;
}

.bubble_container:hover .index_icon {
	font-variation-settings: "FILL" 1;
	color: #FFC107;
}

.bubble_container:hover {
	background: #00000000;
}

#profile_pic_container {
	width: 100%;
	height: 280px;
	display: flex;
	align-items: center;
	color: white;
	justify-content: center;
	flex-direction: column;
	
}

.profile_background {
	width: 200px;
	height: 200px;
	border-radius: 10em;
	border: 4px solid white;
	display: flex;
	align-items: center;
	justify-content: center;
}

#change_profile_pic_container {
	display: none;
	position: absolute;
	flex-wrap: wrap;
	z-index: 3;
	height: calc(100% - 66px);
	top: 66px;
	justify-content: space-evenly;
	background: rgba(0, 0, 0, 0.8);
	color: white;
}

.img_box {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100px;
	height: 100px;
	margin: 8px;
	border-radius: 16px;
	background: white;
	border: 2px solid white;
	transition: border 0.5s, background 0.5s;
	cursor: pointer;
    padding: 2px;
}

.img_box:hover {
	border: 2px solid #FFC107;
	background: rgba(250,250,250,0.75);
}

.profile_change_img {
	max-width: 100%;
	max-height: 100%;
}

.color_input {
	border-radius: 8px;
	width: 50%;
	padding: 4px;
	height: 40px;
	margin: 8px;
	border: none;
	cursor: pointer;
}

@media (max-width:375px) {
	.img_box {
		width: 50px;
		height: 50px;
	}
}

@media (max-width: 475px) {
	.page_container {
		left: 8px;
		width: calc(100% - 16px);
	}
}

.input_div {
	border: 2px solid #FFCF40;
	margin: 4px;
	border-radius: 8px;
	padding: 16px;
	outline: 0px;
	width: 253px;
	background: white;
	color: black;
	display: flex;
	justify-content: space-between;
	align-items: center;
}