/* Global Styles */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

header {
    background-color: #6A0DAD;
    color: white;
    width: 100%;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 2rem;
}

nav {
    margin-top: 10px;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1rem;
}

nav a:hover {
    text-decoration: underline;
}

/* Container Styles */
.container {
    width: 90%;
    max-width: 800px;
    margin: 30px auto;
    background-color: #ffffff;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* Form Styles */
form {
    display: flex;
    flex-direction: column;
}

form label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

form input[type="text"],
form input[type="password"],
form input[type="number"],
form input[type="email"] {
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
}

form button {
    padding: 10px;
    background-color: #6A0DAD;
    color: white;
    border: none;
    border-radius: 20px; /* Rounded corners */
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #4E0780;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table, th, td {
    border: 1px solid #ccc;
}

th, td {
    padding: 12px;
    text-align: left;
}

th {
    background-color: #6A0DAD;
    color: white;
}

td {
    background-color: #fff;
}

/* Word Drag-and-Drop Styles */
.sentence, .drop-area {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    background-color: #f4f4f4;
    border: 1px solid #ccc;
    border-radius: 4px;
    min-height: 50px;
}

/* Footer Styles */
footer {
    background-color: #6A0DAD;
    color: white;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    margin-top: auto;
    position: fixed;
    bottom: 0;
    left: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
    }

    nav a {
        font-size: 0.9rem;
        margin: 0 10px;
    }

    .container {
        width: 95%;
        padding: 15px;
    }

    form button {
        font-size: 0.9rem;
    }

    th, td {
        font-size: 0.9rem;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    nav {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    nav a {
        margin-bottom: 10px;
    }

    .sentence, .drop-area {
        flex-direction: column;
        align-items: center;
    }

    .word {
        width: 100%;
        text-align: center;
    }
}
