*,body, html {
    box-sizing: border-box;
    padding:0;
    margin:0;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #eee;
}

.content {
    min-height:calc(100vh - 80px);
    width:60vw;
    margin:0 auto;
}

.footer {
    height:42px;
    background-color: #000;
    color:#FFF;
    line-height: 42px;
    text-align: center;
}

.sign-in-form {
    width:fit-content;
    padding:8px;
    border-radius: 14px;
    margin:20px auto;
    background-color: #000;
    color: #FFF;
}

.sign-in-form div {
    padding:5px;
}

.sign-in-form input {
    height:2rem;
    border-radius: 5px;
    border:none;
    padding:5px;
    font-size:1.4rem;
}

.signin-button {
    background-color: #FFF;
    padding:5px;
    width:100%;
    border-radius:4px;
    border:none;
    height:2rem;
}

.sign-in-form .flex-row {
    display: flex;
    justify-content: space-between;
}

.sign-in-form label {
    line-height:2rem;
}

.sign-in-form .error {
    text-align: center;
    color:tomato;
}

.header {
    background-color: #000;
}

/* NAV BAR */

.nav {
    display: flex;
    flex-direction: row;
    height:fit-content;
    padding:2px 0 2px 0;
    color:#FFF;
    border-bottom:solid 2px #ccc;
    background-color: #000;
}

.nav a {
    color:#FFF;
    padding:8px;
    margin:4px;
    text-decoration:none;
    border-radius: 4px;
}

.nav a:hover {
    background-color: #999;
}

/* MAIN CONTENT */

.paper-container {
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 20px;
    margin: 20px auto;
    max-width: 800px;
    width: 90%;
    font-family: "Georgia", "Times New Roman", serif;
    color: #333;
    line-height: 1.6;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.paper-container h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #222;
    text-align: center;
    margin-top: 5px;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

a.content-link {
    font-weight:bold;
    color:#F94;
    text-decoration: none;
}

a.content-link:after {
    font-family: "Font Awesome 7 Free";
    font-weight:900;
    content: " \f35d";
    color:#2398db;
}

.paper-container p {
    padding:20px;
}

.paper-container ul {
    margin:5px auto;
    width:75%;
}

.paper-container h4 {
    text-align: center;
}

span.sub-title {
    font-weight: bold;
    display: block;
}

.register-form {
    width:100%;
    margin:10px auto;
}

.register-form div {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.register-form div * {
    margin:10px;
}

.register-form div input {
    width:60%;
    border-radius: 4px;
    border:solid 1px #ccc;
    padding:2px;
}

.register-form button {
    width:100%;
    border:solid 1px #000;
    border-radius: 4px;
    background-color: #FFF;
    color:#000;
    padding:4px;
}

.register-form button:hover {
    background-color: #000;
    color:#FFF;
    cursor:pointer;
}

.register-form .error, p.status span.error {
    color:tomato;
}

.why-required span.url {
    text-align: center;
    padding:2px;
    border:solid 1px #000;
}

p.status span.key {
    font-weight:bold;
    color:#F94;
    border:solid 1px #000;
    padding:2px;
}

/* PROFILE */

.active-games {
    width:100%;
    border-collapse: collapse;
}

.active-games th, .active-games td {
    text-align: left;
    padding:8px;
}

.active-games th {
    background-color: #000;
    color:#FFF;
}

.active-games tr:nth-child(even) td {
    background-color: #eee;
}

.active-games a {
    color:#F94;
}

.create-game {
    padding:8px;
    border:solid 1px #000;
    text-decoration: none;
    color:#000;
    border-radius: 8px;
}

.create-game:hover {
    background-color: #000;
    color:#FFF;
}

/* GAME */

.bingo-numbers {
    width:100%;
    border-collapse: collapse;
}

div.bingo-card {
    width:80%;
}

.bingo-numbers th, .bingo-numbers td {
    text-align: center;
    padding:8px;
}

.bingo-numbers td {
    border:solid 1px #000;
}

.bingo-numbers td:hover {
    color:#FFF;
    background-color: #F94;
    cursor: pointer;
}

.bingo-numbers td.drawn {
    background-color: #F94 !important;
    color:#FFF;
    -webkit-transition: background 1.5s linear;
    -moz-transition: background 1.5s linear;
    -o-transition: background 1.5s linear;
    -ms-transition: background 1.5s linear;
    transition: background 1.5s linear;
}

#bingo-container {
    display: flex;
    gap: 10px;
    align-items: center;
    overflow: hidden;
    padding: 10px;
    height: 80px;
    position: relative;
    width:100%;
}
    /* The bingo ball base style */
.bingo-ball {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff, #e0e0e0);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: #222;
    font-weight: bold;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    opacity: 0;
    transform: translateX(120%) rotate(0deg);
    animation-fill-mode: forwards;
}

/* Roll in animation from right to left */
@keyframes rollIn {
    0% {
        opacity: 0;
        transform: translateX(120%) rotate(0deg);
    }
    20% {
        opacity: 1;
    }
    100% {
        transform: translateX(0) rotate(-720deg);
        opacity: 1;
    }
}

#draw_number {
    width:100%;
    padding:8px;
}

table.bingo-card {
    width:100%;
}

table.bingo-card td, table.bingo-card th {
    width:80px;
    height:80px;
    text-align: center;
    font-size:24px;
    margin:5px;
    background-color: #000;
    color:#FFF;
    border-radius:8px;
}

table.bingo-card tr th {
    background-color: rgb(36, 190, 211);
}

table.bingo-card tr td.marked {
    background-color: #F94 !important;
    border-radius: 12px;
    border:solid 2px #000;
}

div.flex-row {
    display: flex;
    flex-direction: row;
    gap:10px;
}

.new-game {
    position:absolute;
    top:0px;
    left:0px;
    width:100vw;
    height:100vw;
    z-index: 99;
    background-color: rgb(0,0,0,0.6);
    visibility: hidden;
}

.new-game>div {
    background-color: #FFF;
    width:fit-content;
    padding:20px;
    margin:10px auto;
    border-radius:14px;
    border:solid 2px #000;
}

.new-game>div span {
    margin-top:5px;
}

.new-game div div span:hover {
    background-color: #F94;
    color:#FFF;
    cursor:pointer;
}

.new-game>div span.no {
    color:tomato;
    padding:10px;
    border:solid 1px #ccc;
    display: inline-block;
    background-color: #000;
}

.new-game>div span.yes {
    color:green;
    padding:10px;
    border:solid 1px #ccc;
    display: inline-block;
    background-color: #FFF;
}