@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

body {
    font-family: "Montserrat", sans-serif;
    background-color: #1a1a1a;
    color: #e0e0e0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.door {
    position: fixed;
    top: 0;
    width: 50vw;
    height: 100vh;
    background-color: #111;
    z-index: 1001; /* Higher than cursor bubble */
    transition: transform 1.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.door.left {
    left: 0;
}

.door.right {
    right: 0;
}

.door.left.open {
    transform: translateX(-100%);
}

.door.right.open {
    transform: translateX(100%);
}

/* Initially hide content and fade it in */
.top-bar, .content, .background-bubbles, .cursor-bubble {
    opacity: 0;
    transition: opacity 1s ease-in 1s;
}

body.loaded .top-bar,
body.loaded .content,
body.loaded .background-bubbles,
body.loaded .cursor-bubble {
    opacity: 1;
}

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    text-align: center;
    z-index: 10;
    background-color: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-bottom: 0px solid rgba(224, 224, 224, 0.1);
}

.top-bar span {
    font-family: 'EB Garamond', serif;
    font-size: 28px;
    font-weight: 700;
    color: #e0e0e0;
}

.content {
    z-index: 1;
    position: relative;
    padding: 20px;
}

h1 {
    font-size: 60px;
    font-weight: 600;
    padding: 0;
    margin: 0;
}

p {
    font-size: 24px;
    color: #a0a0a0;
    margin-top: 10px;
}


.cursor-bubble {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(199, 231, 158, 0.7);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
    z-index: 999;
}

.background-bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.background-bubbles li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(199, 231, 158, 0.2);
    animation: animate-bubbles 25s linear infinite;
    bottom: -150px;
}

.background-bubbles li:nth-child(1) { left: 25%; width: 80px; height: 80px; animation-delay: 0s; }
.background-bubbles li:nth-child(2) { left: 10%; width: 20px; height: 20px; animation-delay: 2s; animation-duration: 12s; }
.background-bubbles li:nth-child(3) { left: 70%; width: 20px; height: 20px; animation-delay: 4s; }
.background-bubbles li:nth-child(4) { left: 40%; width: 60px; height: 60px; animation-delay: 0s; animation-duration: 18s; }
.background-bubbles li:nth-child(5) { left: 65%; width: 20px; height: 20px; animation-delay: 0s; }
.background-bubbles li:nth-child(6) { left: 75%; width: 110px; height: 110px; animation-delay: 3s; }
.background-bubbles li:nth-child(7) { left: 35%; width: 150px; height: 150px; animation-delay: 7s; }
.background-bubbles li:nth-child(8) { left: 50%; width: 25px; height: 25px; animation-delay: 15s; animation-duration: 45s; }
.background-bubbles li:nth-child(9) { left: 20%; width: 15px; height: 15px; animation-delay: 2s; animation-duration: 35s; }
.background-bubbles li:nth-child(10) { left: 85%; width: 150px; height: 150px; animation-delay: 0s; animation-duration: 11s; }

@keyframes animate-bubbles {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }
    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}


.button-9 {
  appearance: button;
  backface-visibility: hidden;
  background-color: #c7e79e;
  border-radius: 6px;
  border-width: 0;
  box-shadow: rgba(50, 50, 93, .1) 0 0 0 1px inset,rgba(50, 50, 93, .1) 0 2px 5px 0,rgba(0, 0, 0, .07) 0 1px 1px 0;
  box-sizing: border-box;
  color: #1a1a1a;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-size: 100%;
  font-weight: 600;
  height: 44px;
  line-height: 1.15;
  margin: 25px 0 0;
  outline: none;
  overflow: hidden;
  padding: 0 25px;
  position: relative;
  text-align: center;
  text-transform: none;
  transform: translateZ(0);
  transition: all .2s,box-shadow .08s ease-in;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.button-9:disabled {
  cursor: default;
  opacity: 0.7;
}

.button-9:focus {
  box-shadow: 0 0 0 4px rgba(199, 231, 158, 0.5);
}

.button-9:hover {
    background-color: #bde092;
}

@media screen and (max-width: 768px) {
    h1 {
        font-size: 45px;
    }
    p {
        font-size: 18px;
    }
    .cursor-bubble {
        display: none;
    }
}