/* ============================
   Custom CSS for rapids.ai
   Overrides for base Bulma.css
   =========================== */


/* /// general /// */
body {
  font-display: fallback;
  font-family: 'Open Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #fff;
  color: #212121;
  line-height: 1.6;
}

a {
  color: #37c9dd;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.4s ease-out;
}

a:hover {
  color: #409da9;
  transition: all 0.4s ease-out;
}

.title:not(:last-child) {
  margin-bottom: 0.5rem;
}

h1,
h2,
h3 {
  color: #7306ff;
  font-weight: 300;
  letter-spacing: normal;
  font-family: sans-serif;
  text-transform: uppercase;
  margin-bottom: 0;
}

h1 {
  font-size: 2.5rem;
  line-height: 3rem;
}

h2 {
  font-size: 1.7rem;
  line-height: 2.5rem;
}

h3 {
  font-weight: bold;
}

.subheading {
  font-size: 1.3rem;
}

strong {
  color: inherit;
}

pre {
  position: relative;
  background-color: #efefef;
  padding: 1em;
  border-top: 2px solid #dedede;
  word-break: break-word;
  white-space: pre-wrap;
  margin-right: 1rem;
  overflow: visible;
  box-shadow: 0px 3px 2px rgb(0 0 0 / 20%);
}

code {
  color: #151515;
  background-color: #efefef;
}

a button {
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease-out;
}

a button:hover {
  text-shadow: none;
  transition: all 0.4s ease-out;
}

/* /// button style /// */
button {
  background-color: transparent;
  cursor: pointer;
  justify-content: center;
  padding-bottom: calc(0.5em - 1px);
  padding-left: 1em;
  padding-right: 1em;
  padding-top: calc(0.5em - 1px);
  text-align: center;
  white-space: nowrap;
  border-style: solid;
  border-color: #dbdbdb;
  color: white;
  border-width: 3px;
  border-radius: 0.5rem;
  border-top-right-radius: 0;
  font-weight: 600;
  font-family: 'Open Sans';
  text-transform: uppercase;
  transition: all 0.55s ease-out;

  /* spent too much time on this */
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.1),
    0 2px 2px rgba(0, 0, 0, 0.1),
    0 4px 2px rgba(0, 0, 0, 0.1),
    0 2px 2px rgba(0, 0, 0, 0.2) inset;
}

button:hover {
  text-shadow: none;
  box-shadow: none;
  transition: all 0.35s ease-out;
}

.button-rapids-white {
  color: white;
  border-color: white;
}

.button-rapids-purple {
  color: #7400ff;
  border-color: #7400ff;
}

.button-rapids-teal {
  color: #1ebdd2;
  border-color: #1ebdd2;
}

/* Note: copy-button class applied by js */
.copy-button {
  position: absolute;
  top: -2rem;
  right: 0;
  border-radius: 0;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  border-width: 2px;
  border-bottom-width: 0;
  color: #720dff;
  border-color: #720dff;
  box-shadow: 0px 3px 2px rgb(0 0 0 / 30%) inset;
}

/* Note: copy-button-white class applied by js if 'use-white-copy' class present */
.copy-button-white {
  position: absolute;
  top: -2rem;
  right: 0;
  border-radius: 0;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  border-width: 2px;
  border-bottom-width: 0;
  color: white;
  border-color: white;
  box-shadow: 0px 3px 2px rgb(0 0 0 / 30%) inset;
}


/* /// mobile menu height transitions /// */
@media screen and (max-width: 1023px) {
  .navbar-menu {
    background-color: #7400ff;
    display: block;
    padding: 0;
    height: 0;
    margin-left: 1rem;
    transition: height 0.5s ease;
  }

  .navbar-menu.is-active {
    height: 47rem;
    transition: height 0.5s ease;
  }

  .navbar-link {
    border-bottom: 1px solid white;
  }

  .navbar.is-fixed-top .navbar-menu,
  .navbar.is-fixed-top-touch .navbar-menu {
    overflow: hidden;
  }
}


/* /// navbar /// */
@media screen and (min-width: 1024px) {

  .navbar-item.has-dropdown.is-active .navbar-link,
  .navbar-item.has-dropdown:focus .navbar-link,
  .navbar-item.has-dropdown:hover .navbar-link {
    background-color: inherit;
  }

  .navbar-dropdown {
    background-color: rgb(139 47 255);
    border-top: none;
    box-shadow: 0 4px 4px rgb(10 10 10 / 20%);
    display: none;
  }

}

.navbar-link {
  color: white;
}

.navbar-link:hover {
  background-color: inherit;
  color: #b49fd6 !important;
  transition: color 0.2s ease-out;
}

.navbar-link:not(.is-arrowless)::after {
  border-color: white;
  margin-top: -0.375em;
  right: 1.125em;
}

.navbar-item img {
  max-height: 2.5rem;
}

.navbar-start a.has-text-white:focus,
.navbar-start a.has-text-white:hover {
  background-color: inherit;
  color: #b49fd6 !important;
  transition: color 0.2s ease-out;
}

.navbar.has-shadow {
  box-shadow: 0px 3px 2px rgba(0, 0, 0, 0.2);
}

.navbar-item {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}


/* /// footer /// */
.footer {
  padding-top: 1rem;
  padding-bottom: 5rem;
}

.footer-logo {
  margin: 0 auto;
  width: 150px;
}

.footer-item {
  color: rgb(255 255 255 / 85%);
  padding-left: 0.1rem;
  padding-right: 0.1rem;
}


/* /// hero /// */
.hero-rapids-bg {
  background: url(../images/header-bg.svg) top center no-repeat;
  background-size: cover;
  min-height: 300px;
}

