:root {
  --mainColor: #ff004e;
  --backgroundColor: rgb(18, 18, 17);
  --secondaryColor: #121211f5;
  --textColor: #FFFFFF;
  --borderColor: #121211e6;
}

body {
  margin: 0;
  font-family: Montserrat !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100vh;
  background: none !important;
  overflow: hidden !important;
  user-select: none;
}

#root {
  height: 100%;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
}

::-webkit-scrollbar {
  display: none;
}

p {
  margin: 0;
  padding: 0;
  font-family: Montserrat;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.MuiMenuItem-root > div > p {
  padding: 0 !important;
}

.MuiMenu-list {
  min-width: 180px;
  background-color: #121211;
  color: var(--textColor);
  padding: 4px;
  border: 1px solid var(--borderColor);
  border-radius: 4px;
  font-size: 14px !important;
}

.MuiMenuItem-gutters {
  padding: 4px 12px !important;
  font-size: 14px !important;
}

.tooltip-description {
  padding-top: 4px;
}

.tooltip-markdown > p {
  margin: 0;
}

button:active {
  transform: translateY(1px);
}

.item-drag-preview {
  width: 6.5vh;
  height: 6.5vh;
  z-index: 1;
  position: fixed;
  pointer-events: none;
  top: 0;
  left: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 6vh;
  image-rendering: -webkit-optimize-contrast;
  filter: brightness(1.1);
}

.inventory-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  height: 100%;
  gap: 15px;
  background-color: #1212127d;
}

.inventory-control {
  display: flex;
}

.inventory-control .inventory-control-wrapper {
  display: flex;
  flex-direction: column;
  gap: 15px;
  justify-content: center;
  align-items: center;
}

.inventory-control .inventory-control-input {
  transition: 0.2s;
  padding: 12px 8px;
  border-radius: 4px;
  font-family: Montserrat;
  font-size: 14px;
  text-align: center;
  outline: none;
  border: none;
  color: var(--textColor);
  border: 1px solid var(--borderColor);
  background-color: var(--backgroundColor);
}

.inventory-control .inventory-control-input:focus-within {
  background-color: var(--backgroundColor);
}

.inventory-control .inventory-control-button {
  font-size: 13px;
  color: var(--textColor);
  background-color: var(--backgroundColor);
  transition: 0.2s;
  padding: 10px 8px;
  border-radius: 4px;
  border: 1px solid var(--borderColor);
  text-transform: uppercase;
  font-family: Montserrat;
  width: 100%;
  font-weight: 500;
}

.inventory-control .inventory-control-button:hover {
  background-color: var(--backgroundColor);
}

.useful-controls-dialog {
  font-size: 15px;
}

.useful-controls-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.useful-controls-button {
  position: absolute !important;
  bottom: 20px;
  right: 20px;
  transition: 0.2s !important;
  border-radius: 4px !important;
  background-color: var(--backgroundColor) !important;
}

.useful-controls-button:hover {
  background-color: var(--backgroundColor) !important;
}

.useful-controls-exit-button {
  position: absolute !important;
  right: 6px;
  top: 6px;
  border-radius: 2px !important;
  color: gray !important;
}

.MuiDialogContent-root,
.MuiDialogTitle-root,
.MuiDialogActions-root {
  background-color: #121211;
  color: var(--textColor);
}

.inventory-grid-wrapper {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.inventory-grid-header-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.inventory-grid-header-wrapper p {
  font-weight: 500;
  font-size: 14px;
}

.inventory-grid-container {
  display: grid;
  height: calc(58vh + 12px);
  grid-template-columns: repeat(5, 10.5vh);
  grid-auto-rows: 10.7vh;
  gap: 2px;
  overflow-y: scroll;
}

.inventory-grid-box {
  background-color: var(--backgroundColor);
  border-radius: 4px;
  border: 1px solid var(--borderColor);
  padding: 15px;
}

.inventory-slot,
.item-notification-item-box,
.hotbar-item-slot {
  background-color: var(--backgroundColor);
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 4px;
  padding: 4px;
  image-rendering: -webkit-optimize-contrast;
  position: relative;
  background-size: 6vh;
  color: var(--textColor);
  border: 1px solid var(--borderColor);
}

.inventory-slot-label-box {
  color: var(--textColor);
  text-align: center;
  border-bottom-left-radius: 0.2vh;
  border-bottom-right-radius: 0.2vh;
}

.inventory-slot-label-text {
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 2px 3px;
  font-family: Montserrat;
  font-size: 13px;
  font-weight: 500;
}

.inventory-slot-number {
  font-weight: 700;
  color: var(--textColor);
  height: 10px;
  border-top-left-radius: 0.2vh;
  border-bottom-right-radius: 0.2vh;
  padding: 2px;
  font-size: 10px;
  font-family: Montserrat;
}

.item-slot-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.item-slot-wrapper p {
  font-size: 11px;
}

.item-slot-header-wrapper,
.item-hotslot-header-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
}

