/* The home page, kept visually as the WordPress theme had it.
   Extracted from the theme's style-index.css: hero, steps, the Moodle
   call to action and the thanks note. The carousel is gone, so its card
   is now the panel that shows what a component looks like. */

/* Main section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 36px;
  padding-bottom: 46px;
}
@media screen and (min-width: 768px) {
  .hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
@media screen and (min-width: 768px) {
  .hero {
    padding-bottom: 96px;
  }
}

.hero-text {
  font-family: "Satoshi", sans-serif;
}

.main-title {
  font-style: normal;
  font-size: 24px;
  line-height: 127%;
  text-align: center;
  letter-spacing: -0.02em;
  color: #433E53;
  margin-top: 62px;
  margin-bottom: 24px;
}
@media screen and (min-width: 768px) {
  .main-title {
    margin-top: 0;
    text-align: left;
    font-size: 27px;
  }
}
@media screen and (min-width: 992px) {
  .main-title {
    text-align: left;
    font-size: 33px;
  }
}

.main-title span {
  color: #8552ff;
}

.hero-main-copy {
  text-align: center;
  color: #423d50;
  margin-top: 36px;
  font-size: 18px;
  font-weight: 500;
  line-height: 130%;
  width: 302px;
}
@media screen and (min-width: 768px) {
  .hero-main-copy {
    text-align: left;
    width: auto;
    font-size: 20px;
    line-height: 134%;
  }
}

.heading-image {
  background-image: url("~/assets/images/header-image.png");
  height: 206px;
  width: 200px;
  max-width: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  order: -1;
}
@media screen and (min-width: 768px) {
  .heading-image {
    order: 1;
  }
}

#main-display {
  background-color: #f7f7ff;
  padding-bottom: 36px;
  padding-top: 36px;
}
@media screen and (min-width: 768px) {
  #main-display {
    padding-top: 72px;
  }
}

/* Landing steps */
#landing-steps {
  background-color: #f7f7ff;
  padding-top: 24px;
  padding-bottom: 36px;
  font-size: 18px;
  text-align: center;
}
@media screen and (min-width: 576px) {
  #landing-steps {
    padding-bottom: 96px;
  }
}

#landing-steps p {
  line-height: 1.4;
  margin-top: 12px;
  margin-bottom: 36px;
}
#landing-steps span {
  font-weight: 700;
  background-color: #8552ff;
  color: #fff;
  padding: 6px 11px;
  border-radius: 100%;
}

#landing-steps a {
  color: #8552ff;
  text-decoration: none;
}

.steps-group {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  margin-top: 0;
  font-family: "Satoshi", sans-serif;
  font-weight: 500;
}
@media screen and (min-width: 992px) {
  .steps-group {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 24px;
  }
}

.step-arrow {
  display: none;
  height: 30px;
  width: 42px;
  max-width: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  align-self: center;
}
@media screen and (min-width: 576px) {
  .step-arrow {
    display: flex;
    visibility: hidden;
  }
}
@media screen and (min-width: 992px) {
  .step-arrow {
    visibility: visible;
    margin-top: 112px;
  }
}

#step-arrow-1 {
  margin-left: 0;
  margin-right: 18px;
}

#step-arrow-2 {
  margin-left: 18px;
  margin-right: 0;
}

.step {
  padding-bottom: 64px;
}
@media screen and (min-width: 576px) {
  .step {
    width: 500px;
  }
}
@media screen and (min-width: 992px) {
  .step {
    width: 210px;
  }
}

#step-1-image {
  width: 170px;
  height: 200px;
  background-repeat: no-repeat;
  margin-left: auto;
  margin-right: auto;
}

#step-2-image {
  width: 210px;
  height: 200px;
  background-repeat: no-repeat;
  margin-left: auto;
  margin-right: auto;
}

#step-3-image {
  width: 170px;
  height: 200px;
  background-repeat: no-repeat;
  margin-left: auto;
  margin-right: auto;
}

/* Landing copy */
#copy-summary {
  font-family: "Satoshi", sans-serif;
  font-weight: 500;
  background-color: #f7f7ff;
  padding-top: 48px;
  padding-bottom: 48px;
}
@media screen and (min-width: 992px) {
  #copy-summary {
    font-size: 18px;
  }
}

#copy-summary a {
  color: #8552ff;
}

/* Plugin section */
#copy-plugin {
  padding-top: 72px;
  padding-bottom: 72px;
}
@media screen and (min-width: 768px) {
  #copy-plugin {
    padding-top: 96px;
    padding-bottom: 96px;
  }
}
@media screen and (min-width: 992px) {
  #copy-plugin {
    padding-top: 148px;
    padding-bottom: 148px;
  }
}

