/* ============================================
   HOROSCOP2009 - Main Stylesheet
   Clone Layout 1:1 from Costarastrology.com
   ============================================ */

/* Google Fonts (only allowed external resource) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Space+Mono:wght@400;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  --bg-light: #f7f7f7;
  --bg-white: #fbfbfb;
  --bg-dark: #141414;
  --text-primary: #575657;
  --text-light: #fbfbfb;
  --border-color: #d6d6d6;
  --font-serif: 'Playfair Display', 'Times New Roman', serif;
  --font-sans: 'Inter', Arial, sans-serif;
  --font-mono: 'Space Mono', 'Andale Mono', monospace;
}

/* ---- Reset ---- */
html, body, div, span, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, img, ol, ul, li, fieldset, form, label, legend, table, caption,
tbody, tfoot, thead, tr, th, td, article, aside, canvas, details,
figure, figcaption, footer, header, nav, section {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  font-size: 100%;
  vertical-align: baseline;
}

html { line-height: 1; }
ol, ul { list-style: none; }
a { text-decoration: none; color: #000; }
a img { border: none; }
* { box-sizing: border-box; }

::selection { background: #575657; color: #f7f7f7; }
::-moz-selection { background: #575657; color: #f7f7f7; }

/* ---- Base ---- */
html, body {
  height: 100%;
}

body {
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-primary);
  line-height: 20px;
  min-height: 100%;
}

/* ---- Typography ---- */
h1 {
  font-family: var(--font-serif);
  font-size: 40px;
  line-height: 40px;
  color: var(--text-primary);
  letter-spacing: 0;
  font-weight: 400;
}

h2 {
  font-family: var(--font-serif);
  font-size: 30px;
  line-height: 34px;
  color: var(--text-primary);
  letter-spacing: 0;
  font-weight: 400;
}

h3 {
  font-family: var(--font-serif);
  font-size: 23px;
  line-height: 26px;
  color: var(--text-primary);
  letter-spacing: 0;
  font-weight: 400;
}

h4, .section-title, .btn, .nav-item {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-primary);
  letter-spacing: 0;
  line-height: 16px;
  text-transform: uppercase;
}

h6 {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--text-primary);
  letter-spacing: 0;
  line-height: 21px;
}

p {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-primary);
  letter-spacing: 0;
  line-height: 20px;
}

/* ---- Grid Background ---- */
.grid-canvas {
  z-index: -1;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 99px,
      rgba(0, 0, 0, 0.03) 99px,
      rgba(0, 0, 0, 0.03) 100px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 99px,
      rgba(0, 0, 0, 0.03) 99px,
      rgba(0, 0, 0, 0.03) 100px
    );
}

/* ---- Header ---- */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
  background-color: rgba(247, 247, 247, 0.92);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  height: 55px;
}

header .logo {
  float: left;
  margin-top: 0;
  margin-left: 16px;
  display: flex;
  align-items: center;
  height: 55px;
}

header .logo a {
  font-family: var(--font-serif);
  font-size: 23px;
  line-height: 26px;
  color: var(--text-primary);
  text-decoration: none;
}

header .right {
  float: right;
  margin-right: 34px;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 55px;
}

header .right a {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-primary);
  letter-spacing: 0;
  line-height: 16px;
}

header .right a:hover {
  text-decoration: underline;
}

@media only screen and (max-width: 656px) {
  header .right {
    margin-right: 20px;
    display: none;
  }
  header .right.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 55px;
    right: 0;
    background: var(--bg-light);
    padding: 20px 34px;
    gap: 15px;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    align-items: flex-start;
  }
}

/* Hamburger */
header .hamburger {
  cursor: pointer;
  width: 35px;
  height: 35px;
  position: absolute;
  right: 20px;
  top: 10px;
  display: none;
}

@media (max-width: 656px) {
  header .hamburger {
    display: inline-block;
  }
}

header .hamburger .bar {
  display: block;
  width: 18px;
  height: 1px;
  margin: 3.5px auto;
  transition: all 0.3s ease-in-out;
  background-color: #575657;
  position: absolute;
  left: 8.5px;
}

