html {
    background-color: #ffe9b7;
}

body {
    font-family: 'Rubik', sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
}
/*------------------------------------------------------------------------------------------------------------*/
header {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #14342B;
    color: #FFF5E1;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid #FFF5E1;
    height: 200px;
}

header .site-logo {
  width: 120px;      /* adjust to your logo’s width */
  height: 120px;      /* match your header height */
  background: url('/pictures/kenorushlogo.png') no-repeat center center;
  background-size: contain;
}

button {
    font-family: 'Rubik', sans-serif;
}

#gameNumber {
    font-size: 40px;
    font-weight: bold;
    color: #FFF5E1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.landing-action-btn {
    width: 170px;
    height: 60px;
    background-color: #F2E7C9;
    color: #14342B;
    font-size: 20px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    margin: 0 10px;
}

.landing-action-btn:hover {
    background-color: #08A045;
    color: #FFF5E1;
    transform: scale(1.05);
    box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.3);
}

#breakTimer {
    font-size: 40px;
    font-weight: bold;
    font-family: 'Exo 2', sans-serif;
    color: #FFF5E1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0 20px;
    animation: pulse 1s infinite alternate;
}
/*------------------------------------------------------------------------------------------------------------*/
.wrapper {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: space-between;
    padding: 20px 30px 30px 30px;
}

#kenoAdBox {
    grid-area: screen;
    display: none;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    border: 1px solid black;
}

.kenoContainer {
    width: 100%;
    height: 100%;
}

.keno-board {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-auto-rows: 75px;
    justify-items: center;
    width: 100%;
    background-color: #F2E7C9;
}

.keno-square {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 75px;
    font-size: 40px;
    font-weight: bold;
    border: 3px solid #14342B;
    background-color: #F2E7C9;
    color: #14342B;
}

.keno-square.highlighted {
    background-color: #14342B;
    color: #FFF5E1;
    font-size: 50px;
    box-shadow: inset 3px 3px 3px rgba(0, 0, 0, 0.3); /* Shrinks background inward */
}

.keno-top-box {
    display: grid;
    grid-template-columns: repeat(10, 1fr); /* 10 columns */
    justify-items: center;
    min-height: 75px; /* Reserve space for rows */
    width: 100%; /* Ensures they match the keno board */
    margin-bottom: 10px;
}

.keno-bottom-box {
    display: grid;
    grid-template-columns: repeat(10, 1fr); /* 10 columns */
    justify-items: center;
    min-height: 75px; /* Reserve space for rows */
    width: 100%; /* Ensures they match the keno board */
    margin-top: 15px;
}

.box-slot {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 50px;
    font-weight: bold;
    background-color: #F2E7C9;
    border: 3px solid #14342B;
    width: 100%;
    color: #14342B;
}
/*------------------------------------------------------------------------------------------------------------*/
#liveContainer {
    display: grid;
    grid-template-columns: 350px 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas:
    "screen info"
    "tickets tickets";
    gap: 20px;              /* space between all items */
    width: 100%;
    height: 100%;
    padding: 20px;
}

/* place each section into its grid slot */
#colorScreenContainer { grid-area: screen; }
#infoSection        { grid-area: info;  }
#ticketsPlaced      { grid-area: tickets; }

#colorScreenContainer {
    width: 350px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#infoSection {
    width: auto;
    text-align: center;
}

.ISheading {
    display: block;
    padding-bottom: 20px;
    font-size: 40px;
    color: #14342B;
}

.ISheadingPayout {
    padding: 0;
    font-size: 25px;
    color: #08A045;
} 

.ISheadingPayout strong {
    color: #14342B;
}

.ISheadingFrequency {
    font-size: 35px;
    color: #14342B;
    padding: 10px;
}
.ISheadingFrequency small {
    font-size: 16px;
}

/* Carousel container */
.info-carousel {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffe9b7;
  border: 3px solid #14342B;
}

.carousel-slides {
  flex: 1;
  overflow: hidden;

  /* remove position: relative; now the slides flow normally */
}

.slide {
  display: none;       /* hide by default */
  padding: 10px;
  box-sizing: border-box;
  /* no absolute positioning */
}

.slide.active {
  display: block;      /* show only the active one */
}

/* Arrows */
.info-arrow {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #14342B;
  width: 30px;
  height: 30px;
  transition: transform 0.2s ease, color 0.2s ease, background-color 0.2s ease;
  border-radius: 4px;
}