.copy-plugin-container p {
  color: #043961;
  text-align: left;
  line-height: 1.4;
  margin-top: 48px;
  font-family: "Satoshi", sans-serif;
  font-weight: 500;
}
@media screen and (min-width: 768px) {
  .copy-plugin-container p {
    margin-top: 0;
  }
}
@media screen and (min-width: 992px) {
  .copy-plugin-container p {
    font-size: 18px;
  }
}

#copy-plugin a {
  text-decoration: none;
}

.plugin-moodle-directory-img {
  height: 100%;
  width: 242px;
  min-height: 242px;
  background-size: contain;
  background-repeat: no-repeat;
  margin-left: auto;
  margin-right: auto;
  background-position: center;
}
@media screen and (min-width: 768px) {
  .plugin-moodle-directory-img {
    margin-right: unset;
  }
}

#moodle-img-bootstrap-grid-column {
  order: -1;
}
@media screen and (min-width: 768px) {
  #moodle-img-bootstrap-grid-column {
    order: 0;
  }
}

#copy-plugin .btn-primary {
  display: block;
  background: linear-gradient(115.35deg, #fd9e45 -23.09%, #ff7600 108.01%);
  border-color: transparent;
  margin-top: 36px;
  border-radius: 6px;
  font-weight: 700;
  box-shadow: 0px 4px 13px rgba(0, 0, 0, 0.16);
}
@media screen and (min-width: 768px) {
  #copy-plugin .btn-primary {
    display: flex !important;
    justify-content: center;
    align-items: center;
    max-width: 200px;
    height: 64px;
  }
}

#copy-plugin .btn-primary:hover,
#copy-plugin .btn-primary:active {
  box-shadow: 0px 4px 13px rgba(0, 0, 0, 0);
}

#moodle-plugin-download {
  position: relative;
}

#moodle-plugin-download:before {
  content: url("data:image/svg+xml;charset=UTF-8, <svg width='24' height='20' viewBox='0 0 24 20' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M1.6873 12.4124C1.92268 12.4124 2.14842 12.5059 2.31486 12.6723C2.4813 12.8387 2.5748 13.0645 2.5748 13.2999V16.7374C2.5748 17.049 2.6986 17.3478 2.91895 17.5682C3.13931 17.7886 3.43817 17.9124 3.7498 17.9124H20.2498C20.5614 17.9124 20.8603 17.7886 21.0807 17.5682C21.301 17.3478 21.4248 17.049 21.4248 16.7374V13.2999C21.4248 13.0645 21.5183 12.8387 21.6847 12.6723C21.8512 12.5059 22.0769 12.4124 22.3123 12.4124C22.5477 12.4124 22.7734 12.5059 22.9399 12.6723C23.1063 12.8387 23.1998 13.0645 23.1998 13.2999V16.7374C23.1998 17.5197 22.889 18.2701 22.3358 18.8233C21.7825 19.3765 21.0322 19.6874 20.2498 19.6874H3.7498C2.96742 19.6874 2.21707 19.3765 1.66384 18.8233C1.11061 18.2701 0.799805 17.5197 0.799805 16.7374V13.2999C0.799805 13.0645 0.893309 12.8387 1.05975 12.6723C1.22619 12.5059 1.45192 12.4124 1.6873 12.4124Z' fill='white'/><path fill-rule='evenodd' clip-rule='evenodd' d='M12.8882 12.6699L15.4975 10.0594C15.6641 9.89281 15.8901 9.79918 16.1257 9.79918C16.3613 9.79918 16.5872 9.89278 16.7538 10.0594C16.9204 10.226 17.014 10.4519 17.014 10.6875C17.014 10.9232 16.9204 11.1491 16.7538 11.3157L12.629 15.4405M12.8882 12.6699V1.06255C12.8882 0.82717 12.7947 0.60143 12.6282 0.434992C12.4618 0.268553 12.2361 0.175049 12.0007 0.175049C11.7653 0.175049 11.5396 0.268553 11.3731 0.434992C11.2067 0.60143 11.1132 0.827169 11.1132 1.06255V12.6699L8.50388 10.0594C8.33728 9.89281 8.11128 9.79918 7.87567 9.79918C7.64006 9.79918 7.4141 9.89278 7.2475 10.0594C7.0809 10.226 6.9873 10.4519 6.9873 10.6875C6.9873 10.9232 7.0809 11.1491 7.2475 11.3157L11.3723 15.4405M11.3723 15.4405C11.4547 15.5231 11.5528 15.5888 11.6605 15.6335ZM11.6605 15.6335C11.7683 15.6782 11.8839 15.7013 12.0007 15.7013ZM12.0007 15.7013C12.1174 15.7013 12.233 15.6782 12.3408 15.6335ZM12.3408 15.6335C12.4486 15.5888 12.5466 15.5231 12.629 15.4405Z' fill='white'/><path d='M15.4975 10.0594L12.8882 12.6699V1.06255C12.8882 0.82717 12.7947 0.60143 12.6282 0.434992C12.4618 0.268553 12.2361 0.175049 12.0007 0.175049C11.7653 0.175049 11.5396 0.268553 11.3731 0.434992C11.2067 0.60143 11.1132 0.827169 11.1132 1.06255V12.6699L8.50388 10.0594C8.33728 9.89281 8.11128 9.79918 7.87567 9.79918C7.64006 9.79918 7.4141 9.89278 7.2475 10.0594C7.0809 10.226 6.9873 10.4519 6.9873 10.6875C6.9873 10.9232 7.0809 11.1491 7.2475 11.3157L11.3723 15.4405L11.6605 15.6335L12.0007 15.7013L12.3408 15.6335L12.629 15.4405L16.7538 11.3157C16.9204 11.1491 17.014 10.9232 17.014 10.6875C17.014 10.4519 16.9204 10.226 16.7538 10.0594C16.5872 9.89278 16.3613 9.79918 16.1257 9.79918C15.8901 9.79918 15.6641 9.89281 15.4975 10.0594Z' fill='white'/></svg>");
  display: inline-block;
  width: 28px;
  height: 28px;
  position: relative;
  top: 1px;
  left: -3px;
}

