@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@600&family=M+PLUS+Rounded+1c&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@600&family=Nunito&display=swap');


body,
.tile-name, p {
  font-family: 'Nunito', sans-serif;
  color: #444;
}


h1 {
  font-family: 'Fredoka', sans-serif;
}

#couponWrapper {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 800px;
  margin: 0 auto;
}

.bingo-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}


.bingoGrid {
  z-index: 1;
  width: 100%;
  padding: 8%;
}


.bingo-tile {
  aspect-ratio: 1 / 1;
  background-color: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
  text-align: center;
}

.bingo-tile.checked {
  background-color: transparent;
}

.bingo-tile img {
  max-width: 80%;
  max-height: 60%;
  object-fit: contain;
  transition: opacity 0.2s ease; /* pehmentää välähdyksiä */
}


.tile-name {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  font-size: 1rem;
  margin-top: 0.5rem;
  text-transform: uppercase;
  font-weight: bold;             /* Lihavointi */
  color: #198754;                /* Bootstrapin "text-success" vihreä */
  font-size: 0.85rem;            /* Hieman pienempi fontti */
  margin-top: 0.5rem;            /* Vähän väliä kuvan ja tekstin väliin */
}




.bingo-tile i.fa-check-circle {
  opacity: 0.6;
}

.bingo-tile .col {
	margin: 0;
	Padding: 2%;
}

.disabled-nav {
  pointer-events: none;
  cursor: default;
  color: #6c757d !important; /* Bootstrapin text-secondary väri */
  text-decoration: none !important;bingo
}

.disabled-nav:hover {
  color: #6c757d !important;
  text-decoration: none;
}


.check-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: rgba(25, 135, 84, 0.8);
  font-size: 10rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 10;
  background: none;
  animation: bounce-in 0.3s ease-out;
}



.bingo-celebration {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 7rem;
  font-weight: bold;
  color: rgba(25, 135, 84, 1); /* Bootstrapin vihreä 70 % läpinäkyvä */
  pointer-events: none;
  z-index: 9999;
  background: none;
  animation: bounceInOut 1s ease-in-out forwards;
  text-align: center;
  /* Kevyt valkoinen kehys pelkällä varjolla */
  text-shadow:
    0 0 20px white,
    0 0 20px white;
}

@keyframes bounceInOut {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
  }
  60% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
  }
  80% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
}


/* Pienempi bounce-animaatio (checkit) */
@keyframes bounce-in {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  60% {
    transform: scale(1.2);
    opacity: 1;
  }
  80% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}


  .card-title {
    font-weight: 600;
    font-size: 1.1rem;
	color: #444;
  }

  .card-text {
    font-size: 0.95rem;
		color: #444;
  }



.logo-img {
  height: 80px;
  margin-top: -45px;
  z-index: 1;
}


.card {
  border: none;
}


@media print {

  /* Näytetään headerin brändi (logo + nimi), bingo ja footer */
  header, #bingoGrid, footer {
    visibility: visible;
    position: relative;
  }

  /* Estetään valikon ja toimintoelementtien tulostus */
  .navbar-toggler,
  .navbar-nav,
  .btn,
  button,
  .card,
  #noData,
  .bingo-celebration,
  .container > section,
  .text-center.mb-4,
  .row.justify-content-center,
  .position-relative.text-center.my-5,
  img[src*="pesukarhu_puolipää"] {
    display: none !important;
  }

  #bingoGrid {
    page-break-inside: avoid;
  }

  .bingo-tile img {
    max-width: 100%;
    height: auto;
	position: relative;
  }

  #bingoBg {
    display: block !important;
    visibility: visible !important;
  }

  .container, .container-md, .container-sm {
    max-width: 100%;
  }
}




.bg-brown {
  background-color: #fdf4ea; /* tan / vaalea ruskea */
}


.kuponkiNapit {

  }
  



/* Poistaa kehykset kun painike on aktiivinen tai fokuksessa */
.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

/* Muokattu hamburger-ikonin viivat */
.custom-toggler span {
  display: block;
  height: 3px;
  background-color: #198754; /* success-väri */
  border-radius: 2px;
  transition: background-color 0.2s;
}

/* Tummempi hover-väri */
.navbar-toggler:hover .custom-toggler span {
  background-color: #145c32; /* tummempi vihreä */
}


.info-btn {
position: absolute;
    top: 7%;
    left: 7%;
    z-index: 10;
    font-size: 1.2em;
}

  @media (min-width: 992px) {
    .card-body {
      padding: 2rem;
    }
  }




@media (max-width: 768px) {
  .tile-name {
    font-size: 0.8rem;
  }
    .info-btn {
		font-size: 0.8rem;
	}
  .check-overlay {
    font-size: 5rem;
  }
}


@media (max-width: 576px) {
  .tile-name {
    font-size: 0.6rem;
  }
  .bingo-tile img {
  max-width: 50%;
  max-height: 50%;
}
  .check-overlay {
    font-size: 3.5rem;
  }
  .logo-img {
    height: 80px;
    margin-top: -35px;
  }
  .info-btn {
		font-size: 0.8rem;
	}
}