.info-arrow:hover {
  transform: scale(1.2);
  color: #ffe9b7;
  background-color: #14342B;
}

.color-key-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.color-key-grid .row {
  display: flex;
  gap: 8px;
  justify-content: space-around;
  width: 100%;
}
.color-key-grid .row.two {
  justify-content: center; /* center the two items */
}
.key-box {
  flex: 1;
  padding: 12px 0;
  border-radius: 12px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
.key-box.red    { background: #c41411; }
.key-box.purple { background: #6a1b9a; }
.key-box.blue   { background: #3b50ce; }
.key-box.cyan   { background: #00695c; }
.key-box.green  { background: #2baf2b; }
.key-box.yellow { background: #ffca28; color:#14342B; } /* dark text on light bg */
.key-box.orange { background: #ef6c00; }
.key-box.brown  { background: #4e342e; }

.freq-bars {
  display: flex;
  flex-wrap: wrap;
  height: 250px;        /* fixed height so it never pushes the slide taller */
  overflow-y: auto;
  width: 100%;
  padding: 2px;
  gap: 4px;
}

.freq-bar {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  width: 25px;
  height: 85px;    /* or whatever fixed height you chose */
  font-size: 1rem;
  color: #14342B;
}

.freq-bar .fill {
  position: relative;
  width: 100%;
  background: #08A045;
  border: .5px solid #14342B;
}

.freq-bar .count {
  position: absolute;
  bottom: .5px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1rem;
  line-height: 1;
  color: #fff;       /* contrast on green */
  text-shadow: 0 1px 1px rgba(0,0,0,0.5);
}

.freq-bar .num {
  margin-top: 2px;
  font-weight: bold;
}


/* Two‐column payout list */
.ratio-list {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  height: 100%;
  box-sizing: border-box;
}

.ratio-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.ratio-list .left-col {
  padding-right: 12px;
  border-right: 1px solid rgba(0,0,0,0.2);
}

.ratio-list .right-col {
  padding-left: 12px;
}

.ratio-list li {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 16px;
  font-weight: bold;
  color: #08A045;
  border-bottom: 1px dashed rgba(0,0,0,0.1);
}

.ratio-list li:last-child {
  border-bottom: none;
}

.ratio-list strong {
  color: #14342B;
  margin-right: 6px;
}

.stats-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}
.stats-list li {
  padding: 6px 0;
  font-size: 1.25rem;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  font-weight: bold;
  line-height: 20px;
  color: black;
}

.stats-list li strong{
    color: #08A045;
    padding-left: 20px;
}

.stats-list li:last-child {
  border-bottom: none;
}
.ISheadingStats {
  font-size: 2rem;
  color: #14342B;
  margin-bottom: 5px;
  padding-bottom: 15px;
  display: block;
}


.kenoBall {
    border-radius: 25px;
    width: 200px;
    height: 200px;
    font-size: 120px;
    font-family: 'Rubik', sans-serif;
    font-weight: bold;
    color: #14342B;
    background-color: #ffe9b7;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 3px 3px 3px rgba(0, 0, 0, 0.3);
    border: 4px inset black;
}

#colorScreenContainer.animate-character {
    animation: fadeIn 1s ease-in-out;
}

#ticketsPlaced {
    grid-area: tickets;
    max-height: 100%; 
}

#ticketBoard {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: auto;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.9);
    background-color: #fffdf5;
}

#ticketBoard table {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid #3e3e3e;
    background-color: #fffdf5;
    font-size: 20px;            
}

#ticketBoard table th, #ticketBoard table td {
    border: 1px solid #3e3e3e;
    padding: 10px;
}

#ticketBoard table th {
    background-color: #d4c7b0;
    color: #14342B;
    text-transform: uppercase;
    font-weight: bold;
    border-bottom: 3px solid #3e3e3e;
}

#ticketBoard table td {
    color: #14342B;
    font-size: 22px;
    text-align: center;
    font-weight: bold;
    padding: 4px;
}

#ticketBoard table tr:nth-child(even) {
    background-color: #ebe3d5;
}

#ticketsPlaced table tbody tr.winner {
  background-color: #d4edda; /* light green */
}

#ticketsPlaced table tbody tr.loser {
  background-color: #f8d7da; /* light red */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
    
@keyframes pulse {
    from {
        transform: scale(1);
        color: #FFF5E1;
    }
    to {
        transform: scale(1.1);
        color: #FFD700;
    }
}