/* CSS Style */

button[disabled] {
    background:#ccc;
    border-color: #ccc;
    text-shadow:none;
}

.main {
    margin: auto;
    width: 480px;
}

.header {
    display: inline-flex;
}

a {
    text-decoration: none;
}

.footer {
    margin-top: 3rem;
    margin-bottom: 2em;
    text-align: center;
}

.logo {
    height: 2em;
    margin: auto 0;
    margin-right: .5em;
}

#board {
    margin: auto;
    width: 100%;
    touch-action: none;
}

.board-b72b1 {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#levels-dropdown {
    margin-top: auto;
}

.top-row {
    display: flex;
    flex-flow: row;
    justify-content: space-between;
}

.levels-container {
    display: flex;
    flex-flow: column;
    margin-bottom: 2.5rem;
    margin-right: 3px;
}

.instructions-container {
    padding-right: 4em;
}

.buttons-container {
    display: flex;
    flex-flow: row;
    justify-content: space-between;
    margin-top: 2.5rem;
}

#next-level-button {
    margin-right: 3px;
}

/* Border Radius for the Chessboard */
.square-a4 { border-radius: 10px 0 0 0; }
.square-d4 { border-radius: 0 10px 0 0; }
.square-d1 { border-radius: 0 0 10px 0; }
.square-a1 { border-radius: 0 0 0 10px; }

.piece-417db:hover {
    cursor: grab;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

.modal > .container {
    width: 450px;
    background-color: white;
    padding: .5em 2em 2em;
    border: 1px solid #bbb;
    border-radius: 4px;
}

#acknowledgments-btn:hover {
    cursor: pointer;
}

#acknowledgments-modal > .container {
    padding: 2em 2em 0;
    display: flex;
    flex-flow: column;
}

#acknowledgments-modal > .container > strong {
    margin-bottom: .5em;
}

#donate-btn-container {
    text-align: center;
    margin-top: .5em;
}

select {
    background: url("data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>") no-repeat;
    background-position: calc(100% - 0.75rem) center !important;
    -moz-appearance:none !important;
    -webkit-appearance: none !important; 
    appearance: none !important;
    padding-right: 2rem !important;
}

@media only screen and (max-width: 600px) {
    .main {
        width: 100%;
        padding: 0 1em;
    }

    .top-row {
        flex-flow: column;
    }

    .top-row > .columns {
        width: calc(100% - 3px);
        margin-left: 0;
    }

    .modal > .container {
        width: calc(100% - 2em);
    }
}