:root {
  color-scheme: light;
}
/* @import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;600&display=swap'); */

@font-face {
  font-family: "Campton";
  src: url("../campton/Campton-Book.otf");
  font-style: normal;
  font-weight: 400;
}
@font-face {
  font-family: "Campton";
  src: url("../campton/Campton-Medium.otf");
  font-style: bold;
  font-weight: 500;
}

* {
  font-family: "Campton", sans-serif;
  font-weight: 400;
  /* font-family: 'Nunito Sans', sans-serif; */
}

.logo-font {
  font-family: "Campton", sans-serif;
  font-weight: 500;
}

.f-h {
  display: flex;
  flex-direction: row;
}

.f-V {
  display: flex;
  flex-direction: column;
}

.topnav {
  width: 100%;
  height: 164px;
  background: linear-gradient(90deg, #7764e8 31.25%, #54cd9a 79.17%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.topnav-elements {
  margin-left: 80px;
  margin-right: 80px;
  position: relative;
  width: 100%;
  max-width: 1560px;
  height: 100%;
}
.file-space-container {
  position: absolute;
  width: 100%;
  bottom: 0px;
}

.file-card {
  all: unset;
  margin-right: 20px;
  color: #ffffffb5;
  background-color: #ffffff18;
  border-radius: 10px 10px 0px 0px;
  font-size: 16px;
  height: 30px;
  padding: 10px;
  display: flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  cursor: pointer;

  position: relative;
}

.file-card:disabled {
  cursor: not-allowed;
  /* opacity: 0.5; */
}
.file-card::before {
  content: "●";
  font-size: 18px;
  /* -webkit-text-stroke-width: 1px; */
  -webkit-text-stroke-color: #ffffff;
  padding: 5px;
}

.file-number-0::before {
  color: rgb(48, 255, 25);
}
.file-number-1::before {
  color: rgb(255, 248, 58);
}
.file-number-2::before {
  color: rgb(204, 108, 255);
}
.file-number-3::before {
  color: rgb(255, 57, 225);
}
.file-number-4::before {
  color: rgb(254, 91, 91);
}
.file-number-5::before {
  color: rgb(255, 255, 255);
}


.file-card:hover {
  color: #ffffff;
}
.file-card.file-selected:hover {
  color: #131313;
  opacity: 1;
}

.file-selected {
  box-shadow: inset 0px -3px 0px #ffffff;
  color: #383838;
  background-color: rgb(255 255 255);
}

.file-loading {
  /* animation: file-loading-kf 100ms infinite alternate ease-in; */
  color: #ffffffb4;
}

@keyframes file-loading-kf {
  from {
    box-shadow: inset 0px -3px 0px #ffc105;
  }
  to {
    box-shadow: inset 0px -3px 0px #ffc10500;
  }
}

.logo {
  color: #ffffff;
  font-size: 32px;
  font-weight: 600;
  top: 35px;
  position: absolute;
}
.conn-diss-container {
  position: absolute;
  display: flex;
  justify-content: right;
  top: 38px;
  right: 0px;
  width: 200px;
  height: 43px;
}

.disc-button {
  color: #ffffff;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border: 1px solid #dbdbdb;
  box-sizing: border-box;
  border-radius: 12px;
  padding: 17px;
  padding-top: 15px;

  display: none;
}

.conn-button {
  color: #ffffff;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border: 1px solid #dbdbdb;
  box-sizing: border-box;
  border-radius: 12px;
  padding: 17px;
  padding-top: 15px;

  animation: conn-border-kf 800ms infinite;
}

.conn-button img {
  margin-left: 10px;
  margin-top: 2px;
}

.disc-button img {
  margin-left: 10px;
  margin-top: 2px;
}

@keyframes conn-border-kf {
  from {
    box-shadow: 0px 0px 0px 0px greenyellow;
  }
  to {
    box-shadow: 0px 0px 0px 7px #ffffff10;
  }
}

.disc-button:hover {
  background-color: #f73939;
}

.button-container {
  display: flex;
  flex-direction: row;
  width: fit-content;

  position: absolute;
  top: 38px;
  left: 200px;
}
.button-container * {
  margin-right: 15px;
}
.run-button {
  /* background-color: white; */
  color: rgb(255, 255, 255) !important;
}

.btn {
  color: #ffffff;
  display: flex;
  flex-direction: row;

  align-items: center;
  justify-content: center;
  width: fit-content;
  height: 43px;

  border: 1px solid #dedddd;
  box-sizing: border-box;
  border-radius: 12px;

  padding: 17px;
  padding-top: 15px;
  background-color: transparent;
  cursor: pointer;
}

.rename-btn {
  border: none;
  opacity: 0.5;
}

.rename-btn:hover {
  opacity: 1;
  text-decoration: underline;
}

.new-code-btn {
  border: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn img {
  margin-right: 9px;
}

.editor {
  height: 100%;
  width: 100%;
}

.blockly-editor {
  height: 100%;
  width: 100%;
}

.e-container {
  width: 100%;
  max-width: 1560px;
  /* margin-top: 30px; */
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  /* top: 0;
  bottom: 0; */
  /* padding: 30px; */
  box-sizing: border-box;
  /* border-radius: 20px; */
  overflow: hidden;
  position: relative;
  /* position: relative; */
}

.tools-container {
  /* margin-top: 30px; */
  /* border-radius: 20px; */

  width: 370px !important;
  overflow: hidden;
  max-width: 370px;
  min-width: 370px;
  height: 100%;
  background-color: white;
  box-sizing: border-box;
  padding: 20px;
  font-size: 13px;
}

#term-text {
  height: calc(100% - 56px);
  width: auto;
  overflow: auto;
}

.editors-space {
  background-color: #f8f8f8;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  position: absolute;
  width: 100%;

  top: 164px;
  bottom: 0px;

  gap: 3px;

  /* padding: 15px; */
  box-sizing: border-box;
}
#editor *,
#term-text,
.term-input {
  font-family: "Monaco", "Menlo", "Ubuntu Mono", "Consolas", "source-code-pro",
    monospace !important;
}

body {
  margin: 0px;
  padding: 0;
}
html {
  margin: 0;
  padding: 0;
}

.pointer {
  cursor: pointer;
}

.status-bar {
  /* display: none; */
  position: fixed;
  top: 0px;
  left: 0px;
  /* right: 0px; */
  width: 0%;
  height: 4px;
  background-color: #ffc105;
  /* animation: blinkk 150ms alternate infinite; */
}

.status-side {
  /* display: none; */
  position: fixed;
  top: 0px;
  left: 0px;
  bottom: 0px;
  /* right: 0px; */
  width: 8px;
  background-color: #f02e2e;
  /* animation: blinkk 150ms alternate infinite; */
}

.status-text {
  top: 126px;
  position: absolute;
  right: 0px;
  font-size: 14px;
  font-weight: 300;
  color: #ffffffa0;
}
@keyframes blinkk {
  from {
    opacity: 0.6;
  }
  to {
    opacity: 1;
  }
}

.modal-background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  display: none;
  align-items: center;
  justify-content: center;

  background-color: #000000a0;
  z-index: 10;
}

