/* Generic CSS Start */
:root {
  --bg-color: #F8F5F2;
  --text-color: #1C1C1C;
}

[data-theme="light"] {
  --bg-color: #F8F5F2;
  --text-color: #1C1C1C;
  --title-color: #A89258;
}

[data-theme="dark"] {
  --bg-color: #1C1C1C;
  --text-color: #F8F5F2;
  --title-color: #9FFEF2;
}


*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-user-select: none;
  /* Safari and older WebKit */
  -moz-user-select: none;
  /* Firefox */
  -ms-user-select: none;
  /* IE/Edge Legacy */
  user-select: none;
  /* Modern browsers */
  letter-spacing: .6px;
  font-synthesis: none !important;
}

html,
body,
p,
h1,
h2,
h3,
h4,
h5,
h6,
figure,
blockquote,
dl,
dd {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins-Bold", sans-serif;
  line-height: 1;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.5s ease, color 0.5s ease;
  overflow-x: hidden;

}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

img,
video,
canvas {
  display: block;
  max-width: 100%;
}

::-webkit-scrollbar {
  display: none;
}

* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
  touch-action: pan-y;
}

section {
  width: 100%;
  height: 100svh;
}

/* Generic CSS End */
/* Custom CSS Start */




.video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  width: 100%;
  min-height: 100%;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: -1;
  object-fit: cover;
}

/* Landing title inversion only in dark mode */
/* body.dark-mode #landing-title,
body.dark-mode #landing-title.invert-image, */
body.dark-mode .diagram>.center>.icon>.circle,
body.dark-mode .diagram>.center>.icon>.circle.invert-image {
  filter: invert(1);
  transition: filter 0.5s ease;
}



/* Default state - no inversion */
#footer_image {
  filter: none;
  transition: filter 0.5s ease;
}



.content {
  line-height: 1.3 !important;
}

section.mission>.content {
  font-size: 2.6vw;
  margin-inline: 2vw;
}

section.mission>.content>div {
  line-height: 1.3;
}

section.mission {
  height: fit-content !important;
  margin-top: 5vh !important;
}

section.icons {
  height: fit-content !important;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
}

.little_image {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1vh;
  text-transform: uppercase;
  overflow: hidden;
}

.little_image>div {
  color: var(--title-color);
}

.little_image>img {
  filter: blur(.4px);
}



#splitLinesServices2 span {
  background-image: linear-gradient(to right, var(--title-color), var(--title-color));
  background-size: 0% 100%;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.5s ease;
  margin-left: -1px;

}



@media only screen and (max-width: 600px) {
  section.mission>.content {
    font-size: 5.5vw !important;
    text-align: left;
  }
}



.second-header {
  color: var(--title-color);
}



.landing-title-container {
  width: 100%;
  position: absolute;
  bottom: 1%;
  overflow: hidden;
  display: flex;
}

#landing-title {
  z-index: 100;
  pointer-events: none;
  perspective: 1000px;
  fill: white;
  margin-inline: auto;
  overflow: hidden;
}

@media (min-width: 1800px) {
  #landing-title {
    width: 80vw;
  }

  #footer_image {
    width: 80vw;
  }
}

@media (max-width: 1800px) {
  #landing-title {
    width: 98vw;
  }

  #footer_image {
    width: 98vw;
  }
}


.landing-content {
  width: 100%;
  height: 100%;

  position: relative;
}

@media screen and (orientation: landscape) and (max-width: 1024px) {
  .second-header {
    padding-top: 20vh !important;
    font-size: 1em !important;
  }

  .event_image_container {
    width: 100% !important;
  }

  .atvImg {
    width: 80% !important;
    height: 80% !important;
  }


  .event_grid {
    grid-template-columns: 1fr 1fr 1fr !important;
  }

  .diagram>div>.subtitle {
    font-size: 3vw !important;

  }

  .diagram>.center {
    margin: 37vh auto !important;
  }

  .inquiry {
    height: 130vh !important;
  }

  .inquiry-title,
  .inquiry-subtitle {
    font-size: 10vw !important;
  }

  section#contact {
    height: 120svh;
  }

}