/* Thanks section */
#copy-thanks {
  color: #fff;
  padding-top: 48px;
  padding-bottom: 48px;
  background-position: top;
  background-repeat: no-repeat;
  /* The theme left this at its natural size, which only covered the section
     because the file happened to be wide enough. Hostinger's CDN resizes a
     large image down to 1600px, so on a wider screen the purple stopped and
     left white down both sides — on the WordPress site too, since the copy
     in the theme is resized the same way. Covering does not depend on how
     big the file arrives. */
  background-size: cover;
}
@media screen and (min-width: 768px) {
  #copy-thanks {
    padding-top: 96px;
    padding-bottom: 96px;
  }
}
@media screen and (min-width: 992px) {
  #copy-thanks {
    padding-top: 148px;
    padding-bottom: 148px;
  }
}

#copy-thanks p {
  color: #fff;
}

.copy-thanks-container a {
  color: #fff;
  text-decoration: none;
}

.ioc-logo-img {
  width: 140px;
  height: 30px;
  background-size: contain;
  background-repeat: no-repeat;
  margin-left: auto;
  margin-right: auto;
  margin-top: 48px;
  margin-bottom: 48px;
}

a.rs-logo-contact {
  border-radius: 100%;
  display: block;
  width: 80px;
  height: 80px;
  margin-left: auto;
  margin-right: auto;
}

.rs-logo-img {
  width: 80px;
  height: 80px;
  background-size: contain;
  background-repeat: no-repeat;
  margin-left: auto;
  margin-right: auto;
  margin-top: 48px;
  margin-bottom: 48px;
  border-radius: 100%;
  -webkit-border-radius: 100%;
  -moz-border-radius: 100%;
  -ms-border-radius: 100%;
  -o-border-radius: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  transition: 0.2s ease-in-out;
  -webkit-transition: 0.2s ease-in-out;
  -moz-transition: 0.2s ease-in-out;
  -ms-transition: 0.2s ease-in-out;
  -o-transition: 0.2s ease-in-out;
}

a.rs-logo-contact:hover {
  background: #805fcd !important;
}

