/* Base styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('../images/background.jpg');
    background-size: cover;
    background-attachment: fixed;
}

header, footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1em;
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin-right: 10px;
}

main {
    display: flex;
    flex-wrap: wrap;
}

section {
    flex: 2;
    padding: 1em;
}

aside {
    flex: 1;
    padding: 1em;
    background-color: #f4f4f4;
}

/* Link pseudoclasses */
a:link {
    color: blue;
}

a:visited {
    color: purple;
}

a:hover {
    color: red;
}

a:active {
    color: green;
}

/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
}

table, th, td {
    border: 1px solid black;
}

th, td {
    padding: 0.5em;
    text-align: left;
}

/* Form styles */
form {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 0.5em;
}

input, textarea {
    margin-bottom: 1em;
    padding: 0.5em;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    padding: 0.5em 1em;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #555;
}

/* Flexbox/Grid for layout */
.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1em;
}

.character {
    background-color: #fff;
    padding: 1em;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
}

/* Image styles */
img {
    width: 100%;
    height: auto;
    max-width: 200px; /* Adjust as needed */
    max-height: 200px; /* Adjust as needed */
    object-fit: cover;
    border-radius: 5px;
}

/* Transformed element */
.transformed {
    transform: scale(1);
    transition: transform 0.3s ease-in-out;
}

.transformed:hover {
    transform: scale(1.1);
}

/* Media queries */
@media (max-width: 1024px) {
    main {
        flex-direction: column;
    }

    nav ul li {
        display: block;
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    header, footer {
        text-align: left;
        padding: 0.5em;
    }

    nav ul li {
        display: block;
        margin-bottom: 10px;
    }
}
