.container {
    margin-left: 45%;
    margin-top:-2.5%;
    width: 400px;
    z-index:5;
    position:absolute;
    
}
#respawnText {
    display:none;
    position:absolute;
    margin-top: 65px;
    left: 25%;
}

#respawnText h2 {
  font-size:3vw;
  color: white;
  font-family: 'Trebuchet MS';
}

#controls-btns {
  display: none;
  flex-direction: column;
  align-items: center;
  position: absolute;
  width: 150px;
  height: 150px;
  z-index: 10;
  bottom: 5%;
  left: 5%;
  user-select:none;
}

.control-btn {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  border: none;
  background-color: #333;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  transition: background-color 0.2s;
}

.control-btn:hover {
  background-color: #555;
}

#up-btn {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

#down-btn {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

#left-btn {
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

#right-btn {
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}


#joystickContainer {
  position: absolute;
  bottom: 10%;
  right: 10%;
  width: 100px;
  height: 100px;
  z-index: 99;
  visibility: hidden;
}

#joystick1Container {
  position: absolute;
  left: 10%;
  bottom: 10%;
  width: 100px;
  height: 100px;
  z-index: 99;
  visibility: hidden;
}

#dashButton {
  position: absolute;
  bottom: 25%;
  right: 25%;
  width: 40px;
  height: 40px;
  z-index: 99;
  visibility: hidden;
  background-color: grey;
  opacity: 0.5;
  border-radius: 50%;
}

#loading-screen {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 10;
  background-color: #423f3f;
  display: flex;          
  justify-content: center;   
  align-items: center;
  transition: opacity 0.5s linear;
}

.hidden-loading-screen {
  opacity: 0;
  pointer-events: none;
}

#loading-text {
  position: absolute;      /* Position the element */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
}


#shipDeadText {
  display:none;
  position:absolute;
  font-size:25px;
  margin-top: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color:red
}

#chat-container {
  position: fixed;
  font-family:'Trebuchet MS';
  z-index: 3;
  bottom: 0;
  left: 0;
  width: 23vw;
  height: 40vh;
  overflow: hidden;
  /*background-color: #393b3d;*/
  /*border: 1px solid #000000;*/

  /*background-color: transparent;*/
  background-color: rgba(0 , 0, 0, 0.3);
  opacity: 0.90;
  padding: 5px;
  border-radius: 3px;
  display: none;
  flex-direction: column;
  color:white;
  font-size: 15.5px;
  text-shadow: 1.1px 1.1px 2.2px rgba(0 , 0, 0, 0.3);
}

#chat-box {
  flex-grow: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
}

#close-button {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 18px;
  padding: 0%;
  margin-top:-4px;
  cursor: pointer;
  color: white;
}

@keyframes bulgeAnimation {
  0%, 100% {
      transform: scale(1);
  }
  50% {
      transform: scale(1.2);
  }
}

.bulge {
  animation: bulgeAnimation 0.2s ease-in-out;
}

.progress-container {
  display: none;
  text-align: center;
  margin: 0 auto;
  padding: 10px;
  width: 280px;
  transform: translateY(100%);
  z-index: 5;
  background-color: rgb(30,30,30, 0.5);
  border: 1px solid white;
  border-radius: 4px;
}

.progress-bar-container {
  position: relative;
  width: 100%;
  background-color: transparent;
  border: 0.75px solid white;
  border-radius: 5px;
  overflow: hidden;
  margin-top: 10px;
  border-radius: 4px;
  height: 20px;
}

.progress-bar {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: 10%;
  height: 20px;
  background-color: rgb(255, 255, 255);
  border-radius: 4px;
  transition: width 0.1s;
}

.progress-title {
  font-size: 26px;
  color: white;
}

#hotbar {
  z-index: 5;
  display: none;
  flex-direction: row;
  align-items: center;
  background-color: transparent;
  padding: 5px;
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
}

.slot.selectedSlot {
  opacity: 1;
  border: 1px solid white;
}

.experience-bar {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  top: -20px;
  left: calc(75px + 0.8rem);
  width: calc(220px + 1rem);
  height: 15px;
  background-color: #22222261;
  border: 1.1px solid #444;
  border-radius: 5px;
  overflow: hidden; /* Ensures the fill does not spill out */
}

.fill {
  height: 100%;
  background: linear-gradient(to right, #4ef5fc, #03c2c8); /* Gradient for the filled portion */
  width: 0%; /* Adjust this value to reflect the current fill level, e.g., 50% for half-filled */
  left: 0;
  position: absolute;
  transition: width 0.5s ease;
}

.level-text {
  position: absolute; /* Needed to overlay text on top of the fill */
  width: 100%;
  text-align: center;
  color: white;
  font-size: 12px;
  z-index: 1; /* Ensures text appears above the fill */
}

#abilityText {
  position: absolute;
  top: -25px;
  font-size: 12px;
  z-index: 1;
  color: black;
}

#rebirthText {
  display: none;
  font-size: 12px;
  z-index: 1;
  color: gold;
  position: absolute;
  top: -40px;
  left: calc(calc(75px + 0.8rem) + calc(calc(220px + 1rem) / 2));
  transform: translateX(-50%);
}

.slots-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.slot {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 70px;
  height: 70px;
  border: 1px solid gold;
  border-radius: 4px;
  margin-right: 0.8rem;
  background-color: #22222261;
  box-sizing: border-box;
  opacity: 0.5;
}

.slot .cooldown-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border-radius: 4px;
  font-size: 2em;
  font-family: Arial, sans-serif;
  visibility: hidden;
}

.slot:last-child {
  margin-right: 0; /* Remove margin from the last slot */
}

.slot img {
  max-width: 100%;
  max-height: 100%;
}

.keybind {
  position: absolute;
  top: 0.3px;
  left: 0.5px;
  font-weight: bold;
  font-size: 0.8em;
  color: rgba(255, 255, 255, 0.7);
  background: none;
}

.level-text {
  color: white;
  font-size: 12px;
  font-weight: bold;
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000;
  z-index: 1;
}

#slot5 {
  display: none; /* gun slot hidden until rebirth */
}

/* Ability slot */
#slot1 {
  left: -10px;
  opacity: 1;
}

