html {
  font-family: 'Manrope', sans-serif;
  height: 100%;
}

body {
  background-color: #1c1c1c;
  color: white;
  margin: 0;
  padding: 0;
  height: 100%;
}

body.hide-scroll {
  overflow: hidden;
}

#app,
#content-container {
  height: 100%;
}

#tf2-container {
  height: 100%;
}

#tf2-data-textarea {
  background-color: #2c2c2c;
  border: 1px solid #6cb0d2;
  color: white;
  width: 100%;
  box-sizing: border-box;
  padding: 16px;
  font-size: 14px;
  height: inherit;
  outline: none;
  resize: none;
  display: block; /* else it gives body a scroll */
}

#change-game-container {
  position: fixed;
  z-index: 1;
  top: 0;
  right: 0;
}

#save-btn-container {
  position: fixed;
  z-index: 1;
  bottom: 0;
  right: 12%;
  display: flex;
  gap: 8px;
}

#cs-calculator-btn {
  background-color: #1b96bc;
  color: white;
  padding: 0px 14px;
  font-size: 15px;
  border-radius: 4px 4px 0px 0px;
  border: 1px solid white;
  border-bottom: none;
  display: flex;
  align-items: center;
  height: 34px;
}

#cs-calculator-btn:hover {
  background-color: #1784a5;
  cursor: pointer;
}

#save-btn {
  background-color: #178f19;
  color: white;
  padding: 0px 14px;
  font-size: 15px;
  border-radius: 4px 4px 0px 0px;
  border: 1px solid white;
  border-bottom: none;
  display: flex;
  align-items: center;
  height: 34px;
}

#save-btn:hover {
  background-color: #168918;
  cursor: pointer;
}

#save-btn.save-success {
  background-color: #1d56ac;
}

#saved-icon {
  position: relative;
  top: 2px;
}

#cs-header {
  display: flex;
  justify-content: center;
  gap: 16px;
  position: sticky;
  top: 0;
  background-color: #3870d1;
  padding: 8px 0;
  margin-bottom: 10px;
  z-index: 1;
}

#cs-body {
  padding-bottom: 40px;
}

.cs-table-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  /* margin-bottom: 6px; */
  padding: 6px 0;
}

.cs-table-row:hover {
  background-color: #005cb3;
}

.cs-table-header,
.cs-table-cell {
  width: 90px;
  text-align: center;
}

.cs-table-cell input {
  width: inherit;
  background-color: #3d3d3d;
  border: 1px solid #d2e2ff;
  border-radius: 4px;
  color: white;
  padding: 4px 6px;
  box-sizing: border-box;
}

.cs-table-cell select {
  height: 100%;
  background-color: #3d3d3d;
  border: 1px solid #d2e2ff;
  border-radius: 4px;
  color: white;
}

/* item name column */
.cs-table-header:nth-child(1),
.cs-table-cell:nth-child(1) {
  width: 300px;
}

.cs-table-cell:nth-child(1) {
  position: relative;
}

/* comment column */
.cs-table-header:nth-child(5),
.cs-table-cell:nth-child(5) {
  width: 200px;
}

/* buy/sell places columns */
.cs-table-header:nth-child(3),
.cs-table-cell:nth-child(3),
.cs-table-header:nth-child(7),
.cs-table-cell:nth-child(7) {
  width: 100px;
}

#cs-add-row-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

#cs-add-row-btn {
  background-color: #3870d1;
  padding: 8px 0;
  text-align: center;
  width: 1384px;
  border-radius: 4px;
}

#cs-add-row-btn:hover {
  cursor: pointer;
  background-color: #2f5eaf;
}

.cs-calculator-container {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  background-color: rgb(0 0 0 / 50%);
  z-index: 2;
}

.cs-calculator-modal {
  background-color: #353434;
  padding: 30px 40px;
  border: 1px solid white;
  border-radius: 6px;
}

.cs-calculator {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.cs-calculator-row:not(:last-of-type) {
  margin-bottom: 6px;
}

.cs-calculator-field {
  background-color: #4e4f4e;
  border: 1px solid #d2e2ff;
  border-radius: 4px;
  color: white;
  padding: 4px 6px;
  margin-left: 6px;
  width: 66px;
  height: 26px;
  box-sizing: border-box;
}

.cs-calculator-field::-webkit-outer-spin-button,
.cs-calculator-field::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cs-calculator select {
  background-color: #4e4f4e;
  border: 1px solid #d2e2ff;
  border-radius: 4px;
  color: white;
  height: 26px;
  box-sizing: border-box;
}

.cs-calculator-label {
  width: 80px;
  display: inline-block;
}

.cs-table-pre {
  position: absolute;
  left: -52px;
  padding: 4px;
  width: 42px;
  display: flex;
  justify-content: end;
}

.cs-delete-item {
  margin-right: 20px;
  display: none;
}

.cs-delete-item:hover {
  cursor: pointer;
  color: #ff1818;
}

.cs-table-row:hover .cs-delete-item {
  display: inline;
}

.cs-calculate-item:hover {
  cursor: pointer;
  color: #7ad7f3;
}
