/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Poppins:wght@300;400&display=swap');


html, body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    height: 110%; /* Ensures the body spans the entire viewport height */
    background: linear-gradient(180deg, #ffe4e1, #fce4ec, #f8bbd0);
    background-size: cover; /* Ensures the gradient fills the screen */
    background-attachment: fixed; /* Keeps the background fixed while scrolling */
    color: #4d4d4d; /* Softer text tone */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    position: relative; /* Required for the pseudo-element positioning */
    z-index: 0; /* Keep body content below the overlay */
    min-height: 126vh;
    padding-bottom: 60px; /* Matches the footer height */
    box-sizing: border-box; /* Ensure padding calculation doesn't break layout */
}
/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #95214a;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

p{
    left: 50%;
    right: 50%
}

.navbar:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 70%);
    transform: rotate(30deg);
    animation: glare 6s linear infinite;
    pointer-events: none;
}

.navbar .logo {
    font-family: 'Great Vibes', cursive;
    font-size: 28px;
    color: #fff;
    text-decoration: none;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
}

.navbar .nav-links a {
    margin: 0 15px;
    font-size: 16px;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
    font-family: 'Poppins', sans-serif;
}

.navbar .nav-links a:hover {
    transform: scale(1.1);
    background-color: #ffffff;
    color: #95214a;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}


/* Container and Content */
.container {
    width: 40%;
    margin: 40px auto;
    padding: 20px;
    background: linear-gradient(145deg, #fff, #bd7f79);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.container:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
    pointer-events: none;
}

/* Chat Box */
.chat-box {
    margin: 20px auto;
    background: linear-gradient(145deg, #ffe4e1, #cf4474);
    border-radius: 12px;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

/* Chat Messages */
.chat-messages {
    overflow-y: auto;
    flex-grow: 1;
    margin-bottom: 15px;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #a95572;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: 'Poppins', sans-serif;
    max-height: 300px; /* Limit the height */
}

/* Chat Input Area */
.chat-input {
    display: flex;
    border: 1px solid #c4406e;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Input Field */
.chat-input input {
    flex-grow: 1;
    padding: 12px;
    border: none; /* Remove default border */
    outline: none; /* Remove outline for cleaner look */
    font-size: 16px;
    color: #4d4d4d;
    border-right: 1px solid #9a3859; /* Divider between input and button */
    font-family: 'Poppins', sans-serif;
    height: 40px; /* Fixed height for input box */
    resize: none; /* Prevent resizing */
}

/* Send Button */
.chat-input button {
    background: linear-gradient(145deg, #6f2530, #c44d75);
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1; /* Ensures text is vertically centered */
    white-space: nowrap; /* Prevents text from wrapping */
    min-width: 0; /* Ensures the button can shrink without constraints */
}

.chat-input button:hover {
    background: linear-gradient(145deg, #bc496f, #ffbfc9);
    transform: scale(1.05);
}

/* Chat Box Glare Effect */
.chat-box:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 80%);
    transform: rotate(30deg);
    animation: glare 6s linear infinite;
    pointer-events: none;
}

/* Footer */
.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 20px;
    background-color: #ff82ad;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
    position: fixed; /* Keeps the footer at the bottom */
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px; /* Fixed height to prevent size changes */
    z-index: 10; /* Ensures the footer is above other elements */
    overflow: hidden;
    box-sizing: border-box; /* Ensures padding doesn't affect size */
}

/* Footer Glare Effect */
.footer:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 250%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 70%);
    transform: rotate(30deg);
    animation: glare 6s linear infinite;
    pointer-events: none;
}

/* Footer Content */
.footer .footer-content {
    font-family: 'Great Vibes', cursive;
    font-size: 18px;
    color: #fff;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center; /* Ensure centered text layout */
}

/* Footer Image */
.footer img {
    width: 40px;  /* Fixed size for consistent layout */
    height: 40px;
    margin-right: 10px; /* Space between image and text */
    border-radius: 50%; /* Optional: make the image round */
}

@keyframes glare {
    0% {
        transform: translate(-100%, -100%) rotate(30deg);
    }
    100% {
        transform: translate(100%, 100%) rotate(30deg);
    }
}

/* Banners */
.banner {
    position: absolute;
    top: 50%;
    width: 20%; /* Use percentage to adapt to different screen sizes */
    max-width: 600px; /* Optional: Limit maximum width */
    height: auto; /* Maintain aspect ratio */
    transform: translateY(-50%); /* Center vertically */
    z-index: 1; /* Ensure banners are above the background */
    border-radius: 12px; /* Adds slight rounding to the corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Optional: Adds a soft shadow for depth */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth animation */
}

/* Left Banner */
.left-banner {
    left: 5vw; /* Adjust horizontal offset as needed */
}

/* Right Banner */
.right-banner {
    right: 5vw; /* Adjust horizontal offset as needed */
}

/* Hover Effect */
.banner:hover {
    transform: translateY(-50%) scale(1.1); /* Slightly enlarge and keep vertically centered */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* Add a deeper shadow */
    filter: brightness(1.1); /* Slightly brighten the image */
}

/* Ensure Main Content is Above the Banners */
.container {
    position: relative;
    z-index: 2; /* Place above banners */
}

/* Hide banners on small screens */ 
@media (orientation: portrait) {
    @media (max-width: 768px), (max-height: 600px) {
    /* Hide all elements except the body */
    body * {
        display: none;
    }

    /* Show the mobile compatibility message */
    body::before {
        content: "This website only works on landscape mode, Sorry ❤️";
        display: block;
        text-align: center;
        font-size: 20px;
        color: #333;
        padding: 20px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    .footer{
        display:none;
    }
}
}

.customization-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    color: #4d4d4d;
}

.customization-panel label {
    margin-top: 10px;
    font-size: 14px;
}

.customization-panel input {
    padding: 5px 10px;
    margin: 5px 0;
    font-size: 14px;
    border: 1px solid #a95572;
    border-radius: 8px;
    width: 90%;
    max-width: 300px;
    outline: none;
    transition: border-color 0.3s ease;
}

.customization-panel input:focus {
    border-color: #c44d75;
}

.difficulty-selector {
    margin: 10px 0;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    color: #4d4d4d;
}

.difficulty-selector label {
    margin-right: 8px;
    font-size: 16px;
}

.difficulty-selector select {
    padding: 5px 10px;
    font-size: 14px;
    border: 1px solid #a95572;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s ease;
}

.difficulty-selector select:focus {
    border-color: #c44d75;
}