#money-counter {
  transition: transform 0.1s ease-in-out;
  position: fixed;
  top: 10px;
  left: 10px;
  color: gold;
  background-color: rgba(0, 0, 0, 0.3);
  font-size: 20px;
  text-shadow: 1.1px 1.1px 2.2px rgba(0 , 0, 0, 0.3);
  display: none;
  z-index: 3;
  border-radius: 4px;
  align-items: center;
  gap: 4px;
  padding: 5px;
}

#money-counter img {
  width: 25px;
  height: 25px;
}

.inverted {
  filter: invert(1);
}
#message-input::placeholder {
  color: white;
}

#messages {
  flex-grow: 1;
  color: white;
  overflow: auto;
  overflow-wrap: break-word;
  word-wrap: break-word;
  font-size: 15.5px;
  user-select: text;
}

#message-form {
  width: 100%;
  margin-bottom: 0px;
  padding-top:5px;
  color: white;
  /*outline: #393b3d;*/
  font-size: 15.5px;
}

#message-input {
  padding: 5px;
  border: 1px solid white;
  border-radius: 2px;
  width: 100%;
  /*background-color:  #000000;*/
  background-color: transparent;
  color:white;
  /*outline: #393b3d;*/
  outline: none;
}

#open-chat-image {
  scale:90%;
}

#open-button {
  align-self: center;
  background: none;
  border: none;
  cursor: pointer;
  position: fixed;
  user-select: none;
  bottom: 0;
  left: 0;
  z-index: 3;
  width:50px;
  height: 50px;
  background-color: #00000050;
  border-radius: 4px;
  margin:5px;
  
}


#messages::-webkit-scrollbar {
  width: 8px;
}
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
#messages::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 10px;
}

#messages::-webkit-scrollbar-thumb {
  background: #9f9e9e;
  border-radius: 10px;
}

#messages::-webkit-scrollbar-thumb:hover {
  background: #555;
}
.path--background {
    fill: rgba(30 , 30, 30, 0.3);
    stroke: #fff;
    stroke-width: 0px;
}
.pulse {
    fill: rgba(36, 30, 30, 0.705);
}
.path--foreground {
    fill: rgba(19, 19, 19, 0.3);
    stroke: rgba(30 , 30, 30, 0.3);
    stroke-width: 2px;
}
.label {
    font: 90px "Comic sans";
    font-weight: 900;
    text-anchor: middle;
    fill: rgba(36, 30, 30, 0.705);
    font-size:5;
}
#green {
    color: green;
}
#red {
    color:red
}
#blue {
    color:blue
}
#lightblue {
    color:lightblue
}
#purple {
    color:purple
}
#yellow {
    color:yellow
}
#aqua {
    color:aqua
}
#fuchsia {
    color:fuchsia
}
#gray {
    color:gray
}
#teal {
    color:teal
}
#lime {
    color:lime
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  user-select: none;
  font-family: 'Trebuchet MS';

}

#seeThroughScreen {
  overflow: auto;
  background: rgba(0 , 0, 0, 0.3);
  flex-grow: 100;
  width: 100%;
  height: 100%;
  margin: 0;
  padding:0;
  z-index: 3;
  position: fixed;
}

#pixi-canvas {
  position: fixed;
  left:0;
  top:0;
  width: 100vw;
  height: 100vh;
}

h1 {
    text-align: center;
    color: rgba(0, 0, 0, 0.411);
}
h2 {
    color: black;
    position: relative;
    font-size:35px;
    font-family:Cambria;
    text-align: center;
    margin-top:20px;
    z-index: 3;
    user-select: none;
    display:block;
    
}
#titleImg {
    position: relative;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 325px;
    height:160px;
    margin-top:100px;
    margin-bottom: 5px;
}
/*-------------MAIN MENU-----------------*/
.panel {

  opacity: 0.8;
  user-select: none;
  z-index: 3;
}

#grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  gap: .8rem;
  padding: 1rem;
  overflow-y: auto;
  max-width: 1200px;
  margin: 0 auto;
  flex-direction: row;
}
@media screen and (max-width: 1200px) {
  #center {
      order: -1;
  }
}

#playTogether {
  text-align:center;
}

#center {
    text-align:center;
      width:380px;
  height:210px;

}
#date {
  color:grey;
}
#joinGameBack {
  background-color:transparent;
  padding-top: 50px;
  height:100px;
    display: block;
    justify-content: center; /* This centers children along the horizontal line */
    align-items: center; /* This centers children along the vertical line */
    margin-left:0px;
    border-radius: 5px;
}

.menu-text-panel p {
  font-family:'Trebuchet MS';
  color: rgba(255, 255, 255, 0.9);
  display:block;
  position:relative;
  margin: 0;
  padding: 0;
  height:auto;
  font-size: 13px;
}
.menu-text-panel h3 {
  font-family:'Trebuchet MS';
  margin: 0 0 2px 0;
  color: rgba(155, 115, 218, 1);
  font-size: 1.17em;
  font-weight: bold;
  
}
ul {
  list-style-type: circle;
  font-family:'Trebuchet MS';
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;

}
.menu-text-panel h2 {
  font-family:'Trebuchet MS';
  margin: 2px 0 2px 0;
  padding:0;
  position:relative;
  display:block;
  color: white;
  font-size:16px;
  font-weight: bold;
  
}
.menu-text-panel {
  padding:20px;
  padding-top: 10px;
  overflow: auto;
  text-align:left;
  background-color: #00000070;
  color: white;
  user-select: none;
  width:290px;
  height:260px;
  margin:2px;
  border-radius: 5px;
  display:block;
} 
#shipNameForm {
    background-color:lightGrey;
    opacity: 100;
    padding:5px;
    user-select: none;
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    display:block;
    z-index: 3;
    text-align:center;
    width:270px;
    
} 
#shipnameinput {
  margin-top:35px;
  width: 260px;
  margin-right:5px;
  margin-bottom:2px;

}
#joinErrorText {
  color:red;
  font-size: 14px;
  display:none;
}

svg {
    float:right; 
}
#coords, #ping, #fps, #lerps, #itemsInRender {
    float:left;
    display:none;
    z-index: 3;
    position: absolute;
    user-select: none;
    top:55px;
}

#chat, #shipChat {
  background-color: rgba(0, 0, 0, 0.192);
    width:390px;
    height:300px;
    z-index: 3;
    position: absolute;
    bottom: 0;
    left: 0;
    user-select: none;
    display:none;
    padding-left: 2px;
}
p {
    height: 25px;
    display:block;
}

