:root {
    --primary-color: #2575fc;
    --secondary-color: #6a11cb;
    --success-color: #067b1a;
    --success-light: #9df922;
    --danger-color: #e71734;
    --warning-color: #e35e00;
    --warning-light: #ede800;
    --info-color: #7850ee;
    --dark-color: #2d3436;
    --light-color: #f9f9f9;
    --white: #ffffff;
    --gray: #e1e1e1;
    --dark-gray: #9499a0;
    --text-dark: #333333;
    --text-light: #ffffff;
}


body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background:#7850ee12;
    margin: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #a082fb;
    min-height: 100vh;
    line-height: 1;
    /* height: 50px; */
}

.container {
    width: 90%;
    max-width: 570px;
    margin: 0 auto;
}

.dashboard-container {
    display: flex;
    flex-direction: column;
    max-width: 570px;
    width: 90%;
    border-radius: 8px;
    color: black;
    /* padding: 0px 20px 20px 20px; */
    /* justify-content: center; */
}

.card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 15px 0;
    color: var(--text-dark);
}

.game-title {
    /* margin-bottom: 5px; */
    /* max-width: 600px; */
    width: 100%;
    height: 40px;
    text-align: left;
    display: flex;
    gap: 40px;
    /* background: linear-gradient(231deg, #69c3dc 0%, #3b2ab7 78%); */
    /* box-shadow: 0 6px 12px rgb(49 49 49 / 13%); */
}

.section-title {
    font-size: 14px;
    font-weight: bold;
    margin: 15px 0;
    color: var(--primary-color);
}

.table-container, .table-container2,#table-area, #table-area2, #table-area3 {
    width: 90%;
    max-width: 570px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

.table-container2 {
	width: 100%;
}	
	
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    color: var(--dark-gray);
}

th, td {
    text-align: center;
    padding: 8px;
    border-bottom: 1px solid var(--gray);
}

th {
    //background-color: var(--dark-color);
    //color: var(--text-light);
}

tbody tr:nth-child(even) {
    background-color: var(--light-color);
}

table td:nth-child(1),table td:nth-child(2), table td:nth-child(3) {
    font-weight: bold;
    color: black;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    color: #fff;
    text-decoration: none;
    /* margin: 5px; */
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--success-light), var(--success-color));
}

.btn-secondary {
    background: linear-gradient(135deg, #7850ee, #a77aea);
    margin-bottom: 20px;
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-light), var(--warning-color));
}