.hero-img {
  width: 225px;
  margin: 0 auto;
}

.hero-body {
  padding-top: 7rem;
  padding-bottom: 7rem;
}

.hero-announce-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-announce {
  position: relative;
  font-size: 0.85rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  margin-top: 1rem;
}

.announce-icon {
  position: absolute;
  font-size: 0.75rem;
  top: -0.65rem;
  left: 0;
  border-radius: 1rem;
  border-style: none;
  color: white;
  padding: 0.2rem 0.3rem;
  background-color: #7400ff;
}

/* /// slant graphics /// */
/* https://css-tricks.com/using-box-shadows-and-clip-path-together/ */
.top-slant-container {
  filter: drop-shadow(0px -3px 2px rgba(0, 0, 0, 0.2));
}

.top-slant-up {
  height: 4.1rem;
  margin-top: -4rem;
  margin-bottom: -0.1rem;
  clip-path: polygon(0 100%, 0 80%, 100% 0, 100% 100%);
}

.top-slant-down {
  height: 4.1rem;
  margin-top: -4rem;
  margin-bottom: -0.1rem;
  clip-path: polygon(0 100%, 100% 100%, 100% 80%, 0 0);
}

.bottom-slant-container {
  filter: drop-shadow(0px 3px 2px rgba(0, 0, 0, 0.2));
}

.bottom-slant-up {
  height: 4.1rem;
  margin-bottom: -4rem;
  margin-top: -0.1rem;
  clip-path: polygon(0 0, 100% 0, 100% 20%, 0% 100%);
}

.bottom-slant-down {
  height: 4.1rem;
  margin-bottom: -4rem;
  margin-top: -0.1rem;
  clip-path: polygon(0 0, 0 20%, 100% 100%, 100% 0);
}

.padding-bottom-slant {
  padding-bottom: 10.5rem;
}

.padding-top-slant {
  padding-top: 10.5rem;
}


/* /// misc /// */

.border-top {
  border-width: 0.13rem;
  border-top-style: solid;
}

.border-bottom {
  border-width: 0.13rem;
  border-bottom-style: solid;
}

.tags-container {
  width: 100%;
  margin-top: -0.2rem;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: right;
}

.tags-item {
  font-size: 0.7rem;
  font-weight: 600;
  border-width: 0.13rem;
  border-bottom-right-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
  border-left-style: solid;
  border-right-style: solid;
  border-bottom-style: solid;
  text-align: center;
  padding-top: 0.15rem;
  padding-bottom: 0.15rem;
  padding-left: 0.45rem;
  padding-right: 0.45rem;
  margin-left: 0.4rem;
  margin-top: -0.1rem;
}

/* /// border colors /// */
.has-border-rapids-purple-primary {
  border-color:#720dff
}

.has-border-rapids-pink {
  border-color: #d216d2;
}

.has-border-rapids-orange {
  border-color: #ffb500;
}

.has-border-rapids-teal {
  border-color: #36c9dd;
}

.has-border-white {
  border-color: rgb(228, 228, 228);
}


/* /// posts /// */
.post-text {
  color: #666666;
  font-weight: 400;
  line-height: 1.4rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-action {
  color: #7306ff;
  font-size: 1.2rem;
  margin-top: 0.5rem;
  font-variant: all-small-caps;
}


/* /// images /// */
.img-center {
  margin: 0 auto;
}

.img-full {
  width: 100%;
}

.img-half {
  width: 50%;
}

.img-third {
  width: 33%;
}

.img-quarter {
  width: 25%;
}

.img-w100 {
  width: 100px;
}

.img-w150 {
  width: 150px;
}

.img-w200 {
  width: 200px;
}

.img-w250 {
  width: 250px;
}

.img-w400 {
  width: 400px;
}

/* /// extra spacers /// */
.is-size-6-half {
  font-size: 0.9rem;
}

.mt-6 {
  margin-top: 2.5rem !important;
}

.mb-6 {
  margin-bottom: 2.5rem !important;
}

.mt-7 {
  margin-top: 3.5rem !important;
}

.mb-7 {
  margin-bottom: 3.5rem !important;
}

.mt-8 {
  margin-top: 4.5rem !important;
}

.mb-8 {
  margin-bottom: 4.5rem !important;
}

.pt-6 {
  padding-top: 2.5rem !important;
}

.pb-6 {
  padding-bottom: 2.5rem !important;
}

.pt-7 {
  padding-top: 3.5rem !important;
}

.pb-7 {
  padding-bottom: 3.5rem !important;
}

.pt-8 {
  padding-top: 4.5rem !important;
}

.pb-8 {
  padding-bottom: 4.5rem !important;
}


/* /// colors /// */
.has-background-rapids-gray {
  background-color: #f8f8f8;
}

.has-background-rapids-purple-primary {
  background-color: #7400ff;
}

.has-background-rapids-purple-secondary1 {
  background-color: #8735fb;
}

.has-background-rapids-purple-secondary2 {
  background-color: #984dfb;
}

.has-background-rapids-pink {
  background-color: #d216d2;
}

.has-background-rapids-orange {
  background-color: #ffb500;
}

.has-background-rapids-teal {
  background-color: #36c9dd;
}

.has-text-rapids-purple-primary {
  color: #7400ff;
}

.has-text-rapids-purple-secondary1 {
  color: #8735fb;
}

.has-text-rapids-purple-secondary2 {
  color: #984dfb;
}

.has-text-rapids-pink {
  color: #d216d2;
}

.has-text-rapids-orange {
  color: #ffb500;
}

.has-text-rapids-teal {
  color: #36c9dd;
}
