@import url('https://fonts.googleapis.com/css2?family=Racing+Sans+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

a {
  letter-spacing: 1px;
  font-family: "Roboto", serif !important;
  font-weight: 900;
  text-transform: uppercase;
  font-style: normal;
}

#nostotContainer.containerNostot {
  width: 100%;
  max-width: 1920px; /* Rajoitetaan suurin leveys */
  margin: 0 auto; /* Keskitetään kontti */
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Kolme vierekkäin */
  gap: 20px; /* Väli korttien välille */
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  background-color: #fff;
}

.card img {
  width: 100%;
  height: auto;
  display: block;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
}

.button {
  text-decoration: none;
  padding: 10px 20px;
  border: 2px solid #D94532;
  color: white;
  background-color: transparent;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-size: 2em;
  text-align: center;
}

.button:hover {
  background-color: #D94532;
  color: white;
}

/* Suuremmille näytöille (työasema) */
@media (min-width: 1027px) {
  #nostotContainer.containerNostot {
    grid-template-columns: repeat(2, 1fr); /* Kolme vierekkäin */
    gap: 30px; /* Lisää väliä korttien väliin */
  }
}

@media (max-width: 1027px) and (min-width: 768px) {
  #nostotContainer.containerNostot {
    grid-template-columns: repeat(2, 1fr); /* Kaksi vierekkäin */
  }
}

/* Pienille näytöille (puhelin) */
@media (max-width: 767px) {
  #nostotContainer.containerNostot {
    grid-template-columns: 1fr !important; /* Yksi kortti per rivi */
    gap: 20px !important; /* Lisää väliä korttien väliin */
  }
}