@media (min-width: 1120px) {
  .second-header {
    padding-top: 25vh;
    padding-left: 62.5vw;
    font-size: 3em;
  }
}

@media (max-width: 1120px) {
  .second-header {
    padding-top: 30vh;
    padding-left: 2vw;
    font-size: 1.6em;
  }
}

.second-title-container {
  overflow: hidden;
  position: relative;
}

.line {
  transform: translateY(100%);
  display: block;
}

.diagram_logo>*,
#footer_image>* {
  fill: var(--title-color);
}


section.images {
  background-color: var(--text-color);
  padding: 2em 2em 6em;
  border-radius: 24px;
  margin: auto;
}

.footer_content {
  flex-flow: column;
  justify-content: space-between;
  align-items: center;
  padding: 1.5vw;
  display: flex;
  width: inherit;
  height: inherit;
  position: relative;
}

.footer_bottom_content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  grid-column-gap: 1vw;
  grid-row-gap: 1vw;
  flex-flow: row;
  margin-top: 10px;
}

.footer_info {
  grid-column-gap: .2vw;
  grid-row-gap: .2vw;
  flex-flow: column;
  justify-content: flex-start;
  align-items: center;
  display: flex;
  margin-top: 50px;
}

.footer_info>a {
  color: var(--title-color);
  text-transform: uppercase;
  text-decoration: none;

}

@media screen and (min-width: 479px) {
  .footer_info>a {
    font-size: 3.2vw;
  }

  .section_title {
    font-size: 10vw;
  }

  .section_title.inner {
    font-size: 8vw;
  }

  .services>.section_title.inner {
    font-size: 7vw;
  }

}

@media screen and (max-width: 479px) {
  .footer_info>a {
    font-size: 6vw;
  }

  .section_title {
    font-size: 17vw;
  }

  .section_title.inner {
    font-size: 13vw;
  }

  .services>.section_title.inner {
    font-size: 11vw;
  }

}

.socials {
  display: flex;
  flex-direction: column;
  justify-content: center;
  grid-column-gap: .4vw;
  align-items: center;
  grid-row-gap: .4vw;
}

.socials>a {
  color: var(--title-color);
  font-size: 4vw;
}

.section_title {
  text-align: left;
  margin: 2vw 2vw 6vw 2vw;
  color: var(--title-color);
}

.section_title.inner {
  text-align: left;
  margin: 2vw 2vw 0vw 2vw;
  color: var(--title-color);
  display: flex;
  gap: 2vw;
  align-items: flex-start;
}

div>.title {
  color: var(--title-color);
}

.event_details_text {
  margin-top: 5px;
  justify-content: space-between;
  align-items: flex-end;
  display: flex;
}

section.events {
  height: fit-content;
  padding: 2vw;
  position: relative;
}




.events>.section_title {
  margin: 0 0vw 6vw -.5vw;
}

.title_display {
  text-transform: uppercase;
  font-size: 8.5vw;
  font-weight: 700;
  line-height: .9em;
}

.event_grid {
  grid-column-gap: 1.5vw;
  grid-row-gap: 3vw;
  grid-template-rows: minmax(auto, 1fr) auto;
  grid-template-columns: 1fr 1fr 1fr;
  grid-auto-columns: 1fr;
  display: grid;
}

@media screen and (max-width: 991px) {
  .event_grid {
    grid-row-gap: 6vw;
    grid-template-columns: 1fr;
  }

  .event_item.none {
    display: none;
  }
}

.event_item {
  width: 100%;
  height: 100%;
  position: relative;
}

.event_image_container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: auto 804 / 1036;
  overflow: hidden;
  transition: 0.25s ease-in-out;
}

.normal_bgg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* larger for movement space */
  background-size: cover;
  background-position: center;
  background-color: rgba(126, 126, 126, 0.372);
}

