/* Copyright 2023 MuseMaze Inc. All Rights Reserved */

/* General style. */
:root {
  --main-text-color: #bbb;
  --dark-text-color: #888;
  --call-text-color: #ccc;
  --quote-text-color: #aaa;
  --device-hover-text-color: #fff;

  --block-border-color: #22272c;  /* #272727 */
  --block-field-color: #111214;  /* #111 */
  --block-field-light-color: #17181b;
  --section-light-color: #0f0f14;
  --section-dark-color: black;
  --quote-background-color: #888;
  --call-border-color: #31394d;  /* #333 */
  --footer-color: #111214;  /* #111 */

  --highlight-gradient: linear-gradient(45deg, #5b6, #56f);
  --button-pale-gradient: linear-gradient(45deg, #161d17, #191b29);
  --button-pale-dark-gradient: linear-gradient(45deg, #101611, #141621);
  --call-button-pale-gradient: linear-gradient(45deg, rgb(18, 40, 22), rgb(19, 23, 58));
  --main-horizontal-gradient: linear-gradient(to right, #5b6, #56f);

  --block-outer-radius: 22px;
  --block-inner-radius: 14px;
  --block-border: 8px;  
  --block-vertical-separator: 4px;
  --phone-radius: 8px;
  --video-width: 250px;
  --video-height: 412px;
  --highlight-radius: 12px;
  --highlight-thickness: 3px; 
  --devices-hang-down: 44px;
  --quote-padding: 18px 24px 18px 24px;

  --star-s-size: 30px;
  --star-m-size: 50px;
  --star-l-size: 70px;
}

body {
  margin: 0;
  height: 100%;
  background: var(--section-dark-color);
  line-height: 1.6;
  color: var(--main-text-color);
}

h1 {
  flex: 1;
  font-size: max(4.5vw, 32px);
  text-align: center;
  font-weight: bold;
  width: fit-content;
  padding-left: 12px;
  padding-right: 12px;
}

h2 {
  font-size: max(2vw, 18px);
  text-align: center;
  color: var(--dark-text-color);
  font-weight: normal;
  max-width: max(80%, 480px);
  padding-left: 12px;
  padding-right: 12px;
}

a {
  color: var(--main-text-color);
  text-decoration: none;
}

section {
  padding-top: 160px;
}

video {
  width: var(--video-width);
  height: var(--video-height);
  background: var(--section-light-color);
}

.star-hook {
  position: relative;
  height: 0;
  width: 0;
}

.star-s, .star-m, .star-l {
  position: absolute;
  z-index: -1;
}

.star-s {
  width: var(--star-s-size);
  height: var(--star-s-size);
  margin-top: calc(var(--star-s-size) / -2);
  margin-left: calc(var(--star-s-size) / -2);
}

.star-m {
  width: var(--star-m-size);
  height: var(--star-m-size);
  margin-top: calc(var(--star-m-size) / -2);
  margin-left: calc(var(--star-m-size) / -2);
}

.star-l {
  width: var(--star-l-size);
  height: var(--star-l-size);
  margin-top: calc(var(--star-l-size) / -2);
  margin-left: calc(var(--star-l-size) / -2);
}

.row {
  display: flex;
}

.center-content {
  width: fit-content;
  margin: auto;
}

.call-for-action-container {
  background: var(--call-border-color);
  padding:var(--block-border);
  position: relative;
  top: 42px;
  white-space: nowrap;
  overflow: hidden;
}

.pricing-block .call-for-action-container {
  position: static;
}

.call-for-action-background {
  background: var(--call-button-pale-gradient);
}

.call-for-action-button-border {
  padding: var(--highlight-thickness);
  background: transparent;
  cursor: pointer;
}

.call-for-action-button-border:hover {
  padding: var(--highlight-thickness);
  background: var(--highlight-gradient);
}

.call-for-action-button-border:hover .call-for-action-button {
  background: var(--call-button-pale-gradient);
}

.call-for-action-button {
  color: var(--call-text-color);
  padding: 18px 24px 18px 24px;
}

.call-for-action-vertical-separator {
  width: var(--block-vertical-separator);
  background: var(--call-border-color);
}

/* Menu style. */
#top-cover {
  background: var(--section-dark-color);
  box-shadow: 0px 0px 20px 20px var(--section-dark-color);
  position: fixed;
  top: 0;
  left: 0;
  height: 60px;
  width: 100%;
  z-index: 200;
}

#top-container {
  position: fixed;
  width: 100%;
  z-index: 201;
}

.top-menu {
  margin: 12px;
  margin-left: 40px;
  padding:var(--block-border);
  min-width: 260px;
  background: var(--block-border-color);
}

#everycircuit-logo {
  position: absolute;
  top: 5px;
  left: 6px;
  width: 80px;
  height: 80px;
}

#everycircuit-text {
  font-size: 28px;
  font-weight: bold;
  margin-left: 46px;
  padding-top: 4px;
}

