@font-face {
  font-family: "Raleway-Medium";
  src: url("Raleway/Raleway-Medium.eot"); /* IE9 Compat Modes */
  src: url("Raleway/Raleway-Medium.eot?#iefix")
      format("embedded-opentype"),
    /* IE6-IE8 */ url("Raleway/Raleway-Medium.otf") format("opentype"),
    /* Open Type Font */ url("Raleway/Raleway-Medium.svg") format("svg"),
    /* Legacy iOS */ url("Raleway/Raleway-Medium.ttf") format("truetype"),
    /* Safari, Android, iOS */ url("Raleway/Raleway-Medium.woff")
      format("woff"),
    /* Modern Browsers */ url("Raleway/Raleway-Medium.woff2")
      format("woff2"); /* Modern Browsers */
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Raleway-ExtraBold";
  src: url("Raleway/Raleway-ExtraBold.eot"); /* IE9 Compat Modes */
  src: url("Raleway/Raleway-ExtraBold.eot?#iefix")
      format("embedded-opentype"),
    /* IE6-IE8 */ url("Raleway/Raleway-ExtraBold.otf") format("opentype"),
    /* Open Type Font */ url("Raleway/Raleway-ExtraBold.svg")
      format("svg"),
    /* Legacy iOS */ url("Raleway/Raleway-ExtraBold.ttf")
      format("truetype"),
    /* Safari, Android, iOS */ url("Raleway/Raleway-ExtraBold.woff")
      format("woff"),
    /* Modern Browsers */ url("Raleway/Raleway-ExtraBold.woff2")
      format("woff2"); /* Modern Browsers */
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: "Raleway-Medium";
  background-color: #fcfeff;
  margin: 0;
  padding: 0;
}

a {
  color: #7c4dff;
}

.catalog-title {
  margin-bottom: 0.5rem;
}

.header {
  display: flex;
  justify-content: center;
  padding: 2em 0 0 2em;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2em;
}

.main-container {
  padding: 2.5em 1.375em;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 320px;
  border: 1px solid #ebebeb;
  border-radius: 8px;
  background-color: #ffffff;
  box-shadow: 0 4px 12px 1px rgba(208, 208, 208, 0.22);
  text-align: center;
  line-height: 1.3rem;
}

.menu-visible {
  z-index: 10;
  box-shadow: 0px 8px 10px 1px rgb(0 0 0 / 14%),
    0px 3px 14px 2px rgb(0 0 0 / 12%), 0px 5px 5px -3px rgb(0 0 0 / 20%);
  position: absolute;
  right: 50px;
  height: 20px;
  width: max-content;
  padding: 1rem;
  padding-right: 3rem;
  background-color: white;
}

.menu-hidden {
  display: none;
}

.app-details-menu-container-arrow {
  z-index: 0;
  background-color: rgb(255, 255, 255);
  height: 12px;
  position: absolute;
  right: 1px;
  top: 10px;
  transform: translate(50%, 50%) rotate(45deg);
  width: 12px;
}

.menu {
  display: none;
  width: max-content;
}

.app-details-button {
  color: black;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  position: relative;
  cursor: pointer;
  text-align: center;
}

.app-details-button > i {
  pointer-events: none;
}

.app-details-button:hover,
.app-details-button:active {
  background: #bdbdbd;
}

.details-menu-icon {
  font-size: 1.5rem;
}

.delete-button {
  font-family: "Raleway-Medium";
  font-size: 1rem;
  background: none;
  border: none;
  text-decoration: underline;
  color: #c44539;
  cursor: pointer;
}

.title-container {
  font-family: "Raleway-ExtraBold";
  display: flex;
  font-weight: 800;
  flex-direction: column;
  align-items: center;
  align-self: center;
  text-align: center;
}

.icon {
  display: flex;
  position: relative;
  width: 50px;
  height: 50px;
}

.buttons-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
}

.how-to {
  text-align: left;
}

.buttons-container a {
  font-family: "Raleway-ExtraBold";
  border: none;
  padding: 0.875em 1.5em;
  font-size: 1em;
  text-transform: uppercase;
  width: max-content;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
}

small {
  color: #036797;
}

.description-text,
#apps-number {
  font-family: "Raleway-Medium";
  font-size: 0.8rem;
  font-weight: 100;
  color: #5d5d5d;
}

.go-button {
  background-color: #7c4dff;
  color: #fff;
}

.submit-button,
.confirm-button {
  font-family: "Raleway-ExtraBold";
  border: none;
  padding: 0.875em 2.5em;
  font-size: 1em;
  text-transform: uppercase;
  width: max-content;
  border-radius: 10px;
  cursor: pointer;
  background-color: #7c4dff;
  color: #fff;
}