header .hamburger .bar:nth-child(1) { top: 7px; }
header .hamburger .bar:nth-child(2),
header .hamburger .bar:nth-child(3) { top: 15px; }
header .hamburger .bar:nth-child(4) { top: 22px; }

header .hamburger.active .bar:nth-child(1),
header .hamburger.active .bar:nth-child(4) {
  opacity: 0;
  width: 0;
  top: 15px;
}
header .hamburger.active .bar:nth-child(2) { transform: rotate(45deg); }
header .hamburger.active .bar:nth-child(3) { transform: rotate(-45deg); }

/* ---- Marquee ---- */
.marquee {
  height: 25px;
  padding-top: 10px;
  width: 100%;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-white);
}

.marquee div {
  display: flex;
  width: 200%;
  height: 30px;
  position: absolute;
  overflow: hidden;
  animation: marquee 11s linear infinite;
}

.marquee span {
  float: left;
  width: 9.1%;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-primary);
  text-transform: uppercase;
  text-align: center;
}

@media only screen and (min-width: 656px) and (max-width: 980px) {
  .marquee div { animation: marquee 7s linear infinite; }
  .marquee span { width: 14%; }
}

@media only screen and (max-width: 656px) {
  .marquee div { animation: marquee 3s linear infinite; }
  .marquee span { width: 25%; }
}

@keyframes marquee {
  0% { left: 0; }
  100% { left: -100%; }
}

.marquee.header-marquee {
  padding-bottom: 18px;
  padding-top: 4px;
}

.marquee.footer-marquee {
  margin-bottom: 40px;
}

/* ---- Hero / Launch Section ---- */
.launch-hero {
  padding: 140px 0 0;
  text-align: center;
}

@media only screen and (max-width: 656px) {
  .launch-hero {
    padding: 90px 20px 30px;
  }
}

.launch-hero h1 {
  margin-top: 15px;
  font-size: 40px;
}

.launch-hero h3 {
  max-width: 750px;
  margin: 0 auto;
}

.launch-hero .subtitle {
  padding-top: 20px;
  text-align: center;
}

@media only screen and (max-width: 656px) {
  .launch-hero .subtitle {
    padding-top: 15px;
    margin: 0 auto;
  }
}

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

.header-btns .btn.learn-more {
  display: block;
  border: none;
  margin: 20px auto 0;
  padding: 0;
  background: none;
  cursor: pointer;
}

.header-btns .btn.learn-more span {
  text-decoration: underline;
}

.btn {
  text-decoration: none;
  border: 1px solid #252525;
  width: 160px;
  text-align: center;
  margin: 35px 10px 0px;
  cursor: pointer;
  padding: 10px 0px;
  border-radius: 0px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  display: inline-block;
  background: transparent;
  color: var(--text-primary);
}

.btn.black {
  background-color: #141414;
  color: var(--text-light);
}

.btn.black:hover {
  background-color: #141414;
  color: var(--text-light);
}

.launch-hero-image-desktop {
  max-height: 80vh;
  display: block;
  margin: 50px auto 0;
  max-width: 850px;
}

@media only screen and (max-width: 656px) {
  .launch-hero-image-desktop {
    display: none;
  }
}

.launch-hero-image-mobile {
  display: none;
}

@media only screen and (max-width: 656px) {
  .launch-hero-image-mobile {
    display: block;
    width: 100%;
    margin: 50px auto -20px;
    max-width: 350px;
  }
}

/* Hero arrow animation */
.hero-arrow {
  position: absolute;
  bottom: 9vh;
  font-size: 16px;
  animation: wiggle 1.5s ease 0s infinite;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
}

@media only screen and (max-width: 656px) {
  .hero-arrow { display: none; }
}

@keyframes wiggle {
  0% { transform: translate(1px, 0px) rotate(0deg); }
  10% { transform: translate(0px, -1px) rotate(-1deg); }
  20% { transform: translate(-1px, 0px) rotate(1deg); }
  30% { transform: translate(0px, -1px) rotate(0deg); }
  40% { transform: translate(1px, 0px) rotate(1deg); }
  50% { transform: translate(0px, 1px) rotate(-1deg); }
  60% { transform: translate(-1px, 1px) rotate(0deg); }
  70% { transform: translate(0px, 0px) rotate(-1deg); }
  80% { transform: translate(-1px, -1px) rotate(1deg); }
  90% { transform: translate(0px, 0px) rotate(0deg); }
  100% { transform: translate(1px, -1px) rotate(-1deg); }
}

