body {
      font-family: sans-serif;
      color: #fff;
      margin: 0;
      padding: 0;
      overflow: hidden;
}

.chat {
      position: absolute;
      top: 0;
      left: 35px;
      width: 300px;
      z-index: 100;
}

input {
      width: 70%;
      padding: 10px;
      border: none;
      outline: none;
      border-bottom: 1px solid #ccc;
      box-sizing: border-box;
}

#send-btn {
      width: 30%;
      padding: 10px;
      border: none;
      background-color: #dd361c;
      color: #fff;
      border-radius: 0 8px 8px 0;
      cursor: pointer;
}

#send-btn:hover {
      background-color:  #dd361ce0;
}

.messages {
      max-height: 200px;
      overflow-y: auto;
      padding-top: 10px;
      color: #fff;
      white-space: pre-wrap;
}

#np {
      border-radius: 200px;
      width: 110px !important;
      height: 110px !important;
      right: unset !important;
      left: 45%;
      background-color: rgb(115 107 107 / 50%) !important;
}

.display-none,
.a-enter-vr-button,
.a-enter-ar-button,
.a-enter-ar {
      display: none;
}

/* Name Input Styles */
.name-input {
      z-index: 100;
      bottom: 24px;
      left: 48px;
      position: fixed;
}

.name-input h3 {
      color: #fff;
      user-select: none;
}

/* Chat form styles */
.chat form div {
      display: flex;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
      body {
            overflow: hidden;
      }
      
      /* Chat positioned at bottom in mobile */
      .chat {
            position: fixed;
            left: 0;
            right: 0;
            top: 0;
            width: 40%;
            background: rgba(6, 31, 74, 0.95);
            backdrop-filter: blur(10px);
            padding: 10px;
            box-sizing: border-box;
            z-index: 1000;
            border-radius: 0 0 10px 10px;
      }
      
      .chat h3 {
            font-size: 14px;
            margin: 0 0 8px 0;
            text-align: center;
            color: #fff;
      }
      
      .chat form div {
            flex-direction: column;
            gap: 8px;
      }
      
      .chat input {
            width: 100%;
            padding: 12px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.9);
            color: #333;
            font-size: 16px;
      }
      
      #send-btn {
            width: 100%;
            padding: 12px;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
      }
      
      .messages {
            max-height: 120px;
            margin-bottom: 8px;
            padding: 8px;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 8px;
            font-size: 14px;
      }
      
      /* Joystick positioning for mobile */
      #np {
            position: fixed !important;
            bottom: 50px !important;
            left: 50% !important;
            right: unset !important;
            top: unset !important;
            transform: translateX(-80%) !important;
            width: 70px !important;
            height: 70px !important;
            z-index: 999;
            background-color: rgba(6, 31, 74, 0.9) !important;
            border-radius: 50%;
            backdrop-filter: blur(5px);
            box-shadow: 0 4px 15px rgba(2, 191, 231, 0.3);
            color: transparent;
      }
      
      /* Joystick text styling to prevent overflow */
      #np::before {
            position: absolute;
            bottom: -25px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 10px;
            font-weight: 600;
            white-space: nowrap;
            text-align: center;
            background: rgba(6, 31, 74, 0.8);
            padding: 2px 6px;
            border-radius: 4px;
            backdrop-filter: blur(3px);
      }
      
      /* Name input positioning for mobile */
      .name-input {
            position: fixed;
            top: 20px;
            right: 20px;
            left: unset;
            bottom: unset;
            background: rgba(6, 31, 74, 0.9);
            padding: 10px;
            border-radius: 8px;
            backdrop-filter: blur(5px);
            z-index: 998;
      }
      
      .name-input h3 {
            font-size: 12px;
            margin: 0 0 5px 0;
            text-align: center;
      }
      
      .name-input input {
            width: 120px;
            padding: 6px;
            font-size: 12px;
            border-radius: 4px;
            border: 1px solid #ccc;
            background: rgba(255, 255, 255, 0.9);
            color: #333;
      }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
      .chat {
            padding: 8px;
      }
      
      .chat h3 {
            font-size: 12px;
      }
      
      .chat input {
            padding: 10px;
            font-size: 14px;
      }
      
      #send-btn {
            padding: 10px;
            font-size: 14px;
      }
      
      .messages {
            max-height: 100px;
            font-size: 12px;
      }
      
      #np {
            width: 60px !important;
            height: 60px !important;
            bottom: 110px !important;
      }
      
      .name-input {
            top: 15px;
            right: 15px;
            padding: 8px;
      }
      
      .name-input h3 {
            font-size: 11px;
      }
      
      .name-input input {
            width: 100px;
            padding: 5px;
            font-size: 11px;
      }
      
      /* Smaller text for joystick on extra small screens */
      #np::before {
            font-size: 9px;
            bottom: -20px;
            padding: 1px 4px;
      }
}
