body {
	padding: 0;
	margin: 0;
	overflow: hidden;
}

hr{
	margin:2px;
}

#canvas {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
}

.checkbox label {
	margin-right: 10px;
}

form {
	margin-bottom: 0px;
}

.btn-play, .btn-settings, .btn-spectate {
	display: block;
	height: 35px;
}

.btn-play {
	width: 100%;
	float: left;
}

.btn-settings {
	width: 13%;
	float: right;
}

.btn-spectate {
	display: block;
	float: right;
}

.btn-settings {
	display: block;
	float: right;
}

#nick, #locationKnown #region {
	width: 50%;
	float: left;
}

#txtSkin {
	width: 50%;
	float: left;
}

#myTeam {
	width: 50%;
	float: left;
}

.agarz-play-form {
	margin-bottom: 6px;
}

.agarz-play-form .agarz-row {
	display: flex;
	align-items: stretch;
	gap: 6px;
	margin-bottom: 6px;
	clear: both;
}

.agarz-play-form .agarz-row:last-child,
.agarz-play-form .agarz-row-actions {
	margin-bottom: 0;
}

.agarz-play-form #nick,
.agarz-play-form #txtSkin,
.agarz-play-form #myTeam {
	float: none !important;
	width: auto !important;
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
}

.agarz-play-form #gamemode {
	float: none !important;
	width: auto !important;
	min-width: 0;
	flex: 0 0 34%;
	max-width: 140px;
	margin: 0;
}

.agarz-play-form .fav-f-btn {
	flex: 0 0 36px;
	width: 36px;
	min-width: 36px;
	height: auto;
	padding: 0;
	font-weight: 700;
	font-size: 15px;
	line-height: 1;
	float: none !important;
	margin: 0 !important;
}

.agarz-play-form .skin-gallery-btn,
.agarz-play-form #browseSkinBtn {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	flex: 0 0 42%;
	display: flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
	height: auto;
}

.agarz-play-form #playBtn {
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
	height: 35px;
}

.agarz-play-form .agarz-row-actions {
	margin-top: 6px;
	margin-bottom: 0;
}

.agarz-play-form .agarz-row-actions #spectateBtn,
.agarz-play-form .agarz-row-actions #replayBtn {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	flex: 1 1 50%;
	height: 35px;
}

.agarz-mobile-nav {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 8px;
}

.agarz-mobile-nav .btn {
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
	height: 35px;
}

#spectateBtn {
	width: 100%;
	float: right;
	margin-top: -10px;
}

.agarz-play-form #spectateBtn {
	margin-top: 0 !important;
}

#browseSkinBtn {
	width: 100%;
	float: right;
	margin-top: -10px;
}

#gameSettingsBtn,
#mobileSettingsBtn,
#listBtn,
#accountBtn,
#settingsBtn {
	width: 100%;
	float: right;
	margin-top: -10px;
}

.agarz-mobile-nav #mobileSettingsBtn,
.agarz-mobile-nav #listBtn,
.agarz-mobile-nav #accountBtn {
	float: none !important;
	margin-top: 0 !important;
}

#settings {
	margin-top: 8px;
	clear: both;
}

#gamemode{
	width: 50%;
	float: right;
}

#helloDialog {
	width: 380px;
	background-color: #FFFFFF;
	margin: 10px auto;
	border-radius: 15px;
	padding: 5px 15px 5px 15px;
	position: absolute;
	top: 50%;
	left: 50%;
	margin-right: -50%;
	-webkit-transform: translate(-50%, -50%);
	-ms-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
}

#chatBar {
	position: absolute;
	z-index: 210;
	bottom: 10px;
	left: 10px;
	display: flex;
	align-items: center;
	gap: 10px;
}

#chat_textbox {
	-webkit-transition: all .5s ease-in-out;
	-moz-transition: all .5s ease-in-out;
	-o-transition: all .5s ease-in-out;
	transition: all .5s ease-in-out;
	position: static;
	background: rgba(0, 0, 0, .2);
	border: 0px;
	outline: none;
	color: #FFF;
	height: 30px;
	text-indent: 12px;
	width: 300px;
	flex: 0 0 300px;
}

