@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&text=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzĀāČčĒēĢģĪīĶķĻļŅņŌōPprRSsŠšUūVvZzŽž&display=swap');
:root {
  --navheight: 68px;
  --text-color-light: rgb(247, 244, 237);
  --text-color-dark: rgb(72, 89, 56);
  --text-color-dark-alt: rgb(71, 89, 54);
  --background-light: #edfff4;
  --separator-color: rgb(217, 217, 217);
  --gradient-color: rgba(72, 89, 56, 1);
  --gradient-color-therapy: rgba(72, 89, 57, 0.698);
  --gradient-color-events: rgba(72, 89, 56, 0.35);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navheight);
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

body {
  line-height: 1;
  background-color: var(--background-light);
  font-family: "Now", Helvetica, Arial, sans-serif;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

a,
button {
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

section {
  min-height: fit-content;
  position: relative;
  overflow: hidden;
}

@font-face {
  font-family: "Now";
  src: url("../assets/Now-Medium.otf") format("opentype");
}
@font-face {
  font-family: "Now Regular";
  src: url("../assets/Now-Regular.otf") format("opentype");
}
.zUp {
  position: relative;
  z-index: 1;
}

.main-page.mainContainer {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--background-light);
}

.imageTextBlock {
  display: flex;
  position: sticky;
  top: 0;
  flex-direction: column;
  background-color: var(--background-light);
  z-index: 100;
  transition: background-color 0.3s ease-in-out;
  height: var(--navheight);
  align-content: center;
  justify-content: center;
}

.imageWrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px auto;
  width: 87.96%;
  height: var(--navheight);
  max-width: 100vw;
  position: relative;
}

.introImage {
  height: 44px;
  width: auto;
  visibility: visible;
  opacity: 0;
  transform: translateX(-30px);
  transition: none;
}

body:not(.preload) .introImage {
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.navWrapper {
  display: flex;
  align-items: center;
  column-gap: 20px;
  transform: translateX(calc(-87.96vw / 2 + 50%));
  transition: none;
}

body:not(.preload) .navWrapper {
  transition: transform 0.5s ease-in-out;
}


.imageTextBlock.navbar-scrolled .introImage {
  opacity: 1;
  transform: translateX(0);
}

.imageTextBlock.navbar-scrolled .navWrapper {
  transform: translateX(0);
}

.navWrapper .link {
  font-size: 0.6875rem;
  line-height: 1.23;
  font-family: "Now", Helvetica, Arial, serif;
  color: var(--text-color-dark);
  text-transform: uppercase;
  text-wrap: nowrap;
}
.navWrapper .link:hover {
  color: black;
}

.joinButton {
  display: flex;
  background-color: transparent;
  padding: 5.5px 10px;
  border-radius: 12px;
  border: 1px solid var(--text-color-dark);
  outline: none;
}
.joinButton:hover {
  background-color: var(--text-color-dark);
}
.joinButton:hover .joinText {
  color: white;
}

.joinText {
  font-weight: 700;
  font-size: 0.6875rem;
  line-height: 1.23;
  font-family: "Now", Helvetica, Arial, serif;
  color: var(--text-color-dark);
  text-align: center;
  text-transform: uppercase;
  background-color: transparent;
  transition: color 0.3s ease-in-out;
}


.introSection {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  height: calc(100vh - var(--navheight));
  align-items: center;
}

.detailsWrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 400px;
  max-width: 90%;
}

.textImageWrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  row-gap: 10px;
}

.subtitleText {
  display: flex;
  justify-content: center;
  width: 65%;
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.23;
  font-family: "Now", Helvetica, Arial, serif;
  color: var(--text-color-dark-alt);
  text-align: center;
  text-transform: uppercase;
}

.secondaryImage {
  width: 100%;
}

.scrollDown {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  width: 59px;
}


.section-base {
  display: flex;
  flex-direction: column;
  background: var(--src) center center / cover no-repeat;
}

.content-wrapper-base {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: calc(100vh - var(--navheight));
  position: relative;
}

.text-wrapper-base {
  display: flex;
  flex-direction: column;
  width: 25%;
  row-gap: 10px;
  margin: auto 0;
}

.text-wrapper-left {
  margin-left: 5.71%;
  margin-right: auto;
}
.text-wrapper-right {
  margin-left: auto;
  margin-right: 5.71%;
}

.section-title-base {
  font-family: "Now", Helvetica, Arial, serif;
  color: white;
  font-weight: 700;
  line-height: 1.23;
  font-size: 2.1rem;
  width: 100%;
}

.separator-base {
  width: 100%;
  height: 1px;
  min-height: 1px;
  background-color: var(--separator-color);
  margin-top: 8px;
  border:0;
  margin-bottom: 15px;
}

