/* Reset default margins/padding */
html, body, section, div, h1, h2, h3, p, img {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html, body {
    height: 100%;
    font-family: Baskerville, Times;
}

.page {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* First Page Styling */
.first-page {
    background-color: black;
    display: flex;
    justify-content: center; /* horizontal center */
    align-items: center;     /* vertical center */
    flex-direction: column;  /* stack text and image if needed */
    position: relative;
}

.blur-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('blurbackground.png') center center / cover no-repeat;
    filter: blur(5px);
    z-index: 1;
}

.clear-background {
    position: absolute;
    top: 50%;          /* start from the middle vertically */
    left: 50%;  
    width: 90%;   /* set the actual size of your image */
    height: 90%;  /* adjust as needed */
    background: url('clear.png') center center / cover no-repeat;
    z-index: 2; /* above blur, below title */
        /* Animation */
    opacity: 0;
    animation: fadeInUp 1.5s ease-out forwards;
}


.title {
    position: relative; /* relative so it respects flex centering */
    font-size: 4rem;
    color: white;
    text-shadow: 2px 2px 20px rgba(0,0,0,2);
    z-index: 4;
        animation: fadeTextUp 7s ease-out forwards;
}

/* Fade-in animation */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translate(-50%, 50%); /* start lower */
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%); /* end perfectly centered */
    }
}

@keyframes fadeTextUp {
    0% {
        opacity: 0;
    }
    30% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}


/* Second Page Styling */
.second-page {
    background-color: black;
}

/* Wrap the chat iframe */
#chat-wrapper {
    position: absolute;         /* absolute positioning relative to the page */
    top: 50%;                   /* vertical middle */
    left: 35%;                  /* slightly left of center */
    transform: translateY(-50%); /* center vertically based on its height */
    width: 30%;                 /* adjust width as needed */
    height: 60%;                /* taller vertically */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;                 /* ensure it’s above background */
}

/* Style the iframe itself */
#chattable {
    width: 100%;
    height: 100%;
    border: none;               /* remove border if any */
    border-radius: 10px;        /* optional rounded corners */
}

/* ==== Home Button ==== */
.home-button {
    position: fixed;
    bottom: 20px;   /* distance from bottom */
    left: 20px;     /* distance from left */
    z-index: 1000;  /* make sure it's always above other elements */
}

.home-button img {
    width: 50px;   /* adjust size as needed */
    height: auto;
    transition: opacity 0.3s ease; /* smooth fade animation */
    cursor: pointer;
}

.home-button img:hover {
    opacity: 0.6;  /* fades out slightly on hover */
}