.niceForm {
    background-color: transparent;
    color:black;
    border-radius: 5px;
    display: inline-block;
    padding: 5px;
    margin: 2px;
    width:380px;
    height:210px;
  }
  .niceForm h2 {
    color:white;
  }

  #username {
    margin-top:5px;
    margin-left:4.5px;
    width: 220px;
    margin-right:12px;
    margin-bottom:2px;
  }

  #generate-code-field {
    width: 300px;
  }
  #generate-code {
    user-select: none;
    width:316px;
    height:246px;
    margin:2px;
    border-radius: 5px;
    display:block;
  }
  .niceText {
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 17px;
    padding: 9px;
    text-align: center;
    width: 260px;
  }
  
  .niceSubmit {
    background-color: #4caf50;
    border: none;
    display:block;
    border-radius: 5px;
    color: white;
    font-size: 14px;
    padding: 4px;
    margin-top:5px;
    height: 35px;
    width:260px;
  }
  #join {
    font-size:19px;width:125px;background-color: orange;
  }
  #joinBack {
    background-color: darkorange;
  }
  #readyIcons {
    margin:10px;
    border-color: #000;
    width:280px;
    height:80px;
    background-color: rgba(220,220,220, 0.1);
    display: block;
  }

  .icon {
    height:75px;
    display:inherit;
    width: 65px;
    margin:2.5px;
    background-color: white;
    float:left;
    justify-content:center;
    align-items: center;
    font-weight: 550;
    display:none;
  }
  button#submitButton {
    background: none;
    border: none;
    margin:0;
    margin-left:-10px;
    padding:0;
}

  #readyButton {
    display:none;
    width:260px;
    margin-left:22.5px;
  }
  #submitButton {
    width:82px;
    height:60px;
    margin:0;
    margin-left:12px;
    padding:0px;
  }
  #joinButton {
    display:none;
    width:260px;
    margin-left:22.5px; 
    background-color:rgb(71, 71, 71);
  }
  #error {
    color:red;
  }
  #leaveButton {
    display: none;    
    margin-left:12.75px; 
    width:260px;
    background-color:rgb(105, 16, 16);
  }

  #Exit {
    display:none;
    background-color: darkred;
    width:40px;
    height:35px;
    
  }
  #exit1 {    
   color:white;
   background-color: rgb(202, 52, 51);
  }

  .fade-out {
    animation: fadeOut 6s;
  }
  @keyframes fadeOut {
    from {
      opacity: 1;
    }
    to {
      opacity: 0;
    }
  }


  .pushable {
    padding: 12px 50px;
    margin-top:10px;
    border-radius: 12px;
    border: none;
    padding: 0;
    cursor: pointer;
    outline-offset: 4px;
  }

  .front {
    display: block;
    height:40px;
    border-radius: 12px;
    font-size: 1.25rem;
    background: #4caf50;
    color: black;
    transform: translateY(-6px);
  }
  
  .pushable:hover .front {
    transform: translateY(-2px);
  }
  #countdown {
    position: relative;
    margin: auto;
    height: 40px;
    width: 40px;
    text-align: center;
    display:none;  
    margin-top: 100px;
  }
  
  #countdown-number {
    color: white;
    display: inline-block;
    line-height: 40px;
  }
  
  svg {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    transform: rotateY(-180deg) rotateZ(-90deg);
  }
  
  svg circle {
    stroke-dasharray: 113px;
    stroke-dashoffset: 0px;
    stroke-linecap: round;
    stroke-width: 2px;
    stroke: white;
    fill: none;
    animation: countdown 5s linear infinite forwards;
  }
  
  @keyframes countdown {
    from {
      stroke-dashoffset: 0px;
    }
    to {
      stroke-dashoffset: 113px;
    }
  }
 
  .discord-btn {
    position: fixed;
    top: 10px;
    left: 10px;
    padding: 5px;
    background-color: #7289DA;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 2px 2px 10px #000;
}
/* CSS for Discord icon */
.discord-icon {
   
  background-repeat: no-repeat;
  width:128px;
  height: 43.52px;
  margin-right:1px;
}

#upgrades-text {
  position: absolute; 
  margin-left: 10px;
}
#timer-text {
  position: absolute; 
  margin-left:-28px;
}
#upgrade-buttons {
    display:none;
    float:left;
    user-select: none;
    position:fixed;
    top: 50%;
    transform: translateY(-50%);
    left: 5px;
    z-index: 3;
    width: 200px;

  }
  #upgrade-title {
    margin-bottom:5px;
    float:left;
    font-size:18px;
    z-index: 3;
    position: relative;
    font-family: sans-serif;
    width: 200px;
    user-select: none;
    color:white;
    outline: #000;
    outline-width: 2px;
    text-align: center;
    display: inline;
    border-color: 5px;
    border-bottom-width: 2px;
  }
  .upgrade-button {
    background-color: rgb(207, 130, 5);
    color: white;
    padding: 10px;
    margin-bottom: 10px;
    border: 5px solid #654321; /* Adjust the border width (4px) and color (#654321) as needed */
    width: 200px;
    text-align: center;
    /*border-radius:10px;*/
    cursor: pointer;

  }
  #playersOnlineContainer {
    display: flex;
    align-items: center;
    margin-top: 0px;
    display:none;
    z-index: 3;
    position: fixed;
    user-select: none;
    right:300px;
    top:1px;
  }
  
  #killscontainer {
    position: fixed;
    z-index: 3;
    right: 5px; /* added 'px' assuming you meant pixels */
    display: none;
    text-align: end;
    flex-direction: column;
    user-select: none;
    font-size: 14px;
    top: 104px;
    white-space: nowrap;
}
  
  .kills-row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    color:white;
  }
  #comingsoon {
    color:white;
  }

  #crazygamesbtn {
    position: fixed;
    top: 70px;
    left: 10px;
    width:140px;
    height: 52px;
    padding: 5px;
    color: white;
    background-color: #6842ff;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 2px 2px 10px #000;
  }

  #shipKills , #playerKills, #playersOnline {
    color: white;
    font-size: 14px;
    height: 20px;
    text-shadow: 1.1px 1.1px 2.2px rgba(0 , 0, 0, 0.3);

  }

  .killsImg {
    margin-right: 5px; /* adjust as needed */
    width:25px;
    height:25px;
  }
  #onlineIndicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: limegreen;
    margin-right: 5px;
    text-shadow: 1.1px 1.1px 2.2px rgba(0 , 0, 0, 0.3);

  }

  .upgrade-button:hover {
    /* Optional: Add some hover styles for better user experience */
    background-color: rgb(130, 83, 6);
  }

  table {
    min-width: 9em;
    border-collapse: collapse;
  }
  td {
    padding-right: 30px;
    max-width: 240px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: white;
  }
  #stats-wrapper {
    position: absolute;
    right: 0;
    top: 0;
    display: inline;
}
  #leaderboard {
    position: fixed;
    border-radius: 4px;
    background-color: rgba(0,0,0,.4);
    padding: 4px;
    line-height: 1.3em;
    color: #fff;
    z-index: 3;
    user-select: none;
    top: 0;
    right: 0;
    display:none;
}

