﻿.form-container {
    max-width: 100%;
    max-height: fit-content;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin: 1.5rem auto;
    padding: 1rem;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    line-height: 1.5;
}

input {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
}

.ad-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.ad-card {
    width: 300px;
    aspect-ratio: 1 / 1; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 2px solid #ccc;
    border-radius: 8px;
    box-shadow: none;
    background: #fff;
    overflow: hidden; 
}

    .ad-card img {
        width: 100%;
        height: 50%; 
        object-fit: cover;
        border-bottom: 1px solid #ccc;
    }

.matlabel {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
}

.ad-card p {
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .custom-width {
        width: 100%;
    }

    .ad-container {
        flex-direction: column;
        align-items: center;
    }

    .ad-card {
        width: 90%;
        height: auto;
    }

        .ad-card img {
            height: 200px;
        }
}

@media (max-width: 480px) {
    .form-container {
        padding: 0.75rem;
        margin: 1rem;
    }

    input {
        padding: 0.4rem;
    }

    .ad-card {
        width: 100%;
        border-radius: 6px;
    }

        .ad-card img {
            height: 150px;
        }

    .matlabel {
        font-size: 0.8rem;
    }
}

html, body {
    height: 100%;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}