.modal-card {
  background-color: #731acb;
  width: 650px;
  /* height: 155px; */
  height: fit-content;
  border-radius: 20px;

  padding: 32px;
  padding-right: 150px;

  box-sizing: border-box;

  position: relative;

  box-shadow: inset -120px 0px 0px #00000030;
}

.modal-title {
  margin-top: -8px;
  font-size: 22px;
  font-weight: 500;
}

.modal-text {
  margin-top: 20px;
  font-weight: 300;
}

.modal-secondary-text {
  margin-top: 4px;
  font-weight: 300;
  color: #ffffff80;
}

.modal-progress {
  margin-top: 25px;
  width: 100%;
  height: 4px;
  background-color: #ffffff30;
}

.modal-progress-completed {
  width: 30%;
  height: 4px;

  background-color: #ffc105;
  animation: progress-bar-kf 400ms infinite;
}
.modal-card img {
  position: absolute;
  right: 24px;
  top: 53px;

  opacity: 0.5;
}
@keyframes progress-bar-kf {
  from {
    box-shadow: 0px 0px 0px 0px greenyellow;
  }
  to {
    box-shadow: inset 544px 0px 0px #ffffff00;
  }
}

.ble-modal-background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  display: none;
  align-items: center;
  justify-content: center;

  background-color: #000000a0;
  z-index: 10;
}
.ble-modal-card {
  background-color: #f02e2e;
  width: 650px;
  /* height: 155px; */
  height: fit-content;
  border-radius: 20px;

  padding: 32px;

  box-sizing: border-box;

  position: relative;
}

.ble-modal-title {
  margin-top: -8px;
  font-size: 22px;
  font-weight: 500;
}

.ble-modal-text {
  margin-top: 20px;
  font-weight: 300;
}

.file-loading::after {
  color: #ffc105;
  position: absolute;
  bottom: 0px;
  /* left: calc(0% + 10px); */
  /* left: -10px; */

  content: "";
  background-color: #ffc105;
  width: 30px;
  height: 3px;

  animation: loading-file 0.6s ease-in-out alternate infinite;
}

@keyframes loading-file {
  from {
    left: calc(0% + 10px);
  }
  to {
    left: calc(100% - 40px);
  }
}

.term-input {
  padding: 20px;
  box-sizing: border-box;
  width: 100%;
  margin-top: 15px;
  border: 1px solid lightgray;
  border-radius: 10px;
  height: 41px;
}

.term-title {
  font-size: 18px;
}

#show-code {
  position: absolute;
  top: 10px;
  right: 10px;
  opacity: 0.6;
  cursor: pointer;
  border-radius: 5px;
  border: transparent;
}

#show-code:hover {
  opacity: 1;
}

#show-term {
  position: absolute;
  top: 40px;
  right: 10px;
  opacity: 0.6;
  cursor: pointer;
  border-radius: 5px;
  border: transparent;
}

#show-term:hover {
  opacity: 1;
}