.volume-slider-container {
  display: none;
  position: absolute;
  align-items: center;
  justify-content: center;
  bottom: 40px;
  right: 0;
  width: 100px;
  height: 25px;
  background-color: #393b3d; /* Background color for the container */
  border-radius: 2px;
  z-index: 2; /* Ensure it is above other elements */
  padding: 2px;
}

.mute-toggle:hover .volume-slider-container, .volume-slider-container:hover {
  display: flex;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  background: white; /* Make the slider background transparent */
  width: 100%;
  height: 5px;
  border-radius: 5px;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  background: #4CAF50;
  border-radius: 50%;
  cursor: pointer;
}

.volume-slider::-moz-range-thumb {
  width: 15px;
  height: 15px;
  background: #4CAF50;
  border-radius: 50%;
  cursor: pointer;
}

.mute-toggle {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-80px);
  width: 40px;
  height: 40px;
  margin: 5px;
  z-index: 1;
  display: none;
}

.shop-icon {
  position: fixed;
  right: 0;
  width: 50px;
  padding:5px;
  height: 50px;
  border-radius: 4px;
  background-color: #00000050;
  box-sizing: border-box;
  display: none;
  justify-content: center; 
  align-items: center;  
  transform: translateY(-50%);
  top: 50%;
  user-select: none;
}

#shop-arrow {
  position: fixed;
  right: 100px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  display: none;
  z-index: 6;
  animation: pointToShop 1s ease-in-out infinite;
}

#shop-arrow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 15px 0 15px 25px;
  border-color: transparent transparent transparent #ff0000;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
}

.dismount-prompt {
  position: fixed;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  display: none;
  z-index: 1000;
}

.dismount-content {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 20px;
  font-family: Arial, sans-serif;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.dismount-prompt .e-key {
  width: 30px;
  height: 30px;
  vertical-align: middle;
}

@keyframes pointToShop {
  0% {
    transform: translateY(-50%) translateX(0);
  }
  50% {
    transform: translateY(-50%) translateX(10px);
  }
  100% {
    transform: translateY(-50%) translateX(0);
  }
}

#banner-container {
  z-index:3;
  width: 320px;
  height: 50px;
  position: fixed;
  left: 0;
  bottom:0;
  
}
#banner-container2 {
  z-index:3;
  width: 320px;
  height: 50px;
  position: fixed;
  right: 0;
  bottom:0;
  
}

#reward-ads {
  width: 180px;
  height:100px;
  display: none;
  margin:5px;
  top:125px;
  left:5;
  position: fixed;
  border-radius: 5px;
  border: 1px solid gold;
  background-color: #00000050;
}
#reward-ads h3 {
  color:white;
  margin:0px;
  padding:0px;
  text-align: center;
  font-size: 20px;
}

#reward-ads span {
  color:white;
  font-size: 15px;
  margin:0px;
  margin-top:5px;
  padding:0px;
  display: inline-block;
  width: calc(100% - 60px);
}

#reward-ads button {
  margin:0px;
  position: relative;
  padding:0px;
  text-align: center;
  font-size: 15px;
  background-color: #393b3d;
  border: 2px solid gold;
  color:white;
  border-radius: 5px;
  width: 50px;
  height: 25px;
}
#XP-gain-ad {
  margin-top:5px;
}
#notification-area { 
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  text-align: center;
}
.notification {
  color: gold;
  user-select: none;
  text-shadow: 2px 2px 4px black;
  opacity: 1;
  transition: opacity 2s;
}
#globalLeaderboard {
  margin-top: 5px;
  position: fixed; 
  top: 0;
  right: 1px;
  width: 260px;
  height: 240px;
  border-radius: 4px;
  overflow: auto;
  background-color: transparent; 
}

#globalLeaderboard h2 {
  font-size: 16px;
  font-family: Verdana;
  color: white;
}

#header, .player {
  display: flex;
  justify-content: flex-start; /* Align elements to the start */
  padding: 0.35em;
  color: white; /* white text */
}

.column {
  color: white;
  text-align: center; /* Align text to the center */
}

.column#numCol, .player .column:first-child {
  flex-basis: 10%;
  margin-right: 26px; /* Add some space to the right */
}

.column#nameCol, .player .column:nth-child(2) {
  flex-basis: 70%;
  margin-right: 10px; /* Add some space to the right */
}

.column#levelCol, .player .column:last-child {
  flex-basis: 20%;
}

#teleportBox {
  position: fixed;
  bottom: 2%;
  left: 50%;
  transform: translate(-50%, -150%);
  display: none;
  flex-direction: column;
  align-items: center;
  width: 210px;
  padding: 5px;
  background-color: #393b3d;
  border: 1px solid gold;
  border-radius: 5px;
  text-align: center;
  user-select: none;
  z-index: 3;
}
#teleportBox h2 {
  color: white;
  font-size: 20px;
  margin:0;
  margin-bottom: 5px;
}

#buttonContainer {
  display: flex;
  justify-content: space-around;
  width: 100%;
}

#teleportBox button {
  margin-top: 10px;
  padding: 7.5px 15px;
  font-size: 13.5px;
  color: white;
  border: 1px solid #6c757d;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}
#yesButton {
  background-color: #1d9c41;
}
#noButton {
  background-color: #d9534f;
}

#yesButton:hover {
  background-color: #1d7f39;
}
#noButton:hover {
  background-color: #a05451;
}

#globalLeaderboard::-webkit-scrollbar {
  width: 5px; /* width of the entire scrollbar */
}

#globalLeaderboard::-webkit-scrollbar-track {
  background: transparent; /* color of the tracking area */
}

#globalLeaderboard::-webkit-scrollbar-thumb {
  background: #888; /* color of the scroll thumb */
  border-radius: 10px; /* roundness of the scroll thumb */
}

