/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #444;
    background: #f9f9fc; /* Soft light background */
}

/* Navigation Bar */
header {
    background: #27ae60; /* Soft blue */
    color: #222222;
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Soft shadow */
}

.menu {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.menu li {
    margin: 0 1rem;
}

.menu a {
    text-decoration: none;
    color: #222222;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s, transform 0.3s;
}

.menu a:hover {
    color: white; /* Light yellow hover effect */
}

/* Section Styles */
main {
    padding: 2rem;
}

.lang-container {
    position: absolute;
top: 10;
right: 30px;
    display: inline-block;
}

.lang-button {
    background: #27ae60;
    color: #111111;
    border: none;
    padding: 8px 12px;
    font-size: 16px;
    width: 100%;
    margin: 0 1rem;
    cursor: pointer;
}

.lang-dropdown {
    display: none;
    position: absolute;
    background: none;
    z-index: 100;
    border-radius: 5px;
    overflow: visible;
}

.lang-dropdown button {
    background: #27ae60;
    border: none;
    padding: 8px 12px;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.lang-dropdown button:hover {
    background: #f0f0f0;
}


section {
    padding: 2rem;
    background: #ffffff; /* White background for sections */
    margin: 1rem auto;
    max-width: 800px;
    border-radius: 12px; /* Rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); /* Soft shadow */
    transition: transform 0.3s, box-shadow 0.3s;
}

section:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1); /* Deeper shadow */
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem 0;
    background: #27ae60; /* Match header color */
    color: #222222;
    font-size: 0.9rem;
}

/* Unified Button Styles */
button {
    padding: 0.7rem 1.5rem;
    margin: 0.5rem;
    border: none;
    border-radius: 20px; /* Pill-shaped buttons */
    background-color: #27ae60; /* Green color */
    color: #222222;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    transition: background-color 0.3s, transform 0.2s;
}

button:hover {
    background-color: #27ae60; /* Darker green */
    transform: scale(1.05); /* Slightly larger on hover */
}

/* Word Display */
#word-display {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 50vh;
    background: #e7f8ff; /* Soft pastel blue */
    margin: 2rem auto;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

#word-display h2 {
    font-size: 2rem;
    color: #444;
    margin-bottom: 1rem;
}

/* Flexbox layout to place form and preview side by side */
#formContainer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

/* Styling for the form */
#bingoForm {
    width: 48%; /* form takes up almost half the width */
}

.form-group {
    margin-bottom: 1rem;
}

.sidebyside {
    display: flex;
}


textarea, select {
    width: 100%;
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid #ccc;
}

/* Styling for the preview section */
#preview {
    width: 48%; /* preview takes up the other half */
    padding: 2rem;
    background: #f0f4f8;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#preview h2 {
    text-align: center;
    margin-bottom: 1rem;
}

#preview pre {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    white-space: pre-wrap; /* Wraps text in preview */;
}

#preview p {
    font-size: 1rem;
    color: #333;
}

/* Styling for the centered content */
.centered-content {
    width: 100%; 
    justify-content: end;
    padding: 2rem;
    margin-left: 5rem;
    border-radius: 8px;
    background-color: #f0f4f8;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;    
    
}

.centered-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}


.button-container {
    display: flex;
    gap: 1rem;
}
img {
    max-width: 100%;
    max-height: 100%;
}

@media (max-width: 600px) {
    .menu {
        flex-direction: column; /* Stack menu items vertically on smaller screens */
    }
    section {
        padding: 1rem;
    }
}

