.loader {
	border: 3px solid #f3f3f3;
	border-top: 3px solid #3498db;
	border-radius: 50%;
	display: inline-block;
	animation: spin 1s linear infinite;
}
.mobile-logo{display:none;}
@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

h2 {
	padding-top: 0px;
	margin-top: 0px
}

.box_pad {
	padding: 10px;
	padding-top: 10px;
	margin-top: 10px;
	margin-bottom: 10px;
}

.box {
	border: 1px solid #EEE;
	position: relative;
	/*display: inline-block;*/
	width: 100%;
	background-color: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
	-webkit-transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
	transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.box::after {
	content: "";
	border-radius: 5px;
	position: absolute;
	z-index: -1;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
	opacity: 0;
	-webkit-transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
	transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.box:hover {
	/*-webkit-transform: scale(1.25, 1.25);
         transform: scale(1.25, 1.25);*/
}

.box:hover::after {
	opacity: 1;
}

.select_size {
	font-size: 16px;
}

a:link {
	COLOR: #000;
	background-color: transparent;
	text-decoration: none
}
footer a:link{color:#fff}
a:visited {
	COLOR: #000000;
	background-color: transparent;
	text-decoration: none
}

a:active {
	COLOR: #000000;
	background-color: transparent;
	text-decoration: none
}

a:hover {
	COLOR: #000000;
	background-color: transparent;
	text-decoration: underline
}

.instructions {
	font-size: 14px;
	color: var(--color-tone-1)
}

.examples {
	border-bottom: 1px solid var(--color-tone-4);
	border-top: 1px solid var(--color-tone-4);
}

.example {
	margin-top: 24px;
	margin-bottom: 24px;
}

game-tile {
	width: 40px;
	height: 40px;
}

section {
	padding: 16px;
	padding-top: 0px;
}

.hide_desktop_whatsapp {
	display: none;
}

.share_button_size_margin {
	margin-left: 5px;
}

.share_button_size_general {
	width: 26px;
	height: 26px;
}

.share_button_size_whatsapp_general {
	width: 28px;
	height: 28px;
}

.mail_icon {
	font-size: 25px;
}

.share_button_size {
	width: 30px;
	height: 30px;
}

.share_button_size_whatsapp {
	width: 32px;
	height: 32px;
}

.share_button_size_mail {
	width: 30px;
	height: 19px;
	margin-bottom: 5px;
}

/* The Modal (background) */
.modal {
	display: none;
	/* Hidden by default */
	position: fixed;
	/* Stay in place */
	z-index: 100;
	/* 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.7);
	/* Black w/ opacity */
	z-index: 10000;
}

/* Modal Content/Box */
.modal-content {
	background-color: #fefefe;
	margin: 10% auto;
	/* 15% from the top and centered */
	padding: 0px;
	border: 1px solid #888;
	direction:
		/*width: 80%;  Could be more or less, depending on screen size */
}

.modal-content_width {
	width: 90%;
	/* 543px;Could be more or less, depending on screen size */
	max-width: 543px;
	border: 5px solid #292929;
}

/* The Close Button */
.close {
	color: #aaa;
	/*float: right;*/
	position: absolute;
	right: 0px;
	top: 0px;
	font-size: 28px;
	font-weight: bold;
}

.close:hover,
.close:focus {
	color: black;
	text-decoration: none;
	cursor: pointer;
}

.new_game_top {
	margin-top: 0px;
}

.width_main {
	width: 540px;
}

.response_ad_right {
	display: inline-block;
	width: 160px;
	height: 600px;
}

.response_ad_left {
	display: inline-block;
	width: 160px;
	height: 600px;
}

.hide_mobile {
	/*display: none;*/
}

/*
         A:link { COLOR: #939598; background-color: transparent; text-decoration: none}
         A:visited { COLOR: #939598; background-color: transparent; text-decoration: none}
         A:active { COLOR: #939598; background-color: transparent;  text-decoration: none }
         A:hover { COLOR: #939598; background-color: transparent;  text-decoration: underline }
         */
/* Global Styles & Colors */
:root {
	--green: #6aaa64;
	--darkendGreen: #538d4e;
	--yellow: #c9b458;
	--darkendYellow: #b59f3b;
	--lightGray: #d8d8d8;
	--gray: #86888a;
	--darkGray: #939598;
	--white: #fff;
	--black: #212121;
	/* Colorblind colors */
	--orange: #f5793a;
	--blue: #85c0f9;
	font-family: 'Clear Sans', 'Helvetica Neue', Arial, sans-serif;
	font-size: 16px;
	--header-height: 50px;
	/*--keyboard-height: 200px;*/
	--game-max-width: 100%;
	/*500px;*/
}

/* Light theme colors */
:root {
	--color-tone-1: #1a1a1b;
	--color-tone-2: #787c7e;
	--color-tone-3: #878a8c;
	--color-tone-4: #d3d6da;
	--color-tone-5: #edeff1;
	--color-tone-6: #f6f7f8;
	--color-tone-7: #ffffff;
	--opacity-50: rgba(255, 255, 255, 0.5);
}

/* Dark Theme Colors */
.nightmode {
	--color-tone-1: #d7dadc;
	--color-tone-2: #818384;
	--color-tone-3: #565758;
	--color-tone-4: #3a3a3c;
	--color-tone-5: #272729;
	--color-tone-6: #1a1a1b;
	--color-tone-7: #121213;
	--opacity-50: rgba(0, 0, 0, 0.5);
}

/* Constant colors and colors derived from theme */
:root,
.nightmode {
	--color-background: var(--color-tone-7);
}

:root {
	--color-present: var(--yellow);
	--color-correct: var(--green);
	--color-absent: var(--color-tone-2);
	--tile-text-color: var(--color-tone-7);
	--key-text-color: var(--color-tone-1);
	--key-evaluated-text-color: var(--color-tone-7);
	--key-bg: var(--color-tone-4);
	--key-bg-present: var(--color-present);
	--key-bg-correct: var(--color-correct);
	--key-bg-absent: var(--color-absent);
	--modal-content-bg: var(--color-tone-7);
}

.nightmode {
	--color-present: var(--darkendYellow);
	--color-correct: var(--darkendGreen);
	--color-absent: var(--color-tone-4);
	--tile-text-color: var(--color-tone-1);
	--key-text-color: var(--color-tone-1);
	--key-evaluated-text-color: var(--color-tone-1);
	--key-bg: var(--color-tone-2);
	--key-bg-present: var(--color-present);
	--key-bg-correct: var(--color-correct);
	--key-bg-absent: var(--color-absent);
	--modal-content-bg: var(--color-tone-7);
}

.colorblind {
	--color-correct: var(--orange);
	--color-present: var(--blue);
	--tile-text-color: var(--white);
	--key-bg-present: var(--color-present);
	--key-bg-correct: var(--color-correct);
	--key-bg-absent: var(--color-absent);
}

html {
	height: 100%;
}

body {
	height: 100%;
	background-color: var(--color-background);
	margin: 0;
	padding: 0;
	/* Prevent scrollbar appearing on page transition 
         overflow-y: hidden;*/
}

/*.row1 {display: grid; grid-template-columns: repeat(5, 1fr); grid-gap: 5px;}*/
.container1 {
	max-width: 540px;
}

.game-stats {
	max-width: 540px;
}

.regular_leaderboard {
	display: inline-block;
	width: 728px;
	height: 90px;
}

.regular_mobile_leaderboard {
	display: none;
}

.big_mobile_leaderboard {
	display: none;
}

.big_leaderboard {
	display: inline-block;
	width: 728px;
	height: 90px;
}

.middle_ad {
	display: none
}

@media only screen and (max-width: 500px) {
	.box_pad {
		padding: 5px;
		box-sizing: border-box;
	}

	.select_size {
		font-size: 7vmin;
	}

	.hide_desktop_whatsapp {
		display: inline-block;
	}

	.share_button_size_general {
		width: 10vmin;
		height: 10vmin;
	}

	.share_button_size_whatsapp_general {
		width: 11.5vmin;
		height: 11.5vmin;
	}

	.share_button_size {
		width: 11.5vmin;
		height: 11.5vmin;
	}

	.mail_icon {
		font-size: 11.5vmin;
	}

	.share_button_size_whatsapp {
		width: 12vmin;
		height: 12vmin;
	}

	.share_button_size_mail {
		width: 11.5vmin;
		height: 7vmin;
		margin-bottom: 2vmin;
	}

	.new_game_top {
		margin-top: 15px;
	}

	.width_main {
		width: 100%;
	}

	.response_ad_right {
		margin-left: 0px;
		display: none;
	}

	.response_ad_left {
		margin-left: 0px;
		display: none;
	}

	.hide_mobile {
		display: none;
	}
	.mobile-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f4f7f6;
    padding: 10px 0;
  }
	.container1 {
		max-width: 100%;
	}

	/*
         .overlay {      display: none;      position: absolute;      width: 100%;       height: 100%;      top: 0;      left: 0;      justify-content: center;      background-color: var(--color-background);      animation: SlideIn 100ms linear;      z-index: 2000;    }*/
	/*
         .regular_leaderboard{
         display:inline-block;width:100%;height:100px;
         }
         .big_leaderboard{
         display:inline-block;width:100%;height:200px;
         }
         */
	.regular_leaderboard {
		display: none;
	}

	.big_leaderboard {
		display: none;
	}

	.regular_mobile_leaderboard {
		display: inline-block;
		width: 100%;
		height: 100px;
	}

	.big_mobile_leaderboard {
		display: inline-block;
		width: 100%;
		height: 200px;
	}

	.middle_ad {
		margin-top: 20px;
		display: inline-block;
		width: 100%;
		height: 200px;
	}
}

.instructions {
  margin: auto;
  font-size: 16px;
  color: var(--color-tone-1);
 background:#374151;
}
.ins1 {
    padding: 40px 40px;
    text-align: center;
    margin-top: 40px;
    color:#fff;
}
.ins1 a {
    color: white;
    font-weight: bold;
}
.ins2{
    background:#1e293b;
    color:#fff;
padding: 40px 40px;}
h2 {
    text-align:center;
    margin:40px 0 20px;
    font-size:28px;
    font-weight:700;
  }
  /* How to Play */
  .howto {
    display:grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
    max-width:900px;
    margin:0 auto;
    padding:20px;
  }
  .card {
    border-radius:10px;
    padding:24px 16px;
    text-align:center;
    box-shadow:0 2px 6px rgba(0,0,0,0.3);
  }
  .card:nth-child(odd) { background:#2d3748; }
  .card:nth-child(even){ background:#374151; }
  .card span.icon {
    font-size:32px;
    display:block;
    margin-bottom:12px;
  }
  .card h3 {
    margin:0 0 8px;
    font-size:18px;
    font-weight:700;
  }
  .card p {
    margin:0;
    font-size:14px;
    color:#cbd5e1;
  }
  .tiles {
    display:flex;
    justify-content:center;
    gap:8px;
    margin:30px 0;
  }
  .tile {
    width:160px;
    height:50px;
    font-size:22px;
    font-weight:bold;
    border-radius:4px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
  }
  .green { background:#6aaa64; }
  .yellow{ background:#c9b458; }
  .gray  { background:#787c7e; }
/* Why Play Here */
  .features {
    display:grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
    max-width:1000px;
    margin:0 auto;
    padding:20px;
  }
  .feature {
    border-radius:10px;
    padding:24px 16px;
    text-align:center;
    box-shadow:0 2px 6px rgba(0,0,0,0.3);
  }
  .feature:nth-child(odd) { background:#2d3748; }
  .feature:nth-child(even){ background:#374151; }
  .feature span.icon {
    font-size:32px;
    display:block;
    margin-bottom:12px;
  }
  .feature h3 {
    margin:0 0 8px;
    font-size:18px;
    font-weight:700;
  }
  .feature p {
    margin:0;
    font-size:14px;
    color:#cbd5e1;
  }
.ins3{margin:0;
    font-family:'Segoe UI',sans-serif;
    background:#fdfaf6;
    color:#1e293b;}
.section {
    text-align:center;
    padding:40px 20px;
  }
  .section h2 {
    font-size:28px;
    font-weight:700;
    margin-bottom:10px;
  }
  .section p {
    font-size:16px;
    color:#4b5563;
    margin:0 0 30px;
  }
  .languages {
    display:grid;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    gap:16px;
    max-width:1000px;
    margin:0 auto;
  }
  .lang {
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:8px;
    padding:12px 16px;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    font-weight:600;
    font-size:15px;
    cursor:pointer;
    transition: all 0.2s ease;
  }
  .lang img {
    width:28px;
    height:20px;
    margin-right:12px;
    border-radius:3px;
    object-fit:cover;
  }
  .lang:hover {
    background:#f3f4f6;
    transform:translateY(-2px);
  }
  .highlight {
    color:#059669; /* xanh lÃ¡ ná»•i báº­t */
  }
/* Footer */
   footer {
    display:flex;
    justify-content:end;
    gap:20px;
    padding:20px;
    color: #fff;
    font-size:14px;
    flex-wrap:wrap;
    background: #1e293b;
    border-top: 1px solid #fff;
  }
  footer a {color:#fff;text-decoration:none;}
  footer a:hover{text-decoration:underline;}
.page {
    width: 900px;
    margin: auto;
}.examples {
	border-bottom: 1px solid var(--color-tone-4);
	border-top: 1px solid var(--color-tone-4);
}

.example {
	margin-top: 24px;
	margin-bottom: 24px;
}

game-tile {
	width: 40px;
	height: 40px;
}

:host([page]) section {
	padding: 16px;
	padding-top: 0px;
}
.wordle-mode-container {
  background: #fdfaf6;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 20px 30px;
  text-align: center;
  margin-top: 40px;
  max-width: 100%;
  width: 100%;
}

.wordle-title {
  
  font-weight: 600;
  margin-bottom: 8px;
}

.wordle-subtitle {
  color: #fff;
  margin-bottom: 15px;
text-align: center;
}

.wordle-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.wordle-buttons button {
  background: #fff;
  color: #666;
  border: none;
  border-radius: 4px;
  padding: 8px 14px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
}

.wordle-buttons button:hover {
  background: beige;
}
@media (max-width: 480px) {
  .wordle-buttons {
    flex-direction: column;
  }
}
.load-more-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #538d4e;
    color: #fff;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    transition: 0.2s;
}

.load-more-btn:hover {
    background: #40763f;
}
