@font-face {
  font-family: 'gilroylight';
  src:
    url('../fonts/gilroy-light.eot') format('embedded-opentype'),
    url('../fonts/gilroy-light-webfont.woff') format('woff'),
    url('../fonts/gilroy-light-webfont.woff2') format('woff2'),
    url('../fonts/gilroy-light.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

svg {
  -webkit-transform: translate3d(0, 0, 0); /* Forces hardware acceleration */
  will-change: filter; /* Optimization hint for better performance */
}

::selection {
  background-color: #FFF0BA;
  color: #1d1f20;
}

* {
  box-sizing: border-box;
}

body, html {
  width: 100%;
  min-width: 100vw;
  height: 100%;
  margin: 0;
  overflow: hidden !important;
  touch-action: manipulation;
}

/* Fade-in effect for the entire page */
#main-content {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

/* After fade-in */
#main-content.fade-in {
  opacity: 1;
}

.hidden{
  opacity: 0;
}

body { 
  background: #1d1f20; 
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #FFF0BA; 
  font-family: 'gilroylight', Helvetica, Arial, sans-serif; 
  font-size: 16px;
  cursor: url('../cursor/cursor.svg'), url('../cursor/cursor.png'), auto;
  max-width: 100vw;
  width: 100%;
}

a{
  text-decoration: inherit;
  color: inherit;
  cursor: pointer;
}

.container {
  padding: 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  position: relative;
  z-index: 1;
}

.container svg{
  padding: 0 1rem;
  width: auto;
  height: 100%;
  max-width: 44cqw;
  overflow: visible;
}

.title {
  position: relative;
  font-size: 3rem;
  text-align: center;
  margin: 0.5em 0;
}

.buttons{
  display: flex;
  justify-content: center;
  width: 100%;
}

.buttons.top {
  position: absolute;
  top: 22%;
}

.buttons.bottom {
  position: absolute;
  bottom: 22%;
}

button {
  font-family: inherit;
  font-size: 1.111em;
  border-radius: 0.25em;
  padding: 1em 1.5em;
  background: transparent;
  text-transform: uppercase;
  letter-spacing: 0.33ch;
  border: none;
  text-shadow: 0 0 1.25em rgba(213, 168, 72, 0.8);
  color: #FFF0BA;
  cursor: pointer;
  z-index: 1;
  transition: opacity 1s ease, color 1s ease, text-shadow 0.5s ease; /* Add transition for opacity and box-shadow -  */
}

button.hidden {
  opacity: 0; /* Ensure hidden buttons are fully transparent */
}

button:hover{
  color: #fff0bab8; 
  text-shadow: 0 0 0.25em rgba(213, 168, 72, 1);
}

.flower-of-life {
  position: fixed;
  width: 6em;
  height: 6em;;
  transform: translate(-50%, -50%); /* Centers the flower */
  font-size: 44rem; /* Adjust size as needed */
  opacity: 0.33;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.petal {
  width: 2em;
  height: 2em;
  position: absolute;
  margin: auto;
  box-sizing: border-box;
  top: -2em;
  left: -2em;
  border-radius: 50%;
  opacity: 0;
  border: 0.111rem solid #e1d4a4;
  box-shadow: 0 0px 5px 0.1rem rgba(213, 168, 72, 0.4);
  animation: petalAppear 5s ease forwards; /* Apply forwards to maintain final state */
}

@keyframes petalAppear {
  to {
      opacity: 1;
  }
}

/* Petal positions and delays for appearance */
.petal:nth-child(1) { top: 0em; left: 2em; animation-delay: 0s; }
.petal:nth-child(2) { top: 1em; left: 2em; animation-delay: 1s; }
.petal:nth-child(3) { top: 2em; left: 2em; animation-delay: 1s; }
.petal:nth-child(4) { top: 2.9985em; left: 2em; animation-delay: 2s; }
.petal:nth-child(5) { top: 4em; left: 2em; animation-delay: 3s; }

.petal:nth-child(6) { top: .5em; left: 1.15em; animation-delay: 5s; }
.petal:nth-child(7) { top: 1.5em; left: 1.151em; animation-delay: 8s; }
.petal:nth-child(8) { top: 2.5em; left: 1.15em; animation-delay: 13s; }
.petal:nth-child(9) { top: 3.5em; left: 1.15em; animation-delay: 21s; }

.petal:nth-child(10) { top: .5em; left: 2.88em; animation-delay: 34s; }
.petal:nth-child(11) { top: 1.5em; left: 2.88em; animation-delay: 55s; }
.petal:nth-child(12) { top: 2.5em; left: 2.88em; animation-delay: 89s; }
.petal:nth-child(13) { top: 3.5em; left: 2.88em; animation-delay: 144s; }

.petal:nth-child(14) { top: 1em; left: .27em; animation-delay: 233s; }
.petal:nth-child(15) { top: 2em; left: .27em; animation-delay: 377s; }
.petal:nth-child(16) { top: 3em; left: .27em; animation-delay: 377s; }

.petal:nth-child(17) { top: 1em; left: 3.73em; animation-delay: 377s; }
.petal:nth-child(18) { top: 2em; left: 3.73em; animation-delay: 377s; }
.petal:nth-child(19) { top: 3em; left: 3.73em; animation-delay: 377s; }

.hidden {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

#contact-title{
  display: flex;
  text-align: center; /* Center text */
  flex-wrap: wrap;
  min-height: 1em; /* Set to the height of the largest text line */
  justify-content: center; /* Center text horizontally */
  align-items: center; /* Center text vertically */
  transition: min-height 1s ease; /* Smooth transition on height change */
}

.bothAnd{
  font-size: 0.7em;
  opacity: 0.777;
}

#contact-title span{
  line-height: 0.8;
}

#animated-text {
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  text-shadow: 0 0 0.2em rgba(213, 168, 72, 0.2)
}

#animated-text.visible {
  opacity: 1;
}

#circle, #i, #text, #dot{
  opacity: 0;
}

ul.contact-info{
  text-align: center;
  font-size: 1.5em;
  opacity: 0.777;
  list-style: none;
  margin: 0;
  padding: 1.8em 0 4em 0
}

ul.contact-info li{
  margin: 0 0 1em 0;
}

.visible {
  opacity: 1 !important;
  transition: opacity 1s ease-in-out;
}

.visible-faded{
  opacity: 0.555;
  transition: opacity 1s ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  ul.contact-info{
    font-size: 1.222em;
    padding: 2.5em 0 8.2em 0;
    text-shadow: 0 0 0.5em #1d1f20;

  }
  .petal{
    border: 0.077rem solid #FFF0BA;
  }
  .container svg{
    max-width: 100%;

  }
  #contact-title span{
    max-width: 7ch;
  }

  #contact-title{
    min-height: 3em;
  }
  
  .bothAnd{
    padding-bottom: 0.3em;
    display: inline-block;
  }
}

@media (max-height: 576px){
  .buttons.top {
    position: absolute;
    top: 11%;
  }
  
  .buttons.bottom {
    position: absolute;
    bottom: 11%;
  }
}

@media
(prefers-reduced-motion: reduce) {
  *{
    cursor: auto; /*reverts to the default cursor */
  }
}