/********reset style*************************/

html,
body,
div,
span,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
abbr,
address,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
samp,
small,
strong,
sub,
sup,
var,
b,
i,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
}

body {
  line-height: 1;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

nav ul {
  x-list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}

a {
  margin: 0;
  padding: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
}

ins {
  background-color: #ff9;
  color: #000;
  text-decoration: none;
}

mark {
  background-color: #ff9;
  color: #000;
  font-style: italic;
  font-weight: bold;
}

del {
  text-decoration: line-through;
}

abbr[title],
dfn[title] {
  border-bottom: 1px dotted;
  cursor: help;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #cccccc;
  margin: 1em 0;
  padding: 0;
}

input,
select {
  vertical-align: middle;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: normal;
}

h1,
.h1 {
  font-size: 36px;
}

h1 {
  font-size: 36px;
}

h2 {
  font-size: 30px;
}

h3 {
  font-size: 24px;
}

h4 {
  font-size: 18px;
}

h5 {
  font-size: 14px;
}

h6 {
  font-size: 12px;
}

body {
  font-family: "Poppins", serif !important;

  background-color: #f0fcff !important;

  padding: 0px !important;
}

div#game-canvas,
div#gameCanvas {
  margin: 0px auto;
  width: 100%;
  background-color: #f0fcff;
}

/* Ensure canvas element fills container without black bars */
div#gameCanvas canvas {
  display: block;
  margin: 0 auto;
}

/* Game Loading Screen */
#gameLoadingScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

#gameLoadingContent {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

#gameLoadingLogo {
  max-width: 300px;
  max-height: 300px;
  width: auto;
  height: auto;
  object-fit: contain;
}

#gameLoadingText {
  font-family: "Roboto Condensed", sans-serif;
  font-size: 18px;
  font-weight: 900;
  font-style: italic;
  color: #333333;
  text-align: center;
  margin-top: 10px;
}

#gameLoadingScreen.hidden {
  display: none;
}

.facebook-login-btn {
  height: 50px;
  display: flex;
  margin-right: 25px;
}

.facebook-login-btn img {
  width: auto;
  height: 100%;
}

.leaderboard-main {
  left: 0px;
  top: 0px;
  position: absolute;
  width: 100%;
  height: 100%;
  display: none;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10;
  text-align: center;
  backdrop-filter: blur(3px);
}

.leaderboard-image-desktop {
  display: block;
}

.leaderboard-image-mobile {
  display: none;
}

.lb-close-btn {
  top: 10px;
  right: 90px;
  position: absolute;
}

.leaderboard-wrapper {
  height: 70%;
  right: 0px;
  left: 0px;
  margin: 5% auto 0px;
  position: relative;
  display: inline-block;
}

div#overallLeaderboard .leaderboard-wrapper {
  height: 80%;
  max-height: 850px;
}

.leaderboard-wrapper img {
  height: 100%;
  width: auto;
}

.leaderboard-inner {
  position: absolute;
  width: 44%;
  height: 68%;
  left: 28%;
  top: 15%;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 10px;
  overflow-y: auto;
}

.lb-player-box {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-radius: 15px;
  padding: 15px 20px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffffff3d 0%, #ffffff2e 100%);
  border: 2px solid rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.lb-player-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #ffb700 0%, #ffc850 100%);
  opacity: 0;
}

/* Top 3 Special Styling */
.lb-player-box.rank-1 {
  background: linear-gradient(135deg,
      rgba(255, 180, 0, 0.25) 0%,
      rgba(255, 200, 50, 0.15) 100%);
  border: 3px solid #ffb700;
}

