html, body {
  width: 100vw;
  height: 100vh;
  margin:0;
  padding:0;
  overflow: hidden;
}


body {
  margin: 0;
  padding: 0;
  overflow-y: hidden;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  background-image: url('../images/bg.webp');
  background-position: center;
  background-size: cover;
  color: #ffffff;
  font-family: 'Geo', 'Arial', sans-serif;
  font-weight: 400;
  font-size: 18px;
  overflow-x: hidden;
  min-height: 100vh;
}

#header, 
#footer {
    position: fixed;
    width: 100%;
}

#header {
  z-index: 9002;;
}
#header .xcitelogo {
  margin: 5px 15px;
  filter: brightness(0.8) contrast(1.2);
  width: 110px;
}
#footer {
    bottom: 0;
    background-color: #0000007d;
    padding: 2px 0;
    backdrop-filter: blur(2px);
    box-shadow: -2px -6px 14px 5px rgb(6 2 31 / 65%);
    z-index:9002;
}
#footer div a {
    position: relative;
    z-index: 9002;
}


h1,h2,h3,h4,h5,h6,p,small,span {
  color: #ffffff;
  font-family: 'Geo', 'Arial', sans-serif;
  margin: 0;
  padding:0;
}


.uk-container.game-wrapper-outer {
  display: flex;
  max-width: 1386px;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.mpu.product-mpu {
  z-index: 9001;

}
.mpu.product-mpu img {
  filter: brightness(0.5);
  border: #000;
  backdrop-filter: blur(5px);
  box-shadow: 10px 10px 4px 4px rgba(0, 0, 0, 0.3);
  width: 85%;
}

.main-game-container {
  max-width: 768px;
  height:100vh;
  align-items:center;

}

#game-info {
  padding-left: 10px;
  display: flex;
  flex-direction: column;  
  align-items: center;
  min-height: 590px;
  justify-content: space-between;

}


/* Game Wrapper */
.game-wrapper {
  background-image: url('../images/lantern-overlay-off-small-5000.webp');
  background-position: top;
  background-size: 464px auto;
  background-repeat: no-repeat;
  min-width: 250px;
}
@media (min-width: 768px) {
  .game-wrapper {
    min-width: 465px
  }
}
img.x1-logo-large {
  max-width: 73%;
  
}

img.x1-logo {
  position: relative;
  top: -23px;
  left: 42%;
  z-index: 10;
  width: 60px;
  height: 35.88px;
  /* filter: brightness(50%) sepia(100) saturate(100) hue-rotate(25deg); */
  transition: filter 1s ease-in-out;
}

/* Animation class for logo color transition during active game */
img.x1-logo.game-active {
  animation: logoColorPulse 4s ease-in-out infinite;
}

@keyframes logoColorPulse {
  0% {
    filter: brightness(100%) sepia(0) saturate(100) hue-rotate(0deg); /* White/Natural */
  }
  50% {
    filter: brightness(50%) sepia(100) saturate(100) hue-rotate(25deg); /* Red */
  }
  100% {
    filter: brightness(100%) sepia(0) saturate(100) hue-rotate(0deg); /* White/Natural */
  }
}



.game-wrapper .fixed-head {
  height: 50px;
  margin:0;
  padding:0;

}

/* Canvas Styling */
#tetris {
    /* border: 2px solid #ffffff;
    border-radius: 5px; */
    background-color: #696969d0;
    margin-bottom: 32px;
    border-radius: 10px 10px 0px 0px;
    border-bottom: 1px solid #fafafa99;

    -webkit-box-shadow: 15px 2px 20px 0px rgba(61,61,61,0.4), -15px 2px 20px 0px rgba(61,61,61,0.4); 
    box-shadow: 15px 2px 20px 0px rgba(61,61,61,0.4), -15px 2px 20px 0px rgba(61,61,61,0.4);

    background-color: transparent; /* Make base transparent to show background through */
    opacity: 1.0; /* Removed transparency for solid blocks */
    background-image: repeating-linear-gradient(45deg, rgba(134,134,134,0.5) 25%, transparent 25%, transparent 75%, rgba(134,134,134,0.5) 75%, rgba(134,134,134,0.5)), repeating-linear-gradient(45deg, rgba(134,134,134,0.5) 25%, rgba(188,184,184,0.5) 25%, rgba(188,184,184,0.5) 75%, rgba(134,134,134,0.5) 75%, rgba(134,134,134,0.5));
    background-position: 0 0, 20px 20px;
    background-size: 40px 40px;
    
}

/* Bonus Buttons */
.uk-button.info-btn {
  width: 82px;
  height: 70px;
  padding: 40px 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  color: #ffffff;
}
.uk-button.info-btn:hover {
  cursor: default;
}

#bonus-buttons {  
  padding: 0 17%;
}

.bonus-btn {  
  width: 82px;
  height: 70px;
  padding: 40px 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  color: #ffffff;
}