a.rs-logo-contact:hover .rs-logo-img {
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* The panel that shows what a component looks like. This was the carousel's
   card in the theme; same white-on-lavender, same lift, and nothing else —
   the margin and the rounded corners here were mine, and the theme has
   neither. */
.home-demo-card {
  background: #fff;
  box-shadow: 0px 4px 24px rgba(0, 0, 0, 0.15);
  padding: 48px;
}

/* What Bootstrap's container, row and column did for these sections.
 *
 * Each section of the theme's front page sits in a container and picks its
 * own columns, so the widths step differently from one another and from the
 * rest of the site. These are those columns, measured back against the
 * rendered theme with tools/compare.mjs:
 *
 *   #main-display   col-12,  col-lg-10 offset-lg-1, col-xl-8 offset-xl-2
 *   #landing-steps  col-10 offset-1,                col-xl-8 offset-xl-2
 *   the two-column  col-10 offset-1, two col-md-5,  two col-xl-4
 */
.home-inner {
  width: 100%;
  margin: 0 auto;
  padding: 0 12px;
}
@media (min-width: 576px)  { .home-inner { max-width: 540px; } }
@media (min-width: 768px)  { .home-inner { max-width: 720px; } }
@media (min-width: 992px)  { .home-inner { max-width: 960px; } }
@media (min-width: 1200px) { .home-inner { max-width: 1140px; } }
@media (min-width: 1400px) { .home-inner { max-width: 1320px; } }

/* The hero and the slider: full width, then col-lg-10, then col-xl-8. */
#main-display .home-inner > * { margin-left: auto; margin-right: auto; }
@media (min-width: 992px)  { #main-display .home-inner > * { width: 83.3333%; } }
@media (min-width: 1200px) { #main-display .home-inner > * { width: 66.6667%; } }

/* Everything else starts at col-10 and narrows to col-xl-8 — and unlike the
   hero above, it sits in a .row. The row cancels the container's 24px gutter
   and the column puts 12px of it back on each side, so a column of fraction
   f is 24(1 - f) narrower than f of the container: 4px at col-10, 8px at
   col-xl-8. A plain percentage ran those few pixels wide. */
/* The logo link is not one of these. It is 80px wide and centred by its own
   margins, and WordPress has it that way too — what sits in a column there is
   the thing around it, not the link. Letting this rule reach it made the box
   736px wide, which is invisible until the hover fills it and a round badge
   becomes an oval the width of the page. */
.home-inner > .steps-group,
.home-split,
#copy-summary {
  width: calc(83.3333% - 4px);
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 1200px) {
  .home-inner > .steps-group,
  .home-split,
  #copy-summary { width: calc(66.6667% - 8px); }
}

/* The pairs: one under the other until md, side by side after. Side by side
   they are two columns of a row, so what separates them is the 24px gutter;
   a wider gap comes straight out of the text. Stacked, the gap is vertical
   and 36px is what the theme leaves. */
.home-split, #copy-summary { display: grid; gap: 36px; column-gap: 24px; align-items: start; }
@media (min-width: 768px) {
  .home-split, #copy-summary { grid-template-columns: 1fr 1fr; }
}
#copy-summary { padding-bottom: 72px; }

/* The hero image is a background, so it needs a box to fill. */
.heading-image { min-height: 206px; }

.home-demo-card p:first-child { margin-top: 0; }


/* The slider, from the theme. */
/* Carousel controls */
.carousel-control-next,
.carousel-control-prev {
  width: auto;
  opacity: 1;
}

.carousel-control-next {
  right: -56px;
}

.carousel-control-prev {
  left: -56px;
}

@media screen and (min-width: 576px) {
  .carousel-control-next {
    right: -78px;
  }

  .carousel-control-prev {
    left: -78px;
  }
}

@media screen and (min-width: 768px) {
  .carousel-control-next {
    right: -96px;
  }

  .carousel-control-prev {
    left: -96px;
  }
}

@media screen and (min-width: 855px) {
  .carousel-control-next {
    right: -136px;
  }

  .carousel-control-prev {
    left: -136px;
  }
}

@media screen and (min-width: 992px) {
  .carousel-control-next {
    right: -150px;
  }

  .carousel-control-prev {
    left: -150px;
  }
}

.carousel-control-next-icon,
.carousel-control-prev-icon {
  display: block;
  width: 40px;
  height: 40px;
  background-image: url("/assets/img/noun-arrow-2570178.svg") !important;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 50px 50px;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.carousel-control-next-icon {
  transform: rotate(-90deg);
}

.carousel-control-prev-icon {
  transform: rotate(90deg);
}

.carousel-control-next:hover .carousel-control-next-icon,
.carousel-control-prev:hover .carousel-control-prev-icon {
  transform: scale(1.04);
  opacity: 1;
}

.carousel-control-next:hover .carousel-control-next-icon {
  transform: rotate(-90deg) scale(1.04);
}

.carousel-control-prev:hover .carousel-control-prev-icon {
  transform: rotate(90deg) scale(1.04);
}

@media screen and (min-width: 768px) {
  .carousel-control-next-icon,
  .carousel-control-prev-icon {
    width: 48px;
    height: 48px;
  }
}

/* One slide at a time. Bootstrap hid the others; so does this. */
.carousel { position: relative; }
.carousel-item { display: none; }
.carousel-item.active { display: block; }
.carousel-section { position: relative; }
.carousel-control-prev, .carousel-control-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: 0; cursor: pointer; padding: 0; z-index: 2;
}
