@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@500&display=swap');

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Roboto', Arial, sans-serif;
    background-color: #eceff4;
}

.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 60px auto;
    padding: 20px;
}

.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-size: 1.3rem;
    padding: 50px 20px;
    border-radius: 15px;
    overflow: hidden;
    background-image: linear-gradient(135deg, #2f80ed, #56ccf2);
    box-shadow: 0 10px 20px rgba(47, 128, 237, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.tile i {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.tile:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(47, 128, 237, 0.5);
}

.tile::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: linear-gradient(120deg, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.tile:hover::before {
    top: -10%;
    left: -10%;
}
/* Kolor czerwony dla błędów */
.error, .not-found {
    color: red;
}

/* Podświetlenie wiersza po najechaniu na link w wynikach */
.wyniki a:hover {
    background-color: rgba(47, 128, 237, 0.1); /* subtelne podświetlenie */
    cursor: pointer;
}