body {
    background: #254e79;
    font-family: Arial;
}

* {
    box-sizing: border-box;
}

.w\(25\%\){width:25%;}
.ta\(r\){text-align: right;}
.d\(ib\){display: inline-block;}
.w\(20px\){width: 20px;}
.tt\(c\){text-transform: capitalize;}
.mb\(10px\){margin-bottom: 10px;}
.mr\(4px\) {margin-right: 4px;}


.header {
    width: 304px;
}

.header-level {
    width: 75px;
    font-size: 12px;
    color: white;
}

.header-stats {
    width: 75px;
    font-size: 12px;
    color: white;
}

#titulo {
    text-align: center;
    font-size: 18px;
    color: white;
}

.section-container {
    width: 100%;
    margin: 0 auto;
    padding: 6px;
}

.vertical-align-center {
    display: flex;
    align-items: center;
    align-content: center;
}

.horizontal-align-center {
    display: flex;
    justify-content: center;
}

.align-spread {
    display: flex;
    justify-content: space-between;
}

#board {
    width: 304px;
    margin: 0 auto;
    position: relative;
    background: #00000077;
    border-radius: 10px;
}

#board:after {
    clear: both;
    height: 0;
    content: '';
    display: block;
    visibility: hidden;
}

.board-cell {
    float: left;
    width: 76px;
    height: 76px;
    padding: 6px;
}

#timer {
    line-height: 26px;
    font-family: monospace;
    font-size: 26px;
    color: #00c500;
}

#timer.danger {
    color: #de0000;
}

#boardCover {
    width: 100%;
    height: 100%;
    position: absolute;
}

#playBtnContainer {
    width: 100%;
    height: 100%;
    position: absolute;
    background-color: #00000077;
    border-radius: 10px;
}

#playBtn {
    width: 80px;
    height: 80px;
    background-image: url(../images/blue-play-button.png);
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    border-radius: 50%;
    background-size: 100%;
    background-color: #eeeeee;
}

#playBtn:hover {
    background-color: #ffffff;
}

.hidden {
    display: none !important;
}

.btn {
    display: inline-block;
    border: 1px solid #eeeeee;
    background-color: #eeeeee;
    border-radius: 4px;
    padding: 10px 16px;
    color: #545454;
    font-weight: bold;
    cursor: pointer;
}

#btnNextLevel:not([disabled]) {
    background-color: #1bf321;
    border: 1px solid #1bf321;
}

.btn[disabled="disabled"] {
    border: 1px solid #e2e2e2;
    background-color: #fafafa;
    color: #bbbbbb;
    cursor: default;
}

.overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    display: none;
}

@keyframes fadeIn {
    from {opacity:0}
    to {opacity: 1}
}

@keyframes fadeOut {
    from {opacity:1}
    to {opacity: 0}
}

.overlay.in {
    display: block;
    animation-name: fadeIn;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-in-out;
    -webkit-animation-name: fadeIn;
    -webkit-animation-duration: 1s;
    -webkit-animation-fill-mode: forwards;
    -webkit-animation-timing-function: ease-in-out;
}

.overlay.out {
    animation-name: fadeOut;
    animation-duration: .5s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-in-out;
    -webkit-animation-name: fadeOut;
    -webkit-animation-duration: .5s;
    -webkit-animation-fill-mode: forwards;
    -webkit-animation-timing-function: ease-in-out;
}

.overlay-backdrop {
    width: 100%;
    height: 100%;
    background-color: #000000;
    opacity: .4;
    position: absolute;
}

.overlay-content {
    position: absolute;
    width: 300px;
    min-height: 200px;
    background-color: white;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    vertical-align: middle;
    align-items: center;
    align-content: center;
    display: flex;
    justify-content: center;
}

.overlay.in .overlay-content {
    animation-name: appearFromTop;
    animation-duration: .75s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-out;
    -webkit-animation-name: appearFromTop;
    -webkit-animation-duration: .75s;
    -webkit-animation-fill-mode: forwards;
    -webkit-animation-timing-function: ease-out;
}

.overlay.out .overlay-content {
    animation-name: disappearToTop;
    animation-duration: .5s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-out;
    -webkit-animation-name: disappearToTop;
    -webkit-animation-duration: .5s;
    -webkit-animation-fill-mode: forwards;
    -webkit-animation-timing-function: ease-out;
}

.win-message {
    font-size: 18px;
    margin-bottom: 20px;
}

.lose-message {
    font-size: 24px;
}

@keyframes appearFromTop {
    0% {top: -200px}
    70% {top: calc(50% + 50px)}
    100% {top: 50%}
}

@keyframes disappearToTop {
    0% {top: 50%}
    30% {top: calc(50% + 50px)}
    100% {top: -200px}
}




@media(min-width: 520px) {
    .section-container {
        width: 480px;
    }

    .header {
        width: 480px;
    }

    #board {
        width: 480px;
        margin: 0 auto;
        position: relative;
    }

    .board-cell {
        float: left;
        width: 120px;
        height: 120px;
        padding: 6px;
    }

    .header-level {
        width: 25%;
        font-size: 18px;
    }
    
    .header-stats {
        width: 25%;
        font-size: 18px;
    }

    #titulo {
        font-size: 30px;
    }

    .overlay-content {
        position: absolute;
        width: 400px;
        min-height: 200px;
        background-color: white;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        border-radius: 8px;
        padding: 20px;
        text-align: center;
        vertical-align: middle;
        align-items: center;
        align-content: center;
        display: flex;
        justify-content: center;
    }

    .win-message {
        font-size: 24px;
    }
}