/* ---- Container System ---- */
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 100px 100px 100px;
  background-color: transparent;
  width: 100%;
}

@media only screen and (min-width: 656px) and (max-width: 980px) {
  .container { padding: 0 40px 40px 40px; }
}

@media only screen and (max-width: 656px) {
  .container { padding: 0; }
}

.container-inner {
  width: 100%;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  display: flex;
  text-align: center;
  justify-content: space-around;
  padding: 50px 50px 0 50px;
}

@media only screen and (max-width: 656px) {
  .container-inner {
    flex-direction: column;
    border: none;
    background-color: transparent;
    background-image: linear-gradient(-180deg, rgba(255, 255, 255, 0) 0%, #fff 100%);
    padding: 40px 40px 0 40px;
  }
}

/* ---- Dark Section ---- */
.dark-container {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding-top: 90px;
}

.dark-container .section-title {
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 16px;
  width: 100%;
}

@media only screen and (max-width: 656px) {
  .dark-container .section-title {
    margin-bottom: 10px;
    margin-top: 25px;
  }
}

.dark-container .container-inner {
  background-color: inherit;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1000px;
  border: none;
  padding: 0;
}

@media only screen and (max-width: 656px) {
  .dark-container {
    padding-top: 10px;
    margin-top: -11px;
  }
  .dark-container .container-inner {
    align-items: center;
    padding: 40px 20px 60px;
    background-image: none;
  }
}

@media only screen and (min-width: 656px) and (max-width: 980px) {
  .dark-container {
    padding: 60px 40px;
  }
}

/* What Is This items */
.what-is-this {
  width: 280px;
  max-width: 30%;
}

@media only screen and (max-width: 656px) {
  .what-is-this {
    width: 100%;
    max-width: 100%;
    text-align: center;
  }
  .what-is-this p { text-align: left; }
  .what-is-this img { margin: 0 40px; }
  .what-is-this:nth-child(2) { text-align: left; }
  .what-is-this:last-child { text-align: right; }
}

.what-is-this .image-desc {
  width: 280px;
  height: 220px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media only screen and (max-width: 980px) {
  .what-is-this .image-desc {
    padding: 0;
    width: 100%;
    height: auto;
    margin: 25px 0 20px;
  }
}

.what-is-this img {
  max-width: 130px;
}

.what-is-this:hover > .image-desc img {
  animation: wiggle 1.5s ease 0s infinite;
}

.what-is-this p {
  color: var(--text-light);
}

/* ---- Feature Sections ---- */
.container.feature {
  justify-content: left;
  width: 100%;
  background-image: linear-gradient(-180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 100%);
  padding: 50px;
}

@media only screen and (min-width: 656px) and (max-width: 980px) {
  .container.feature { padding: 30px 10px 20px; }
}

@media only screen and (max-width: 656px) {
  .container.feature { padding: 30px 0; }
}

.feature-image-desktop {
  display: block;
}

@media only screen and (max-width: 656px) {
  .feature-image-desktop { display: none; }
}

.feature-image-mobile {
  display: none;
}

@media only screen and (max-width: 656px) {
  .feature-image-mobile {
    display: block;
    width: 100%;
    margin: 0 auto;
  }
}

.feature-image-desktop-chart {
  width: 65.5%;
  margin-left: 3%;
  max-width: 700px;
}

.feature-image-desktop-compat {
  width: 63%;
  margin-left: 12%;
  max-width: 700px;
}

.feature-image-desktop-update {
  width: 66%;
  margin-left: 5%;
  max-width: 700px;
}

.feature-image-mobile-chart { width: calc(100% - 60px); }
.feature-image-mobile-compat { width: 100%; }
.feature-image-mobile-update { width: calc(100% - 60px); }

.feature-text {
  margin-left: 50%;
  margin-top: -100px;
  padding: 0 4% 20px 4.5%;
}

.feature-text * {
  margin-top: 20px;
}

@media only screen and (max-width: 656px) {
  .feature-text {
    margin: 0 auto;
    padding: 0 30px;
  }
}

.feature-text h4,
.feature-text a {
  text-decoration: underline;
}

/* ---- Quotes Carousel ---- */
.quotes-container {
  background-color: var(--bg-light);
  padding-top: 23px;
  padding-bottom: 20px;
  position: relative;
  overflow: hidden;
}

@media only screen and (max-width: 656px) {
  .quotes-container { padding-bottom: 35px; }
}

.quotes-track-wrapper {
  position: relative;
  overflow: hidden;
}

.quotes-track {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 0 40px;
}

.quotes-track::-webkit-scrollbar {
  display: none;
}

.quote-box {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border-color);
  margin: 0 6px;
  padding: 20px;
  height: 250px;
  min-width: 280px;
  max-width: 280px;
  position: relative;
  flex-shrink: 0;
}

.quote-box:hover {
  background-color: #fff;
}

.quote-box h6 {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 24px;
  color: var(--text-primary);
}

.quote-attribution {
  position: absolute;
  bottom: 16px;
  padding-right: 15px;
  text-transform: none;
  font-size: 11px;
  line-height: 14px;
  font-family: var(--font-sans);
}

.quote-attribution .name {
  text-transform: none;
  font-size: 11px;
  text-decoration: underline;
}

/* Carousel arrows */
.quotes-arrow {
  position: absolute;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 2;
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--text-primary);
  padding: 0;
}