.section-description-base {
  font-family: "EB Garamond", Helvetica, Arial, serif;
  color: var(--text-color-light);
  line-height: 1.2;
  font-size: 1.3rem;
  width: 100%;
}


.aboutDescription { line-height: 1; }
.whyDescription { line-height: 1; }
.historyDescription { font-weight: 500; line-height: 1; }
.activityDescription { line-height: 1; }
.joinInvite { font-size: 2.1rem; }
.joinBlockWrapper .separator-base { max-width: 100%; }
.joinDescription { line-height: 1; }


.simple-button-base {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid white;
  border-radius: 10px;
  background: transparent;
  color: white;
  font-family: "Now", Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  text-align: center;
  margin-top: 15px;
  width: max-content;
  opacity: 1;
  mix-blend-mode: normal;

  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.simple-button-base span {
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  transition: color 0.3s ease-in-out;
}

.simple-button-base:hover {
  background: white;
  border-color: var(--text-color-dark);
  color: var(--text-color-dark);

  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.linkBtn {
  column-gap: 14px;
  background-color: rgba(217, 217, 217, 0.6);
  margin: 0;
  width: auto;
  border: 1px solid transparent;
  color: black;
  border-radius: 4px;
  justify-content: start;
}
.linkBtn:hover {
  background-color: rgb(217, 217, 217);
  border-color: transparent;
  color: black;

}

.federationLogo {
  width: 32px;
  height: auto;
  vertical-align: middle;
}

.federationText {
  font-size: 0.9375rem;
  line-height: 1.23;
  font-family: "Now", Helvetica, Arial, serif;
}


.therapySection {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--src) -270% center / cover repeat;
}

.therapyContentWrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: calc(100vh - var(--navheight));
  background-color: var(--gradient-color-therapy);
  position: relative;
  padding: 0;
}

.therapyTextWrapper {
  display: flex;
  flex-direction: column;
  row-gap: 22px;
  margin: auto 5.71%;
  max-width: 88.58%;
  z-index: 1;
}

.therapyMainTextWrapper {
  display: flex;
  flex-direction: column;
  row-gap: 0;
}

.therapyTextWrapper .separator-base {
  margin-top: 17px;
  margin-bottom: 23px;
}

.therapyDescription {
  text-align: justify;
}

.therapyLinksWrapper {
  display: flex;
  flex-wrap: wrap;
  column-gap: 27px;
  row-gap: 15px;
  margin-top: 10px;
}


.eventsContentWrapper {
  justify-content: center;
  align-items: center;
}

.eventsMainWrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  row-gap: 16px;
  margin: 10% auto auto;
  width: 88.47%;
  z-index: 1;
  padding-bottom:10%;
}

.eventsListWrapper {
  display: flex;
  flex-direction: column;
  row-gap: 1rem;
}


.eventCardLink {
  display: block;
  text-decoration: none;
  border-radius: 11px;

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.eventCardLink:hover {

  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.eventCard {
  display: flex;
  flex-direction: column;
  background-color: rgba(255, 255, 255, 0.349);
  border-radius: 11px;
  padding: 0.9rem 1.125rem 1rem;

}

.eventInfoWrapper {
  display: flex;
  flex-direction: column;
  row-gap: 4px;
}

.eventDateInfo {
  display: flex;
  align-items: center;
  column-gap: 9px;
}

.eventColorBar {
  width: 2px;
  align-self: stretch;
  min-height: 16px;
  background-color: var(--text-color-light);
}

.eventDate {
  font-family: "EB Garamond", Helvetica, Arial, serif;
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1.25;
  color: var(--text-color-light);
}

.eventTitle {
  font-family: "Now", Helvetica, Arial, serif;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1;
  color: white;
  margin-top:3px;
}
.eventShortDescription{
  font-family: 'EB Garamond', serif; color: var(--text-color-light); font-size: 0.9rem;
}

.content-wrapper-base::before,
.content-wrapper-base::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background: transparent;
}
.content-wrapper-base.gradient-left::before {
  background: linear-gradient( to right, var(--gradient-color), transparent );
}
.content-wrapper-base.gradient-right::before {
  background: linear-gradient( to left, var(--gradient-color), transparent );
}
.content-wrapper-base.gradient-overlay::before {
  background: var(--gradient-color-events);
}
.content-wrapper-base.gradient-bottom::after {
  background: linear-gradient(to top, var(--gradient-color), transparent);
  height: 50%;
  top: auto;
  bottom: 0;
}


.footerSection {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: var(--text-color-light);
  width: 100%;
}

.footerContentWrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footerLinksContainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  margin-bottom: 4rem;
}