.lb-player-box.rank-1::before {
  opacity: 1;
  width: 6px;
  background: linear-gradient(180deg, #ffb700 0%, #ffc850 50%, #ffb700 100%);
}

.lb-player-box.rank-2 {
  background: linear-gradient(135deg,
      rgba(192, 192, 192, 0.25) 0%,
      rgba(230, 230, 230, 0.15) 100%);
  border: 3px solid #c0c0c0;
}

.lb-player-box.rank-2::before {
  opacity: 1;
  width: 5px;
  background: linear-gradient(180deg, #c0c0c0 0%, #e6e6e6 50%, #c0c0c0 100%);
}

.lb-player-box.rank-3 {
  background: linear-gradient(135deg,
      rgba(205, 127, 50, 0.12) 0%,
      rgba(222, 184, 135, 0.08) 100%);
  border: 2px solid rgba(205, 127, 50, 0.4);
}

.lb-player-box.rank-3::before {
  opacity: 0.5;
  width: 4px;
  background: linear-gradient(180deg, #cd7f32 0%, #deb887 50%, #cd7f32 100%);
}

.player-rank-badge {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
  font-size: 28px;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(240, 240, 240, 0.9) 100%);
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  position: relative;
}

.lb-player-box.rank-1 .player-rank-badge {
  background: linear-gradient(135deg, #ffc85094 0%, #ffc850 100%);
  box-shadow: 0 4px 15px rgba(255, 165, 0, 0.5);
  animation: rotate-gold 3s linear infinite;
}

.lb-player-box.rank-2 .player-rank-badge {
  background: linear-gradient(135deg, #c0c0c0 0%, #e6e6e6bd 100%);
  box-shadow: 0 4px 15px rgba(192, 192, 192, 0.5);
}

.lb-player-box.rank-3 .player-rank-badge {
  background: linear-gradient(135deg, rgba(205, 127, 50, 0.6) 0%, rgba(222, 184, 135, 0.7) 100%);
  box-shadow: 0 3px 10px rgba(205, 127, 50, 0.25);
}

@keyframes rotate-gold {

  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-5deg);
  }

  75% {
    transform: rotate(5deg);
  }
}

.rank-icon {
  font-size: 24px;
  line-height: 1;
  display: block;
}

.rank-number {
  font-size: 13px;
  font-weight: 900;
  color: #333;
  font-family: "Poppins", sans-serif;
}

.lb-player-box.rank-1 .rank-number {
  color: #3d3200;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
}

.player-image {
  display: none;
}

.player-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.player-name {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.3;
  color: #1a1a1a;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  font-family: "Poppins", sans-serif;
  text-align: left;
}

.lb-player-box.rank-1 .player-name {
  color: #4a3c00;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.lb-player-box.rank-2 .player-name {
  color: #696969;
}

.lb-player-box.rank-3 .player-name {
  color: #666666;
}

.player-points {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 800;
  color: #ff6b35;
  font-family: "Poppins", sans-serif;
}

.points-icon {
  font-size: 18px;
}

.points-value {
  font-size: 16px;
  font-weight: 900;
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(255, 107, 53, 0.2);
}

.points-label {
  font-size: 12px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.player-details {
  margin-left: 10px;
  text-align: left;
}

.try-again-btn {
  margin-left: 80px;
}

.try-again-btn img {
  width: 100%;
  height: auto;
}

.lb-try-agin-wrapper {
  margin: 15px auto 0px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lb-try-agin-wrapper a.exit-btn {
  height: 59px;
}

.orientation-notification {
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(255, 255, 255, 0.7);
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 10;
  flex-direction: column;
}

.on_inner {
  width: 90%;
  display: inline;
  position: relative;
  margin: 0px auto;
}

.on_inner img,
.on-rotate-icon img {
  width: 100%;
}

.on-rotate-icon {
  position: absolute;
  bottom: 19%;
  left: 0;
  right: 0;
  width: 27.9%;
  margin: 0px auto;
}

.on-rotate-icon {
  animation: animationFrames linear 3s;
  animation-iteration-count: infinite;
  transform-origin: 50% 50%;
  -webkit-animation: animationFrames linear 3s;
  -webkit-animation-iteration-count: infinite;
  -webkit-transform-origin: 50% 50%;
  -moz-animation: animationFrames linear 3s;
  -moz-animation-iteration-count: infinite;
  -moz-transform-origin: 50% 50%;
  -o-animation: animationFrames linear 3s;
  -o-animation-iteration-count: infinite;
  -o-transform-origin: 50% 50%;
  -ms-animation: animationFrames linear 3s;
  -ms-animation-iteration-count: infinite;
  -ms-transform-origin: 50% 50%;
}

@keyframes animationFrames {
  0% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(-90deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

@-moz-keyframes animationFrames {
  0% {
    -moz-transform: rotate(0deg);
  }

  50% {
    -moz-transform: rotate(-90deg);
  }

  100% {
    -moz-transform: rotate(0deg);
  }
}

@-webkit-keyframes animationFrames {
  0% {
    -webkit-transform: rotate(0deg);
  }

  50% {
    -webkit-transform: rotate(-90deg);
  }

  100% {
    -webkit-transform: rotate(0deg);
  }
}

@-o-keyframes animationFrames {
  0% {
    -o-transform: rotate(0deg);
  }

  50% {
    -o-transform: rotate(-90deg);
  }

  100% {
    -o-transform: rotate(0deg);
  }
}

@-ms-keyframes animationFrames {
  0% {
    -ms-transform: rotate(0deg);
  }

  50% {
    -ms-transform: rotate(-90deg);
  }

  100% {
    -ms-transform: rotate(0deg);
  }
}

/* End of game icon hover effect */

.title-logo-wrapper img {
  width: 100%;
}

.title-logo-wrapper {
  position: absolute;

  z-index: 5;

  width: 30%;

  left: 0;

  right: 0;

  top: 45px;

  margin: 0px auto;
}

.lb-try-agin-wrapper a {
  height: 80px;
}

.lb-try-agin-wrapper a img {
  height: 100%;

  width: auto;
}

.lb-try-agin-wrapper a:first-child {
  margin-right: 20px;
}

a.view-leaderboard img {
  height: 50px;
}

a.view-leaderboard {
  margin-right: 20px;
}

.orientation-popup-close img {
  width: 100%;
}

.orientation-popup-close {
  width: 50%;
  display: block;
  margin: 20px auto 0px;
}

.fb-modal-game-title img {
  width: 100%;
  object-fit: contain;
}

.fb-modal-game-title {
  width: 20%;
  margin: 10px auto;
}

.fb-modal-login-link {
  width: 60%;
  margin: 0 auto;
  text-align: center;
}

.fb-modal-login-link img {
  width: 100%;
}

.fb-modal-logout-link {
  width: 60%;
  margin: 30px auto;
}

.fb-modal-logout-link img {
  width: 100%;
}

.player-best {
  margin: 0px auto;
  background-color: #f35f35;
  text-align: center;
  color: #fff;
  width: 80%;
  border-radius: 5px;
  line-height: 40px;
  position: absolute;
  bottom: -30px;
  left: 0;
  right: 0;
  font-family: sans-serif;
  font-weight: 600;
}

button.close.modal-close-btn {
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background-color: #ed1e32;
  color: #fff;
  text-shadow: none;
}

button.close.modal-close-btn:hover {
  color: #fff !important;
}

@media only screen and (min-width: 1366px) {
  .container {
    max-width: 1280px !important;
  }
}

@media only screen and (min-width: 1367px) {
  .container {
    max-width: 1360px !important;
  }
}

@media only screen and (min-width: 1600px) {
  .container {
    max-width: 1400px !important;
  }
}

@media only screen and (min-width: 1025px) and (max-width: 1366px) {
  .container {
    max-width: calc(100% - 30px) !important;
  }
}

@media only screen and (max-width: 1080px) {
  #gameLoadingLogo {
    max-width: 140px;
  }

  .leaderboard-image-desktop {
    display: none;
  }

  .leaderboard-image-mobile {
    display: block;
  }

  .leaderboard-wrapper img {
    height: auto;
    margin: 0 auto;
    max-height: 280px;
    width: auto;
  }

  .leaderboard-wrapper {
    width: 340px;
    height: 350px !important;
  }

  .leaderboard-inner {
    width: 100%;
    left: 4%;
    top: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
    gap: 5px;
    overflow-y: visible;
    transform: scale(0.6);
  }

  .lb-player-box {
    width: 35%;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 10px 5px;
    margin-bottom: 5px;
    height: auto;
  }

  .player-rank-badge {
    margin-right: 0;
    margin-bottom: 5px;
    width: 32px;
    height: 32px;
    font-size: 20px;
  }

  .player-details {
    margin-left: 0;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .player-name {
    text-align: center;
    font-size: 12px;
    width: 100%;
  }

  .player-points {
    justify-content: center;
    font-size: 11px;
  }

  .points-icon {
    display: none;
  }

  .lb-close-btn {
    right: 20px;
    top: 0;
  }

  .lb-close-btn img {
    max-width: 40px;
  }

  .rank-icon {
    font-size: 20px;
  }

  .player-best {
    font-size: 12px;
    bottom: -30px;
    display: none;
  }
}

section.terms-conditions {
  padding: 70px 0px;
}

section.terms-conditions .logo-wrapper {
  max-width: 350px;
  margin: 0px auto 50px;
}

section.terms-conditions .logo-wrapper img {
  width: 100%;
}

.content-wrapper h2 {
  font-weight: 700;
}

.content-wrapper h3 {
  font-weight: 600;
  margin: 40px 0px 20px;
  font-size: 24px;
}

.content-wrapper ul,
.content-wrapper ol {
  margin-left: 50px;
}

#fbModal .hint-text {
  font-size: 15px;
  line-height: 26px;
  text-align: center;
}

#fbModal .hint-text a {
  color: #FF6607;
}

/* Christmas Modal Styles */
.christmas-modal {
  border: 5px solid #FF6607;
  /* Orange */
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(255, 102, 7, 0.4);
  background-color: #ffffff;
  overflow: hidden;
}

.christmas-modal .modal-header {
  border-bottom: none;
  padding-bottom: 0;
}

.christmas-modal .modal-body {
  padding: 30px;
  background-image: radial-gradient(#f0f0f0 10%, transparent 10%),
    radial-gradient(#f0f0f0 10%, transparent 10%);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
}

.christmas-modal .fb-modal-game-title img {
  max-height: 80px;
  margin-bottom: 20px;
}

.christmas-modal label {
  font-weight: 600;
  color: #FF6607;
  /* Orange */
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.christmas-modal .form-control {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 10px 15px;
  transition: all 0.3s;
  text-align: center;
}

.christmas-modal .form-control:focus {
  border-color: #FF6607;
  box-shadow: 0 0 0 0.2rem rgba(255, 102, 7, 0.25);
}

.christmas-modal .btn-christmas {
  background-color: #FF6607;
  border-color: #FF6607;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px;
  border-radius: 50px;
  /* Pill shape */
  margin-top: 20px;
  box-shadow: 0 4px 6px rgba(255, 102, 7, 0.3);
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
  font-size: 14px;
}

.christmas-modal .btn-christmas:hover {
  background-color: #CC5105;
  border-color: #CC5105;
  color: #fff;
}

.christmas-modal .modal-close-btn {
  color: #FF6607;
  opacity: 0.8;
  font-size: 2rem;
  font-weight: bold;
  position: absolute;
  right: 15px;
  top: 10px;
  z-index: 10;
}

.christmas-modal .modal-close-btn:hover {
  opacity: 1;
  color: #CC5105;
}

.christmas-modal .hint-text {
  margin-top: 15px;
  font-size: 0.8rem;
  color: #888;
}

.christmas-modal .hint-text a {
  color: #FF6607;
  text-decoration: underline;
}

.christmas-modal .hint-text a:hover {
  color: #CC5105;
}

.christmas-modal .fb-modal-login-link {
  width: 90%;
  max-width: 500px;
}