* {
    font-family: sans-serif;
    font-size: 14px;
}

html, body {
    background-color: #222;
    overflow: hidden;
}

html, body, canvas {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.4);

}

div {
    -webkit-user-select: none; /* webkit (safari, chrome) browsers */
    -moz-user-select: none; /* mozilla browsers */
    -khtml-user-select: none; /* webkit (konqueror) browsers */
    -ms-user-select: none; /* IE10+ */
}

#split {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 100px;
    height: 100px;
    padding: 5px;
    border: none;
}

#feed {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 100px;
    height: 100px;
    padding: 5px;
    border: none;
}

#status {
    position: absolute;
    padding: 10px;
    background: rgba(0, 0, 0, 0.4);
    color: #FFF;
    font-size: 16.1px;
    top: 10px;
    right: 10px;
    font-weight: bold;
    text-align: center;
}

#status .title {
    font-size: 25px;
}

#status .me {
    color: #FF8888;
    font-size: 16.1px;
}

.chatbox {
    position: absolute;
    width: 240px;    
    height: 220px; 
    background: rgba(22, 22, 22, 0.7);
    bottom: 5px;
    left: 5px;
    border-radius: 5px;
    pointer-events: none;
}

.chatbox .chat-list {
    padding: 5px;
    margin: 0;
    list-style: none;
    box-sizing: border-box;
    height: 170px;
    overflow: hidden;
}

.chatbox .chat-list li {
    padding: 6px;  
    font-size: 13px;
}

.chatbox .chat-list li.me b {
    color: #ea6153;
}

.chatbox .chat-list li.friend b {
    color: #2ecc71;
}

.chatbox .chat-list li.system {
    color: #9b59b6;
    font-style: italic;
}

.chatbox .chat-list li.system:before {
    content: "» ";
}

.chatbox .chat-input {
    pointer-events: all;
    box-sizing: border-box;
    width: 100%;
    padding: 8px;
    background: transparent;
    border: none;
    border-top: 1px solid #DDD;
    outline: none;
}
#startMenu {
    position: relative;
    margin: auto;
    margin-top: 100px;
    width: 350px;
    padding: 20px;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    background-color: white;
    box-sizing: border-box;
}

#startMenu p {
    padding: 0;
    text-align: center;
    font-size: x-large;
    font-weight: bold;
}

#playerNameInput {
    width: 100%;
    text-align: center;
    padding: 10px;
    border: solid 1px #dcdcdc;
    transition: box-shadow 0.3s, border 0.3s;
    box-sizing: border-box;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    margin-bottom: 10px;
    outline: none;
}

#playerNameInput:focus, #playerNameInput.focus {
    border: solid 1px #CCCCCC;
    box-shadow: 0 0 3px 1px #DDDDDD;
}

#startButton, #spectateButton {
    position: relative;
    margin: auto;
    margin-top: 10px;
    width: 100%;
    height: 40px;
    box-sizing: border-box;
    font-size: large;
    color: white;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    background: #2ecc71;
    border: 0;
    border-bottom: 2px solid #28be68;
    cursor: pointer;
    -webkit-box-shadow: inset 0 -2px #28be68;
    box-shadow: inset 0 -2px #28be68;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    margin-bottom: 10px;
}

#spectateButton:active, #spectateButton:hover,
#startButton:active, #startButton:hover {
    top: 1px;
    background: #55D88B;
    outline: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

#settingsButton {
    position: relative;
    margin: auto;
    margin-top: 10px;
    width: 100%;
    height: 40px;
    box-sizing: border-box;
    font-size: large;
    color: white;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    background: #2ecc71;
    border: 0;
    border-bottom: 2px solid #28be68;
    cursor: pointer;
    -webkit-box-shadow: inset 0 -2px #28be68;
    box-shadow: inset 0 -2px #28be68;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    margin-bottom: 10px;
}

#settingsButton:active, #settingsButton:hover {
    top: 1px;
    background: #55D88B;
    outline: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