.parallax_bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 150%;
  /* larger for movement space */
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.normal_bgg.artofstyle {
  background-image: url('../assets/img/theartofstyle.jpeg');
}

.normal_bgg.italodisco {
  background-image: url('../assets/img/italodisco.jpeg');
}

.normal_bgg.lauba {
  background-image: url('../assets/img/lauba.jpeg');
}

.normal_bgg.superklet {
  background-image: url('../assets/img/superklet.jpeg');
}

/* .normal_bgg.artofstyle1 {
  background-image: url('../assets/img/theartofstyle1.jpeg');
} */

.parallax_bg.klet {
  background-image: url('../assets/img/klet.jpg');
  background-position: left;
}

.parallax_bg.karijola {
  background-image: url('../assets/img/karijola.jpg');
}

.parallax_bg.lauba {
  background-image: url('../assets/img/lauba.jpg');
}

.event_item>.event_image_container>img {
  width: 100%;
  height: auto;
  background-color: var(--text-color);
  aspect-ratio: auto 804 / 1036;
  z-index: 0;
}

.event_item>.event_image_container>.card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* @media (max-width: 500px) {
  .event_image_container>div {
    opacity: 1;
  }
}



@media (min-width: 500px) {
  .event_image_container>div {
    opacity: 1;
    transition: all 0.3s ease-in-out;
  }

  .event_image_container:hover>div {
    opacity: 1;
    transition: all 0.3s ease-in-out;
  }

} */


/* Desktop styles */
@media (min-width: 1800px) {
  .atvImg {
    width: 400px;
    height: 500px;
  }
}

@media (min-width: 1300px) and (max-width: 1799px) {
  .atvImg {
    width: 300px;
    height: 375px;
  }
}

@media (max-width: 1299px) {
  .atvImg {
    width: 60%;
    height: 60%;
  }
}



.atvImg {
  position: absolute;
  transform-style: preserve-3d;
  -webkit-tap-highlight-color: rgba(#000, 0);

}

.atvImg img {
  box-shadow: 0 2px 8px rgba(14, 21, 47, 0.25);
}

.atvImg-container {
  position: relative;
  width: 100%;
  height: 100%;

  transition: all 0.2s ease-out;
}

.atvImg-container.over .atvImg-shadow {
  box-shadow: 0 45px 100px rgba(14, 21, 47, 0.4), 0 16px 40px rgba(14, 21, 47, 0.4);
}

.atvImg-layers {
  position: relative;
  width: 100%;
  height: 100%;

  overflow: hidden;
  transform-style: preserve-3d;
}

.atvImg-rendered-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0%;
  left: 0%;
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
  background-size: cover;
  transition: all 0.1s ease-out;
  overflow: hidden;
}

.atvImg-shadow {
  position: absolute;
  top: 5%;
  left: 5%;
  width: 90%;
  height: 90%;
  transition: all 0.2s ease-out;
  box-shadow: 0 8px 30px rgba(14, 21, 47, 0.6);
}

.atvImg-shine {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, .25) 0%, rgba(255, 255, 255, 0) 60%);
}

@media screen and (max-width: 479px) {
  .event_grid {
    grid-row-gap: 15vw;
  }
}

.footer_info>.email {
  border-bottom: 3px solid var(--title-color);
  width: fit-content;
}

.footer_bottom_content>.content {
  display: flex;
  flex-direction: row;
  grid-column-gap: .4vw;
  grid-row-gap: .4vw;
  justify-content: flex-start;
  align-items: center;
}

@media screen and (max-width: 579px) {
  .footer_bottom_content {
    grid-column-gap: 4vw;
    grid-row-gap: 4vw;
    flex-flow: column;
    justify-content: space-between;
    align-items: center;
    padding-top: 6vw;
    padding-bottom: 6vw;
    display: flex;
  }
}

section.services {
  display: flex;
  flex-direction: column;
}

section.services,
section.about {
  height: fit-content !important;
  position: relative;
}

