/* Overwrites of spectre.css defaults */

html {
  line-height: 1.6;
}

body {
  width: 100%;
  overflow-x: visible;
  font-family: var(--main-font);
  background-color: var(--body-bg);
}

a {
  outline: none !important;
  color: var(--link-primary);
}

a:visited {
  color: var(--link-visited);
}

img {
  position: relative;
}

img::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: var(--bg-placeholder);
}

.tab .tab-item a.active,
.tab .tab-item.active a {
  font-weight: 600;
  border-bottom-color: var(--border-color);
  color: var(--color-primary);
}

.table td,
.table th {
  border-bottom: 0.05rem solid var(--border-color);
}

strong {
  font-family: inherit;
  font-weight: 600;
}

/*  Custom Styles */

header {
  background-color: var(--bg-glassy);
}

.navbar {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: 20px;
  justify-content: center;
  z-index: 1000;
  /* ensures suggestions overlays everything below */
  padding-bottom: 5px;
}

.nav-hack {
  margin-left: -260px;
}

#nav-logo {
  display: inline;
  height: fit-content;
  padding: 0px;
  padding-left: 15px;
  border: none;
}

#nav-logo:focus {
  box-shadow: none;
  outline: none;
}

#nav-logo .logo-large {
  /* height: 35px;
    margin-top: 4px; */

  /* Temporarily modified for beta */
  height: 40px;
  margin-top: -3px;
}

.logo-small {
  display: none;

  /* Temporarily modified for beta */
  height: 33px;
  margin-top: 3px;
}

:root.dark .logo-light {
  display: none;
}

:root.light .logo-dark {
  display: none;
}

.navbar-brand {
  margin-left: 42px;
}

.container-flex {
  display: flex;
  max-width: 80%;
  max-width: 800px;
  margin: auto;
}

#navbar-tabs {
  background-color: var(--bg-glassy);
}

#nav-tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow: auto;
  margin-top: 1px;
  justify-content: space-between;
  width: 672px;
  align-items: center;
  overflow: inherit;
}

#nav-tabs .tab {
  margin: 0.2rem 0 0 0;
  flex-wrap: nowrap;
  border-bottom: none;
}

#nav-tabs .tab-item {
  font-size: 0.7rem;
  color: var(--color-gray-3);
  font-family: var(--brand-font);
}

/*
    Settings Button is  a tab item, however to avoid inheriting styles
    of all tab-item from spectre.css, we copy only what we need
*/

#settings {
  font-size: 0.7rem;
  color: var(--color-gray);
  font-family: var(--brand-font);
  margin-top: 0px !important;
  padding: 7px 15px;
}

#settings-page {
  padding: 3rem 15px 7px 15px;
}

#nav-tabs .tab-item a:hover {
  color: var(--color-primary);
}

#nav-tabs .tab-item a {
  display: flex;
  align-items: center;
  padding: 7px 15px;
}

#nav-tabs .tab-item i {
  max-width: 20px;
}

#search-filters {
  position: relative;
  margin-top: -20px;
  /* We set the height such that when it's populated with js, the main content does not shift */
  height: 40px;
  padding-top: 4px; /* actual height of toolbar is 32px */
}

.border-bottom {
  border-bottom: solid 1px var(--border-color-1);
  margin-bottom: 1rem !important;
  margin-top: -1px;
}

.section {
  margin-top: 15px;
  margin-bottom: 15px;
}

.section:first-child {
  margin-right: 2vw;
}

.section:last-child {
  margin-left: 2vw;
}

#side-left {
  max-width: 200px;
  min-width: 200px;
}

#side-right {
  width: 370px;
}

#results {
  max-width: var(--main-column-width);
  width: 100%;
  min-height: calc(100vh - 300px);
}

#altered-query {
  box-shadow: none;
  border: none;
}

#altered-query #aq-submit {
  color: var(--link-primary) !important;
  padding: 0 5px;
  height: 1.2rem;
  margin-top: -3px;
}

/* Snippets */

/* for feedback */

.fdb {
  position: relative;
}

.snippet {
  max-width: var(--normal-snippet-width);
  padding: 1rem 0;
  border-radius: var(--border-radius);
  padding-bottom: 2rem;
  margin-bottom: -1.2rem;
}

.snippet .result-cluster .snippet {
  padding: 1rem;
}

.result-header:focus {
  box-shadow: none;
}

.snippet .result-cluster .snippet .snippet-title {
  font-size: 17px;
}

