body {
    font-family: 'lato', sans-serif;
    margin: 0 auto;
    padding: 0;
}

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 15px;
}

h2 {
    text-align: center;
    margin: 20px 0;
}

.buttons {
    text-align: center;
    margin-bottom: 20px;
}

.responsive-table {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 0.5fr; /* ستون لینک کمی باریک‌تر */
    gap: 5px;
}



.table-header, .table-row {
    display: contents;
}

.table-header > .col, .table-row > .col {
    padding: 10px;
    text-align: center;
    border-radius: 10px;
    background-color: #f8fafa;
	width:100%;
}

.table-header > .col {
    background-color: #003366;
    color: white;
    font-weight: bold;
}

.table-row > .col {
    background-color: white;
}

@media all and (max-width: 767px) {
    .responsive-table {
        grid-template-columns: 1fr; /* تغییر جدول به یک ستون در صفحات کوچک */
    }

    .table-header {
        display: none;
    }

    .table-row {
        display: grid;
        grid-template-columns: 1fr;
        margin-bottom: 5px;
    }

    .table-row > .col {
        text-align: right;
        position: relative;
        padding-left: 50%;
    }

    .table-row > .col:before {
        content: attr(data-label); /* نمایش نام ستون در موبایل */
        position: absolute;
        left: 0;
        width: 45%;
        padding-left: 10px;
        font-weight: bold;
        text-align: left;
    }
}

.button {
    background-color: white;
    color: black;
    border: 2px solid #008CBA;
    padding: 16px 32px;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 20px;
    transition-duration: 0.4s;
}

.button:hover {
    background-color: #008CBA;
    color: white;
}
.responsive-table {
    display: none; /* همه جدول‌ها در ابتدا مخفی باشند */
    grid-template-columns: repeat(7, 1fr); /* ساختار گرید برای جدول */
    gap: 5px;
}

#table1, #table2, #table3 {
    display: none; /* جدول‌ها در ابتدا مخفی باشند */
}