/* General Styling */
body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    text-align: center;
    padding: 20px;
    margin: 0;
}

.container {
    max-width: 400px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: 0 auto; /* Center the container */
}

h2 {
    color: #6b3e26;
    font-size: 1.8em; /* Larger heading for better visibility */
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

label {
    font-weight: bold;
    color: #333;
    font-size: 1em;
}

input, select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: 0.3s;
    width: 100%; /* Full width inputs */
}

input:focus, select:focus {
    border-color: #6b3e26;
    outline: none;
    transform: scale(1.02);
}

button {
    background: #6b3e26;
    color: white;
    border: none;
    padding: 10px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
    width: 100%; /* Full width button */
}

button:hover {
    background: #8b5d3b;
    transform: scale(1.05);
}

.progress-container {
    width: 100%;
    background: #ddd;
    height: 5px;
    border-radius: 5px;
    margin-bottom: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 5px;
    background: #6b3e26;
    width: 0%;
    transition: width 0.3s ease-in-out;
}

#funFact {
    font-style: italic;
    color: #6b3e26;
    margin-top: 15px;
}

/* Table Styling for page3.html */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 10px;
    text-align: left;
}

th {
    background-color: #6b3e26;
    color: white;
}

/* Responsive Adjustments */

/* For screens smaller than 768px (tablets and smaller devices) */
@media (max-width: 768px) {
    .container {
        width: 90%;
    }

    h2 {
        font-size: 1.5em;
    }

    label {
        font-size: 0.9em;
    }

    input, select, button {
        font-size: 14px;
    }
}

/* For screens smaller than 480px (mobile devices) */
@media (max-width: 480px) {
    h2 {
        font-size: 1.2em;
    }

    input, select, button {
        font-size: 14px;
        padding: 8px;
    }

    .container {
        width: 95%;
    }
}

/* For larger screens (desktops) */
@media (min-width: 1024px) {
    .container {
        max-width: 600px;
    }
}