.footerLinkItem {
  display: flex;
  align-items: center;
  background-color: #2a2a2a;
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-color-light);
  min-width: 280px;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.footerLinkItem:hover {
  transform: translateY(-5px);
  background-color: #383838;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.footerIconWrapper i {
  font-size: 2.5rem;
  color: var(--primary-accent-color, #ffffff);
  width: 50px;
  text-align: center;
}

.footerTextWrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-left: 20px;
}

.footerLinkTitle {
  font-family: 'Now', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.footerLinkDesc {
  font-family: 'EB Garamond', serif;
  font-size: 0.9rem;
  color: #b0b0b0;
  margin-top: 4px;
}

.footerCopyright {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: #888;
    text-align: center;
}


@media (max-width: 991px) {
  .text-wrapper-base { width: 35%; }
  .section-title-base, .activityTitle, .joinInvite, .therapyQuestion, .eventsTitle { font-size: 1.8rem; }
  .section-description-base{ font-size: 1.1rem; }
  .joinBlockWrapper .separator-base { width: 100%; }
  .joinText { align-items: flex-start; }
  .detailsWrapper { width: 50%; }
  .textImageWrapper { margin-bottom: 3.5rem; }
  .subtitleText { width: 80%; font-size: 1rem; }
  .federationLogo { width: 30px; }
  .federationText { font-size: 0.85rem; }
  .eventColorBar { min-height: 14px; }
  .eventDate { font-size: 0.8rem; }
  .eventTitle { font-size: 1rem; }
}

@media(max-width:575px){
  .imageWrapper{ column-gap: 32px; }
}

@media(max-height: 550px){
  .detailsWrapper{ width: 40%; }
}

@media (max-width: 550px) {
  .footerLinksContainer {
    flex-direction: column;
    align-items: center;
  }
  .content-wrapper-base.gradient-left::before { background: linear-gradient( to top, var(--gradient-color), transparent ); }
  .content-wrapper-base.gradient-right::before { background: linear-gradient( to top, var(--gradient-color), transparent ); }
  .link{ font-size:0.63rem !important; }
  .joinText{ font-size: 0.63rem !important; }
  .hiddenMobile { display: none; }
  .text-wrapper-base { width: 88.58%; margin: auto 5.71% 10%; }
  .introImage{ height: 40px; margin-top:2px; margin-bottom:2px; }
  .section-title-base, .activityTitle, .joinInvite, .eventsTitle { font-size: 1.8rem; }
  .therapyQuestion{ font-size: 1.7rem; }
  .section-description-base{ font-size: 1.125rem; }
  .detailsWrapper { width: 70%; }
  .subtitleText { font-size: 1.2rem; }
  .therapyTextWrapper { margin: 10% 5.71% auto; row-gap: 8px; }
  .therapyLinksWrapper { margin-top: 20px; }
  .linkBtn { width: 100%; }
  .eventsTitle { margin-left: 2px; }
}

@media (max-width: 479px) { /* Oh man I love manual pixel-by-pixel adjustments */
  .imageWrapper { width: 95%;  justify-content: center }
  .navWrapper{ transform: translateX(calc(-95vw / 2 + 50% + 14%)); }
  .link{ font-size:0.59rem !important; }
  .joinText{ font-size: 0.59rem !important; }
}

@media (max-width: 440px) {
  .imageWrapper { width: 100%; }
  .navWrapper{ transform: translateX(calc(-100vw / 2 + 50% + 35px)); }
  .introImage, .navWrapper { position: relative; width: auto; }
}

@media (max-width: 415px){
  .navWrapper{ transform: translateX(calc(-100vw / 2 + 50% + 32px)); }
}

@media (max-width: 390px){
  .navWrapper{ transform: translateX(calc(-100vw / 2 + 50% + 15px)); }
}

@media (max-width: 380px){
  .imageWrapper { column-gap: 18px; }
  .introImage{ height: 35px; }
  .navWrapper{ column-gap: 18px; transform: translateX(calc(-100vw / 2 + 50% + 22px)); }
}


@media (max-width: 380px){
  .navWrapper{ column-gap: 15px; transform: translateX(calc(-100vw / 2 + 50% + 22px)); }
}

@media (max-width: 365px){
  .introImage{ height: 33px; }
  .navWrapper{ column-gap: 15px; transform: translateX(calc(-100vw / 2 + 50% + 15px)); }
  .imageWrapper { column-gap: 15px; }
}

.eventH1{
  font-size: 2rem;
  margin-bottom: 1rem;
}

@media(max-height: 450px){
  .detailsWrapper{ width: 20%; }
  .subtitleText{ width: 100%; }
  .textImageWrapper{ row-gap: 5px; }
  .scrollDown{ bottom: 1.5rem; }
  .section-description-base{ font-size: 0.9rem; }
  .section-title-base{ font-size: 1.5rem; }
  .simple-button-base span{ font-size: 0.8rem; }
  .federationLogo { width: 22px; }
}