#settings, #startMenuWrapper {
    -webkit-transition: max-height 1s;
    -moz-transition: max-height 1s;
    -ms-transition: max-height 1s;
    -o-transition: max-height 1s;
    transition: max-height 1s;
    overflow: hidden;
}

#settings {
    max-height: 0;
}

#startMenu h3 {
    padding-bottom: 0;
    margin-bottom: 0;
}

#startMenu ul {
    margin: 10px;
    padding: 10px;
    margin-top: 0;
}

#startMenu .input-error {
    color: red;
    opacity: 0;
    font-size : 12px;
}

#startMenuWrapper {
     z-index: 2;
    height: 100vh;          /* full viewport height */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;       /* hide default scroll */
    padding-top: 50px; 
}

#gameAreaWrapper {
    position: absolute !important;
    top: 0;
    left: 0;
    opacity: 0;
}

@media only screen  and (min-width : 1224px) {
#mobile {
display: none;
	}
}

@media only screen  and (max-width : 1224px) {
#chatbox {
display: none;
        }
}

input [type="image"]:focus{
 border:none;
 outline: 1px solid transparent;
 border-style: none;
}

*:focus {
 outline: 1px solid transparent;
 border-style: none;
}
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;800&display=swap');

* {
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, #0a0a0f, #0b0b15, #0f0f1a);
  color: #fff;
}

/* --- glowing header --- */
.logo {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 0 0 15px #5ef2ff;
}
.logo span {
  color: #8e6fff;
  text-shadow: 0 0 20px #8e6fff;
}

/* --- game wrapper --- */
#gameAreaWrapper {
  position: absolute;
  width: 100%;
  height: 100%;
}

/* Cashout Button */
#cashoutBtn {
  position: absolute;
  right: 20px;
  top: 20px;
  background: linear-gradient(135deg, #5ef2ff, #8e6fff);
  border: none;
  color: white;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 0 10px #5ef2ff;
  transition: all 0.3s ease;
}
#cashoutBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px #8e6fff;
}

/* Leaderboard */
#status {
  position: absolute;
  right: 20px;
  top: 90px;
  padding: 15px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 15px rgba(138,92,255,0.2);
}
#status .title {
  font-size: 20px;
  font-weight: 600;
  color: #5ef2ff;
}

/* Chatbox */
.chatbox {
  position: absolute;
  width: 260px; /* reduced from 300px */
  height: 240px; /* reduced from 280px */
  bottom: 10px;
  left: 10px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
}

.chat-list {
  list-style: none;
  padding: 8px; /* slightly smaller padding */
  margin: 0;
  height: 190px; /* adjusted to fit new chatbox height */
  overflow-y: auto;
}

.chat-input {
  width: 100%;
  border: none;
  outline: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  padding: 6px; /* reduced from 8px */
  border-radius: 0 0 12px 12px;
  font-size: 14px; /* optional: slightly smaller text */
}


/* Start Menu */
#startMenu {
    width: 420px;
    max-height: 80vh;       /* max height before scroll */
    overflow-y: auto;       /* allow vertical scrolling */
    padding: 25px;
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 0 25px rgba(138,92,255,0.15);
    text-align: center
}
#startMenu::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

#startMenu {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;     /* Firefox */
}
#startMenu input,
#startMenu button {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border-radius: 10px;
  border: none;
  outline: none;
  font-size: 1rem;
}

/* Inputs */
#startMenu input {
  background: rgba(255,255,255,0.1);
  color: #fff;
  transition: all 0.2s ease;
}
#startMenu input:focus {
  background: rgba(255,255,255,0.15);
  box-shadow: 0 0 10px #5ef2ff;
}

/* Buttons */
#startMenu button {
  background: linear-gradient(135deg, #5ef2ff, #8e6fff);
  color: white;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#startMenu button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px #8e6fff;
}

