.logo {
  width: 330px;
}

.player-inputs {
  display: flex;
  justify-content: center;
  gap: 5px;
}

.form-control {
  font-family: 'Ubuntu';
  font-weight: 600;
  color: #464646;
  text-align: center;
  border-radius: 15px;
  border-width: 2px;
  border-style: solid;
  border-color: #000000;
  padding: 10px 10px;
  background-image: linear-gradient(to bottom, #ffffff 70%, #ececec 50%);
}

.input-nickname {
  width: 50%;
}

.input-tag {
  width: 20%;
}

.buttons-group {
  display: flex;
  gap: 10px;
}

.button {
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  color: white;
  border-radius: 8px;
  border-width: 2px;
  border-style: solid;
  border-color: #000000;
  cursor: pointer;
  padding: 8px 10px;
  -webkit-text-stroke: black;
  -webkit-text-stroke-width: 1px;
  letter-spacing: -1px;
}

.button i {
  font-size: 20px;
}

.gallery-button {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  line-height: 70px;
  padding: 0;
  background-image: linear-gradient(to bottom, #e74646 70%, #d04040 50%);
}

.gallery-button .plus {
  width: 20px;
  height: 20px;
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);

  border-color: #000000;
  border-width: 1px;
  border-style: solid;
  border-radius: 50%;

  background-image: url('https://scrux.io/plus.8976a56d.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.gallery-button:hover {
  background-image: linear-gradient(to bottom, #f06363 70%, #e65a5a 50%);
}

.play-button {
  width: 200px;
  background-image: linear-gradient(to bottom, #7ce746 70%, #71d040 50%);
}

.play-button:hover {
  background-image: linear-gradient(to bottom, #9ef867 70%, #8bdb5a 50%);
}

.spectate-button {
  background-image: linear-gradient(to bottom, #F5B700 70%, #e2ac0e 50%);
}

.spectate-button:hover {
  background-image: linear-gradient(to bottom, #ffce3d 70%, #efc444 50%);
}

.settings-button {
  background-image: linear-gradient(to bottom, #333333 70%, #272727 50%);
}

.settings-button:hover {
  background-image: linear-gradient(to bottom, #555555 70%, #444444 50%);
}

.restart-button {
  background-image: linear-gradient(to bottom, #008bf8 70%, #0b7dd6 50%);
}

.restart-button:hover {
  background-image: linear-gradient(to bottom, #56b5ff 70%, #45acfd 50%);
}

.server-select {
  display: flex;
  gap: 10px;
}

.server-select-input {
  width: 250px;
  font-family: 'Ubuntu';
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  color: #FFFFFF;
  padding: 12px 10px;
  background-color: #4b4b4b;
  border: 1px solid #646464;
  border-radius: 8px;
  border-width: 2px;
  border-style: solid;
  border-color: #000000;
  cursor: pointer;
  -webkit-text-stroke: black;
  -webkit-text-stroke-width: 1px;
  letter-spacing: -1px;
  background-image: linear-gradient(to bottom, #333333 70%, #272727 50%);
  outline: none;
  box-shadow: none;
}

/* Game Chat Container Styles */
.chat-container {
  position: fixed;
  bottom: 35px;
  left: 10px;
  width: 280px;
  height: 300px;
  background: rgba(15, 15, 20, 0.85);
  backdrop-filter: blur(8px);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1000;
  font-family: 'Roboto Mono', 'Consolas', monospace;
  transition: opacity 0.2s ease;
}

.chat-resize-handle {
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 20px;
  cursor: nesw-resize;
  z-index: 10;
}

.chat-resize-handle::after {
  content: '';
  position: absolute;
  top: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-right: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid rgba(255, 255, 255, 0.3);
}

.chat-resize-handle:hover::after {
  border-right-color: rgba(255, 255, 255, 0.6);
  border-top-color: rgba(255, 255, 255, 0.6);
}



.chat-toggle {
  background: none;
  border: none;
  color: #aaa;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.chat-toggle:hover {
  color: #fff;
}

.messages-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 10px;
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
}

.messages-container::-webkit-scrollbar {
  width: 4px;
}

.messages-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.messages-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}

.messages-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

.message {
  padding: 2px 0;
  word-wrap: break-word;
  animation: fadeSlideIn 0.15s ease;
  font-size: 13px;
  line-height: 1.4;
  color: #e0e0e0;
  font-family: 'Roboto Mono', monospace;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateX(-3px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.message-time {
  color: #666;
  font-size: 9px;
  margin-right: 4px;
}

.message-nickname {
  font-weight: 600;
  margin-right: 4px;
  font-size: 11px;
}

.message-nickname.system {
  color: #ffd700;
}

.message-nickname.player {
  color: #4fc3f7;
}

.message-nickname.enemy {
  color: #ef5350;
}

.message-nickname.team {
  color: #66bb6a;
}

.message-text {
  color: #e0e0e0;
}

.input-container {
  padding: 8px;
  background: rgba(20, 20, 28, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.message-input {
  width: 100%;
  padding: 6px 10px;
  background: rgba(30, 30, 40, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  font-size: 11px;
  font-family: 'Roboto Mono', monospace;
  color: #fff;
  outline: none;
  transition: all 0.2s ease;
}

.message-input::placeholder {
  color: #666;
}

.message-input:focus {
  border-color: #4fc3f7;
  background: rgba(30, 30, 40, 0.95);
  box-shadow: 0 0 0 2px rgba(79, 195, 247, 0.2);
}



/* Responsive Design */
@media (max-width: 768px) {
  .chat-container {
    width: 280px;
    height: 200px;
    bottom: 8px;
    left: 8px;
  }

  .message {
    font-size: 10px;
  }

  .message-input {
    font-size: 10px;
  }

  .send-button {
    padding: 6px 10px;
    font-size: 9px;
  }
}

@media (max-width: 480px) {
  .chat-container {
    width: 240px;
    height: 180px;
    bottom: 5px;
    left: 2px;
  }


  .message {
    font-size: 9px;
  }

  .message-input {
    font-size: 9px;
    padding: 5px 8px;
  }

  .send-button {
    padding: 5px 8px;
    font-size: 8px;
  }
}

/* Hide on very small screens to not interfere */
@media (max-width: 360px) {
  .chat-container {
    opacity: 0.7;
  }
}