* {
    font-family: sans-serif;
}
body {
    min-height: unset
}
main {
    margin-top: 2em;
    display: flex;
    justify-content: center;
}
h2 { margin-top: 0; }
.qrcode {
    width: 10rem;
}

.lottery-ticket {
    border: 1px solid rgba(0,0,0,0.3);
    padding: 0 4rem 0 1rem;
    box-shadow: 3px 3px 6px lightgrey;
    border-radius: 3px;
    margin: 0 5em;
    display: grid;
    grid-template-columns: 25px auto;
    background: linear-gradient(20deg, white 80%, transparent), url(../favicon.ico);
    grid-column-gap: 2em;
    height: fit-content;
}

.stripe {
    background: gold url("data:image/svg+xml;utf8, <svg xmlns='http://www.w3.org/2000/svg' version='2' height='50px' width='120px'><text x='12' y='10' fill='darkslategrey' style='writing-mode: vertical-lr; font-weight: bold;' font-size='20'>BAN</text> </svg>");
}

.ticket-content {
    padding: 1rem 0;
}

.lottery-ticket h2 {
    text-transform: uppercase;
    font-weight: bold;
    text-align: center;
    font-size: 2.5em;
}

.lottery-ticket p, button {
    text-align: center;
}

.lottery-ticket img, button {
    margin: 0 auto;
    display: flex;
}

.lottery-ticket button {
    font-size: 1em;
    background-color: gold;
    padding: 14px;
    border: 1px solid grey;
    border-radius: 3px;
    box-shadow: 1px 1px 2px lightgrey;
    color: black;
    font-weight: bold;
    margin-top: 40px;
}

.lottery-ticket button:hover {
    opacity: 0.7;
}

.price {
    display: flex;
    justify-content: space-between;
}

.rules {
    display: inline-block;
    width: 40%;
}

article {
    margin: 0 0 3rem 0;
}

.modal {
    position: fixed;
    width: 100vw;
    height: 100vh;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal p {
    margin: 4pt 0;
}
.modal-bg {
    position: absolute;
    background: rgba(255,215,0,.7);
    width: 100%;
    height: 100%;
}
.modal-container {
    border-radius: 10px;
    background: #fff;
    position: relative;
    padding: 30px;
} 
.modal.open {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}
.modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    outline: none;
    appearance: none;
    color: red;
    background: none;
    border: 0px;
    font-weight: bold;
    cursor: pointer;
}
.modal img {
    display: block;
    margin: 0 auto;
}
.chances {
    border-spacing: 50px 0;
    border-collapse: collapse;
}
.chances td {
    padding: 0.2rem 1rem;
}
.chances td:first-child{
    text-align: right;
}
.chances td:last-child {
    text-align: center;
}
.chances tr:nth-child(2n) {
    background-color: palegoldenrod;
}
.chances tr:hover {
    cursor: pointer;
    opacity: .7;
}