#globalLeaderboard::-webkit-scrollbar-thumb:hover {
  background: #555; /* color of the scroll thumb when hovering */
}

/* This will style the scrollbar for Firefox */
#globalLeaderboard {
  scrollbar-width: thin; /* "auto" or "thin"  */
  scrollbar-color: #888 transparent; /* scroll thumb and track color */
}

body::-webkit-scrollbar {
  width: 10px; /* width of the entire scrollbar */
}

body::-webkit-scrollbar-track {
  background: #393b3d; /* color of the tracking area */
}

body::-webkit-scrollbar-thumb {
  background: #888; /* color of the scroll thumb */
  border-radius: 10px; /* roundness of the scroll thumb */
}

body::-webkit-scrollbar-thumb:hover {
  background: #555; /* color of the scroll thumb when hovering */
}

/* This will style the scrollbar for Firefox */
body {
  scrollbar-width: thin; /* "auto" or "thin"  */
  scrollbar-color: #888 #393b3d; /* scroll thumb and track color */
}

.custom-alert {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.custom-alert-content {
  background-color: #111;
  margin: 5% auto;
  padding: 20px;
  border: 2px solid gold;
  width: 40%;
  color: white;
  overflow-y: auto;
}

.custom-alert-close {
  color: white;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.custom-alert-close:hover,
.custom-alert-close:focus {
  color: gold;
  text-decoration: none;
  cursor: pointer;
}

.custom-alert-content::-webkit-scrollbar {
  width: 10px; /* width of the entire scrollbar */
}

.custom-alert-content::-webkit-scrollbar-track {
  background: #393b3d; /* color of the tracking area */
}

.custom-alert-content::-webkit-scrollbar-thumb {
  background: #888; /* color of the scroll thumb */
  border-radius: 10px; /* roundness of the scroll thumb */
}

.custom-alert-content::-webkit-scrollbar-thumb:hover {
  background: #555; /* color of the scroll thumb when hovering */
}

/* This will style the scrollbar for Firefox */
.custom-alert-content {
  scrollbar-width: thin; /* "auto" or "thin"  */
  scrollbar-color: #888 #393b3d; /* scroll thumb and track color */
}



.menu-text-panel::-webkit-scrollbar {
  width: 10px; /* width of the entire scrollbar */
}

.menu-text-panel::-webkit-scrollbar-track {
  background: transparent; /* color of the tracking area */
}

.menu-text-panel::-webkit-scrollbar-thumb {
  background: #888; /* color of the scroll thumb */
  border-radius: 10px; /* roundness of the scroll thumb */
}

.menu-text-panel::-webkit-scrollbar-thumb:hover {
  background: #555; /* color of the scroll thumb when hovering */
}

/* This will style the scrollbar for Firefox */
.menu-text-panel {
  scrollbar-width: thin; /* "auto" or "thin"  */
  scrollbar-color: #888 transparent; /* scroll thumb and track color */
}

.afford-text {
  color:red;
  font-size:10px;
  display:none;
}


#rebirth-UI {
    display: none;
    flex-direction: column;
    align-items: center; /* Centers children on the horizontal line */
    justify-content: flex-start; /* Aligns children towards the top */
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 500px; /* You can adjust this as needed */
    height:  500px; /* You can adjust this as needed */
    background-color: rgb(30,30,30, 0.8);
   border: 2px solid white;
    border-radius: 2px;
  z-index: 5;
  }

#new {
  background-color: green;
  color:white;
  border-radius: 2px;
  display: inline;
  padding:2px;
  font-size: 13px;
}
.item-container {
  position: relative;
}
.prestige-lock p, .prestige-lock1 p {
  color:rgb(235, 208, 0);
}

.prestige-lock, .prestige-lock1 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black overlay */
  display: flex;
  justify-content: center; /* Horizontally center content */
  align-items: center; /* Vertically center content */
  z-index: 10; /* High z-index to ensure it's above all other content */
}

#form-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.acc-form {
  background-color: rgb(53, 58, 69, 0.5);
  backdrop-filter: blur(2px);
  display: none;
  border-radius: 4px;
  position:fixed;
  border: 0.5px solid white;
  text-align: center;
  padding: 20px;
  top: 50%;
  transform: translateX(-50%);
  transform:translateY(-50%);
  z-index: 4;
  width: 250px; 
}
.acc-form h2 {
  color: white;
  font-weight: bold;
  font-size: 20px;
  margin:0px;
  padding:0px;
  margin-bottom: 15px;
  font-family: 'Trebuchet MS';
}

.acc-form input {
  display: block; /* Make inputs stack on top of each other */
  width: 100%; /* Take up the full width of the parent container */
  padding: 10px; /* Add some padding for a better visual appearance */
  margin-bottom: 15px; /* Add space between inputs */
  border-radius: 4px;
  border: 1px solid #ccc;
}

.acc-form button {
  padding: 8px 15px; /* Padding for a better visual appearance */
  border-radius: 4px;
  background-color:green;
  color:white;
  font-size: 16px;
  border: none;
  cursor: pointer; /* Change cursor on hover for better UX */
  transition: background-color 0.3s; /* Smooth transition for hover effect */
}
.acc-form button:hover {
  background-color: darkgreen; 
}
#character-container {
  position:fixed;
  top: 250px;
  right: 5px;
  display: block;
  z-index: 5;
  border-radius: 4px;
  border: 0.5px solid gold;
  background-color: #00000050;
  color:rgb(115,115,218);
  width:125px;
  height:55px;
  display: flex;          
  align-items: center;
}
#char-coin-img {
  max-width:15px;
  max-height:15px;
  margin:0;
  padding:0;
  display: inline;
}
#char-info-container {
  width:100px;
  display: flex;          
  flex-direction: column; 
  align-items: flex-start; 
}
#char-img {
  width:auto;
  display: inline;
  max-width: 50px;
  max-height: 50px;
  padding:5px;
}
.gold-save {
  color:gold;
}

