/* Reset some default styles for better consistency */
body, h1, h2, p, ul, li {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f2f2f2;
    text-align: center;
    line-height: 1.6;
    justify-content: center;
    align-items: center;
}

header {
    background: linear-gradient(135deg, #70e68e, #5dc472);
    color: #fff;
    padding: 20px;
    font-family: 'Poppins', Arial, sans-serif;
}

header h1 {
    font-size: 3em;
    letter-spacing: 2px;
}

main {
    max-width: 800px;
    height: 500px; 
    /* height: 100vh; */
    margin: 20px auto;
    background-color: #e8f5e6;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    justify-content: center;
    align-items: center;
}

section {
    margin: 20px 0;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%; 
}

label {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.1em;
}

input[type="text"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    max-width: 300px;
    font-size: 1em;
}

button[type="submit"] {
    background: linear-gradient(135deg, #70e68e, #5dc472);
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2em;
    transition: background 0.3s;
}

button[type="submit"]:hover {
    background: linear-gradient(135deg, #5dc472, #4aaf5b);
}

#creditCardRecommendations {
    background-color: #e8f5e6;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

footer {
    background: linear-gradient(135deg, #70e68e, #5dc472);
    color: #fff;
    padding: 10px;
    font-size: 0.9em;
}

/* Add subtle animations */
button[type="submit"] {
    transition: background 0.3s, transform 0.3s;
}

button[type="submit"]:hover {
    background: linear-gradient(135deg, #5dc472, #4aaf5b);
    transform: scale(1.05);
}


/* Adjust dropdown styles */
#dropdown {
    display: block;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    z-index: 1000;
}

/* Hide the dropdown initially */
/* #dropdown.hidden {
    display: none;
} */
