@font-face {
  font-family: "Athletics";
  src: url("../fonts/Athletics\ Regular.otf");
  font-weight: 400;
}

@font-face {
  font-family: "Jetbrains Mono";
  src: url("../fonts/JetBrainsMono-Regular.ttf");
  font-weight: 400;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #121418;
}

.interface {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 95vw;
  height: 100vh;
  margin: auto;
}

.interface .menu-bar {
  display: flex;
  justify-content: space-between;
  height: 56px;
  align-items: center;
  gap: 8px;
}

.tab {
  color: grey;
}

.tab.active {
  color: white;
}

.tab,
.btn {
  display: block;
  font-family: "Athletics";
  text-decoration: none;
}

.interface .menu-bar .files-menu,
.refactorings-menu {
  display: flex;
  gap: 44px;
  width: calc(95vw / 2);
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 40px;
  color: white;
  border: 2px solid white;
  border-radius: 20px;
}

.operations-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.operations-bar .operations {
  display: flex;
  gap: 8px;
  align-items: center;
}

.panes {
  flex-grow: 1;
  display: flex;
  gap: 8px;
}

.editor {
  font-family: "Jetbrains Mono";
  font-size: 16px;
  width: calc(95vw / 2);
  height: calc(100vh - 80px - 56px);
  background-color: #1d2432;
  color: white;
  padding: 20px;
  overflow: auto;
  resize: none;
  border: none;
  font-family: "Jetbrains Mono";
  /* disable wrapping of text on new lines */
  overflow-wrap: normal;
}

.editor:focus {
  outline: none;
}

.variables-pane {
  width: calc(95vw / 2);
  height: calc(100vh - 80px - 56px);
  background-color: #1d2432;
  padding: 20px;
  overflow: auto;
}

.settings-popup {
  font-family: "Athletics";
  width: 1000px;
  height: 500px;
  background-color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 10px 10px 20px 20px;
  overflow: auto;
}

.option {
  padding: 20px 16px;
  display: flex;
  gap: 8px;
}

.close-button {
  width: 20px;
  height: 20px;
  background: none;
  border: none;
  margin-left: auto;
  display: block;
  border-radius: 10px;
}

.close-button:hover {
  color: white;
  background-color: red;
}

.variables-pane {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.variable {
  width: 100%;
  display: flex;
  gap: 8px;
}

.variable .value,
.variable .name {
  flex-grow: 1;
  padding: 10px;
  font-family: "Athletics";
  border: none;
  font-size: 16px;
}

@media screen and (max-width: 1100px) {
  .settings-popup {
    width: 95vw;
  }

  .interface .menu-bar .files-menu,
  .refactorings-menu {
    gap: 12px;
  }
}

@media screen and (max-width: 720px) {
  a,
  p,
  .editor {
    font-size: 14px;
  }

  a.btn {
    width: 88px;
    height: 32px;
  }
}