#lvl-save {
  color:lightblue;
}
#rebirth-save {
  color:rgb(115,115,218);
}
.gold-save, #lvl-save, #rebirth-save {
  font-size: 12px;
  margin: 0;         
  font-family: 'Trebuchet MS';
  display: inline;
  height:15px;
}
#gold-save-text {
  margin-top:0px;
}
#save-data-container {
  position:fixed;
  top: 310px;
  right: 5px;
  display: block;
  border-radius: 4px;
  background-color: #00000050;
  text-align: center;
}
#save-data-text {
  color:rgba(115,115,218);
  font-size: 18px;
  font-weight: bold;
  font-family: 'Trebuchet MS';
  padding:2px;
  margin:3px;
}
#sign-out {
  color:orange;
  text-decoration:underline;
  margin:0;
  padding:0;
  cursor:pointer;
  display: inline;
}
#verify-data-text {
  color:orange;
  padding:5px;
}
#need-verify {
  display: none;
  height:70px;
}
#verify {
  margin-top:5px;
}
#signed-in-as {
  color:white;
}
#signed-container {
  display:none;
  text-align: right;
  position:fixed;
  top:310px;
  font-size: 9px;
  z-index:3;
  right:2px;
}
#signed-container p {
  height:10px
}

.save-data-button {
  display:inline;
  font-family: 'Trebuchet MS';
  padding:5px;
  font-size:15px;
  width:70px;
  text-align: center;
  background-color:rgba(0 , 150, 0, 0.7); /*00000070*/
  color:white;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.save-data-button:hover {
  background-color: darkgreen; 
}
#logIn {
  margin:5px;
  margin-right:0px;
}
.acc-title-head {
  width: 100%;
  padding: 0 10px;
}

.close-acc {
  color:white;
  font-size: 20px;
  padding: 0;
  display: inline;
  background-color: transparent;
  position: absolute;  
  right: 10px;       
  top: 0;
}

.close-acc:hover {
  cursor: pointer;
  color: red;
}
#signUp {
  margin:5px;
  margin-left:0px;
}
#forgot-password {
  color:blue;
  text-decoration:underline;
  font-size:12px;
  display: inline;
}
#forgot-password:hover {
  cursor:pointer;
  color:rgb(0, 0, 105)
}
#customSignUpForm {
  color:black;
  font-size: 12px;
  position:fixed;
  transform: translateX(-50%);
  transform:translateY(-50%);
  top: 50%;
  display: none;
}
#verificationForm {
  color:black;
  font-size: 12px;
  cursor: pointer;
  position:fixed;
  transform:translateY(-50%);
  transform: translateX(-50%);
  top: 50%;
  display: none;
}
.form-error {
  color:red;
}
#customSignInForm {
  color:black;
  font-size: 12px;
  position:fixed;
  transform: translateX(-50%);
  transform:translateY(-50%);
  top: 50%;
  display: none;
}
#forgotPasswordForm {
  transform: translateX(-50%);
  transform:translateY(-50%);
  top:50%;
  color:black;
  font-size: 12px;
  position:fixed;
}
#changePasswordForm {
  transform: translateX(-50%);
  transform:translateY(-50%);
  top:50%;
  color:black;
  font-size: 12px;
  position:fixed;
}
#verificationForm {
  display: none;
  transform: translateX(-50%);
  transform:translateY(-50%);
  color:black;
  top:50%;
  font-size: 12px;
  position:fixed;
}
.owned {
  color:lightblue;
  display: none;
  align-items: center;

}
.owned img {
  width: 15px;
  height: 15px;
  
}

#rebirth-title {
    font-size:32px;
    padding:10px;
    color:white;
    font-family:'Trebuchet MS';
}
#rebirth-button {
  color:white;
  background-color: green;
  padding:4px;
  bottom: 20px;
  position: absolute;
  border: 2px solid black;
}
#rebirth-subtitle {
  transform: translateX(-20%);
}
#current-rebirth-desc {
  padding-top:35px;
}
#current-rebirth {
  transform: translateX(-20%);
}
#current-rebirth-xp {
  color:lightblue;
}
#current-rebirth-gold {
  color:gold;
}
#current-rebirth-num {
  color:rgb(115,115,218);
}
#rebirth-description {
    font-size:17px;
    padding:10px;
    color:white;
    font-family:'Trebuchet MS';
}

#shop-container {
  background-color: rgba(30, 30, 30, 0.65);
  color: white;
  font-family:'Trebuchet MS';
  padding: 5px 20px 20px 20px;
  width: 60vw;
  z-index: 4;
  height:72vh;
  position: absolute;
  top: 45%;
  left: 50%;
  overflow:auto;
  transform: translate(-50%, -50%);
  user-select:none;
  border-radius:2px;
}
#shop-toggle {
  z-index:5;
}
.shop-tab {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: space-between;
  background-color:rgba(0, 0, 0, 0.4);
}

.shop-item {
  display: flex;
  position: relative;
  height:94px;
  margin: 10px;
  background-color: rgba(120,  120, 120, 0.4);
  border: 1px solid white;
  padding: 10px;
  border-radius:2px;

}
.ship-item {
  height:120px;
  margin: 10px;
  background-color: rgba(120,  120, 120, 0.4);
  border: 1px solid white;
  padding: 10px;
  border-radius:2px;
}

.shop-item .item-image {
  width: 70px; 
  height: 70px;
  object-fit: contain;
}
.red {
  color:red;
}
.green {
  color:rgb(0, 255, 0);
}

.item-description {
  flex-grow: 1;
  margin:5px;

}
.item-description {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin: 0px;
  padding-left: 20px;
  padding-right: 20px;
}

.bonus {
  color:rgb(0, 255, 0);
  margin: 0px;
  width:110px;
  font-size: 14px;
}

.negative {
  color: rgb(255,0,0);
  margin: 0px;
  width:80px;
  font-size: 14px;
}

.pet-name {
  flex-grow: 1;
  font-weight: bold;
  margin:5px;
}

.item-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  margin:10px;
}
.item-info img {
  width:20px;
  height:20px;
  margin:0;
}
.item-price {
  padding: 0;
  margin: 2px; 
  line-height: 1;
  display:inline;
  color: gold;
}
.price-container {
  align-items: flex-start;
  display: flex;
}

.item-levelreq {
  padding: 0;
  margin: 0;
  margin-top:5px;
  color:lightblue;
  line-height: 1;
}



.item-title {
  flex-grow: 1;
  margin:5px;
  width:60px;
  padding-left: 9px;
}
#coinDisplay {
  width:20px;
  height:20px;  
  display:inline;
}
#levelDisplay {
  color:lightblue;
  margin:4px;
}
#goldDisplay {
  color:gold;
  margin-left:4px;
}
#display-container {
  height:55px;
  padding:4px;
  border-radius: 2px;
  margin-top:8px;
  width:120px;
  background-color: #00000070;
}
.buy-button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0px;
  padding: 0px;
  margin-top: 10px;
}
.buy-button {
  margin-top: 10px;
  background-color: rgb(203, 143, 32);
  color: white;
  padding: 5px;
  width:70px;
  height:37px;
  cursor: pointer;
  border-radius: 2px;
  border: 0.5px solid black; 
  font-size: 15px;
  transition: background-color 0.3s ease;
}