@media screen and (max-width: 1500px) {

  section.mission,
  section.about,
  section.events,
  section.services,
  section.icons,
  #splitLinesServices2 {
    margin-top: 15vh;
  }

  #diagram {
    margin-top: 15vh;
    margin-bottom: 13vh;
  }

}

@media screen and (min-width: 1500px) {

  section.mission,
  section.about,
  section.events,
  section.services,
  section.icons,
  #splitLinesServices2 {
    margin-top: 30vh;
  }

  #diagram {
    margin-top: 30vh;
    margin-bottom: 28vh;
  }
}


.footer_link {
  color: var(--title-color);
}

.mission .line {
  /* Each line is now in its own block-level element */
  display: block;
  line-height: 1.2;
}


@media only screen and (max-width: 600px) {
  section.services>.content {
    font-size: 5.5vw !important;
    text-align: left;
  }

  section.services>.content.services_list {
    font-size: 5.5vw !important;
    text-align: left;
  }

  #diagram {
    margin-inline: 1.2rem !important;
  }
}

section.services>.content {
  font-size: 2.6vw;
  margin-inline: 2vw;
}

section.services>.content.services_list {
  font-size: 2.6vw;
}

#splitLinesServices {
  /* Let the browser word-wrap naturally */
  white-space: normal;
  display: block;
  font-size: 2.6vw;
  /* or your 6.5vw on mobile */
}

.diagram>div>.title {
  font-family: "PFMellonBold", sans-serif;
  font-size: 15vw;
  line-height: 0.8;
}

.diagram {
  display: flex;
  justify-content: space-between;
  padding: 2vw;
  width: 100%;
  align-items: center;
  gap: 50px;
}

.diagram>* {
  flex: 1;
}

.diagram>.center>.icon {
  position: relative;
  text-align: center;
}

.diagram>.center>.icon>.diagram_logo {
  margin: auto;
}

.diagram>.center>.icon>.circle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

@media only screen and (max-width: 1000px) {
  .diagram {
    flex-direction: column;
    align-items: center;
    margin-block: 10vh;
  }

  .diagram>div>.title {
    font-size: 15vw;
    text-align: center;
  }

  .diagram>div>.subtitle {
    font-size: 4.5vw;
  }

  .diagram>div>.subtitle>ul {
    text-align: center;
    text-align: -webkit-center;
  }

  .diagram>.center {
    margin: 14vh auto;
  }

  .diagram>.center>.icon>.diagram_logo {
    width: 70%;
  }

  .diagram>.center>.icon {
    font-size: 30px;
  }

  .little_image>img {
    width: 80px;
  }

  .little_image>div {
    font-size: 1.4em;
  }

}

@media only screen and (min-width: 1000px) {
  .diagram {
    flex-direction: row;
    align-items: start;
    margin-block: 30vh;
  }

  .diagram>div>.title {
    font-size: 8vw;
  }

  .diagram>div>.subtitle {
    font-size: 2vw;
  }

  .diagram>.right>.subtitle {
    text-align: right;
    text-align: -webkit-right;
  }

  .diagram>.center>.icon {
    font-size: 40px;
  }

  .diagram>.right {
    display: flex;
    flex-direction: column;
    align-items: end;
    text-align: right;
  }

  .diagram>.center>.icon>.circle {
    width: 70%;
  }

  .little_image>img {
    width: 200px;
  }

  .little_image>div {
    font-size: 2.4em;
  }
}

@media only screen and (max-width: 1000px) {
  section.about>.content {
    font-size: 4.4vw !important;
    text-align: left;
  }
}

section.about>.content {
  font-size: 2.1vw;
  margin-inline: 2vw;
  line-height: 1.2;
}

section.about {
  margin-bottom: 15vh;
}

.subtitle>ul>li {
  overflow: hidden;
  width: fit-content;
  height: fit-content;
  line-height: 1.2;
}



.inquiry {
  overflow: hidden;
  position: relative;
  height: 80vh;
  color: white !important;
}



