body {
    font-family: "Edu AU VIC WA NT Hand", cursive, sans-serif;
    text-align: center;
    color: #ffffe8;
    background-color: #828675;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.welcome, .signature {
    width: 95%;
    max-width: 400px;
    text-align: left;
    line-height: 150%;
}

.signature {
    text-align: right;
    width: 50%;
}

#bingo-board {
    width: 98%;
    max-width: 400px;
    padding: 0;
}

#bingo-table {
    width: 100%;
    border-collapse: collapse;
}

#bingo-table td {
    color: #000;
    width: 20%;
    padding: 1%;
    border: 2px solid #333;
    background-color: #fff;
    font-family: Arial, sans-serif;
    vertical-align: middle;
    cursor: pointer;
    position: relative;
    text-align: center;
}

#bingo-table td img {
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#bingo-controls {
    margin-top: 20px;
}

#bingo-controls button {
    padding: 10px 20px;
    margin: 0 10px;
    font-size: 1rem;
    background-color: #b59f80;
    color: #000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#bingo-controls button:hover {
    text-decoration: underline;
}

#bingo-button {
    display: none;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background-color: white;
    color: #000;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.popup-content button {
    margin: 10px;
}

#dont-show-again {
    margin-right: 10px;
}

footer {
    background-color: #b59f80;
    color: #000;
    text-align: center;
    padding: 15px 0;
    width: 100%;
    margin-top: auto;
}

footer nav a {
    color: #000;
    text-decoration: none;
    margin: 0 15px;
}

footer nav a:hover {
    text-decoration: underline;
}

.pagination {
    margin: 20px 0;
}

.pagination button {
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    margin: 0 10px;
}

.pagination button:hover {
    background-color: #555;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.gallery img {
    max-width: 200px;
    max-height: 200px;
    margin: 10px;
    object-fit: cover;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.sticky {
    position: sticky;
    top: calc(100vh-15px);
}

.gallery-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 95%;
    padding-bottom: 10px;
}

#download-all {
    margin-left: 0;
    margin-top: auto;
}

#pagination-controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