.bonus-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.bonus-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.bonus-btn.used {
  opacity: 0.4;
  cursor: not-allowed;
  background: rgba(100, 100, 100, 0.1);
  border-color: rgba(150, 150, 150, 0.3);
}

.bonus-btn.used:hover {
  transform: none;
  box-shadow: none;
  background: rgba(100, 100, 100, 0.1);
}

.bonus-btn.height-disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: rgba(200, 100, 50, 0.1);
  border-color: rgba(200, 100, 50, 0.3);
}

.bonus-btn.height-disabled:hover {
  transform: none;
  box-shadow: none;
  background: rgba(200, 100, 50, 0.1);
}

.bonus-btn.score-disabled {
  opacity: 0.25;
  cursor: not-allowed;
  background: rgba(150, 50, 50, 0.1);
  border-color: rgba(150, 50, 50, 0.3);
}

.bonus-btn.score-disabled:hover {
  transform: none;
  box-shadow: none;
  background: rgba(150, 50, 50, 0.1);
}

.bonus-btn.level-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: rgba(100, 100, 200, 0.1);
  border-color: rgba(100, 100, 200, 0.3);
}

.bonus-btn.level-disabled:hover {
  transform: none;
  box-shadow: none;
  background: rgba(100, 100, 200, 0.1);
}

.bonus-btn i {
  font-size: 16px;
  margin-bottom: 10px;
}

.bonus-btn .uk-text-meta {
  font-size: 20px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.8);
}
span#score-value {
  font-size: 23px;
}
span#time-value {
  font-size: 23px;
}

.mobile-controls button {
  margin: 7px;
}

.blurred {
  filter: blur(5px);
  transition: filter 0.3s ease;
}

.uk-modal-dialog {
  background-color: #101010df;
  border-color: #fafafaaa;
  border-width: 1px;
  border-style: solid;  
  border-radius: 10px;
  padding: 20px;
  color: #ffffff; 
}
.uk-modal-dialog h3 {
  font-size: 1.9rem;
  margin-bottom: 15px;  
}
.uk-input {
  background-color: #1a1a1a;
  color: #ffffff;
  border: 1px solid #fafafa99;
  border-radius: 5px;
  padding: 10px;
  width: calc(100% - 20px);
}
.uk-input:focus {
  border-color: #40c057;
  box-shadow: 0 0 0 0.2rem rgba(64, 192, 87, 0.35);
}
.form-actions buttton {
  margin: 5px;
  padding: 8px 15px;
  font-size: 16px;
}

form label.uk-form-label {
  font-size: 16px;
  margin-bottom: 5px;
  display: block;
  color: #fff;
}

.uk-checkbox:focus,
.uk-checkbox {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    vertical-align: middle;
    cursor: pointer;
    outline: #fff;
    border-color: #fff;
  }

.uk-checkbox:checked:focus, .uk-checkbox:indeterminate:focus, .uk-radio:checked:focus,
.uk-checkbox:checked, .uk-checkbox:indeterminate, .uk-radio:checked {
    background-color: #40c057;
    border-color: transparent;
}
.uk-text-small.email_line2 {
  font-size: 15px;
  color: #ccc;
}
a {
  color: #fff;
  text-decoration: underline;
}
a:hover {
  color: #fff;
  text-decoration: underline;
}

#overlay {

  display: flex;
  /* display:none; */

  position: fixed;
  margin-top: 0 !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0e0e0e99;
  z-index: 1000;  
  align-items: center;
  justify-content: center;
}
#overlay-content {    
    position: absolute;
    background-color: #000000aa;
    width: 380px;
    margin: 0 10px;
    padding: 10px 5px;
    border-radius: 10px;
    border-color: #eaeaeaaa;
    border-width: 1px;
    border-style: solid;
}

#splash p {
  margin-bottom: 7px;
}
#splash a {
  color:#C8102E; 
  font-weight:bold;
  text-decoration: none;
}
#splash a:hover {
  text-decoration: underline;
} 


@media (max-width: 1024px) {
  .left-side {
    display:none;
  }
}


@media (max-width: 820px) {
  .left-side, .right-side {
    display:none;
  }
}