#chat_textbox:focus {
	background: rgba(0, 0, 0, .5);
}

#chatEmoji {
	position: relative;
	display: flex;
	align-items: center;
	flex: 0 0 auto;
}

.emoji-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	user-select: none;
}

#emoji-list {
	display: none;
	position: absolute;
	left: 0;
	bottom: 36px;
	z-index: 30;
	width: 340px;
	max-height: 220px;
	overflow-y: auto;
	background: #f3f4f6;
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
	padding: 8px;
}

#emoji-list ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
}

#emoji-list li {
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	border-radius: 6px;
}

#emoji-list li:hover {
	background: #e5e7eb;
}

#chatButtons {
	font-size:14px;
	position: static;
	color:white;
	user-select: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	-webkit-touch-callout: none;
	display: flex;
	align-items: center;
	white-space: nowrap;
	gap: 10px;
}

#chatAll{
	font-size:19px;
	cursor:pointer;
}

#chatTeam, #chatClan, #chatMegaphone, #clearChatBtn, #chatFilterLabel{
	cursor:pointer;
}

#chatFilterLabel {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	user-select: none;
}

#chatFilterLabel input {
	margin: 0;
	cursor: pointer;
}

#clearChatBtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	line-height: 0;
	opacity: 0.9;
}

#clearChatBtn:hover {
	opacity: 1;
}

#clearChatBtn svg {
	display: block;
	pointer-events: none;
}

#chatCommands {
    position: absolute;
    bottom: 70px;
    left: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    border-radius: 8px;
    width: 20%;
	font-size: 14px;
	box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
	z-index: 10;
}

.command {
	padding: 8px 12px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.command span {
	color: #ccc;
	font-size: 12px;
	margin-left: 5px;
}

.command:last-child {
	border-bottom: none;
}
  
#reportBtn {
	cursor:pointer;
	display: none;
}

#chatIncreaseSize{
	width:15px;
	text-align:center;
	cursor:pointer;
}

#chatDecreaseSize{
	width:15px;
	text-align:center;
	cursor:pointer;
}
#overlays{
	display:none;
	position:absolute;
	left:0;
	right:0;
	top:0;
	bottom:0;
	background-color:rgba(0,0,0,0.5);
	z-index:200;
	zoom:1;
	pointer-events: none;
}

#overlays > * {
	pointer-events: auto;
}


#maintenanceWindow {
	background-color: #FFFFFF;
	border-radius: 10px;
	padding: 25px;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	border: 3px solid #5072fa;
	font-size:20px;
	z-index: 201;
	display:none;
}


#errorWindow {
	background-color: #FFFFFF;
	border-radius: 10px;
	padding: 25px;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	border: 3px solid #FF0000;
	font-size:20px;
	z-index: 201;
	display:none;
}

#favoriteSkinWindow,
#favoriteNameWindow {
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 25px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid #802cf5;
    font-size: 20px;
    z-index: 201;
    display: none;
    max-width: 90vw;
    width: 420px;
}

#favoriteNameContainer {
    max-height: 420px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.favorite-name-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fafafa;
}

.favorite-name-item button.select-name {
    flex: 1;
    text-align: left;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.favorite-name-item button.remove-name {
    border: none;
    background: #eee;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
}

.profile-fav-name-btn {
    margin-left: 8px;
    font-size: 13px;
    padding: 2px 8px;
    cursor: pointer;
}

#favoriteSkinContainer {
    max-height: 550px;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    scrollbar-width: thin;
    scrollbar-color: #802cf5 #e0e0e0;
}

#favoriteSkinContainer::-webkit-scrollbar {
    width: 10px; /* Scrollbar genişliği */
}

#favoriteSkinContainer::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 10px;
}

#favoriteSkinContainer::-webkit-scrollbar-thumb {
    background-color: #802cf5;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
}