.inquiry>.image {
  background-image: url("../assets/img/karijola/4.jpeg");
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 150%;
  /* larger for movement space */
  background-size: cover;
  background-position: center;
  will-change: transform;
  filter: blur(2px);
}

.inquiry-title {
  position: absolute;
  top: 1%;
  left: 0;
  text-align: left;
  line-height: 0.75;
  width: fit-content;
  height: fit-content;
  overflow: hidden;
}

.inquiry-subtitle {
  position: absolute;
  bottom: 1%;
  right: 0;
  text-align: right;
  line-height: 0.75;
  width: fit-content;
  height: fit-content;
  overflow: hidden;
}



@media only screen and (max-width: 1100px) {

  .inquiry-title,
  .inquiry-subtitle {
    font-size: 13vw;
  }

  .inquiry-title {
    top: 1%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
  }

  .inquiry-subtitle {
    bottom: 1%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
  }
}

.inquiry-title,
.inquiry-subtitle {
  line-height: .82 !important;
}

@media only screen and (min-width: 1100px) {

  .inquiry-title,
  .inquiry-subtitle {
    font-size: 8vw;
  }
}


section.landing {
  height: 120svh !important;
}

.event_image_container.klet {
  background-image: url(../assets/img/klet.jpg);
  background-size: cover;
}

.event_image_container.lauba {
  background-image: url(../assets/img/lauba.jpg);
  background-size: cover;
}

.event_image_container.karijola {
  background-image: url(../assets/img/karijola.jpg);
  background-size: cover;
}

.intro {
  position: fixed;
  inset: 0;
  background-color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000000;
}

.intro-text {
  color: white;
  font-size: 3em;
  font-family: sans-serif;
  transform-origin: center;
  z-index: 1000001;
}

.intro-logo {
  width: 100px;
  height: 100px;
}

.intro-logo>* {
  fill: white;
}


@keyframes bg-animation {
  0% {
    transform: translate3d(0, 0, 0);
  }

  10% {
    transform: translate3d(-5%, -5%, 0);
  }

  20% {
    transform: translate3d(-10%, 5%, 0);
  }

  30% {
    transform: translate3d(5%, -10%, 0);
  }

  40% {
    transform: translate3d(-5%, 15%, 0);
  }

  50% {
    transform: translate3d(-10%, 5%, 0);
  }

  60% {
    transform: translate3d(15%, 0, 0);
  }

  70% {
    transform: translate3d(0, 10%, 0);
  }

  80% {
    transform: translate3d(-15%, 0, 0);
  }

  90% {
    transform: translate3d(10%, 5%, 0);
  }

  100% {
    transform: translate3d(5%, 0, 0);
  }
}


.noise::before {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  content: "";
  /* you can control opacity of noise  */
  opacity: .035;
  z-index: 10000000;
  pointer-events: none;
  background: url("../assets/img/noise.gif");
}

#diagram {
  fill: var(--text-color);
  max-width: 1000px;
  opacity: 0;
  margin-inline: auto;
}

@media screen and (max-width: 1000px) and (orientation: landscape) {
  #diagram {
    height: 400px;
  }
}

#diagram .title,
#diagram .title2 {
  opacity: 0;
}


.rotate-loop {
  /* Set the rotation center to the center of the element.
     For an SVG group, 50% 50% usually works, but you may need 
     to adjust this depending on your SVG’s coordinate system */
  transform-origin: 49% 50%;
  /* Apply the animation: name, duration, timing function and infinite looping */
  animation: spin 20s linear infinite;
  fill: var(--title-color);
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.services_list li div {
  overflow: hidden;
  line-height: 1.3;
}

.services_list li div {
  opacity: 0;
}

.section_title_arrow {
  width: 4.5vw;
  fill: var(--title-color);
}

@media only screen and (min-width: 1100px) {

  .section_title_arrow {
    margin-top: 20px;
  }
}

@media only screen and (max-width: 1100px) {

  .section_title_arrow {
    margin-top: 10px;
  }

}



.hide {
  display: none;
}




/* Custom CSS End */