.app-form {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.app-details-container {
  position: relative;
  display: flex;
  width: 100%;
  justify-content: space-between;
}

.app-details-menu-container {
  display: flex;
}

.input-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.app-input,
.error {
  height: 45px;
  border-radius: 8px;
  width: 100%;
  margin-right: 0.5rem;
  padding-left: 1rem;
  font-family: "Raleway-Medium";
}

.input-button-container {
  display: flex;
  width: 100%;
  align-items: baseline;
}

.app-input {
  border: 1px solid #d9d9d9;
}

.error {
  border: 2px solid #c44539;
}
.error-hidden {
  display: none;
}

.error-visible {
  display: flex;
  align-self: flex-start;
  font-family: "Raleway-ExtraBold";
  font-size: 0.8125rem;
  color: #c44539;
}

.app-list-header,
.list-header {
  display: flex;
  width: 100%;
  justify-content: space-between;
}

.container {
  display: flex;
  flex-direction: column;
}

#appsList {
  list-style-type: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.app-card {
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #d9d9d9;
  text-align: left;
  margin-bottom: 1rem;
}

.app-name {
  display: flex;
  align-items: center;
  font-family: "Raleway-ExtraBold";
  overflow-wrap: anywhere;
}

.app-name::before {
  display: block;
  content: " ";
  background-image: url("./robot-solid-icon.svg");
  background-size: 16px 16px;
  height: 16px;
  width: 16px;
  margin-right: 1rem;
}

.app-list-empty {
  padding-bottom: 4rem;
}

.client-details-container {
  display: flex;
  width: 100%;
  padding: 0.7rem;
  flex-direction: column;
  font-family: "Raleway-Medium";
  font-size: 0.8rem;
  font-weight: 100;
  color: #5d5d5d;
  margin-top: 1rem;
}

.client-id,
.client-secret {
  margin-top: 1rem;
  font-size: 1rem;
  border: none;
}

.client-secret,
.client-id {
  font-family: monospace;
  color: #5d5d5d;
  cursor: pointer;
}

.client-secret-toggle-container {
  width: 80%;
  display: flex;
  justify-content: space-between;
}

.secret-toggle {
  display: inline;
  appearance: none;
}

.secret-toggle:after {
  content: "Show";
  margin-left: 0.5rem;
  text-decoration: underline;
  color: #7d4cff;
  cursor: pointer;
}

.secret-toggle:checked:after {
  content: "Hide";
}

::selection {
  background: #f1eeff;
}

.tooltip {
  position: absolute;
  right: 50%;
  height: 20px;
  width: max-content;
  visibility: hidden;
}

.tooltip-invisible {
  display: none;
}

.tooltip-visible:after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  position: absolute;
  border-top: 8px solid #616161;
  border-right: 8px solid transparent;
  border-left: 8px solid transparent;
  border-bottom: 8px solid transparent;
  left: 35%;
  top: 1.5rem;
}

.tooltip-visible {
  position: absolute;
  right: 50%;
  height: 22px;
  width: max-content;
  visibility: visible;
  color: white;
  background: #616161;
  padding: 2px 8px;
  border-radius: 4px;
}

.secret-toggle:before {
  font-family: "Font Awesome 5 Free";
  content: "\f06e";
  color: #7d4cff;
  cursor: pointer;
}

.secret-toggle:checked:before {
  font-family: "Font Awesome 5 Free";
  content: "\f070";
}

.list-title {
  font-size: 1.2rem;
  font-family: "Raleway-ExtraBold";
}

.overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  z-index: 10;
  width: 100vw;
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
}

.dialog {
  display: flex;
  padding: 2rem;
  background-color: white;
  border-radius: 4px;
  min-width: 530px;
  height: 100px;
  font-family: "Raleway-ExtraBold";
  justify-content: space-between;
  font-size: 1.125rem;
}

.dialog-buttons-container {
  display: flex;
  align-self: flex-end;
  justify-self: flex-end;
}

.stop-scrolling {
  height: 100%;
  overflow: hidden;
}

.cancel-button {
  font-family: "Raleway-ExtraBold";
  border: none;
  padding: 0.875em 2.5em;
  text-decoration: underline;
  font-size: 1em;
  text-transform: uppercase;
  width: max-content;
  border-radius: 10px;
  cursor: pointer;
  background-color: transparent;
  color: #7c4dff;
}

#how-to-title {
  cursor: pointer;
}

.how-to-hidden {
  display: none;
}
.how-to-visible {
  display: block;
  text-align: left;
  line-height: 1.5rem;
}

.how-to-code {
  width: max-content;
  white-space: nowrap;
  padding: 1em;
  margin: 0.5em 0;
  border-radius: 3px;
  display: block;
  box-sizing: border-box;
  background: #3e3e3e;
  color: #ccc;
  font-family: monospace;
}

.indented {
  margin-left: 7rem;
}

.orange {
  color: #ff9901;
}

.blue {
  color: #24d6ed;
}

.purple {
  color: #bfa7ff;
}

.code-inline {
  color: #ff9901;
  background: #3e3e3e;
  padding: 0.2rem;
  border-radius: 3px;
}

@media only screen and (min-width: 600px) {
  .header {
    justify-content: flex-start;
  }

  .main-container {
    width: 600px;
  }

  .main-container {
    padding: 2.5em 5em;
  }
}


.logout-btn {
  padding: 14px 16px;
  color: #7c4dff;
  text-decoration: underline;
  border-radius: 10px;
  text-transform: uppercase;
  background-color: white;
  display: inline-block;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.5;
  box-shadow: 0 8px 14px 0 rgba(68, 91, 184, 0.22);
  position: absolute;
  right: 2em;
}