.btn-danger {
    background: linear-gradient(135deg, #f569da, #3e067b);
}

.btn-info {
    background: var(--info-color);
}

.btn-dark {
    background: var(--dark-color);
}

.btn:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.btn:active {
    transform: scale(0.98);
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--gray);
    border-radius: 5px;
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.hidden {
    display: none;
}


        :root {
            --text-light: #7850ee;
        }
		
        .divider {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
            color: #a082fb;
            justify-content: center; /* Ã§Â¡Â®Ã¤Â¿ÂÃ¦â€“â€¡Ã¦Å“Â¬Ã¥Â±â€¦Ã¤Â¸Â­ */
            width: 100%;
        }

        .divider::before, .divider::after {
            content: "";
            flex: 1; /* Ã¨Â®Â©Ã¤Â¼ÂªÃ¥â€¦Æ’Ã§Â´Â Ã¥ÂÂ Ã¦ÂÂ®Ã¥â€°Â©Ã¤Â½â„¢Ã§Â©ÂºÃ©â€”Â´ */
            border-bottom: 1px solid rgb(120 80 238 / 42%); /* Ã¦Â¨ÂªÃ§ÂºÂ¿Ã¦Â Â·Ã¥Â¼Â */
            margin: 0 15px; /* Ã¤Â¸ÂºÃ¦â€“â€¡Ã¦Å“Â¬Ã§â€¢â„¢Ã¥â€¡ÂºÃ§Â©ÂºÃ©â€”Â´ */
        }

        .divider-text {
            padding: 0 15px; /* Ã¦â€“â€¡Ã¦Å“Â¬Ã¥â€ â€¦Ã¨Â¾Â¹Ã¨Â·Â */
            font-weight: bold; /* Ã¦â€“â€¡Ã¦Å“Â¬Ã¥Å Â Ã§Â²â€” */
            font-size: 15px;
        }

.error-message {
    color: var(--danger-color);
    margin-top: 5px;
    font-size: 14px;
}

.success-message {
    color: var(--success-color);
    margin-top: 5px;
    font-size: 14px;
}

.login-pwd-wp {
    position: relative;
}

.bili-mini-content-wp {
    box-sizing: border-box;
    background: #fff;
    border-radius: 8px;
    user-select: none;
    padding: 10px 20px;
    max-width: 570px;
    width: 90%;
    margin-bottom: 15px;
}

.tab__form {
    /* width: 300px; */
    border: 1px solid #e3e5e7;
    border-radius: 8px;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #212121;
    background: white;
}

.tab__form .form__item {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    box-sizing: border-box;
    /* width: 100%; */
    height: 44px;
    padding: 8px;
}

.tab__form .form__separator-line {
    display: block;
    width: 100%;
    height: 0;
    border-bottom: 1px solid #e3e5e7;
}

.btn_wp, .btn_wp2 {
    display: flex;
    margin-top: 20px;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 40px;
    text-align: center;
    gap: 10px;
    justify-content: center;
    flex-direction: column;
    align-content: space-around;
    flex-wrap: wrap;
}

.btn_wp {
    justify-content: space-between;
}

.btn_wp2 {
    justify-content: center;
}

.btn_other {
    box-sizing: border-box;
    width: 140px;
    height: 40px;
    cursor: pointer;
    color: #18191c;
    background: #fff;
    border: 1px solid #e3e5e7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bili-mini-content-wp input, 
.bili-mini-content-wp select, 
.bili-mini-content-wp textarea {
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    appearance: none;
    outline: none;
    border: none;
    overflow: visible;
    padding: 8px;
}

.tab__form .form__item input {
    flex: 1;
    min-width: 0;
    box-shadow: inset 0 0 0 1000px #fff;
    border: 0;
}

.btn_primary, .btn_primary2, .btn_primary3 {
    box-sizing: border-box;
    width: 140px;
    height: 40px;
    cursor: pointer;
    color: #fff;
    border-radius: 8px;
}

.btn_primary {
    background: #7850ee; 
}

.btn_primary2 {
    background: #43c21d;
    margin-bottom: 20px;
}

.btn_primary3 {
    background: red;
    margin-bottom: 20px;
}

.login-tab-item {
    font-weight: 800;
    font-size: 14px;
    line-height: 45px;
    color: #222222;
}

.login-sns-title {
    text-align: center;
    color: #9499a0;
    font-weight: 400;
    font-size: 13px;
    line-height: 16px;
    margin: 20px;
}

.form_info {
    width: 56px;
}

.option-box {
    background-color: #fff;
    border-radius: 10px;
    padding: 15px;
    /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); */
    color: #333;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-title {
    /* font-size: 20px; */
    font-weight: bold;
    margin-bottom: 8px;
    color: #7850ee;
}

#login-container {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    max-width: 350px;
    width: 80%;
    margin-top: 50px;
    color: black;
    margin-bottom: 700px;
}

#login-container input {
    width: 248px;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

#login-container button {
    background: linear-gradient(135deg, #9df922, #067b1a);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    width: 269px;
}

#guest-button {
    background: linear-gradient(135deg, #ede800, #e35e00) !important;
}

#register-username[disabled] {
    color: green;
    border-color: #ddd;
    cursor: not-allowed;
}

.dropdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.dropdown label {
    margin: 0;
    white-space: nowrap;
}

.dropdown select {
    margin: 0;
    width: 220px;
    padding: 8px;
    font-size: 14px;
    background: #eeeeee;
    color: #7850ee;
}

.buttons-container {
    display: grid;
    flex-wrap: wrap;
    gap: 10px;
    grid-template-columns: repeat(2, 1fr);
    max-width: 570px;
}

button {
    padding: 8px 16px;
    background: linear-gradient(135deg, #7850ee, #a77aea);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    /* font-size: 17px; */
}

button:hover {
    background-color: #4eedf9;
}

.info {
    color: #666;
    margin-top: 10px;
    font-size: 14px;
}

.update-info, .update-info2, .update-info3 {
    padding: 20px;
    background-color: white;
    border-radius: 5px;
    max-width: 600px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.update-info {
    text-align: left;
    color: gray;
    width: 80%;
}

.update-info2 {
    color: black;
    font-size: 12px;
    /* padding: 10px; */
    text-align: left;
    line-height: 25px;
    /* width: 590px; */
    /* margin: 15px; */
}

.update-info3 {
    color: gray;
    width: 80%;
    max-width: 570px;
    margin-bottom: 20px;
    background: #fafafa;
}

#main-content1, #main-content2 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-direction: column;
    font-size: 13px !important;
}

.category {
    max-width: 570px;
    margin: 15px;
    margin: 0px 20px;
    width: 90%;
}

details {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 0;
    margin-bottom: 20px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

summary {
    padding: 5px;
    font-weight: bold;
    cursor: pointer;
    border-bottom: 1px solid #e0e0e0;
    color: #5a29d7;
}

.button-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    /* margin: 5px; */
}

.tool-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 18px;
    color: white;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    text-decoration: none;
    display: inline-block;
    /* font-weight: bold; */
    line-height: 1.5;
    /* font-size: 15px; */
}

