/* styles.css - Styling for QuickOLX */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card {
    width: 90%;
    max-width: 400px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    background: white;
    margin-bottom: 20px;
}

.card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
}

.card h1 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 20px;
}

.p input {
    font-size: 0.9rem;
}

.container {
    width: 90%;
    max-width: 400px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
}

h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

h1 {
    color: #007bff;
    font-size: 1.4rem;
}

p {
    font-size: 1rem;
    color: #333;
    margin-top: 15px;
}

.error {
    color: red;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

button,
.cta {
    background: #6e8efb;
    color: white;
    border: none;
    padding: 10px;
    width: 100%;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1rem;
    margin-top: 10px;
}

button:hover,
.cta:hover {
    background: #5a7bf2;
}

a {
    color: #6e8efb;
    text-decoration: none;
    font-size: 1rem;
}

a:hover {
    text-decoration: underline;
}

.items {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.item {
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 10px 0;
    width: 90%;
    max-width: 400px;
}

.item img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.item h3 {
    margin: 10px 0 5px;
    color: #333;
    font-size: 1.1rem;
}

.item p {
    color: #666;
    font-size: 0.95rem;
}

/* Responsive Tweaks */
@media (max-width: 480px) {
    h1, h2 {
        font-size: 1.2rem;
    }

    input, button, .cta {
        font-size: 0.95rem;
    }

    .card,
    .container,
    .item {
        padding: 15px;
    }

    .card img,
    .item img {
        height: 130px;
    }
}

@media (min-width: 768px) {
    body {
        font-size: 1rem;
    }

    .card h1, h2, .item h3 {
        font-size: 1.3rem;
    }

    p, .item p {
        font-size: 1rem;
    }
}
