@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;
}

/* Meteora styled navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: #1B2341; /* Meteora dark navy blue */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    border-bottom: 1px solid #2A3251;
}

.nav-logo img {
    height: 100px;
    width: auto;
    transition: all 0.3s ease;
}

.nav-logo img:hover {
    transform: scale(1.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1B2341 0%, #0F1420 100%); /* Meteora gradient background */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding-top: 90px;
    overflow: hidden; /* Disable body scroll */
}

.container {
    background: #1B2341; /* Meteora navy blue */
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    width: 100%;
    max-width: 40vw;
    height: auto;
    border: 1px solid #2A3251;
    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;
}

.message-box-logo {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 8px;
}

.message-box-logo img {
    max-width: 120px;
    height: auto;
    margin: 0 auto;
    display: block;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.message-box-logo img:hover {
    transform: scale(1.05);
}

#messageInput {
    width: 100%;
    padding: 15px;
    height: 80px;
    border: 1px solid #2A3251;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    resize: none;
    overflow-y: auto;
    line-height: 1.5;
    background: #0F1420;
    color: #FFFFFF;
    transition: border-color 0.2s ease;
}

#messageInput:focus {
    border-color: #FF6B35;
    outline: none;
    background: #0F1420;
}

#messageInput::placeholder {
    color: #7B8299;
    opacity: 1;
}

#submitBtn {
    padding: 12px 32px;
    background: linear-gradient(135deg, #FF6B35 0%, #FF4757 100%); /* Meteora orange to red gradient */
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s ease;
    width: 100%;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

#submitBtn:hover {
    background: linear-gradient(135deg, #FF7F4D 0%, #FF5969 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

#submitBtn:active {
    transform: translateY(0);
    background: linear-gradient(135deg, #E5612F 0%, #E5414F 100%);
}

/* Add some animation for when the input is filled */
#messageInput:not(:placeholder-shown) {
    border-color: #FF6B35;
}

/* 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 img {
        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: #1B2341; /* Solid background fallback */
    }
}

@supports not (filter: brightness(0)) {
    .nav-logo img {
        /* Alternative styling for browsers that don't support filters */
        opacity: 0.9;
    }
}