.menu-spacer {
  flex: 0.1;
  min-width: 12px;
}

#search {
  flex: 1;
  background: var(--block-field-color);
  padding: var(--highlight-thickness);
  height: 44px;
}

#search:hover {
  background: var(--highlight-gradient);
}

#search:hover #search-input {
  background: var(--button-pale-gradient);
}

#search-input {
  width: 100%;
  height: 100%;
  font-size: 15px;
  text-overflow: ellipsis;
  color: var(--main-text-color);
  background: var(--block-field-color);
  padding: 10px 16px 10px 16px;
  border: none;
  box-sizing: border-box;
}

#search-input:focus {
  outline: none;
}

.menu-item {
  padding: var(--highlight-thickness);
  background: var(--block-field-color);
  cursor: pointer;
}

.menu-item:first-child {
  border-top-left-radius: var(--block-inner-radius);
  border-bottom-left-radius: var(--block-inner-radius);
}

.menu-item:last-child {
  border-top-right-radius: var(--block-inner-radius);
  border-bottom-right-radius: var(--block-inner-radius);
}

.menu-item:first-child .menu-item-text {
  border-top-left-radius: var(--highlight-radius);
  border-bottom-left-radius: var(--highlight-radius);
}

.menu-item:last-child .menu-item-text {
  border-top-right-radius: var(--highlight-radius);
  border-bottom-right-radius: var(--highlight-radius);
}

@media (hover: hover) and (pointer: fine) {

  /* Prevent menu item taps on touchscreen from leaving items selected. */
  .menu-item:hover {
    background: var(--highlight-gradient);
  }
}

@media (pointer:none),
(pointer:coarse) {

  /* Show platform link underlines for touchscreen, since there is no hover. */
  .stats-platform-link::after {
    background: var(--main-horizontal-gradient);
  }
}

.menu-item-text {
  font-size: 15px;
  background: var(--block-field-color);
  padding: 10px 1.2vw 10px 1.2vw;
}

.menu-item:hover .menu-item-text {
  background: var(--button-pale-gradient);
}

.menu-vertical-separator {
  width: var(--block-vertical-separator);
  background: var(--block-border-color);
}

/* About section style. */

#section-about {
  background: var(--section-light-color);
}

#section-about {
  padding-top: 120px;
}

#simulator-description {
  scroll-margin: 100px;
  max-width: 860px;
}

.about-text-container {
  margin-left: 24px;
  margin-right: 24px;
}

.about-phone-container {
  margin-left: 24px;
  margin-right: 24px;
}

.about-text-container h3 {
  font-weight: bold;
  font-size: 24px;
  margin: 0;
}

.about-text {
  color: var(--dark-text-color);
  padding: 8px 0 24px 24px;
}

.phone {
  height: var(--video-height);
  padding: var(--block-border);
  background: var(--block-border-color);
  border-radius: var(--phone-radius);
}

.stats-container {
  margin-left: auto;
  margin-left: auto;
  max-width: calc(100% - 24px);
  box-sizing: border-box;
  background: var(--block-border-color);
  padding:var(--block-border);
}

.stats-emphasis-text {
  font-size: 32px;
  font-weight: bold;
}

.stats-button-border {
  padding: var(--highlight-thickness);
  background: var(--block-field-light-color);
  cursor: pointer;
}

.stats-button-border:hover {
  background: var(--highlight-gradient);
}

.stats-button-border:hover .stats-button {
  background: var(--button-pale-gradient);
}

/* No border highlight for stats item with no onclick. */
#stats-platforms.stats-button-border:hover {
  background: var(--button-pale-gradient);
  cursor: auto;
}

.stats-button {
  background: var(--block-field-light-color);
  font-size: clamp(13px, 1.7vw, 18px);
  padding: 12px 18px 12px 18px;
}

.stats-platform-link {
  padding-bottom: 5px;
  position: relative;
  text-decoration: none;
}

.stats-platform-link:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: var(--highlight-thickness);
  width: 100%;
}

/* Show platform link underlines on hover. */
#stats-platforms:hover .stats-platform-link::after {
  background: var(--main-horizontal-gradient);
}

