@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;
    background-color: #0b0b0c; /* Dark blue background from Aerodrome logo */
}

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-color: rgba(11,11,12,.85); /* Aerodrome dark blue with opacity */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    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(255, 255, 255, 0.12);
}

.nav-logo object {
    height: 60px; /* Adjusted height for smaller logo */
    width: auto;
    filter: none; /* Ensure visibility */
    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;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding-top: 90px;
    overflow: hidden; /* Disable body scroll */
}

.container {
    background: rgba(12, 13, 29, 0.9); /* Aerodrome dark blue background */
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.1),
        0 6px 6px rgba(0, 0, 0, 0.05),
        0 0 100px rgba(255, 255, 255, 0.06);
    width: 100%;
    max-width: 40vw;
    height: auto;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    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: 20px;
    flex: 1;
    min-height: 0;
}

#messageInput {
    width: 100%;
    margin-top: 20px;
    padding: 30px; /* Increased padding for a larger text box */
    height: 100px; /* Increased height for a larger text box */
    border: 2px solid;
    border-color: #f5f5f5; /* Aerodrome blue accent color */
    border-radius: 12px;
    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-color: #171719; /* Slightly lighter background color */
    color: #E0E0E0; /* Light text color for contrast */
}

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

#submitBtn {
    background-color: #f5f5f5; /* Aerodrome blue for the button */
    color: #09090a; /* Dark text on white button */
    border: none;
    padding: 12px 32px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(255, 255, 255, 0.12);
    width: 100%;
}

#submitBtn:hover {
    background-color: #d9d9d9; /* Slightly darker blue on hover */
}

#submitBtn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.12);
}
/* 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(20, 20, 21); /* Solid background fallback */
    }
}

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

button#submitBtn {
    background-color: #f5f5f5; /* Aerodrome blue for the button */
    color: #09090a; /* Dark text on white button */
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button#submitBtn:hover {
    background-color: #d9d9d9; /* Slightly darker blue on hover */
}

.custom-alert {
    position: fixed;
    top: 150px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #f5f5f5; /* Aerodrome blue for alerts */
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    z-index: 2001;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.custom-alert__content {
    display: flex;
    align-items: center;
}