* {
    margin: auto;
    /*background-color: black;*/
    color: white;
}

main {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100vh;
    background-image: url('back.jpeg');
    background-size: contain;
    background-repeat: round;
}

div {
    display: flex;
    justify-content: space-between;
}

.mobile {
    display: none;
    font-size: 30px;
}

.desktop {
    width: 100%;
    font-size: 30px;
}

.p1, .p2, .p3, .p4 {
    display: none;
}

.current {
    display: block;
}

.board {
    width: 100%;
    margin-top: 25px;
    margin-bottom: 20px;
}

.footer {
    margin-top: 0px;
}

.prev, .next {
    font-size: 75px;
    cursor: pointer;
}

.negative {
    background-color: transparent;
    cursor: pointer;
}

.negative-score {
    background: #FFFDD0;
    color: black;
    font-family: Montserrat;
}

.black-tile, .red-tile, .blue-tile, .white-tile, .yellow-tile {
    background-size: contain;
    background-repeat: round;
    border: 2px solid black;
    board-radius: 5px;
    font-size: 30px;
    font-weight: bold;
    color: black;
    vertical-align: top;
    text-align: left;
    cursor: pointer;
}

.black-tile {
    background-image: url("black-tile.png");
    -webkit-text-stroke: 2px white;
}
.red-tile {
    background-image: url("red-tile.png");
    -webkit-text-stroke: 2px white;
}
.blue-tile {
    background-image: url("blue-tile.png");
    -webkit-text-stroke: 2px white;
}
.white-tile {
    background-image: url("white-tile.png");
    -webkit-text-stroke: 1px black;
}
.yellow-tile {
    background-image: url("yellow-tile.png");
    -webkit-text-stroke: 2px white;
}

.selected {
    border: 3px solid #0f0;
    border-radius: 3px;
    box-shadow: 0px 0px 10px 7px #0f0;
}

.negative-selected {
    border: 4px solid #FF3131;
    border-radius: 5px;
}

table {
    /*background-color: black;*/
}

td {
    text-align: center;
    background-color: #BA7A3A;
    width: 65px;
    height: 65px;
}

p {
    display: inline-block;
}

span {
    display: inline-block;
}

@media screen and (max-width: 560px) {
    td {
        width: 12vw;
        height: 12vw;
    }

    table {
        margin: 0;
    }

    .mobile {
        display: block;
        margin: 55px 10px 0px 10px;
    }

    .board {
        margin: -200px 0px 0px 0px;
    }

    .prev, .next {
        font-size: 30px;
    }

    .prev {
        padding-left: 20px;
    }
    .next {
        padding-right: 20px;
    }

    .nav {
        margin-left: 0px;
        margin-right: 0px;
    }

    .desktop {
        display: none;
    }

    .footer {
        margin-top: -250px;
    }

    .reset {
        margin-top: 25px;
    }

    .black-tile, .red-tile, .blue-tile, .white-tile, .yellow-tile {
        font-size: 17px;
    }

    .black-tile, .red-tile, .blue-tile, .yellow-tile {
        -webkit-text-stroke: 1px white;
    }
}

@media screen and (max-width: 380px) {
    td {
        height: 3vw;
        width: 3vw;
    }
}

@media screen and (max-width: 345px) {
    td {
        height: 2.5vw;
        width: 2.5vw;
    }
}

@media screen and (max-width: 300px) {
    td {
        height: 1.5vw;
        width: 1.5vw;
    }
}