.quotes-arrow.prev {
  left: 0;
  background-image: linear-gradient(-90deg, rgba(247, 247, 247, 0) 0%, rgba(247, 247, 247, 0.9) 50%, #f7f7f7 100%);
  padding: 0 40px 0 10px;
}

.quotes-arrow.next {
  right: 0;
  background-image: linear-gradient(90deg, rgba(247, 247, 247, 0) 0%, rgba(247, 247, 247, 0.9) 50%, #f7f7f7 100%);
  padding: 0 20px 0 40px;
}

.quotes-arrow span {
  display: inline-block;
}

.quotes-arrow.prev span {
  transform: rotate(90deg);
}

.quotes-arrow.next span {
  transform: rotate(-90deg);
}

/* ---- Dark Form Section (Footer Form) ---- */
.dark-form-section {
  background-color: var(--bg-dark);
  padding: 80px 50px;
  text-align: center;
  color: var(--text-light);
}

@media only screen and (max-width: 656px) {
  .dark-form-section {
    padding: 50px 20px;
  }
}

.dark-form-section .cta-link {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-light);
  text-decoration: underline;
  letter-spacing: 0;
  line-height: 16px;
  display: inline-block;
  margin-bottom: 40px;
}

.email-form.footer {
  margin: 0 auto;
  max-width: 620px;
  line-height: 55px;
}

.email-form.footer form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.email-form.footer .user-data {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  line-height: 50px;
  justify-content: space-around;
  width: 100%;
}

@media only screen and (max-width: 656px) {
  .email-form.footer .user-data {
    gap: 25px;
  }
}

.email-form.footer span,
.email-form.footer label {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--text-light);
  font-style: italic;
}

.email-form.footer input:not([type=checkbox]):not(.btn),
.email-form.footer textarea {
  height: 30px;
  font-family: var(--font-serif);
  font-size: 24px;
  border: none;
  border-bottom: 1px solid var(--text-light);
  background-color: transparent;
  color: var(--text-light);
  text-align: center;
  padding: 0 20px;
  outline: none;
  -webkit-appearance: none;
  border-radius: 0;
}

.email-form.footer input::placeholder {
  color: #575657;
  font-family: var(--font-serif);
  font-size: 24px;
  font-style: italic;
}

.email-form.footer input::-webkit-datetime-edit {
  color: #575657;
  font-family: var(--font-serif);
  font-size: 24px;
}

.email-form.footer input.full::-webkit-datetime-edit {
  color: var(--text-light);
}