.snippet-title {
  font-family: var(--brand-font);
  text-rendering: optimizeLegibility;
  font-size: 19.5px;
  line-height: 23px;
  letter-spacing: -0.02em;
  color: var(--link-primary);
  position: relative;
  text-decoration: none;
  word-wrap: break-word;
  font-weight: 400;
  display: block;
  /* Ellipsis applied to keep it in 1 line */
  /* TODO: Check Safari */
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

a:visited .snippet-title {
  color: var(--link-visited);
}

.snippet-content {
  display: block;
}

.snippet-content .thumb {
  float: right;
  margin-left: 10px;
  margin-bottom: 10px;
  width: 100px;
  max-height: 80px;
  border-radius: var(--border-radius);
  object-fit: scale-down;
}

.snippet-description {
  font-family: var(--brand-font);
  text-rendering: optimizeLegibility;
  font-size: var(--text-sm);
  color: var(--color-gray-3);
  margin-bottom: 0;
  word-wrap: break-word;
  letter-spacing: -0.008em;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.snippet-url {
  display: flex;
  align-items: center;
  max-width: 90%;
  font-size: var(--text-sm);
  font-family: var(--brand-font);
  color: var(--link-secondary);
  text-rendering: optimizeLegibility;
  font-style: normal;
  padding: 0.2rem 0 0.3rem;
  text-decoration: underline;
}

.snippet a:hover {
  text-decoration: none;
}

.snippet a .snippet-title:hover {
  text-decoration: underline;
}

.snippet .result-cluster {
  display: flex;
  flex-wrap: wrap;
}

.snippet .result-cluster .snippet {
  max-width: 50%;
  min-width: 50%;
}

.snippet .result-cluster .snippet .snippet-description {
  /* Ellipsis applied to keep it in 2 lines */
  /* TODO: Check Safari */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.favicon {
  --size: 24px;
  height: var(--size);
  width: var(--size);
  object-fit: cover;
  margin-right: 7px;
  border-radius: 4px;
  color: #1b1b1b;
  font-size: 15px;
  text-align: center;
  overflow: hidden;
  position: relative;
  padding: 4px;
  vertical-align: bottom;
  background-color: var(--bg-favicon);
  display: inline-block;
}

.favicon::after {
  content: "";
  background-repeat: no-repeat;
  background-size: calc(var(--size) - 10px);
  background-position: center;
  background-color: var(--bg-favicon);
  /* TODO: replace with SVG fragment call */
  background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSIgdmlld0JveD0iMCAwIDIwIDIwIj48ZGVmcy8+PHBhdGggZmlsbD0iIzY4NzM4MSIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMS42NjQgNy44NzdBOC42MTcgOC42MTcgMCAwMDEuNCAxMGMwIC43MzMuMDkyIDEuNDQ0LjI2NCAyLjEyM2g0LjQzOEEyMS45NDkgMjEuOTQ5IDAgMDE2IDEwYzAtLjczLjAzNS0xLjQ0LjEwMi0yLjEyM0gxLjY2NHptLjQ4OC0xLjRoNC4xMzZjLjM2LTIuMTE1IDEuMDM2LTMuODUgMS44ODktNC44ODNhOC42MTYgOC42MTYgMCAwMC02LjAyNSA0Ljg4M3ptNS4zNTcgMS40QTIwLjQ3IDIwLjQ3IDAgMDA3LjQgMTBjMCAuNzM4LjAzOCAxLjQ0OS4xMDkgMi4xMjNoNC45ODJjLjA3LS42NzQuMTA5LTEuMzg1LjEwOS0yLjEyMyAwLS43MzgtLjAzOC0xLjQ0OS0uMTA5LTIuMTIzSDcuNTF6bTQuNzgxLTEuNEg3LjcxYy4xODQtLjk5OC40NDMtMS44ODEuNzUtMi42MDcuMzItLjc1Mi42NjItMS4yNy45NzItMS41OC4zMDQtLjMwMy40OTUtLjMzMi41NjgtLjMzMi4wNzMgMCAuMjY0LjAyOS41NjguMzMzLjMxLjMxLjY1My44MjcuOTcxIDEuNTc5LjMwOC43MjYuNTY2IDEuNjA5Ljc1MSAyLjYwN3ptMS42MDkgMS40QzEzLjk2NSA4LjU2IDE0IDkuMjcgMTQgMTBjMCAuNzMtLjAzNSAxLjQ0LS4xMDEgMi4xMjNoNC40MzdjLjE3Mi0uNjguMjY0LTEuMzkuMjY0LTIuMTIzIDAtLjczMy0uMDkyLTEuNDQ0LS4yNjQtMi4xMjNoLTQuNDM3em0zLjk0OS0xLjRoLTQuMTM2Yy0uMzYtMi4xMTUtMS4wMzYtMy44NS0xLjg4OS00Ljg4M2E4LjYxNiA4LjYxNiAwIDAxNi4wMjUgNC44ODN6bS05LjY3MSAxMS45M2E4LjYxNiA4LjYxNiAwIDAxLTYuMDI1LTQuODg0aDQuMTM2Yy4zNiAyLjExNSAxLjAzNiAzLjg1IDEuODg5IDQuODgzem0uMjg0LTIuMjc3Yy0uMzA4LS43MjYtLjU2Ny0xLjYwOS0uNzUxLTIuNjA3aDQuNThjLS4xODQuOTk4LS40NDMgMS44ODEtLjc1IDIuNjA3LS4zMi43NTItLjY2MiAxLjI3LS45NzIgMS41OC0uMzA0LjMwMy0uNDk1LjMzMi0uNTY4LjMzMi0uMDczIDAtLjI2NC0uMDMtLjU2OC0uMzMzLS4zMS0uMzEtLjY1My0uODI3LS45NzEtMS41Nzl6bTMuMzYyIDIuMjc2Yy44NTMtMS4wMzMgMS41MjktMi43NjggMS44OS00Ljg4M2g0LjEzNWE4LjYxNiA4LjYxNiAwIDAxLTYuMDI1IDQuODgzek0wIDEwQzAgNC40NzcgNC40NzcgMCAxMCAwczEwIDQuNDc3IDEwIDEwLTQuNDc3IDEwLTEwIDEwUzAgMTUuNTIzIDAgMTB6IiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=);
}

.netloc {
  color: #6d78a0;
  /* TODO: move to variables */
  font-weight: 500;
  white-space: nowrap;
}

:root.dark .netloc {
  color: #b5c1ca;
  /* TODO: move to variables */
}

.url-path {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.url-path::before {
  content: " ";
  display: inline-block;
  text-decoration: underline;
  color: currentColor;
  white-space: pre;
}

.filetype {
  margin-left: 10px;
  padding: 0 7px;
  border-radius: 16px;
  background-color: var(--bg-1);
  font-size: 12px;
  color: var(--color-primary-2);
}

.deep-results-buttons {
  font-weight: var(--brand-font);
  overflow-x: auto;
  display: flex;
  justify-content: flex-start;
  flex-wrap: nowrap;
  white-space: nowrap;
  margin-top: 0.25rem;
  /* margin-left: -5px; */
  /* Hide scrollbar */
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

.deep-results-buttons::-webkit-scrollbar {
  display: none;
}

.deep-link {
  color: var(--link-primary);
  font-size: 0.7rem;
  padding: 0 5px;
}

.deep-link:hover {
  color: var(--link-hover);
}

.deep-link:first-child {
  padding-left: 0;
}

.rh-result {
  padding: 1rem;
  padding-bottom: 10px;
  margin-bottom: 1rem;
  background-color: var(--bg-0);
  border-radius: var(--border-radius);
  font-family: var(--brand-font);
}

.rh-result .footer-text {
  font-size: 0.6rem;
  text-align: right;
  color: var(--color-gray-2);
  justify-content: flex-end !important;
}

.rh-result .footer-text a {
  color: inherit;
  margin-bottom: 0.5rem;
}

.card .card-image:first-child img {
  border-top-left-radius: var(--border-radius);
  border-top-right-radius: var(--border-radius);
}

.result-caption {
  margin: 0;
  font-size: 0.7rem;
  color: var(--color-gray);
}

.result-caption a {
  color: var(--color-gray);
}

#currency-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.disclaimer {
  font-size: 13px;
  text-align: right;
  margin-right: 20px;
  color: var(--color-gray);
  margin-top: 5px;
  margin-bottom: 0;
}

.disclaimer a {
  color: inherit;
}

.clamp-2-lines {
  /* Ellipsis aplied only in second line */
  /* TODO: Check Safari */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.clamp-1-line {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* SUGGEST */

.searchform-container {
  --search-total-gap: 26px;
  --searchbox-pl: 20px;
  padding-left: var(--search-total-gap);
  width: var(--search-form-width);

  /* Temporarily modified for beta */
  /* margin-left: 17px; */
  margin-left: 7px;
}

.searchform-container.searchform-focused {
  --searchbox-pl: 0px;
  --search-icon-width: 46px;
  --search-total-gap: 0;
  z-index: 100;
}

#searchform {
  position: relative;
  display: flex;
  margin-bottom: 10px;
  max-width: inherit;
  align-items: center;
  z-index: 3;
  height: var(--search-form-height);
  width: 100%;
  border: 1px solid transparent;
  border-radius: 10px;
  background-color: var(--bg-02);
  box-shadow: 0px 1px 4px rgba(37, 44, 54, 0.15);
}

:root.dark #searchform {
  box-shadow: none;
  border: 1px solid var(--divider-01);
}

.searchform-container:hover #searchform,
.searchform-container.searchform-focused #searchform {
  box-shadow: 0px 2px 8px rgba(37, 44, 54, 0.25);
}

.searchform-container.searchform-focused.suggestions-showing #searchform {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  box-shadow: 0px 6px 12px rgba(37, 44, 54, 0.25);
}

:root.dark .searchform-container.searchform-focused #searchform {
  box-shadow: 0 0 0 4px var(--divider-01);
}