.tab-button {
  background-color: rgba(0, 0, 0, 0.3);
  border: none;
  color: white;
  padding: 8px 15px;
  text-align: center;
  
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 20px 5px 0 0;
  cursor: pointer;
  border-radius: 2px 2px 0 0; /* This will create a button with rounded top corners */
  transition: background-color 0.3s;
}

.tab-button:hover {
  background-color: rgba(0, 0, 0, 0.5); /* This changes the background color when you hover over the button */
}

.tab-button.active {
  background-color: rgba(0, 0, 0, 0.5); /* This changes the background color for the active tab */
}

#shop-title {
  font-size:28px;
  padding:10px;
  font-family:'Trebuchet MS';
  position: absolute;
  left: 50%;
  top:25px;
  overflow:auto;
  transform: translate(-50%, -50%);
}
.close-button {
  position: absolute;
  top: 10px;
  display:block;
  right: 10px;
  width: 30px;
  height: 30px;
  font-size:25px;
  border-radius: 50%; /* makes the button circular */
  border: none; /* removes the default button border */
  font-weight: bold;
  cursor: pointer;
  color:white;
  background-color:transparent;
}
.rebirth-warning {
  font-size:17px;
  color:red;
  display:inline;
}
#rebirth-error {
  color:red;
  font-size: 16px;
  padding-top:40px;
}


#equip-best {
  position: absolute;
  width:100px;
  height:30px;
  right:80px;
  top:20px;
  background-color: transparent;

  color:gold;
  border:2px solid gold;
}

/* Increases the size of the 'X' when the button is hovered over */
.close-button:hover {
  transform: scale(1.1);
  color:red;
}
#shop-container::-webkit-scrollbar {
  width: 10px; /* width of the entire scrollbar */
}

#shop-container::-webkit-scrollbar-track {
  background: transparent; /* color of the tracking area */
}

#shop-container::-webkit-scrollbar-thumb {
  background: #888; /* color of the scroll thumb */
  border-radius: 10px; /* roundness of the scroll thumb */
}

#shop-container::-webkit-scrollbar-thumb:hover {
  background: #555; /* color of the scroll thumb when hovering */
}

/* This will style the scrollbar for Firefox */
#shop-container {
  scrollbar-width: thin; /* "auto" or "thin"  */
  scrollbar-color: #888 transparent; /* scroll thumb and track color */
}

.rare {
  color:gold
}

#equip-best:hover {
  color:white;
}
#rebirth-button:hover {
  filter:brightness(120%)
}

#friendsContainer {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: none;
  justify-content: flex-end;
  z-index: 3;
  font-size: 14px;
  align-items: flex-end;
  position:fixed;
  bottom: 5px;

  right:210px;
}

#menuOptions {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.btnTitle {
display:none;
color:white;
width:125px;
font-size:17px;
text-align:center;
}
#backBtn {
  margin-right: 0px;
  align-self: center;
  margin:0px;
  border:none;
  background-color:transparent;
  color:white;
  width:10px;
  padding:0;
  font-size: 22px;
  padding-left:5px;
  padding-right:20px;
}
.pwfBtn {
  padding: 5px;
  margin: 5px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width:80px;
  border: 1px solid black;
  color:white;
  background-color:rgba(0 , 120, 0, 0.7);
  font-size:16px;
}

#friendsMenu {
  position: fixed;
  user-select:none;
  background-color:transparent; /*00000070*/
  padding: 10px;
  border-radius: 2px;
}

.hidden {
  display: none;
}

#friendsMenu input {
  padding-top:5px;
  padding-bottom: 5px;
  margin-top: 3px;
  margin-left:4px;
  border-radius: 2px;
  width: 130px;
  text-align:center;
  border: 0.7px solid black;
  font-size:14px;
}
#playWithFriendsBtn {
  background-color:rgba(0 , 120, 0, 0.7); /*00000070*/
  width:150px;
  color:white;
  user-select: none;
}
#playWithFriendsBtn:hover {
  background-color: #4caf50;
  cursor:pointer;
}
.pwfBtn:hover {
  background-color: #4caf50;
  cursor:pointer;
}
#backBtn:hover {
  background-color: transparent;
  color: black;
}
#close-game-ui {
  color:white;
  font-weight: bold;
  font-size:15px;
  float:right;
  height:15px;
}
#close-game-ui:hover {
  color:red;
  cursor:pointer;
}
#game-ui {
  z-index:4;
  border-radius: 2px;
  position: fixed;
  right:50%;
  height:205px;
  border: 2px solid white;
  transform: translate(50%,-50%);
  background-color: #00000090;
  width:150px;
  padding: 0 10px 10px 10px;
  top:50%;
  user-select: none;
  display: none;
}
#game-ui h2 {
  font-size: 20px;
  clear:both;
  margin: 0;
  padding: 0;
  color: white;
  font-family: 'Trebuchet MS';
  text-align: center;
  margin-bottom: 5px;
}
#resetCharBtn {
  margin-top:35px;
}
#gear {
  width:20px;
  height:20px;
  display:inline;
  margin-right: 3px;
}
#optionsBtn {
  position:fixed;
  display: none;
  right: 4px;
  z-index: 5;
  background-color: grey;
  color:white;
  border: 2px solid black;
  transition: filter 0.3s ease;
  border-radius: 4px;
  padding:5px;
  user-select: none;
  bottom:208px;
}

#controlsBtn {
  margin-top:70px;
}

#controls-container {
  position: fixed;
  z-index: 5;
  background-color: #00000090;
  color:white;
  border: 2px solid white;
  transition: filter 0.3s ease;
  border-radius: 2px;
  padding:5px;
  user-select: none;
  display: none;
  width: 400px;
  right: 50%;
  transform: translate(50%,-50%);
  top:50%;

  height: 340px;
}

#close-controls {
  color:white;
  float:right;
  display:inline;
  font-weight: bold;
}
#close-controls:hover {
  color:red;
  font-weight: bold; 
}