.tool-btn.b1 {
    background: linear-gradient(135deg, #9df922, #067b1a);
}

.tool-btn.b2 {
    background: linear-gradient(135deg, #6dd5ed, #2193b0);
}

.tool-btn.b3 {
    background: linear-gradient(135deg, #ffe000, #e74210);
}

.tool-btn.b5 {
    background: linear-gradient(135deg, #7850ee, #a77aea);
}

.tool-btn.b4 {
    background: linear-gradient(135deg, #f99338, #9f0000);
}

.tool-btn:hover {
    transform: scale(1.05);
}

.tool-btn:active {
    transform: scale(0.95);
}

footer {
    color: #6a11cb;
    margin-top: 30px;
    font-size: 12px;
}

a {
    color: #7850ee;
    text-decoration: none;
    cursor: pointer;
}

a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    body {
        /* font-size: 15px; */
    }

#banner {
    /* width: 100%; */
}

	
    .game-title {
        /* font-size: 16px; */
    }
    
    table {
        font-size: 11px;
    }
    
    .btn {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .tool-btn {
        padding: 3px 8px;
        /* font-size: 12px; */
    }
}

.bottom-box {
	height:90px;
}

.welcome_msg {
    /* margin-bottom: 20px; */
    /* line-height: 34px; */
    padding: 17px 3px;
    font-size: 14px;
    font-weight: bold;
    text-align: right;
    width: 100%;
}

.column-container {
	display: grid;
    flex-wrap: wrap;
    gap: 10px;
    grid-template-columns: repeat(2, 1fr);
}

/* Ã¤Â¸Â»Ã¥Ë†â€ Ã§Â±Â»Ã¦Â â€¡Ã§Â­Â¾Ã¦Â Â·Ã¥Â¼Â */
.primary-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
    padding: 0 10px;
    /* font-size: 17px; */
    font-size: 13px;
}

.primary-categories1 {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    /* margin: 10px 0px 16px; */
    margin-bottom: 18px;
    padding: 0 10px;
    /* font-size: 17px; */
    font-size: 13px;
}

.primary-category-btn, .primary-category-btn2 {
    padding: 6px 10px;
    background: #fff;
    border: none;
    border-radius: 15px;
    font-size: 13px !important;
    cursor: pointer;
    transition: all 0.2s;
    color: #8b7a7a;
}

.primary-category-btn:hover, .primary-category-btn2:hover{
    background: #e0e0e0;
}

.primary-category-btn.active, .primary-category-btn2.active{
    background: #7850ee;
    color: white;
    font-weight: bold;
}


/* Ã¤Â½Â¿Ã¥Ë†â€ Ã§Â±Â»Ã¥Å’ÂºÃ¥Å¸Å¸Ã¦â€ºÂ´Ã§Â´Â§Ã¥â€¡â€˜ */
/* Ã¦Â Â¸Ã¥Â¿Æ’Ã¤Â¿Â®Ã¥Â¤ÂÃ¦â€“Â¹Ã¦Â¡Ë† */
details {
  contain: content;
  transform: translateZ(0);
  isolation: isolate;
  position: relative;
  z-index: 0;
  overflow: hidden;
  break-inside: avoid;
  margin-bottom: 8px;
  background: white;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

details summary {
  font-size: 14px;
  padding: 6px 11px;
  height: auto;
  margin: 2px;
  cursor: pointer;
  background-color: #f8f9fa;
  border-radius: 4px;
  list-style: none;
  position: relative;
  transition: all 0.2s ease;
}

/* Ã§Â§Â»Ã©â„¢Â¤Ã©Â»ËœÃ¨Â®Â¤Ã§Â®Â­Ã¥Â¤Â´Ã¥Â¹Â¶Ã¦Â·Â»Ã¥Å Â Ã¨â€¡ÂªÃ¥Â®Å¡Ã¤Â¹â€°Ã§Â®Â­Ã¥Â¤Â´ */
details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: "Ã¢â€“Â¶";
  position: absolute;
  right: 10px;
  transition: transform 0.2s;
  font-size: 12px;
  color: #666;
}

details[open] summary::after {
  transform: rotate(90deg);
}

/* EdgeÃ§â€°Â¹Ã¥Â®Å¡Ã¤Â¿Â®Ã¥Â¤Â */
@supports (-ms-ime-align:auto) {
  details {
    contain: style layout;
    overflow: visible;
  }
  
  details summary {
    position: static;
  }
}

/* Ã¥Å Â¨Ã§â€Â»Ã¤Â¼ËœÃ¥Å’â€“ */
details[open] {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0.5; }
  to { opacity: 1; }
}

.button-group {
    gap: 3px;
    padding: 8px;
}


/* Add new styles for the avatar button */
        .avatar-container {
            position: absolute;
            top: 20px;
            left: 20px;
            z-index: 1000;
        }
        
		
	.avatar-btn {
        width: 35px;
        height: 35px;
        border-radius: 50%;
        /* overflow: hidden; */
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        outline: 1px solid transparent;
        box-shadow: 0 0 1px rgba(0, 0, 0, 0.1) inset;
        font-size: 13px;
        background: #7850ee;
        /* inline-size: auto; */
        padding: 0px;
    }
    .avatar-btn img {
        width: 100%;
        /* height: 100%; */
        object-fit: cover;
        image-rendering: crisp-edges;
    }
		
		
        
        .avatar-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 3px 8px rgba(0,0,0,0.3);
			background:#4bcae8
        }
        
        
        .avatar-dropdown {
            position: absolute;
            left: 0;
            top: 60px;
            background-color: white;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.2);
            width: 150px;
            display: none;
            z-index: 1001;
        }
        
        .avatar-dropdown.show {
            display: block;
        }
        
        .dropdown-item {
            padding: 10px;
            cursor: pointer;
            color: #fff;
            background: red;
            border-radius: 4px;
            width: 80px;
        }
        
        .dropdown-item:hover {
            background-color: #f83131;
        }
        
        .dropdown-divider {
            height: 1px;
            background-color: #eee;
            margin: 0;
        }
		
	#footer-links, 
    #footer-links a.footer-link {
        font-size: 14px !important;
        text-decoration: none !important;
        color: #6a11cb !important;
    }
    #footer-links a.footer-link {
        margin-right: 20px;
    }
	
	
	#level {
    font-size: 10px;
    position: absolute;
    top: 20px;
    left: 47px;
    z-index: 1001;
    background: #fba430;
    padding: 2px;
    border-radius: 4px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgb(0 0 0 / 30%);
    color: white;
}

	.level {
    font-size: 12px;
    background: #fba430;
    padding: 0px 4px;
    border-radius: 6px;
    /* font-weight: bold; */
    box-shadow: 0 2px 7px rgb(0 0 0 / 30%);
}

