@import url('https://fonts.googleapis.com/css2?family=Segoe+UI:wght@400;700&display=swap');

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color 0.3s, color 0.3s;
    margin: 20px;
    padding: 20px;
    overflow-x: hidden;
}

#linksContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 10px;
}

.link-card {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    background-color: var(--section-bg);
    transition: background-color 0.3s;
    width: calc(100% - 32px); /* Adjust to keep the width consistent */
    max-width: 768px;
    box-sizing: border-box; /* Include padding and border in the width and height */
}

.link-card:hover {
    background-color: var(--hover-bg);
}

.link-card img {
    max-width: 100px;
    margin-right: 16px;
}

.link-card .content {
    flex-grow: 1;
}

.link-card h3 {
    margin: 0 0 8px 0;
}

.link-card p {
    margin: 0 0 8px 0;
}

/* Styles for cards without links */
.no-link {
    pointer-events: none;
    cursor: default;
}

.no-link:hover {
    background-color: var(--section-bg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #linksContainer {
        padding: 0px 5px;
    }
    .link-card {
        margin: 10px;
        width: calc(100% - 20px); /* Adjust width for mobile */
    }
    .link-card.vertical {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .link-card.vertical img {
        max-width: 350px;
        margin-right: 0;
    }
    .link-card.vertical .content {
        padding-left: 5px;
        padding-right: 5px;
        width: calc(100% - 10px); /* Full width minus padding */
        text-align: center; /* Center align text */
    }
}