#controls-container h2 {
  font-size:20px;
  clear:both;
  margin:0;
  color:rgb(147, 123, 255);
  font-weight: bold;
  font-family: 'Trebuchet MS';
}
#controls-container p {
  font-size:15px;
  margin:0;
  color:rgb(136, 173, 253);
  font-family: 'Trebuchet MS';
  
}
#controls-container span {
  font-size:15px;
  margin:0;
  color:white;
  font-weight: bold;
  font-family: 'Trebuchet MS';
}
.game-ui-btn {
  width:125px;
  position: fixed;
  border-radius: 2px;
  height:30px;
  color: white;
  background-color:green;
  border: 2px solid black;
  transition: filter 0.3s ease;
}
.game-ui-btn:hover {
  filter: brightness(50%);
}
#optionsBtn:hover {
  filter:brightness(150%);
  color:black;
}


#ship h2 {
  font-size: 17px;
  clear:both;
  margin: 0;
  margin-bottom: 5px;
  padding: 0;
  color: white;
  font-family: 'Trebuchet MS';
  text-align: center;
}
#ship form {
  margin:0;
}
#ship input {
  border-radius: 2px;
  margin-bottom: 10px;
  color:black;
  padding:5px;
  font-size: 15px;
}
#buy-ship-level {
  color:white;
  background-color: green;
  border-radius: 2px;  
  padding:5px 10px 5px 10px;
  margin-bottom:10px;
}
#buy-ship-level:hover {
  filter: brightness(150%);
}

#ship {
  text-align: center;
}
#submitShipName {
  background-color: green;
  padding:5px;
}
#submitShipName:hover {
  filter: brightness(150%);
  cursor:pointer;
}
.ship-coin-img {
  width: 20px;
  height: 20px;
  display: inline;
  margin-right: 3px;
  margin-left: 5px;
}

#change-name-price {
  color:gold;
}
.shipError {
  color:red;
  margin:0;
  height:2px;
  margin-top:-5px;
  font-size: 12px;
}


#vote-kick-container {
  display:none;
  position: fixed;
  z-index:4;
  top: 10px;
  left:50%;
  transform: translateX(-50%);
  width:40%;
  max-width:300px;
  height:50px;
  background-color: #00000050;
  border-radius:4px;
  align-items: center; 
  justify-content: space-between;
  padding: 0 10px;
  user-select: none;
}

#vote-kick-container img {
  width:20px;
  margin:1px;
  height:20px;
  display: inline;
}

.vote-kick-info-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100px;
}

#crosses {
  color:red;
  font-size: 15px;
  font-family: 'Trebuchet MS';
}
#ticks {
  color:green;
  font-size: 15px;
  font-family: 'Trebuchet MS';
}
#vote-kick-name {
  color:white;
  font-size: 13px;
  font-family: 'Trebuchet MS';
  display: inline;
  margin: 0; 
}
.vote:hover {
  cursor: pointer;
  background-color: lightblue;
}
.vote {
  display:inline;
  border-radius: 4px;
}

#vote-kick-amount {
  color:white;
  font-size: 10px;
  font-family: 'Trebuchet MS';
  display: inline;
  margin: 0; 
}

#voteKickBtn {
  margin-top:105px;
}

#vote-kick-select-container {
  display:none;
  width:30%;
  height:50%;
  position: fixed;
  background-color: #00000050;
  border-radius: 4px;
  border: 2px solid white;
  transform: translate(-50%, -50%);
  left:50%;
  top:50%;
  text-align: center;
  user-select: none;
  overflow: auto;
  padding:2px;
  z-index:4;

}
#select-title {
  color:white;
  font-size: 20px;
  font-family: 'Trebuchet MS';
  margin:0;
  padding:0;
}
.player-box {
  background-color: #ffffff50;
  border-radius: 3px;
  padding: 5px;
  margin: 10px;
  color: white;
  cursor: pointer; 
}
.player-box:hover {
  background-color: #ffffff70;
  color:red;
}
#vote-kick-select-container::-webkit-scrollbar {
  width: 8px;
}

#vote-kick-select-container::-webkit-scrollbar-track {
  background: #393b3d;
  border-radius: 10px;
}

#vote-kick-select-container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

#vote-kick-select-container::-webkit-scrollbar-thumb:hover {
  background: #555;
}

#close-vote-kick-select {
  color:red;
  display:block;
  font-weight:bold;
  float:right;
  margin:4px;
  margin-top:0;
}
#close-vote-kick-select:hover {
  color:white;
  cursor:pointer;
}

.minimap {
  position: fixed;
  display:none;
  width: 200px;
  height: 200px;
  right:1.4px;
  bottom:1px;
  z-index: 5;
  /*background-color: #5f9bea;*/
  /*border: 1.25px solid #d4af37;*/
  background-color: #00000050;
  user-select: none;
  border-radius: 4px;
}
.ghost {
  background-color:white;
}
.island, .ship, .playerShip {
  position: absolute;
  border-radius: 50%;
  transform-origin: center;
}

.island {
  width: 9px;
  height: 9px;
  background-color: #d4af37;
  
}

.playerArrow {
  width:12px;
  height: 12px;
  position: absolute;
  display:none;
  z-index: 6;
  transform-origin: center;
}

.ship {
  width: 8px;
  height: 8px;
  background-color: #ff0000;
}

.playerShip {
  width: 8px;
  height: 8px;
  background-color: #00ff00;
}

#floating-text-container {
  z-index: 5;
  pointer-events: none;
  display: none;
}

.floating-text {
  position: fixed;
  animation: floatUp 3s linear;
  font-size: 24px;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  opacity: 1;
  max-width: 90%;
  text-align: center;
  white-space: nowrap;
  left: 50%;
  top: 20%;
}

@keyframes floatUp {
  0% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -100px);
    opacity: 0;
  }
}

#reconnection-ui {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    z-index: 1000;
}

.reconnection-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.reconnection-content h2 {
    color: white;
    margin: 0;
    font-size: 24px;
    font-family: 'Trebuchet MS';
}

.reconnection-dots {
    display: flex;
    gap: 10px;
}

.reconnection-dots .dot {
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 50%;
    animation: dotPulse 1.5s infinite;
}

.reconnection-dots .dot:nth-child(2) {
    animation-delay: 0.5s;
}

.reconnection-dots .dot:nth-child(3) {
    animation-delay: 1s;
}

.reconnection-attempts {
    color: white;
    margin: 0;
    font-size: 16px;
    font-family: 'Trebuchet MS';
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}