.item-hotslot-header-wrapper {
  justify-content: space-between !important;
}

.item-slot-info-wrapper {
  display: flex;
  flex-direction: row;
  align-self: flex-end;
  padding: 2px;
  gap: 2px;
}

.item-slot-info-wrapper p {
  font-size: 11px;
}

.item-slot-currency-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  padding-right: 2px;
}

.item-slot-currency-wrapper p {
  font-size: 12px;
  text-shadow: 0.1vh 0.1vh 0 rgba(0, 0, 0, 0.7);
}

.item-slot-price-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  padding-right: 2px;
}

.item-slot-price-wrapper p {
  font-size: 12px;
  text-shadow: 0.1vh 0.1vh 0 rgba(0, 0, 0, 0.7);
}

.MuiTooltip-tooltip {
  background-color: #121211 !important;
  min-width: 180px !important;
  color: var(--textColor) !important;
  font-family: Montserrat !important;
  border-radius: 3px !important;
  border: 1px solid var(--borderColor) !important;
}

.tooltip-wrapper {
  display: flex;
  flex-direction: column;
}

.tooltip-wrapper p {
  font-size: 12px;
  font-weight: 400;
}

.tooltip-header-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.tooltip-header-wrapper p {
  font-size: 13px;
  font-weight: 400;
}

.tooltip-crafting-duration {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.tooltip-crafting-duration svg {
  padding-right: 3px;
}

.tooltip-crafting-duration p {
  font-size: 12px;
}

.tooltip-ingredients {
  padding-top: 4px;
}

.tooltip-ingredient {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.tooltip-ingredient img {
  width: 24px;
  height: 24px;
  padding-right: 4px;
}

.hotbar-container {
  display: flex;
  align-items: center;
  gap: 2px;
  justify-content: center;
  width: 100%;
  position: absolute;
  bottom: 1.5vh;
}

.hotbar-item-slot {
  width: 10.5vh;
  height: 10.5vh;
}

.hotbar-slot-header-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.item-notification-container {
  display: flex;
  overflow-x: scroll;
  flex-wrap: nowrap;
  gap: 2px;
  position: absolute;
  bottom: 16vh;
  left: 50%;
  width: 100%;
  margin-left: calc(50% - 5.25vh);
  transform: translate(-50%);
}

.item-notification-action-box {
  width: 100%;
  color: var(--textColor);
  background-color: var(--backgroundColor);
  text-transform: uppercase;
  text-align: center;
  border-top-left-radius: 0.2vh;
  border-top-right-radius: 0.2vh;
  font-family: Montserrat;
}

.item-notification-action-box p {
  font-size: 12px;
  padding: 4px;
  font-weight: 600;
}

.item-notification-item-box {
  height: 10vh;
  width: 10vh;
}

.durability-bar {
  background: rgba(0, 0, 0, 0.5);
  height: 2px;
  overflow: hidden;
}

.weight-bar {
  margin-top: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px inset rgba(0, 0, 0, 0.1);
  height: 0.6vh;
  border-radius: 3px;
  overflow: hidden;
}

/* New styles for context menu buttons */
.context-menu-buttons {
  position: absolute;
  bottom: 2vh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  gap: 1vh;
  z-index: 10;
}

.context-menu-button {
  font-size: 13px;
  color: var(--textColor);
  background-color: var(--backgroundColor);
  transition: 0.2s;
  padding: 10px 8px;
  border-radius: 4px;
  border: 1px solid var(--borderColor);
  text-transform: uppercase;
  font-family: Montserrat;
  width: 100px;
  font-weight: 500;
  text-align: center;
}

.context-menu-button:hover {
  background-color: var(--secondaryColor);
}