@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

/* Modern CSS Reset */
html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
}

main {
    display: block;
}

img, svg, object {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Add these styles at the beginning of your CSS file, after the imports */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(255, 255, 255, 0.98); /* White navbar like PancakeSwap */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    -webkit-backdrop-filter: blur(10px);
    -moz-backdrop-filter: blur(10px);
    -o-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(231, 227, 235, 0.7);
}

.nav-logo object {
    height: 100px;
    width: auto;
    transition: all 0.3s ease;
}

.nav-logo object:hover {
    transform: scale(1.05);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: #FAF9FA; /* Light grayish background like PancakeSwap */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding-top: 90px;
    overflow: hidden; /* Disable body scroll */
}

.container {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F6FA 100%);
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 24px;
    box-shadow: 0px 2px 12px -8px rgba(25, 19, 38, 0.1), 0px 1px 1px rgba(25, 19, 38, 0.05);
    width: 100%;
    max-width: 40vw;
    height: auto; /* Remove fixed height */
    border: 1px solid rgba(231, 227, 235, 0.5);
    display: flex;
    flex-direction: column;
}

.logo {
    text-align: center;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

#logo {
    max-width: min(150px, 60%);
    height: auto;
    margin: 0 auto; /* Center horizontally */
    display: block;
}

.logo object {
    width: 100%;
    height: auto;
    margin: 0 auto; /* Center horizontally */
    display: block;
}

.message-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    min-height: 0;
}

#messageInput {
    width: 100%;
    padding: 15px;
    height: 80px;
    border: 2px solid #E7E3EB;
    border-radius: 16px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    resize: none;
    overflow-y: auto; /* Enable vertical scrolling */
    line-height: 1.5; /* Better line spacing for readability */
    background: #EEEAF4;
    color: #280D5F;
}

#messageInput:focus {
    border-color: #7645D9;
    box-shadow: 0px 0px 0px 1px #7645D9, 0px 0px 0px 4px rgba(118, 69, 217, 0.1);
    background: #F4F0F7;
    outline: none;
}

#messageInput::placeholder {
    color: #7A6EAA;
    opacity: 1; /* For Firefox */
}

#submitBtn {
    padding: 14px 32px;
    background: #1FC7D4;
    color: white;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s ease;
    box-shadow: rgba(14, 14, 44, 0.4) 0px -1px 0px 0px inset;
    width: 100%;
}

#submitBtn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

#submitBtn:active {
    transform: translateY(0);
    box-shadow: rgba(14, 14, 44, 0.4) 0px -1px 0px 0px inset;
}

/* Add some animation for when the input is filled */
#messageInput:not(:placeholder-shown) {
    border-color: #D7CAEC;
    background: #F4F0F7;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .container {
        max-width: 60vw;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 80vw;
        margin: 1rem;
    }
    
    .navbar {
        height: 70px;
    }
    
    .nav-logo object {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .container {
        max-width: 95vw;
        padding: 1.5rem;
    }
    
    #logo {
        max-width: 180px;
    }
}

@supports not (backdrop-filter: blur(10px)) {
    .navbar {
        background: rgb(255, 255, 255); /* Solid background fallback */
    }
}

@supports not (filter: brightness(0)) {
    .nav-logo object {
        /* Alternative styling for browsers that don't support filters */
        opacity: 0.9;
    }
} 