/* Main body styling */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #b39f58 0%, #e1c699 100%);
    overflow: hidden;
    position: relative;
}

/* Background image placeholder */
#background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://i.pinimg.com/originals/c3/2e/af/c32eafbbf5295148ad8eee5c81b9f020.gif') no-repeat center center fixed;
    background-size: cover;
    z-index: -1;
    filter: brightness(0.8);
}

/* Semi-transparent overlay for background */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 0;
}

/* Chatbox container - centered horizontally */
#chatbox-container {
    z-index: 1;
    position: absolute;
    top: 50%;  /* Align center vertically */
    left: 50%; /* Align center horizontally */
    transform: translate(-50%, -50%); /* Adjust for proper centering */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* Sanatani-inspired button */
.sanatani-button {
    background: linear-gradient(135deg, #f4b942, #d49037);
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    border: 3px solid #b39f58;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, background-color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.sanatani-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75px;
    width: 150%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.05));
    transform: skewX(-45deg);
    opacity: 0;
    transition: all 0.5s;
}

.sanatani-button:hover::before {
    opacity: 1;
    left: 100%;
}

.sanatani-button:hover {
    transform: scale(1.05);
}

/* Chatbox styling */
#chat-box {
    width: 350px;
    height: 500px;
    background: #fff8e7;
    border: 5px solid #f4b942;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    display: none;
    position: relative;
    overflow: hidden;
    transition: opacity 0.3s ease;
}

#chat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://i.imgur.com/GzsRJQV.png'); /* Sacred geometry pattern overlay */
    opacity: 0.05;
    z-index: 1;
}

/* Glow effect around the chatbox */
#chat-box:before {
    content: "";
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border-radius: 20px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
}

/* Chat header for aesthetics */
#chat-header {
    background-color: #f4b942;
    text-align: center;
    padding: 15px;
    border-bottom: 2px solid #d49037;
    border-radius: 20px 20px 0 0;
    color: #fff;
    font-size: 18px;
    letter-spacing: 1px;
    position: relative;
}

#chat-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 2px;
}

/* Add scrollable area in chatbox */
#chat-content {
    padding: 20px;
    height: calc(100% - 60px);
    overflow-y: auto;
    font-size: 14px;
}

/* Scrollbar customization */
#chat-content::-webkit-scrollbar {
    width: 8px;
}

#chat-content::-webkit-scrollbar-track {
    background-color: #f1f1f1;
    border-radius: 10px;
}

#chat-content::-webkit-scrollbar-thumb {
    background-color: #f4b942;
    border-radius: 10px;
}

#chat-content::-webkit-scrollbar-thumb:hover {
    background-color: #d49037;
}