#search-icon,
#back-arrow {
  display: flex;
  height: 100%;
  justify-content: center;
  align-items: center;
  min-width: var(--search-icon-width);
  order: 1;
  z-index: 3;
  color: var(--color-gray-2);
}

#searchbox {
  flex-grow: 1;
  width: auto;
  height: 100%;
  order: 2;
  border: none;
  /* to avoid it being displayed under the delete button*/
  outline: none;
  box-shadow: none;
  color: var(--color-primary);
  background-color: transparent;
  border-radius: 0;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  padding: 8px 18px;
  padding-left: var(--searchbox-pl);
}

#searchbox::placeholder {
  color: var(--text-03);
}

#searchbox:focus {
  outline: none;
  color: var(--color-primary);
}

#submit-button {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  order: 5;
  z-index: 2;
  color: var(--color-gray-2);
  background-color: var(--bg-02);
  border: none;
  width: 55px;
  border-radius: 0;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  padding: 0;
  flex-shrink: 0;
}

.searchform-container.searchform-focused.suggestions-showing
  #submit-button:hover {
  border-bottom-right-radius: 0px;
}

#submit-button:hover {
  background: linear-gradient(
    302.53deg,
    #4c54d2 0%,
    #bf14a2 56.25%,
    #f73a1c 100%
  );
}

