body{
    background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 50%, #b993d6 100%);
    background-attachment: fixed;
    color: beige;
    font-family: 'Arial', sans-serif;
    text-align: center;
    min-height: 100vh;
}
.button{
    background-color: lightpink;
    color: palevioletred;
    border-radius: 5px;
    font-style: italic;
    border: 3px solid palevioletred;
    font-size: 16px;
}
.button:hover {
    background-color: cornflowerblue;
    color: lightcyan;
    border-radius: 5px;
    font-style: italic;
    border: 3px solid lightcyan;
    font-size: 16px;
}
.container{
    height: 50px;
    position: relative;
    background-color: rgba(173, 216, 230, 0.18);
  color: lightcyan;
  font: bold italic 20px serif;
  border-radius: 15px;
  border: 5px solid lightcyan;
}
.vertical-center {
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
table, th, td{
    border-collapse: collapse;
    margin-left: auto;
    margin-right: auto;
    border: 3px solid palevioletred;
    padding: 10px;
    color: palevioletred;
    background-color: lightpink;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Grid-based board styles (ensure the grid looks good and bingo lines are highlighted) */
.board { max-width: 900px; margin: 0 auto; }
.board .letters { display:flex; justify-content:space-between; max-width:900px; margin: 0 auto 12px; }
.board .letters span { flex:1; text-align:center; font-weight:bold; color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,0.2); }
.grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.grid .item { background-color: lightpink; color: palevioletred; padding: 16px; border-radius: 8px; border: 3px solid palevioletred; box-shadow: 0 2px 6px rgba(0,0,0,0.08); transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease; }
.grid .item:hover { transform: translateY(-4px); }
.grid .item.selected { background-color: palevioletred !important; color: lightpink !important; }

/* Strong animated highlight for completed bingo lines */
.grid .item.bingo-line {
    border-color: #ffd700;
    background: linear-gradient(135deg, rgba(255,215,0,0.18), rgba(255,236,153,0.06));
    box-shadow: 0 0 18px 6px rgba(255,215,0,0.25), inset 0 0 8px rgba(255,240,180,0.12);
    transform: scale(1.03);
    animation: bingoPulse 1.2s ease-in-out infinite;
}

@keyframes bingoPulse {
    0% { box-shadow: 0 0 6px 2px rgba(255,215,0,0.12); transform: scale(1.00); }
    50% { box-shadow: 0 0 22px 8px rgba(255,215,0,0.24); transform: scale(1.04); }
    100% { box-shadow: 0 0 6px 2px rgba(255,215,0,0.12); transform: scale(1.00); }
}
.item:hover{
    background-color: lemonchiffon !important;
    color: orange !important;
    cursor: pointer;
}
.item.selected {
    background-color: palevioletred !important;
    color: lightpink !important;
}
h1 {
    animation: fadeInUp 1s ease-out;
}
.t1{
    background-color: rgba(135,206,250,0.12);
    color: lightcyan;
    font: bold italic 20px serif;
    border-radius: 15px;
    border: 5px solid lightcyan;
}
@keyframes fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
    }
}
.controls {
    text-align: center;
    margin: 20px 0;
}
#message {
    text-align: center;
    font-size: 24px;
    color: palevioletred;
    margin: 20px 0;
    animation: bounceIn 1s ease-out;
}
@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