.stats-vertical-separator {
  width: var(--block-vertical-separator);
  background: var(--block-border-color);
}

/* Gallery section style. */
#gallery-sparse-container {
  width: 50%;
  height: 640px;
  overflow: hidden;
}

#gallery-dense-container {
  width: 50%;
  height: 640px;
  overflow: hidden;
}

#gallery-sparse {
  width: 1000px;
  margin-right: 0;
  margin-top: 0;
  float: right;
  cursor: pointer;
}

#gallery-dense {
  width: 1000px;
  margin-left: 0;
  margin-top: 0;
  cursor: pointer;
}

.marker {
  position: absolute;
  display: none;
  background: transparent;
  border: var(--highlight-thickness) solid;
  border-image: var(--highlight-gradient) 1;
  box-sizing: border-box;
  pointer-events: none;
}

#gallery-quote-hook {
  position: relative;
  height: 0;
}

.gallery-quote {
  position: absolute;
  width: min(350px, 85vw);
  top: 486px;
  right: -298px;
  padding: var(--highlight-thickness);
  background: var(--quote-background-color);
  z-index: 10;
}

.gallery-quote-button {
  background: var(--block-field-color);
  padding: var(--quote-padding);
}

.gallery-quote-button-text {
  color: var(--quote-text-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#star-l1-anim1, #star-l1-anim2, #star-l1-anim3, #star-l1-anim4 {
  left: 15vw;
  top: -130px;
}

#star-s2 {
  left: 10vw;
  top: -60px;
}

#star-s1 {
  left: 5vw;
  top: 0;
}

#star-m1 {
  left: 80vw;
  top: -160px;
}

#star-m3 {
  left: 83vw;
  top: 0px;
}

#star-s3 {
  left: 75vw;
  top: -120px;
}

#star-s4 {
  left: 90vw;
  top: -100px;
}

#star-s6 {
  left: 70vw;
  top: -30px;
}

#star-m2 {
  left: 75vw;
  top: 20px;
}

#star-s5 {
  left: 85vw;
  top: 40px;
}

/* Features section style. */
#section-features {
  background: var(--section-light-color);
  margin-bottom: var(--devices-hang-down);
}

.feature-videos {
  max-width: 95%;
}

.feature-videos h3 {
  font-size: 16px;
  font-weight: bold;
  margin: 0;
  margin-bottom: 12px;
}

.video-phone-description {
  font-size: 14px;
  margin-bottom: 24px;
  min-height: 112px;
  width: auto;
  color: var(--dark-text-color);
}

.video-phone-container {
  width: calc(2 * var(--block-border) + var(--video-width));
  padding: var(--block-outer-radius);
  border-radius: var(--block-outer-radius);
}

.video-phone-container:hover {
  background: var(--button-pale-gradient);
}

/* Devices. */
.devices-container {
  position: relative;
  display: flex;
  width: 95%;
  min-width: 1100px;
  max-width: 1560px;
  margin: auto;
  background: var(--block-border-color);
  border-radius: var(--block-outer-radius);
  padding:var(--block-border);
  margin-top: calc(-1 * var(--devices-hang-down));
  bottom: calc(-1 * var(--devices-hang-down));
}

.devices-col {
  flex: 1;
  background: var(--block-field-light-color);
  margin-right: var(--block-vertical-separator);
}

.devices-col:hover {
  background: var(--button-pale-gradient);
}

.devices-col:first-child {
  border-top-left-radius: var(--block-inner-radius);
  border-bottom-left-radius: var(--block-inner-radius);
}

.devices-col:last-child {
  border-top-right-radius: var(--block-inner-radius);
  border-bottom-right-radius: var(--block-inner-radius);
  margin-right: 0;
}

.device-category {
  margin: 18px 12px 24px 12px;
  font-weight: bold;
  color: var(--main-text-color);
}

.device {
  display: flex;
  margin: 18px 0 18px 6px;
}

.device:hover {
  cursor: pointer;
}

.device:hover .device-icon {
  filter: brightness(4);
}

.device:hover .device-name {
  color: var(--device-hover-text-color);
}

.device:hover .device-name::after {
  background: var(--main-horizontal-gradient);
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: var(--highlight-thickness);
  width: 100%;
}

.device-icon {
  width: 28px;
  height: 28px;
}

.device-name {
  position: relative;
  white-space: nowrap;
  font-size: 13px;
  color: var(--dark-text-color);
  padding-top: 4px;
  margin: 0 8px 0 8px;
}

#devices-quote-hook {
  position: relative;
  height: 0;
  bottom: calc(-1 * var(--devices-hang-down));
}

