body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #111;
    color: white;
}


/* footer */
footer{
    margin-top:60px;
    text-align:center;
    padding:30px;
    background:#111827;
    color:#94a3b8;
}

/* cards (cool looking ) */

.card {
    background: #1c1c1c;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    border: 1px solid #333;

}

.shadown_card {
    background: #1c1c1c;
    padding: 20px;
    border-radius: 15px;

    margin-top: 20px;
    margin-left: 40px;
    margin-right: 40px;

    border: 4px solid #6602c4;

    box-shadow:
    0 15px 100px rgb(109, 9, 172);
}

/*--grid elements--*/

/* GŁÓWNA SIATKA */
.grid-container {
    width: 90%;
    max-width: 1400px;
    margin: 60px auto;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;
}

/* KAFELEK */
.grid-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-height: 380px;

    background: #111;
    border: 1px solid #252525;

    color: white;
    text-decoration: none;

    overflow: hidden;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

/* HOVER */
.grid-card:hover {
    transform: translateY(-8px);

    border-color: #4287ff;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.45),
        0 0 20px rgba(66, 135, 255, 0.15);
}


/* OBRAZEK */

.card-image {
    width: 100%;
    height: 150px;

    overflow: hidden;

    background: #181818;
}


.card-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform 0.5s ease;
}


.grid-card:hover .card-image img {
    transform: scale(1.08);
}


/* TREŚĆ */

.card-content {
    padding: 20px;

    display: flex;
    flex-direction: column;

    flex: 1;
}


.card-category {
    font-size: 11px;

    color: #4287ff;

    font-weight: 700;

    letter-spacing: 2px;

    margin-bottom: 8px;
}


.card-content h2 {
    margin: 0 0 10px;

    font-size: 22px;

    font-weight: 700;
}


.card-content p {
    margin: 0;

    color: #999;

    font-size: 14px;

    line-height: 1.6;
}






































/* text */

.rainbow {
  /* Repeat the first color at the end to make the loop seamless */
  background: linear-gradient(to right, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3, #ff0000);
  
  /* Make the background wider than the text so it has room to move */
  background-size: 200% auto;
  
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-family: sans-serif;
  font-weight: bold;

  /* Apply the animation loop */
  animation: shine 4s linear infinite;
}

/* Shift the background position from right to left */
@keyframes shine {
  to {
    background-position: 200% center;
  }
}