#favoriteSkinContainer::-webkit-scrollbar-thumb:hover {
    background-color: #6f1fc5;
}

#favoriteSkinContainer img {
    cursor: pointer;
    border: 2px solid transparent;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease, border 0.3s ease;
}

#favoriteSkinContainer img:hover {
    border: 2px solid #802cf5;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    #favoriteSkinWindow,
    #favoriteNameWindow {
        padding: 15px;
        width: 90%;
        max-height: 75vh;
    }

    #favoriteSkinContainer {
        max-height: 350px;
    }

    #favoriteSkinContainer img {
        width: 100%;
        height: auto;
    }

	#helloDialog {
		width: min(360px, calc(100vw - 16px));
		padding: 6px 10px 10px;
		max-height: calc(100vh - 12px);
		overflow-y: auto;
		box-sizing: border-box;
	}

	#bannerWrapper {
		margin: 4px 0;
	}

	#bannerWrapper img {
		height: 64px;
		width: auto;
		max-width: 100%;
	}

	.agarz-play-form .agarz-row {
		gap: 5px;
		margin-bottom: 5px;
	}

	.agarz-play-form #gamemode {
		flex: 0 0 32%;
		max-width: 118px;
		font-size: 13px;
		padding-left: 4px;
		padding-right: 4px;
	}

	.agarz-play-form .fav-f-btn {
		flex: 0 0 34px;
		width: 34px;
		min-width: 34px;
	}

	.agarz-play-form .skin-gallery-btn,
	.agarz-play-form #browseSkinBtn {
		flex: 0 0 46%;
		font-size: 13px;
		padding: 6px 4px;
	}

	.agarz-play-form #playBtn,
	.agarz-play-form .agarz-row-actions #spectateBtn,
	.agarz-play-form .agarz-row-actions #replayBtn,
	.agarz-mobile-nav .btn {
		height: 34px;
		font-size: 14px;
	}

	.agarz-mobile-nav {
		gap: 5px;
		margin-top: 6px;
	}

	#bottomPanel {
		margin-top: 8px;
		font-size: 12px;
		line-height: 1.4;
	}
}

@media (max-width: 480px) {
    #favoriteSkinWindow {
        padding: 10px;
        max-height: 65vh;
    }

    #favoriteSkinContainer {
        max-height: 300px;
    }

    #favoriteSkinContainer img {
        transform: scale(1.02);
    }
}


#campWindow {
	background-color: #FFFFFF;
	border-radius: 10px;
	padding: 25px;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	border: 3px solid #5072fa;
	font-size: 20px;
	z-index: 201;
}

#campWindow img {
	width: 100%;
	height: auto;
	max-width: none;
}

@media (max-width: 600px) {
	#campWindow {
		font-size: 16px;
		padding: 15px;
		width: 90%;
	}

	#campWindow img {
		width: 100%;
		max-width: none;
		height: 300px;
	}
}


#enterPriceConfirmWindow {
	background-color: #FFFFFF;
	border-radius: 10px;
	padding: 25px;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	border: 5px solid #5072fa;
	font-size:20px;
	z-index: 201;
	display:none;
}

#reportPlayerWindow {
	background-color: #FFFFFF;
	border-radius: 10px;
	padding: 25px;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	border: 5px solid #5072fa;
	font-size:20px;
	z-index: 201;
	width: 30%;
	text-align: center;
	display:none;
}

#finishGameLeaderBoardWindow {
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 35px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 5px solid #5072fa;
    font-size: 20px;
    z-index: 201;
    width: 30%;
    text-align: center;
    display: none;
}

#finishGameLeaderBoardWindowTable {
    width: 100%;
    border-collapse: collapse;
    background-color: #f9f9f9;
    margin-top: 10px;
    table-layout: fixed;
	font-weight: bold;
}

#finishGameLeaderBoardWindowTable th {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

#finishGameLeaderBoardWindowTable td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