/* Settings */
#settings {
  margin-top: 15px;
  font-size: 0.9rem;
  text-align: left;
  display: none;
}
#settings label {
  display: block;
  margin: 4px 0;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-thumb {
  background: #8e6fff;
  border-radius: 10px;
}
#bettingLabel {
    font-size: 24px;       /* big text */
    font-weight: bold;
    text-align: center;    /* center inside the box */
    margin-top: 20px;
    color: #ff00ff;        /* neon pink */
    text-shadow: 0 0 5px #ff00ff, 0 0 15px #ff00ff, 0 0 25px #ff00ff;
}
#siteName {
    font-family: 'Arial Black', sans-serif;  /* bold, strong font */
    font-size: 36px;                         /* big size */
    text-align: center;                       /* centered in the box */
    color: #ff00ff;        /* neon pink */
    text-shadow: 0 0 5px #ff00ff, 0 0 15px #ff00ff, 0 0 25px #ff00ff;                   /* glowing neon effect */
    margin-bottom: 20px;                      /* space below the site name */
}
.gameDescription ul {
    list-style: none;               /* remove default bullets */
    padding: 0;
    margin: 20px 0;
    text-align: center;
}

.cashoutInfo {
  font-family: 'Arial', sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    background: linear-gradient(90deg, #ffffff, #eeeeee); /* same as other li */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 10px 0;
    padding: 5px;
    transition: transform 0.2s, text-shadow 0.2s;
}


.gameDescription li {
    font-family: 'Arial', sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;                 /* white text */
    background: linear-gradient(90deg, #ff00ff, #6600ff); /* gradient text effect */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 10px 0;
    padding: 5px;
    transition: transform 0.2s, text-shadow 0.2s;
}

.gameDescription li {
    font-family: 'Arial', sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: #ffffff; /* white text */
    background: linear-gradient(90deg, #ffffff, #eeeeee); /* subtle gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 10px 0;
    padding: 5px;
    
}

#walletStatus {
    font-size: 16px;
    color: #fff;
    max-width: 100%;       /* Prevent overflow outside container */
    word-wrap: break-word; /* Wrap long wallet addresses */
    overflow-wrap: anywhere;
    white-space: normal;   /* Allow line breaks */
    text-align: center;    /* Keep it centered */
    margin-bottom: 10px;
}
#infoBtn {
    position: relative;
    margin: auto;
    margin-top: 10px;
    width: 100%;
    height: 40px;
    box-sizing: border-box;
    font-size: large;
    color: white;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    background: #2ecc71;
    border: 0;
    border-bottom: 2px solid #28be68;
    cursor: pointer;
    -webkit-box-shadow: inset 0 -2px #28be68;
    box-shadow: inset 0 -2px #28be68;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    margin-bottom: 10px;
}

#infoBtn:active, #infoBtn:hover {
    top: 1px;
    background: #55D88B;
    outline: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

/* Modal background */
#infoBox {
    display: none; /* hidden by default */
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}

/* Modal content */
#infoContent {
    background: #1a1a2e;
    color: #fff;
    padding: 20px;
    border-radius: 15px;
    max-width: 500px;
    margin: 100px auto;
    text-align: center;
    position: relative;
    box-shadow: 0 0 20px #8e6fff;
}


/* Close button */
#closeInfo {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
#closeInfo:hover {
    color: #8e6fff;
}
#links {
    margin-top: 20px;
    text-align: center;
}

#links h3 {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
    margin-bottom: 10px;
}

.link-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.link-box {
    width: 100px;   /* set your desired size */
    height: 100px;  /* set your desired size */
    display: block;
    overflow: hidden;
    border-radius: 12px; /* optional for rounded corners */
}

.link-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* image fills entire box */
    display: block;
}

.link-box:hover {
    transform: translateY(-4px);
    background: rgba(142, 111, 255, 0.3);
    box-shadow: 0 0 20px rgba(142, 111, 255, 0.4);
}
#spectateButton,
#settingsButton {
    display: none; /* completely hides the buttons */
}
#links h3 {
    font-size: 28px;        /* Bigger title */
    font-weight: 700;
    color: white;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
    margin-bottom: 15px;
}
.chatbox .chat-list li {
    color: #111 !important; /* almost black */
}

.chatbox .chat-list li b {
    color: #000 !important; /* pure black for names */
}

.chatbox .chat-list li.system {
    color: #222 !important;
}
