@font-face {
  font-family: "geist-mono";
  src: url("fonts/GeistMono-Regular.otf");
  font-weight: normal;
}

@font-face {
  font-family: "geist-mono";
  src: url("fonts/GeistMono-Bold.otf");
  font-weight: bold;
}

@font-face {
  font-family: "geist-mono";
  src: url("fonts/GeistMono-SemiBold.otf");
  font-weight: 600;
}

@font-face {
  font-family: "geist-mono";
  src: url("fonts/GeistMono-Medium.otf");
  font-weight: 500;
}

@font-face {
  font-family: "geist-mono";
  src: url("fonts/GeistMono-Light.otf");
  font-weight: 300;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "geist-mono", monospace;
  color: #ededed;
}

body {
  background-color: #000;
}

.app-container {
  /* max width of 600px but adopt to screen size for small screens */
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
}

.button {
  padding: 10px;
  outline: 1px solid #ededed;
  border: none;
  background-color: transparent;
  cursor: pointer;
}

.page-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
}

.matrice-container {
}

.matrice-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
}

.matrice {
  display: flex;
}

.matrice-input {
  width: 100%;
  border: none;
  background-color: #000;
  color: #ededed;
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  outline: 1px solid #ededed;
  aspect-ratio: 1/1;
}

.matrice-input::-webkit-outer-spin-button,
.matrice-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.matrice-input[type="number"] {
  -moz-appearance: textfield;
}

.add-or-remove-row {
  display: grid;
  grid-template-rows: 1fr 1fr;
}

.add-row,
.remove-row {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  outline: 1px solid #ededed;
  border: none;
  background-color: transparent;
  cursor: pointer;
  line-height: 8px;
}

.add-or-remove-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.add-column,
.remove-column {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  outline: 1px solid #ededed;
  border: none;
  background-color: transparent;
  cursor: pointer;
  line-height: 8px;
}

.choose-operation-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
}

.choose-operation {
  margin: 20px 0;
}

.operation-select {
  width: 100%;
  background-color: transparent;
  padding: 5px 10px;
  border: 1px solid #ededed;
}

.operation-select option {
  background-color: #000;
  color: #ededed;
  border: none;
}

.calculate-button {
  width: 100%;
  margin-top: 20px;
}

.result-container {
  margin-top: 20px;
}

.result-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
}

.error-message {
  color: #ff0000;
}

.result .matrice-row {
  display: flex;
}

.result .matrice-col {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  border: none;
  background-color: #000;
  color: #ededed;
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  outline: 1px solid #ededed;
  aspect-ratio: 1/1;
}