#finishGameLeaderBoardWindowTable td.id {
    width: 15%;
}

#finishGameLeaderBoardWindowTable td.name {
    width: 80%;
}

#finishGameLeaderBoardWindowTable td.score {
    width: 35%;
}

#finishGameLeaderBoardWindowTable tr:nth-child(even) {
    background-color: #f2f2f2;
}
	
#blurEffect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 201;
    display: none;
}

#moreSettingsWindow {
	background-color: #FFFFFF;
	border-radius: 10px;
	padding: 25px;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	border: 5px solid #5072fa;
	font-size:18px;
	width: 40%;
	z-index: 202;
	display:none;
}

#closeButton {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    background-color: #111;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

#closeButton:hover {
    background-color: #d32f2f;
}

#player {
	width: 70%;	
}

#settingsModal_Mobile {
	background-color: #FFFFFF;
	border-radius: 10px;
	padding: 25px;
	position: absolute;
	top: 50%;
	left: 50%;
	width: 200px;
	transform: translate(-50%, -50%);
	border: 3px solid #1117d1;
	font-size:20px;
	z-index: 201;
	display:none;
}

#listModal_Mobile {
	background-color: #FFFFFF;
	border-radius: 10px;
	padding: 25px;
	position: absolute;
	top: 50%;
	left: 50%;
	width: 260px;
	transform: translate(-50%, -50%);
	border: 3px solid #1117d1;
	font-size:20px;
	z-index: 201;
	display:none;
}

#accountModal_Mobile {
	background-color: #FFFFFF;
	border-radius: 10px;
	padding: 25px;
	position: absolute;
	top: 50%;
	left: 50%;
	width: 260px;
	transform: translate(-50%, -50%);
	border: 3px solid #1117d1;
	font-size:18px;
	z-index: 201;
	display:none;
}


#idUserDiv {
	border-radius: 5px;
	position:absolute;
	width: 260px;
	left:-270px;
	top:160px;
	background-color:#FFFFFF;
	padding:5px;
}

#bannerWrapper {
	text-align:center;
}

#bottomPanel {
	text-align: center;
	margin-bottom:5px;
	line-height:22px;
 	margin-left:6px;
	height: auto;
	padding-bottom: 6px;
}

#bottomPanel a {
	white-space: nowrap;
}

#instructions {
	text-align: center;
	-webkit-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

#rightPanel {
	border-radius: 5px;
	position:absolute;
	left:390px;
	width:160px;
	background-color:#ffffff;
	padding:5px;
}

#supportPanel {
	border-radius:5px;
	position:absolute;
	top:150px;
	left:390px;
	width: 235px; /*auto*/
	background-color:#ffffff;
	padding:5px;
}

#clan-war-champion {
	border-radius:5px;
	position:absolute;
	top:130px;
	left:385px;
	width:170px;
	padding:5px;
}

#leftPanel {
	border-radius:5px;
	position:absolute;
	width:260px;
	left:-270px;
	top:0px;
	background-color:#FFFFFF;
	padding:5px;
}

#clear_both_5 {
	clear: both;
	width: 100%;
	height: 5px;
}

#clear_both_10 {
	clear: both;
	width: 100%;
	height: 10px;
}

#event_text {
	display: none;
}

.lang {
	text-decoration: none;
}

.tabs {
	margin-top: 20px;
}
.tab-links {
	list-style-type: none;
	padding: 0;
	margin: 0;
}
.tab-links li {
	display: inline;
}
.tab-links li a {
	padding: 8px 12px;
	text-decoration: none;
	background-color: #f2f2f2;
	color: #333;
}
.tab-links li.active a {
	background-color: #ddd;
}
.tab-content {
	clear: both;
	border: 1px solid #ccc;
	padding: 20px;
}

.cell-animation {
    background: url('imgs/magic.png') no-repeat;
    width: 192px;
    height: 192px;
    display: none;
    position: absolute;
    left: calc(50% - 96px);
    top: calc(50% - 96px);
    z-index: 1;
}