#submit-button:hover path {
  fill: #ffffff;
}

#submit-button:focus {
  box-shadow: unset;
}

#submit-button svg {
  margin-bottom: -3px;
}

/* INFOBOX STYLES */

.infobox {
  font-family: var(--brand-font);
  background-color: var(--bg-0);
  border: solid 1px var(--border-color);
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  max-width: 100%;
  padding: 0px;
}

.infobox #website_url {
  background-color: var(--bg-0);
  color: var(--color-gray-3);
  font-weight: 400;
}

.infobox-header {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem;
}

.codebox-header {
  padding: 0.8rem;
}

.infobox-header-text {
  padding-right: 1.2rem;
}

.infobox-header-text .label {
  font-size: 13px;
  border-radius: var(--border-radius-sm);
  padding: 0 8px;
  background: var(--bg-02);
  color: var(--color-primary);
}

.infobox-description {
  color: var(--color-gray-3);
  margin-top: 0.6rem;
  font-size: var(--text-sm);
}

.infobox-description::first-letter {
  text-transform: capitalize;
}

.infobox-thumbnail .thumb {
  height: 100px;
  width: 100px;
  object-fit: contain;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  display: flex;
  align-items: center;
  border-radius: var(--border-radius);
}

.infobox-title {
  font-size: 22px;
  font-family: var(--brand-font);
  color: var(--color-primary);
  line-height: 1.2;
}

.infobox a.url:hover {
  text-decoration: none;
}

a.infobox-title:hover {
  text-decoration: none;
  color: var(--link-primary);
}

.infobox #profiles {
  margin: 1rem 0 0 0;
}

.infobox #profiles h6 {
  font-family: var(--brand-font);
  font-weight: 400;
}

.infobox #profiles .links {
  display: flex;
  flex-wrap: wrap;
}