.devices-quote {
  position: absolute;
  width: min(460px, 85vw);
  top: -40px;
  left: 7%;
  padding: var(--highlight-thickness);
  background: var(--quote-background-color);
  z-index: 10;
}

.devices-quote-button {
  background: var(--block-field-light-color);
  padding: var(--quote-padding);
}

.devices-quote-button-text {
  color: var(--quote-text-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Pricing section style. */
.pricing-container {
  background: var(--block-border-color);
  padding: var(--block-border);
}

.pricing-block {
  line-height: 2.0;
  background: var(--block-field-color);
  width: 310px;
  padding: 12px 24px 18px 24px;
}

.pricing-block:hover {
  background: var(--button-pale-dark-gradient);
}


.pricing-block:first-child {
  border-top-left-radius: var(--block-inner-radius);
  border-bottom-left-radius: var(--block-inner-radius);
}

.pricing-block:last-child {
  border-top-right-radius: var(--block-inner-radius);
  border-bottom-right-radius: var(--block-inner-radius);
}

.pricing-block h3 {
  font-weight: normal;
  margin: 0;
}

.price {
  font-size: 40px;
  color: var(--main-text-color);
  width: fit-content;
}

.price-note {
  padding-bottom: 24px;
}

.pricing-description {
  margin-top: 24px;
  color: var(--dark-text-color);
}

.pricing-vertical-separator {
  width: var(--block-vertical-separator);
  background: var(--block-border-color);
}

#pricing-for-educators-compact {
  display: none;
}

#star-s9 {
  left: 5vw;
  top: -70px;
}

#star-m4 {
  left: 10vw;
  top: -140px;
}

#star-s7 {
  left: 90vw;
  top: -60px;
}

#star-s8 {
  left: 70vw;
  top: -150px;
}

#star-l2 {
  left: 80vw;
  top: -150px;
}

/* Footer style. */
footer {
  font-size: 14px;
  padding-top: 24px;
  margin-top: 96px;
  width: 100%;
  background: var(--footer-color);
}

footer a {
  color: var(--dark-text-color);
  text-decoration: none;
  height: 100%;
}

footer ul {
  padding-left: 0px;
  list-style-type: none;
}

footer li {
  color: var(--dark-text-color);
  margin-top: 12px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  padding-left: 1vw;
  padding-right: 1vw;
}

.footer-block {
  width: 10uv;
  padding-top: 12px;
  margin-left: 3vw;
  margin-right: 3vw;
  position: relative;
}

.footer-block-wide {
  flex: 1;
  min-width: max(30%, 180px);
}

footer h3 {
  color: var(--dark-text-color);
  font-weight: bold;
  padding-bottom: 8px;
  margin: 0;
}

.footer-item-link {
  position: relative;
  text-decoration: none;
  width: fit-content;
  margin-top: 12px;
  padding-bottom: 5px;
}

.footer-item-link:hover::after {
  background: var(--main-horizontal-gradient);
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: var(--highlight-thickness);
  width: 100%;
}

.copyright {
  color: #666;
  font-size: 12px;
  padding: 24px;
  padding-left: 4vw;
  padding-top: 0;
}


/* Decoration style. */
.gradient-text {
  background-image: var(--main-horizontal-gradient);
  background-size: 100%;
  background-repeat: repeat;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-background-clip: text;
  -moz-text-fill-color: transparent;
}

.gradient-underline {
  padding-bottom: 5px;
  position: relative;
  text-decoration: none;
}

.gradient-underline::after {
  background: var(--main-horizontal-gradient);
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: var(--highlight-thickness);
  width: 100%;
}

.shaded {
  box-shadow: 0px 0px 6px 4px #000;
}

.shaded-thick {
  box-shadow: 0px 0px 30px 15px #000;
}

.rounded {
  border-radius: var(--block-outer-radius);
}

.rounded-bottom {
  border-bottom-right-radius: var(--block-outer-radius);
  border-bottom-left-radius: var(--block-outer-radius);
}

.rounded-small {
  border-radius: var(--block-inner-radius);
}

.rounded-small-left {
  border-top-left-radius: var(--block-inner-radius);
  border-bottom-left-radius: var(--block-inner-radius);
}

.rounded-small-right {
  border-top-right-radius: var(--block-inner-radius);
  border-bottom-right-radius: var(--block-inner-radius);
}

.rounded-small-bottom-right {
  border-bottom-right-radius: var(--block-inner-radius);
}

.rounded-small-internal {
  border-radius: var(--highlight-radius);
}

