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

body {
    font-family: 'Arial', sans-serif;
    background-color: #111;
    color: #fff;
    overflow-x: hidden;
    overflow-y: hidden;
}

canvas {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99;
}

#home-button {
    position: fixed;
    top: 20px;
    left: 20px;
    font-family: 'AukimExtraBold', sans-serif;
    font-size: 2vw;
    color: #fff;
    text-decoration: none;
    z-index: 1000; /* Ensure it is above other content */
}

#home-button:hover {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.section {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    scroll-snap-align: start;
}

.section.content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    scroll-snap-align: start;
}


@keyframes scale-up {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(5);
    }
}

@font-face {
    font-family: 'AukimExtraBold';
    src: url('fonts/AukimExtraBold.otf') format('truetype');
    font-weight: bold;
    font-style: normal;
}
@font-face {
    font-family: 'AukimLight';
    src: url('fonts/AukimLight.otf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'BCcardL';
    src: url('fonts/BCcardL.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'BCcardB';
    src: url('fonts/BCcardL.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

h1 {
    position: absolute;
    font-family: 'AukimExtraBold', sans-serif;
    font-size: 3vw;
    margin-bottom: 20px;
    animation: scale-up 3s ease-in-out forwards;
}

#bottom-text {
    position: absolute;
    bottom: 20px; /* Adjust this value to change the distance from the bottom */
    left: 50%;
    transform: translateX(-50%);
    font-family: 'BCcardB', sans-serif;
    font-size: 1.2vw; /* Adjust the font size as needed */
    text-align: center;
    color: #fff;
}

p {
    font-size: 1.2vw;
    margin-bottom: 40px;
}

.next-section {
    background-color: #111;
    padding: 100px;
    text-align: center;
    z-index: 100;
}

.next-section h2 {
    font-size: 3vw;
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'BCcardB', sans-serif;
    text-align: center;
    color: #fff;
    white-space: nowrap; /* Prevents wrapping onto multiple lines */
    overflow: hidden; /* Hides overflow content */
}

.scroll-down, .scroll-up {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    color: transparent;
    cursor: pointer;
    user-select: none;
}

.scroll-up {
    bottom: auto;
    top: 20px;
}

.third-content {
    background-color: #111;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: relative;
    z-index: 100;
}

.third-content h2 {
    font-size: 3vw;
    position: absolute;
    top: 80px;
    font-family: 'BCcardB', sans-serif;
    text-align: center;
    color: #fff;
    margin-bottom: 20px;
    z-index: 1;
}

.third-content p {
    font-family: 'BCcardL', sans-serif;
    font-size: 1.2vw;
    margin-bottom: 40px;
}

.ripple-container {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}


.ripple {
    position: absolute;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 97, 0.8);
    animation: ripple-effect 1.5s linear;
    transform: scale(0);
    pointer-events: none;
    box-shadow: 0 0 10px rgba(255, 255, 97, 0.8), 0 0 20px rgba(255, 255, 97, 0.6), 0 0 30px rgba(255, 255, 97, 0.4); /* Neon glow effect */
}

@keyframes ripple-effect {
    0% {
        opacity: 1;
        transform: scale(0);
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 97, 0.8);
    width: 15px;
    height: 15px;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(255, 255, 97, 0.8), 0 0 20px rgba(255, 255, 97, 0.6), 0 0 30px rgba(255, 255, 97, 0.4); /* Neon glow effect */
}

@keyframes bubble-effect-0 {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-75px) translateX(-40px) scale(1);
        opacity: 0;
    }
}

@keyframes bubble-effect-1 {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-75px) translateX(40px) scale(1);
        opacity: 0;
    }
}

.rain-line {
    position: absolute;
    width: 8px;
    background: linear-gradient(to bottom, rgba(255, 255, 97, 0.5), rgba(255, 255, 97, 1));
    animation: fall 2s linear;
    pointer-events: none;
}

@keyframes fall {
    0% {
        opacity: 1;
        transform: translateY(-100vh); /* Start from above the viewport */
    }
    100% {
        opacity: 0;
        transform: translateY(0); /* End at the original position */
    }
}


/* 3D pyramid */
:root{
    --light-green: #fff98b;
    --dark-green: #f3c750;
}

.pyramid-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.pyramid{
    position: absolute;
    top: 32%;
    width: 200px;
    height: 200px;
    transform-style: preserve-3d;
    animation: animate 15s linear infinite;
    z-index: 1001;
}
@keyframes animate {
    0%{
        transform: rotateX(-30deg) rotateY(0deg);
    }
    100%{
        transform: rotateX(-30deg) rotateY(360deg);
    }
}
.pyramid div{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}
.pyramid div span{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(#c078cd, var(--light-green));
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    transform: rotateY(calc(90deg * var(--i)))
    translateZ(99px) rotateX(30deg);
    transform-origin: bottom;
}
.pyramid .glow{
    position:absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    transform: rotateX(90deg) translateZ(-150px);
    filter: blur(20px);
    box-shadow: 0px 0px 500px var(--light-green);
}

#transparent-button {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    height: 250px;
    border: none; /* No border */
    z-index: 1001; /* Ensure it's above other content */
    cursor: pointer;
    background: transparent; /* Make it fully transparent */
}

.hidden {
    display: none;
}

#center-text-pyramid, #center-text-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family:"BCcardL";
    font-size: 1.8vw;
    text-align: center;
    cursor: pointer;
    width: 480px;
    z-index: 1002; /* Ensure it's above other content */
}

#start-button-pyramid, #start-button-ripple {
    position: absolute;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    font-family:"BCcardL";
    font-size: 25px;
    cursor: pointer;
    z-index: 1002; /* Ensure it's above other content */
    background-color: #111; /* Black background */
    color: #fff; /* White text color */
    border: none; /* Remove default border */
    border-radius: 0px; /* Optional: Add rounded corners */
}
#start-button-pyramid:hover, #start-button-ripple:hover{
    text-shadow: 0 0 30px rgba(255, 255, 255, 1);
}

.test-method {
    font-size: 2.2vw; /* Adjust the font size as needed */
    font-family: BCcardB;
    font-weight: bold; /* Optional: make the text bold */
    color: #fff; /* Optional: adjust the text color */
}

.fade-in {
    opacity: 1;
    transition: opacity 1s ease-in; /* Adjust the duration as needed */
}

.fade-out {
    opacity: 0;
    transition: opacity 1s ease-out; /* Adjust the duration as needed */
}

.hidden {
    display: none;
    opacity: 0;
}