/* General Body Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background-color: #f0f0f0; /* Fallback color */
    color: #333;
    margin: 20px;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s; /* Smooth theme transition */
    position: relative;
}
/* Blurred background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* Appear behind all over elements */
    background: url("../img/Poll_Backdrop.jpg") no-repeat center center;    
    background-size: cover;
    filter: blur(5px);
    transform: scale(1.1);
}

h1, h2, h3 {
    color: #005a9c;
}

.footer-info {
    text-align: center;
}

.container {
    max-width: 60%;
    margin: auto;
    overflow: hidden;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Form Styles */
form fieldset {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

form legend {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    padding: 0 10px;
}

.product {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 20px;
}

.product img {
    max-width: 300px;
    height: auto;
    border-radius: 5px #fff;
}

.product-info {
    flex: 1;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.rank-question {
    margin-bottom: 10px;
}

.rank-question span {
    display: inline-block;
    width: 200px;
}

.rank-options label {
    margin-right: 15px;
}

input[type="submit"] {
    display: block;
    width: 100%;
    padding: 10px;
    background: #005a9c;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
}

input[type="submit"]:hover {
    background: #004a8c;
}

/* Results Table Styles */
.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.results-table th, .results-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.results-table th {
    background-color: #005a9c;
    color: white;
}

.results-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.results-info {
    background: #e7f3fe;
    border-left: 6px solid #2196F3;
    padding: 15px;
    margin-bottom: 20px;
}

/* Submit button light/dark mode styles */
body .submit-btn {
    border-radius: 20px;
}

body.dark-mode .submit-btn {
    background-color: #004a8c;
    color: white;
}

body.dark-mode .submit-btn:hover {
    background-color: #2196F3;
}