.infobox #profiles a {
  display: flex;
  height: -moz-fit-content;
  height: fit-content;
  align-items: center;
  margin-bottom: 5px;
  margin-right: 5px;
  color: var(--color-gray-3);
}
.infobox #profiles a:hover {
  text-decoration: none;
  background-color: var(--bg-1);
}

.so .infobox-title {
  font-size: 1rem;
  display: block;
  margin-bottom: 10px;
}

.infobox-title:visited {
  color: var(--color-primary);
}

.infobox-desc {
  color: var(--color-gray);
}

.infobox .body {
  font-size: var(--text-sm);
  color: var(--color-gray-3);
  padding: 0.8rem;
}

.infobox .body .attribution a{
  color: var(--color-gray-3);
}

.infobox-attr-section {
  margin: 0 -1rem;
}

.infobox-attr-header {
  width: 100%;
  border-radius: 0;
  padding: 3px 15px;
  text-align: center;
  margin-top: 10px;
  border-top: solid 1px var(--bg-1);
  padding-top: 10px;
  margin-bottom: 15px;
  font-weight: 500;
}

#infobox .infobox-attr {
  font-size: var(--text-sm);
  margin-bottom: 5px;
  color: var(--color-primary);
  display: flex;
}

#infobox .footer-text {
  color: var(--color-gray-2);
  position: absolute;
  padding: 10px 1rem;
  width: 100%;
  text-align: right;
  font-size: 0.65rem;
}

#infobox .footer-text .feedback:hover {
  cursor: pointer;
}

#codebox pre {
  background-color: var(--bg-1);
  padding: 0.55em 0;
  padding-left: 0.8rem;
  font-size: 13px;
  overflow: auto;
  margin: 0 -0.8rem 0.8rem -0.8rem;
  /* scrollbar styling: Firefox */
  scrollbar-width: thin;
  /* "auto" or "thin" */
  scrollbar-color: #a0a0a04f transparent;
  /* scroll thumb and track */
}

/* scrollbar styling: Chrome, Safari */

#codebox pre::-webkit-scrollbar {
  /* width of the entire scrollbar */
  width: 5px;
}

#codebox pre::-webkit-scrollbar-track {
  /* color of the tracking area */
  background: transparent;
}

#codebox pre::-webkit-scrollbar-thumb {
  /* color of the scroll thumb */
  background-color: #a0a0a04f;
  /* roundness of the scroll thumb */
  border-radius: 20px;
  /* creates padding around scroll thumb */
  border: solid 5px var(--bg-1);
}

#codebox pre code {
  background: none;
  padding: 0;
}

#codebox .infobox-title {
  font-size: 23px;
  display: block;
  margin-bottom: 10px;
}

#codebox h1,
h2,
h3,
h4 {
  font-size: 21px;
  margin-bottom: 5px;
}

#hidden-attributes {
  display: none;
}

.infobox-attr-name {
  min-width: 150px;
  max-width: 150px;
  font-weight: 500;
}

.attr-separator {
  color: var(--bg-2);
  margin-left: 2px;
  margin-right: 2px;
}

.show-more-btn {
  font-family: var(--main-font);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  cursor: pointer;
  padding: 0.2rem 1rem;
  color: var(--color-gray-3);
  border-bottom-right-radius: var(--border-radius);
  border-bottom-left-radius: var(--border-radius);
  border-top: solid 1px var(--border-color);
}

.show-more-btn:hover {
  color: var(--color-primary);
}

.show-more-btn i {
  max-width: 20px;
  max-height: 36px;
  margin-left: 5px;
}

.container-80 {
  max-width: 1400px;
  padding-left: var(--main-content-padding);
}

.chip {
  height: 1.8rem;
  cursor: pointer;
  background-color: var(--bg-0);
  border: solid 1px var(--bg-1);
  color: var(--color-gray);
  padding-right: 15px;
  padding-left: 15px;
}

.chip .inactive {
  color: var(--text-sm);
}

.selected {
  border: solid 2px var(--theme-purple);
  color: var(--color-primary);
  background: none;
}

.chip:hover {
  box-shadow: var(--shadow-1);
}

.avatar.avatar-sm {
  font-size: 0.9rem;
  height: 16px;
  width: 16px;
  margin-right: 10px;
  background: none !important;
}

#search-elsewhere .chip {
  text-decoration: none;
  background-color: var(--bg-0);
  color: var(--color-primary);
}

