/* Note: Darkmode styles should be in separate file. Don't use @media (prefers-color-scheme: dark) */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #181c27!important;
    font-family: "Open Sans", sans-serif;
    margin-bottom: 40px;
    background-image: url("./Assets/Viisubingo_BG.jpg")!important;
    background-repeat: repeat-x!important;
}
canvas {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
}

#competition-round-text {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    line-height: 33.6px;
    paragraph: 20px;
    text-align: center;
}
#bingo-header {
    color: #ffffff;
    font-size: 32px;
    font-weight: 900;
    line-height: 62.4px;
    paragraph: 20px;
    text-align: center;
    font-family: "Roboto", sans-serif;
    letter-spacing: 2px;
}

p {
    color: #ffffff;
    font-size: 14px;
    line-height: 22.4px;
    paragraph: 20px;
    font-weight: 700;
    text-align: center;
}

#esc-bingo #text-content p:first-child {
    margin-bottom: 16px;
}
#esc-bingo {
    margin-top: 32px;
}

#esc-bingo #grid-container {
    display: grid;
    grid-template-columns: auto auto auto auto auto;
    grid-template-rows: auto auto auto auto auto;
    grid-gap: 5px;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    margin-top: 32px;
}

#esc-bingo .grid-item {
    display: flex;
    align-items: center;
    width: 68px;
    height: 68px;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 8px;

    color: #000000;
    font-size: 10px;
    font-weight: 500;
    line-height: 13px;
    text-align: center;
    justify-content: center;
    hyphens: auto;
    /* Makes text unselectable */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Style for a clicked grid item */
#esc-bingo .clicked {
    display: flex;
    justify-content: center;
    background-image: url("./Assets/Ruutu_open_mobiili.jpg");
    background-repeat: no-repeat;
    background-size: cover;
}

#restartConfirmButton,
#restartCloseButton,
#bingoFoundCloseButton,
#randomize-button {
    border: solid 2px #000;
    border-radius: 24px;
    color: #000000;
    font-size: 14px;
    font-weight: 700;
    line-height: 21px;
    padding: 8px 16px;
    cursor: pointer;
    margin-top: 16px;
}

#esc-bingo #questionnaire-link{
    color: #ffffff;
    font-size: 14px;
    line-height: 22.4px;
    font-weight: 300;
    text-align: center;
    text-decoration: underline;
    display: block;
    padding-bottom: 16px;
    box-sizing: border-box;
}

#esc-bingo #randomize-button {
    display: block;
    margin: auto;
    background-color: #ffffff;
    border: none;
    cursor: pointer;
    margin-bottom: 40px;
    align-items: center;
    justify-content: center;
}

#restartCloseButton {
    background-color: #ffffff;
}

#restartConfirmButton {
    background-color: #000000;
    color: #ffffff;
}

#bingoFoundCloseButton {
    background-color: #fff;
}

#esc-bingo #randomize-button:hover {
    background-color: #e9e9e9;
}

.logo {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* The Modal (background) */
.modal {
    display: none;
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    bottom: 0;
    left: 0;
    width: 100%; /* Full width */
    height: 65%; /* Location of the box */
    overflow: auto; /* Enable scroll if needed */
}

/* Modal Content */
.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    width: 40%;
    text-align: center;
    border-radius: 8px;
    width: 308px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

#bingoFoundPopup .modal-content h1 {
    font-size: 24px;
    line-height: 33.6px;
    color: #181c27;
}

#restartPopup .modal-content p {
    font-size: 14px;
    color: black;
    font-weight: 500;
}

@media (min-width: 650px) {
    #bingo-header {
        font-size: 48px;
        line-height: 62.4px;
        margin-bottom: 16px;
    }

    #competition-round-text {
        font-size: 24px;
        line-height: 33.6px;
    }

    p {
        font-size: 16px;
        line-height: 22.4px;
    }

    #esc-bingo #grid-container {
        grid-gap: 16px;
    }

    #esc-bingo .grid-item {
        width: 105px;
        height: 105px;
        font-size: 14px;
        line-height: 18.2px;
    }

    #esc-bingo .clicked {
        background-image: url("./Assets/Ruutu_open_desktop.jpg");
    }

    .bingoLetter {
        font-size: 48px;
        line-height: 62.4px;
    }

    #esc-bingo #randomize-button {
        font-size: 16px;
        line-height: 24px;
    }
}