.level2 {
    font-size: 13px;
    background: #f13a2b;
    padding: 0px 4px;
    border-radius: 6px;
    /* font-weight: bold; */
    box-shadow: 0 2px 7px rgb(0 0 0 / 30%);
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.wbCount {
	font-size: 12px;
	color: #ffffff;
	font-size: 12px;
	/* background: #aeaeae; */
	padding: 0px 4px;
	border-radius: 6px;
	/* opacity: 0.9; */
	/* box-shadow: 0 3px 3px rgb(0 0 0 / 20%); */
	/* border: 0px; */
}

.category-container {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.category-header {
    font-weight: bold;
    /* font-size: 16px; */
    /* margin-bottom: 10px; */
    color: #6912cb;
    padding: 8px 0px 0px 0px;
    /* border-bottom: 1px solid #eee; */
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#game_mode_container {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 52px 0px;
    margin-top: 29px;
    max-width: 570px;
}

.game_mode img{
	box-shadow: 0 3px 6px rgb(0 0 0 / 25%);
}

.place_pic_container {width: 100%;max-width: 570px;}

#loading-spinner {
            border: 5px solid #f3f3f3;
            border-top: 5px solid #3498db;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            animation: spin 1s linear infinite;
            margin-bottom: 15px;
        }
		
@keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
		
#loading, #loading1, #loading2 {
    color: #7850ee;
    font-weight: bold;
    font-size: 14px;
    padding: 20px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.slogan {
	margin-bottom: 25px;
	margin-top: 10px;
	color: #7850ee;
	font-weight: bold;
	background: #ffffff;
	border-radius: 20px;
	padding: 10px;
	/* box-shadow: 0 2px 7px rgb(0 0 0 / 30%); */
	/* opacity: 0.6; */
}

.slogan2 {
	opacity: 1;
	/* padding: 15px 30px; */
	margin-top: 10px;
	margin-bottom: 15px;
	color: #7850ee;
	/* font-weight: bold; */
	font-size: 18px;
}

.buttons_wp {display: flex;justify-content: center;width: 100%;gap: 30px;}

.tr_header {
	background:#7850ee;
	color:white;
}