#search-elsewhere .chip:hover {
  box-shadow: none;
}

#search-elsewhere .panel {
  width: 100%;
  padding: 2rem 1rem;
  margin-bottom: 0rem;
  color: var(--color-primary);
  border: none !important;
  font-family: var(--brand-font);
  background: none !important;
}

main {
  overflow-x: hidden;
  min-height: calc(100vh - 5rem);
  width: 100%;
  /*
     * min width is the total width of the results area (infobox included)
     * leftPadding + resultsColumn + resultsRMargin + infoboxRMargin + infboxMinWidth + 1rem (so infobox isn't at edge of screen)
    */
  min-width: calc(
    var(--main-content-padding) + var(--main-column-width) + 2vw + 2vw + 370px +
      1rem
  );
}

/* UTILITIES */

.passive-link:hover {
  color: var(--link-primary) !important;
}

.text-sm {
  font-size: var(--text-sm);
}

.text-17px {
  font-size: 17px;
}

.text-bold {
  font-weight: 600 !important;
}

.no-bg {
  background: none;
}

.text-xs {
  font-size: var(--text-xs);
}

.color-primary {
  color: var(--color-primary) !important;
}

.mr-5 {
  margin-right: 5px;
}

.mr-10 {
  margin-right: 10px;
}

.mr-15 {
  margin-right: 15px;
}

.ml-5 {
  margin-left: 5px;
}

.ml-10 {
  margin-left: 10px;
}

.ml-15 {
  margin-left: 15px;
}

.mb-0 {
  margin-bottom: 0px;
}