.email-form.footer input[type=date]::-webkit-calendar-picker-indicator,
.email-form.footer input[type=time]::-webkit-calendar-picker-indicator {
  display: none;
}

@media only screen and (max-width: 656px) {
  .email-form.footer input:not([type=checkbox]):not(.btn) {
    width: 100%;
  }
}

.email-form.footer .header-btns {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.email-form.footer .header-btns input {
  width: 98%;
  max-width: 620px;
  margin: 20px 5px 0;
  padding: 15px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--text-light);
  color: var(--text-light);
  cursor: pointer;
  letter-spacing: 0;
}

.email-form.footer .header-btns input:hover {
  background: var(--text-light);
  color: var(--bg-dark);
}

@media only screen and (max-width: 656px) {
  .email-form.footer .header-btns input {
    width: 100%;
    padding: 10px;
    margin: 40px 0;
  }
}

@media only screen and (max-width: 980px) {
  .email-form.footer input:not(#place):not(.btn) {
    padding: 0;
  }
}

/* ---- Footer ---- */
.site-footer {
  background-color: var(--bg-dark);
  padding: 0 50px 50px 50px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media only screen and (max-width: 656px) {
  .site-footer {
    padding: 50px 20px;
  }
}

.footer-separator {
  border-top: #575657 1px solid;
  width: 100%;
  height: 1px;
}

@media only screen and (max-width: 656px) {
  .footer-separator { display: none; }
}

.footer-grid {
  padding-top: 50px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media only screen and (max-width: 656px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-logo {
  justify-self: flex-start;
}

.footer-logo img {
  width: 93px;
  /* Since the original logo is "Co-Star" we won't use the image. We use text instead */
}

.footer-logo a {
  font-family: var(--font-serif);
  font-size: 23px;
  color: var(--text-light);
  text-decoration: none;
}

@media only screen and (max-width: 656px) {
  .footer-logo { display: none; }
}

.footer-links {
  justify-self: flex-end;
  display: flex;
  flex-direction: row;
  gap: 100px;
}

@media only screen and (min-width: 656px) and (max-width: 980px) {
  .footer-links { gap: 50px; }
}

@media only screen and (max-width: 656px) {
  .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
  }
}

.footer-link-column {
  display: flex;
  flex-direction: column;
}

.footer-link-column h4 {
  text-decoration: underline;
  line-height: 3;
  color: var(--text-light);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
}

.footer-link-column h4 a {
  color: var(--text-light);
}

.footer-link-column h4 a:hover {
  opacity: 0.7;
}

.footer-social {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 15px;
}

.footer-social-icons {
  display: flex;
  gap: 15px;
}

.footer-social-icons a {
  display: flex;
  align-items: center;
}

.footer-social-icons img {
  width: 20px;
  height: 20px;
}

/* ---- Utility ---- */
.hide { display: none; }
.center { text-align: center; display: block; }
.uppercase { text-transform: uppercase; }

@media only screen and (min-width: 980px) {
  .hide-on-desktop { display: none; }
}
@media only screen and (min-width: 656px) and (max-width: 980px) {
  .hide-on-tablet { display: none; }
}
@media only screen and (max-width: 656px) {
  .hide-on-mobile { display: none; }
}

/* =========================================
   HEADER DROPDOWN MENUS
   ========================================= */
.nav-item-wrapper {
  position: relative;
  display: inline-block;
  margin-left: 20px;
}

.nav-item-wrapper.has-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 35px;
  right: -50px;
  width: 150px;
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  padding: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  z-index: 100;
}

.nav-item-wrapper:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  margin-top: 10px;
  margin-bottom: 0.3rem;
  list-style: none;
}

.dropdown-menu li:nth-child(n+1):nth-child(-n+9) {
  margin-top: 5px;
}

.dropdown-menu li a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: var(--text-dark);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 16px;
  text-transform: uppercase;
}

.dropdown-menu li a:hover {
  text-decoration: underline;
}

/* Specific alignment for Shop menu since it has less items */
.dropdown-menu.shop-menu {
  width: 110px;
  right: -30px;
}
