/* Общ контейнер */
.lotto-game-blocks {
    max-width: 100%;
    margin: 40px auto;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

/* Заглавие */
.lotto-game-blocks h4 {
    text-align: left;
    color: #0b2b4a;
    font-size: 24px;
    margin-bottom: 25px;
}

/* Grid оформление */
.lotto-game-block {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

/* Линкове като карти */
.lotto-game-block a {
    text-decoration: none;
}

/* Карта */
.lotto-game-block h5 {
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
	margin-bottom: 5px;
    background: linear-gradient(135deg, #ffffff, #ffffff);
    color: #ce1027;
	border: 1px solid #ce1027;
}

/* Hover ефект */
.lotto-game-block a:hover h5 {
    background: linear-gradient(135deg, #ce1027, #3a0400);
    color: #e2e8f0;
    transform: translateY(0px) scale(1.0);
    border: 1px solid #ce1027;
}

/* Responsive */
@media (max-width: 500px) {
    .lotto-game-blocks {
        padding: 15px;
    }
	
    .lotto-game-block {
		display: block;
    }

    .lotto-game-block h5 {
        font-size: 14px;
        padding: 14px;
    }
	.lotto-game-block a {
		margin-bottom: 10px;
		display: block;
	}
}

.hidden {
    display: none !important;
}
.lotto-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.lotto-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    background-color: #ffffff; /* Тъмносиньо-сив фон, подобен на заглавната част */
    color: #01a3e1; /* Светлосив текст */
    text-decoration: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #01a3e1; /* Малко по-светла рамка */
}

/* Стил за бутоните "First" и "Last" - малко по-широки */
.lotto-pagination a[data-page="First"],
.lotto-pagination a[data-page="Last"] {
    padding: 0 16px;
    color: #01a3e1;
}

/* Hover ефект - светване */
.lotto-pagination a:hover:not(.current) {
    background-color: #01a3e1;
    color: #fff;
    border-color: #01a3e1;
}

/* Стил за текущата страница - използваме зелено от уебсайта */
.lotto-pagination a.current {
    background-color: #01a3e1; /* Тъмнозелено, подобно на "ID", "Numbers" */
    color: white;
    border-color: #01a3e1;
    font-weight: 600;
    cursor: default;
    pointer-events: none; /* Превенция при клик */
}

/* Адаптивност за мобилни устройства */
@media (max-width: 480px) {
    .lotto-pagination {
        gap: 5px;
        flex-wrap: wrap;
    }
    
    .lotto-pagination a {
        min-width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .lotto-pagination a[data-page="First"],
    .lotto-pagination a[data-page="Last"] {
        padding: 0 12px;
    }
}




.backButton1 {
    background: #ffffff;
    border: 1px solid #ce1027;
    color: #c91029;
    padding: 5px 10px;
    border-radius: 4px;
    position: absolute;
    right: 0px;
    top: 10px;
}
.backButton1:hover {
    text-decoration: none;
    background: #c91029;
    color: #fff;
}

/* --- Стилове за индивидуално теглене (div с клас active-draw) --- */
.active-draw {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  padding: 15px 30px;
  transition: all 0.2s ease;
  margin-bottom: 15px;
	position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Hover ефект за редовете */
.active-draw:hover {
  box-shadow: 0 12px 28px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

/* Контейнер за датата и името на играта */
.active-draw .logo {
  display: flex;
  align-items: baseline;
  gap: 80px;
  flex-wrap: wrap;
}
main,
.header-title-wrapper {
	position: relative;
}
/* Стил за датата (в <span>) */
.active-draw .logo span,
.lotto-history span.date {
  background: #0b2b4a;
  color: #fff;
  padding: 6px 18px;
  border-radius: 40px;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: inline-block;
}

/* Стил за името на тегленето (h3) */
.active-draw .logo h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e3c5a;
  flex: 1;
}

/* Контейнер last-draw - обвивка на резултатите */
.active-draw .last-draw {
  display: flex;
  flex-direction: column;
}

/* Всеки ред с резултати (result-row) */
.active-draw .result-row {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
}

/* Стил за заглавието "Main Prizes" (като <b>) */
.active-draw .result-row b {
  font-size: 1.1rem;
  color: #2c3e50;
  font-weight: 600;
  min-width: 120px;
  background: #eef2f6;
  padding: 6px 15px;
  border-radius: 30px;
  text-align: center;
}

/* Контейнер за числата (div вътре в result-row) */
.active-draw .result-row div {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* Стил за всяко число (клас num) */
.active-draw .result-row .num,
.lotto-history .result-row .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  height: 50px;
  background: white;
  border: 2px solid #4a90e2;
  border-radius: 50px;
  padding: 0 12px;
  font-weight: 700;
  font-size: 1.2rem;
  color: #1e2a3a;
  box-shadow: 0 3px 5px rgba(0,0,0,0.05);
  transition: 0.1s ease;
}

.active-draw .result-row .num,
.lotto-history .result-row .num { 
    background: #ce1027;
    border-color: #ffffff;
    font-weight: 800;
    color: #ffffff;
	font-size: 16px;
}


/* --- Допълнителни подобрения за много редове --- */

/* Алтернативен фон за по-добро разграничаване */
.active-draw:nth-child(even) {
  background: #fdfdfe;
}

/* Адаптивност за мобилни устройства */
@media (max-width: 768px) {

  .active-draw {
    padding: 18px 15px;
	  display: block;
  }
  
  .active-draw .logo {
	  display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        justify-content: center;
	  gap: 20px;
	  text-align: center;
  }
  
  .active-draw .logo h3 {
        font-size: 1.4rem;
        text-align: center;
        grid-column: 1 / -1;
        margin-bottom: 15px;
  }
  
  .active-draw .result-row {
    gap: 15px;
	  justify-content: center;
  }
  
  .active-draw .result-row b {
    min-width: 100%;
    text-align: left;
    background: none;
    padding: 0 0 8px 0;
  }
  
  .active-draw .result-row .num {
    min-width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* Таблица - история */