@media (max-width: 550px) {

  #header .xcitelogo {
      margin: 0 4px;
      filter: brightness(0.8) contrast(1.2);
      width: 66px;
  }  

  #splash .splash-left {
    display:none;
  }
  #splash .splash-right {
    width: 100%;
    text-align: center !important;    
  }
  #splash .splash-right p {
    margin-bottom: 20px;

  }
  #splash h1 {       
    margin-bottom: 20px;
  }
  
  .main-game-container {
    max-width: 100%;
    height: auto;
    /* flex-direction: column; */
  }
  
  
  
  .game-wrapper { 
    min-width: 75%;
    border-radius: 28px;
  }

  .game-wrapper .uk-grid-small>.uk-grid-margin {
      margin-top: 2px;
  }  

  #overlay-content {    
      width: 360px;
      max-width: 360px;
      display:none;
  }

  
  #game-info #instructions {
    display:none !important;
  }


  #bonus-buttons {
    padding: 0 5%;
    justify-content: center;
  }

  #bonus-buttons .uk-width-1-2 {
    width: 100%; /* 25 */
    max-width: 140px;
    margin-top: 5px;
  }
  #bonus-buttons div:nth-child(2) {
    margin-bottom: 20px;
  }  

  .uk-button.info-btn {
    padding: 40px 30px;    
    margin-left: -10px;
  }  
  button span.tr.key, 
  button span.br.points {
    right: 0;
  }
  .game-wrapper img.x1-logo {
    top: -7px;
    width: 40px;
    height: auto;
  }

  .mobile-controls .controls-left {
    padding-left: 1px;
  }
  .mobile-controls .controls-right {
    padding-right: 1px;
  }

  #game-info {
      min-height: 680px;      
  }  

  #game-info.uk-margin-top {
    margin-top: 0 !important;
  }
  
  .bonus-btn {
    width: 80px;
    height: 70px;
  }
  
  .bonus-btn i {
    font-size: 18px;
  }
  
  .bonus-btn .uk-text-meta {
    font-size: 16px;
  }
}

/* Mobile Control Buttons */
.controls-left {
  padding-left: 25px;
}
.controls-right {
  padding-right: 25px;
}


.control-btn {
  background: rgba(255, 255, 255, 0.1);
  border: #000000;
  color: #ffffff;
  border-radius: 8px;
  width: 70px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(5px);
  box-shadow: 7px 6px 2px 1px rgba(0, 0, 0, 0.3);  
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(2px);
    box-shadow: 1px 1px 2px 2px rgba(0, 0, 0, 0.3);
}

.control-btn:active,
.control-btn.pressed {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0.95);
}

.control-btn i {
  pointer-events: none;
  font-size: 18px;
}


.mobile-controls button.start-btn {
  background: rgba(40, 167, 69, 0.9); 
  border: 1px solid rgba(40, 167, 69, 1);
  font-size: 13px;
  position: relative;
} 

span.tr.key {
    position: absolute;
    right: -7px;
    top: -8px;
    background-color: #292a5aaa;
    line-height: 115%;
    padding: 0 6px 1px 4px;
    border-radius: 10px;
}
span.br.points {
    position: absolute;
    right: -15px;
    top: 72px;
    background-color: #ba2c26a3;
    line-height: 115%;
    padding: 0 6px 1px 4px;
    border-radius: 10px;
}



#instructions {
  display:flex; 
  flex-direction: column;
  align-items: center;
  justify-content: center;    
  padding: 0 4px;

}
#instructions h1 {
  font-size: 34px;  
}

#overlay-content #instructions p {
  font-size: 16px;
  line-height: 1.2;
  margin-bottom: 10px;
  text-align: center;
}
#instructions #play-now {
  margin-top: 5px;
}
#game-info #instructions {
  max-width: 215px;
  
}


#scoreboard {
  border: 1px solid #fafafa99;
  border-radius: 7px;
  padding: 0 7px;
  margin: 15px 10px 5px 10px;
  width: 95%;
}
#scoreboard h3 {
  margin: 5px 0 5px 0;
}

#scoreboard .uk-table th {
   color: rgba(40, 167, 69, 0.9); 
   font-size: 110%;
}

#scoreboard .uk-table td {
  padding: 3px 0;
}
#scoreboard-body tr.highlighted {
  background-color: #28a74555;  
  border-radius: 5px;
}

button#enter,
button#savename,
button#play-now,
button#save_my_email,
button#saveemail {
  margin: 20px 0 5px 0;;
  background: rgba(40, 167, 69, 0.9); 
  border: 1px solid rgba(40, 167, 69, 1);
  font-size: 22px;
  border-radius: 5px;
  padding: 5px 15px;
}
button#__cancelemail {
  margin: 20px 0 5px 0;
  background: #f0506e;
  border: 1px solid #f0506e;
  font-size: 22px;
  border-radius: 5px;
  padding: 5px 15px;
}
button#play-now i {
  position: relative;
  top: 2px;
  margin-right: 4px;
}

.start-btn:hover {
  background: rgba(33, 136, 56, 0.9);
  border: 1px solid rgba(33, 136, 56, 1);
}

.start-btn:disabled {
  background: rgba(108, 117, 125, 0.5);
  border: 1px solid rgba(108, 117, 125, 0.7);
  cursor: not-allowed;
}


table.uk-table {
  margin-bottom: 0;
}
.score-table th {
  padding: 0;
  color: #fff;
}


/* Responsive adjustments for mobile */
@media (max-width: 480px) {
  .game-wrapper {
    padding: 5px;
  }
  
  .control-btn {
    width: 75px;
    height: 45px;
  }
  
  .control-btn i {
    font-size: 16px;
  }
  
}