:root {
    p, a {
        /* warm summer */
        color: #fff;
        filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.6));
    }

    /* prevent double highlighting */
    a:has(> p) p {
        filter: none;
    }

    p.pst {
        color: #E75A0A;
    }

    i.fa-solid, i.fa-regular {
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
    }

    cursor: none;
    a {
        cursor: none;
    }
}

@import url('https://fonts.googleapis.com/css2?family=Averia+Serif+Libre&display=swap');

@font-face {
    font-family: "Autography";
    src: url(./media/Autography.otf);
  }

  @font-face {
    font-family: "DIN1451";
    src: url(./media/DIN1451-36breit.otf);
  }

* {
    z-index: 1;
}

canvas.particles-js {
    position: absolute;
    top: 0;
    z-index: 0;
}

body {
    background-color: #1c1c1c;
    margin: 0;
    overflow: hidden;
}

.background-video {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    object-fit: contain;
}

.background-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
    z-index: -1;
    object-fit: contain;
}

#enter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    font-size: 24px;
    text-align: center;
    z-index: 100;
    backdrop-filter: blur(20px);
    cursor: none;

    p {
        color: #fff;
        font-family: "Autography";
        font-size: 100px;
        visibility: visible;
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }
  }
  
#enter-overlay {
  opacity: 1;
  visibility: visible;
  transition: opacity 1s ease, visibility 1s ease;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(200px);
}

#enter-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
}

p#eop {
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 1));
}

#eop.fade-out {
  opacity: 0;
  visibility: hidden;
}


div.boxes {
    display: flex;
    justify-content: center;
}

div.box {
    position: fixed;
    top: 20%;
    height: auto;
    width: 40%;
    max-width: var(--containerWidth);
    background-color: rgba(42, 42, 42, 0.8);
    margin-top: 40px;
    border-radius: 20px;
    backdrop-filter: blur(2px);
    padding-bottom: 10px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    will-change: transform;
    transition: 1200ms cubic-bezier(0.03, 0.98, 0.52, 0.99);
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1);

    box-shadow: 0 0 40px 10px #000;
    border: 2px solid #fff;

    /*summer*/
     /*box-shadow: 0 0 40px 10px rgba(176, 82, 29, 0.6);
     border: 1px solid #E75A0A;
     animation: summer 8s linear infinite; */

    /*winter*/
    /*box-shadow: 0 0 40px 10px rgba(26, 109, 176, 0.6);
    border: 1px solid #7ab3ef;
    animation: winter 6s linear infinite;*/

    transform: translateY(100vh) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1);
    transition: transform 1.2s cubic-bezier(0.03, 0.98, 0.52, 0.99);
}

div.box.show-box {
    transform: translateY(0) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1);
}

@keyframes summer {
    0% {
        border-color: #E75A0A;
    }
    40% {
        border-color: #E9770A;
    }
    65% {
        border-color: #EB940A;
    }
    80% {
        border-color: #EFCE0A;
    }
    100% {
        border-color: #E75A0A;
    }
}

@keyframes winter {
    0% {
        border-color: #7ab3ef;
    }
    25% {
        border-color: #bedaf7;
    }
    50% {
        border-color: #deecfb;
    }
    75% {
        border-color: #bedaf7;
    }
    100% {
        border-color: #7ab3ef;
    }
}

div.top {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
}

p.pst {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-family: "Autography";
    font-size: 60px;
    text-align: center;
    display: inline-block;
    margin: 0 auto;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 1));
}

.tav {
    position: relative;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    height: 120px;
    width: auto;
    border-radius: 50%;
     border: 1px solid #D7A481; 
    /* border: 1px solid #bedaf7; */
    box-shadow: 0 0 20px 5px rgba(209, 188, 168, 0.4);
}

p, a {
    color: #fff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 20px;
    text-align: center;
    display: inline-block;
    margin: 0 auto;
    padding: 4px;
}

.pd {
    position: relative;
    top: -20px;
}

.pd.a {
    text-decoration: none;
}

.und {
    a::after {
    content: ""; 
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    border-radius: 50%;
  }

  a:hover::after {
    transform: scaleX(1);
  }
}

.info {
    position: relative;
    top: -20px;
    left: calc(50% - 60px);
    height: auto;
    width: max-content;
    text-align: left;
    font-size: 15px;

    i.fa-solid {
        font-size: 20px;
        padding: 5px;
        width: auto;
        color: #fff;
    }

    img {
        height: 15px;
        width: auto;
        margin-right: 10px;
    }
}

.section {

    p {
        position: relative;
    }
}

div.social {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

div.social .link {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

div.social .link img {
  height: 25px;
  width: auto;
}

/* ai for smooth circles on hover */

div.social .link::before {
  content: ""; 
  position: absolute;
  top: -5px;
  left: -5px;
  width: calc(100% + 6px);
  height: calc(100% + 6px);
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #fff;
  pointer-events: none;

  opacity: 0;
  transition: opacity 2s ease;
  
  animation: spin 1s cubic-bezier(0.25, 1, 0.5, 1) infinite;
  animation-play-state: paused;
}

div.social .link:hover::before {
  opacity: 1;
  animation-play-state: running;
}

@keyframes spin {
  0%   { transform: rotate(0deg); }
  5%   { transform: rotate(8deg); }
  10%  { transform: rotate(18deg); }
  15%  { transform: rotate(35deg); }
  20%  { transform: rotate(55deg); }
  25%  { transform: rotate(78deg); }
  30%  { transform: rotate(102deg); }
  35%  { transform: rotate(128deg); }
  40%  { transform: rotate(154deg); }
  45%  { transform: rotate(182deg); }
  50%  { transform: rotate(215deg); }
  55%  { transform: rotate(242deg); }
  60%  { transform: rotate(266deg); }
  65%  { transform: rotate(285deg); }
  70%  { transform: rotate(300deg); }
  75%  { transform: rotate(312deg); }
  80%  { transform: rotate(322deg); }
  85%  { transform: rotate(330deg); }
  90%  { transform: rotate(338deg); }
  95%  { transform: rotate(348deg); }
  100% { transform: rotate(360deg); }
}

/* end */

.fa-regular.fa-eye {
    position: relative;
    color: #fff;
    font-size: 20px;
    left: 10px;
}

.appreciation {
  position: absolute;
  bottom: 0;
  right: 10px;

  p, a {
    font-size: 20px;
    text-decoration: none;
    position: relative;
  }

  a::after {
    content: ""; 
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    border-radius: 50%;
  }

  a:hover::after {
    transform: scaleX(1);
  }
}

#hello-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.8);
  font-size: 24px;
  text-align: center;
  z-index: 101;
  backdrop-filter: blur(20px);

  opacity: 0;
  visibility: hidden;
  transform: translateY(0);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;

  p {
    font-size: 60px;
  }
}

#hello-overlay.show {
  opacity: 1;
  visibility: visible;
}

#hello-overlay.slide-down {
  transform: translateY(-100%);
}

#hop {
    position: relative;
    opacity: 0;
}

#hello-overlay p#hop::after {
  content: ""; 
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%; 
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  border-radius: 50%;
}

#hello-overlay.show p#hop::after {
  animation: drawLine 2.2s cubic-bezier(.32,1,1,.4) 0.6s forwards;
  /* https://cubic-bezier.com/#.32,1,1,.4 */
}

@keyframes drawLine {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

#hop.fade-in {
    opacity: 1;
    transition: opacity 0.4s ease;
}

#hop.fade-out {
    opacity: 0;
    transition: opacity 0.2s ease;
}