.mb-6 {
  margin-bottom: 6px;
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-15 {
  margin-bottom: 15px;
}

.mt-0 {
  margin-top: 0px;
}

.mt-5 {
  margin-top: 5px;
}

.mt-10 {
  margin-top: 10px;
}

.mt-15 {
  margin-top: 15px;
}

.border {
  border: solid 1px var(--border-color) !important;
  border-radius: var(--border-radius);
}

.border-bottom {
  border-bottom: solid 1px var(--bg-2);
}

.panel {
  width: 100%;
  padding: 1rem;
  border: none;
  /* border-color: var(--border-color); */
  border-radius: var(--border-radius);
  margin-bottom: 0rem;
  background-color: var(--bg-0);
  color: var(--color-primary);
}

.brand-font {
  font-family: var(--brand-font);
}

.divider {
  border-top: 0.05rem solid var(--border-color);
}

.flex {
  display: flex;
}

.flex-hcenter {
  display: flex;
  align-items: center;
}

.flex-wrap {
  display: flex;
  flex-wrap: wrap;
}

.font-mono {
  font-family: var(--mono-font);
}

.text-gray {
  color: var(--color-gray) !important;
}

.text-body {
  font-size: 0.8rem;
}

.only-mobile {
  display: none;
}

.no-display {
  display: none !important;
}

.noscroll {
  overflow: hidden;
}

.no-border {
  border: none !important;
}

/**
 * BUTTON STYLES
 */
.btn {
  /* Global btn styles */
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid transparent;
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: 100px;
  transition-property: background, color, opacity, border;
  transition-duration: 0.1s;
  transition-timing-function: ease-in-out;
  cursor: pointer;
  box-sizing: border-box;
  line-height: 20px;

  /* Default styles */
  --height: 40px;
  height: var(--height);
  padding: calc(var(--height) * 0.2) calc(var(--height) * 0.55);
  --font-size: 13px;
  font-size: var(--font-size);
}

.btn svg {
  fill: var(--text-02);
}
.btn:is(:hover, :active) svg {
  fill: currentColor;
}

/* Default resets */
.btn:hover,
.btn:focus {
  background: initial;
  border-color: transparent;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 4px var(--focus-border);
}

.btn:active {
  background: none;
}

.btn:disabled {
  cursor: not-allowed;
}

.btn:visited {
  color: var(--color);
}

/*
 * Size modifiers
 */
.btn--tiny { --height: 24px; --font-size: 12px; }
.btn--sm { --height: 32px; --font-size: 13px; }
.btn--lg { --height: 48px; --font-size: 14px; }
.btn--jumbo { --height: 56px; --font-size: 16px; }

.btn--tiny svg { --size: 14px; }
.btn--sm svg { --size: 17px; }
.btn svg { --size: 18px }
.btn--lg svg { --size: 20px; }
.btn--jumbo svg { --size: 22px; }

.btn > * ~ * { padding-left: 8px; }
.btn--jumbo > * ~ * { padding-right: 12px; }

/*
 * Style modifiers
 */

/* filled styles */
.btn--filled {
  --color: var(--btn-filled-text);
  color: var(--color);
  background-color: var(--btn-filled-bg);
  border-color: transparent !important;
}
.btn-filled svg {
  fill: currentColor;
}

.btn--filled:focus {
  background-color: var(--btn-filled-bg);
}

.btn--filled:hover:not(:focus) {
  background-color: var(--btn-filled-bg-hover);
  box-shadow: none;
}

.btn--filled:active {
  color: var(--btn-filled-text-active);
  background-color: var(--btn-filled-bg-active);
  box-shadow: none;
}

.btn--filled:disabled {
  color: var(--btn-filled-text-disabled);
  background-color: var(--disabled);
  box-shadow: none;
}

/* outline styles */
.btn--outline {
  --color: var(--interactive-07);
  color: var(--color);
  border-color: var(--btn-outline-border);
  background-color: transparent;
}

.btn--outline:hover:not(:focus) {
  border: 1px solid var(--btn-outline-border-hover);
  box-shadow: 0 0 0 1px var(--btn-outline-border-hover);
  color: var(--btn-outline-text-hover);
}

.btn--outline:active {
  border: 1px solid var(--btn-outline-border-active);
  box-shadow: 0 0 0 1px var(--btn-outline-border-active);
  color: var(--btn-outline-text-active);
}

.btn--outline:disabled {
  border: 1px solid var(--disabled);
  color: var(--btn-outline-text-disabled);
  box-shadow: none;
}

/* icon styles */
.btn--icon {
  --size: var(--height);
  border: none;
  background: none;
  outline: none;
  width: var(--size);
  height: var(--size);
  padding: 10px;
}

.btn--icon svg {
  --size: 20px;
  width: var(--size);
  height: var(--size);
}

.btn--tiny.btn--icon { padding: 4px; }
.btn--sm.btn--icon { padding: 7px; }
.btn--lg.btn--icon { padding: 13px; }
.btn--jumbo.btn--icon { padding: 16px; }
.btn--tiny.btn--icon svg { --size: 16px; }
.btn--sm.btn--icon svg { --size: 18px; }
.btn--lg.btn--icon svg { --size: 22px; }
.btn--jumbo.btn--icon svg { --size: 24px; }

.btn--icon:hover:not(:focus) {
  border-radius: var(--size);
  background: var(--btn-icon-bg-hover);
}

.btn--icon:hover:not(:focus) svg {
  fill: var(--btn-icon-svg-hover);
}

.btn--icon:focus {
  border-radius: 6px;
  background: none;
}

.btn--icon:active {
  border-radius: var(--size);
}
.btn--icon:active svg {
  fill: var(--btn-icon-svg-active);
}

/* text btn styles */
.btn--text {
  --padding: 4px;
  --color: var(--interactive-07);
  color: var(--color);
  border: 0;
  border-bottom: 2px solid transparent;
  background-color: transparent;
  border-radius: 0;
  padding-left: var(--padding);
  padding-right: var(--padding);
  margin-left: calc(var(--padding) * -1);
  margin-right: calc(var(--padding) * -1);
}

.btn--text:focus {
  border-radius: 6px;
  background: none;
}

.btn--text:hover:not(:focus) {
  border-radius: 0;
  /* border-bottom: 2px solid var(--btn-outline-border-hover); */
  box-shadow: none;
  color: var(--btn-outline-text-hover);
}

.btn--text:active {
  border-bottom: 2px solid transparent;
  box-shadow: none;
  color: var(--btn-outline-text-active);
}

.btn--text:disabled {
  border: 1px solid var(--disabled);
  color: var(--btn-outline-text-disabled);
  box-shadow: none;
}

.npm {
  padding: 0.2rem 0.6rem;
  color: var(--color-primary);
  background-color: var(--bg-3);
  overflow: auto;
  font-family: var(--mono-font);
  border-radius: var(--border-radius);
}

/* Media query to swap logo on smaller desktop screens */

@media (max-width: 1290px) {
  .logo-small {
    display: block;
  }
  .logo-large {
    display: none;
  }
  :root {
    /* Temporarily modified for beta */
    /* --main-content-padding: 87.84px; */
    --main-content-padding: 112px;
  }
}