.rounded-small-internal-left {
  border-top-left-radius: var(--highlight-radius);
  border-bottom-left-radius: var(--highlight-radius);
}

.rounded-small-internal-right {
  border-top-right-radius: var(--highlight-radius);
  border-bottom-right-radius: var(--highlight-radius);
}

.rounded-small-internal-bottom-left {
  border-bottom-left-radius: var(--highlight-radius);
}

.rounded-small-internal-bottom-right {
  border-bottom-right-radius: var(--highlight-radius);
}

.rounded-small-top-right {
  border-top-right-radius: var(--block-inner-radius);
}

.rounded-small-top-left {
  border-top-left-radius: var(--block-inner-radius);
}

.rounded-small-bottom-right {
  border-bottom-right-radius: var(--block-inner-radius);
}

.rounded-small-bottom-left {
  border-bottom-left-radius: var(--block-inner-radius);
}

.medium-spacer {
  padding: 18px;
}

/* Assume desktop, and let JS update it. */
.desktop-only {
  display: block;
}

.android-only {
  display: none;
}

.ios-only {
  display: none;
}

@media screen and (max-width: 1250px) {
  .feature-videos {
    max-width: 100%;
    overflow-x: scroll;
    overflow-y: hidden;
    padding-bottom: 24px;
  }
}

@media screen and (max-width: 1140px) {
  .devices-container {
    min-width: 360px;
    width: min(100% - 24px, 640px);
    box-sizing: border-box;
  }

  .devices-col {
    padding-top: 108px;
  }

  .device-category {
    transform: rotate(-90deg) translateX(-18px);
    transform-origin: 0 0;
    width: 0;
    left: calc(50% - 24px);
    position: relative;
  }

  .device {
    margin: 24px 0 24px 0;
  }

  .device-icon {
    margin-left: auto;
    margin-right: auto;
  }

  .device-name {
    display: none;
  }

  .devices-quote {
    top: -12px;
  }
}

@media screen and (max-width: 1120px) {

  #pricing-for-educators,
  #pricing-for-educators-separator {
    display: none;
  }

  #pricing-paid {
    border-top-right-radius: var(--block-inner-radius);
    border-bottom-right-radius: var(--block-inner-radius);
  }

  #pricing-for-educators-compact {
    display: block;
    margin-top: 36px;
  }
}

@media screen and (max-width: 799px) {

  .menu-items,
  .menu-spacer-right {
    display: none;
  }
}

@media screen and (max-width: 790px) {

  .star-s, .star-m, .star-l {
    display: none;
  }

  .about-text-container {
    margin-top: 48px;
  }

  #simulator-description.row {
    flex-wrap: wrap-reverse;
  }

  .stats-container {
    max-width: 262px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    box-sizing: border-box;
  }

  .stats-container.row {
    flex-wrap: wrap;
  }

  .stats-vertical-separator {
    display: none;
  }

  .stats-horizontal-separator-mobile {
    margin-bottom: 8px;
  }

  .stats-button-border,
  #stats-platforms {
    border-radius: var(--block-inner-radius);
    width: 100%;
  }

  .stats-button {
    border-radius: var(--block-inner-radius);
    padding-top: 2px;
    padding-bottom: 6px;
    font-size: 18px;
  }

  .about-phone-container {
    margin-left: auto;
    margin-right: auto;
  }

  .about-text-container h3 {
    font-weight: bold;
    font-size: 20px;
    margin: 0;
  }
}

@media screen and (max-width: 740px) {
  .pricing-container.row {
    flex-wrap: wrap;
  }
  
  .pricing-container {
    margin-left: 8vw;
    margin-right: 8vw;
  }

  .pricing-vertical-separator {
    display: none;
  }

  .pricing-block {
    border-radius: var(--block-inner-radius);
    width: 100%;
  }

  .pricing-horizontal-separator-mobile {
    margin-bottom: 24px;
  }

  .pricing-description {
    font-size: 15px;
  }
}

@media screen and (max-width: 719px) {
  h2 br {
    display: none;
  }
}

@media screen and (max-width: 600px) {
  #gallery-sparse-container {
    display: none;
  }

  #gallery-dense-container {
    width: 100%;
    overflow: hidden;
    position: relative;
  }

  #gallery-dense {
    left: 80%;
    margin-left: -500px;
    position: absolute;
  }

  .gallery-quote {
    right: initial;
    margin-left: 24px;
    top: 536px;
  }
}

@media screen and (max-width: 480px) {
  #search {
    display: none;
  }
}