body {
    background-color: #0f0f0f;
    color: white;
    font-family: Arial, sans-serif;
    text-align: center;
}

.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 40px;
}

.card {
    background-color: #1c1c1c;
    border: 2px solid #292929;
    border-radius: 20px;

    min-height: 380px;
    width: auto;

    overflow: hidden;

    text-align: left;
    cursor: pointer;

    transition:
        transform 0.1s ease,
        border-radius 0.3s ease,
        border-color 0.3s ease,
        background-color 0.3s ease;
}

.card:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

.card:hover {
    background-color: #242424;
    border-color: #444;
    border-radius: 25px;
    transform: scale(1.03);
}

img {
    width: 100%;
    display: block;

    border-radius: 18px 18px 0 0;

    transition:
        height 0.3s ease,
        filter 0.3s ease;
}

.card:hover img {
    filter: brightness(0.8);
}

h3 {
    text-align: center;

    font-size: 20px;
    margin: 15px 10px;

    transition:
        font-size 0.3s ease,
        margin 0.3s ease;
}

.card:hover h3 {
    font-size: 24px;
    margin: 18px 12px;
}

h6 {
    margin: 5px 10px;
    color: #999;

    transition:
        font-size 0.3s ease,
        color 0.3s ease;
}

.card:hover h6 {
    font-size: 13px;
    color: #bbb;
}

p {
    margin: 5px 10px;
    line-height: 1.4;

    transition:
        font-size 0.3s ease,
        line-height 0.3s ease;
}

.card:hover p {
    font-size: 17px;
    line-height: 1.5;
}

#settings-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;

    padding: 10px;

    background-color: #181818;
    border: 2px solid #292929;
    border-radius: 16px;

    margin: 0 20px 10px 20px;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);

    transition:
        background-color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

#settings-container:hover {
    background-color: #1c1c1c;
    border-color: #3a3a3a;
}

button {
    border: 2px solid #333;
    background-color: #242424;
    color: white;

    padding: 10px 16px;

    border-radius: 10px;

    font-size: 14px;
    font-weight: bold;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

button:hover {
    background-color: #303030;
    border-color: #555;

    transform: translateY(-3px);

    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

button:active {
    transform: translateY(1px) scale(0.94);

    background-color: #1a1a1a;

    box-shadow: none;
}