@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --main: rgb(32, 31, 49);
    --dark-purple: rgb(32, 31, 49);
    --light-purple: rgb(45, 43, 68);
    --green: #28a745;
    --teal: #20c997;
    --pink: #e83e8c;
    --yellow: #ffc107;
}

body {
    padding: 0 1rem;
    color: white;
    background: var(--main);
    font-family: "Poppins", sans-serif;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    margin: 2rem 0;
    /*min-height: 100vh;*/
    scroll-margin-top: 4rem;
}

nav {
    position: sticky;
    top: 0;
    background: var(--main);
    z-index: 100;
    margin: 0 -1rem 1rem;
    padding: 1rem;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: color 0.2s, background-color 0.2s;
}

nav a:hover {
    background-color: var(--light-purple);
}

nav a.selected {
    color: var(--teal);
    font-weight: bold;
}

h1 {
    margin-top: 0;
    font-size: 2rem;
    color: var(--teal);
}

.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(calc(25% - 2.25rem), 1fr));
    gap: 3rem;
    margin: 2rem 0;
    padding: 0;
    list-style: none;
}

.item-card {
    background: var(--light-purple);
    border-radius: 1rem;
    padding: 1.5rem 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
    min-height: 120px;
    margin: 0 auto;
    width: 100%;
    max-width: 260px;
}

.item-card:hover, .item-card:focus-within {
    box-shadow: 0 0 0 3px var(--teal), 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px) scale(1.03);
    z-index: 1;
}

.item-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-icon img {
    max-height: 4rem;
    min-height: 2.5rem;
    max-width: 12rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
    text-align: center;
    margin: 0.5rem 0 0;
}

.item-card a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
}

/* Keep hover on the card itself (parent) */
.item-card:hover a, .item-card a:focus {
    text-decoration: none;
    color: inherit;
}

.warning {
    background-color: rgba(255, 193, 7, 0.2);
    border-left: 4px solid var(--yellow);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    text-align: center;
}

.footer {
    text-align: center;
    padding-top: 1rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
    }

    .item-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        margin-right: 2rem;
    }
}