/*universal selector*/
* {
    /*resetting margins and padding*/
    margin: 0;
    padding: 0;

    /*includes margin and padding in sizing of elements*/
    box-sizing: border-box;

    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

/*    background: #b9cf9b; or #b0c497*/

html {
    background: #91b68c;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow: hidden;
}


header {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    /* border: 2px solid black; */
    height: 30px;
    width: 650px;
    color: black;
    margin-top: 32px;
    margin-left: 102px;
}

.gameScore {

    margin-left: 41%;
    /* border: 2px solid black; */

}

header h1 {

    font-size: 40px;
    margin-top: -2px;
    margin-left: 2px;
}



.gameplay {
    display: flex;
    flex-direction: row;
    /* justify-content: space-around; */
    align-items: center;
    align-content: flex-start;
    margin: -10px 100px;

}


/*modal styling*/
.modal {
    position: fixed;
    display: block;
    z-index: 1;
    padding-top: 15%;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: black;
    background-color: rgba(95, 93, 93, 0.7);

}

.mContent {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: beige;
    width: 30%;
    margin: auto;
    padding: 25px;
    font-size: 25px;

}

.mContent a {

    text-decoration: none;
    background-color: beige;
    color: black;
    display: block;
    text-align: center;
    border: 1px solid black;
    margin-bottom: 12px;
    padding: 9px;
    font-size: 20px;
    width: 276px;
    height: 46px;

}

.mContent a:hover {


    font-size: 26px;
    padding-top: 4px;
    padding-bottom: 4px;
    margin-bottom: 12px;

}


.mContent button {

    color: black;
    background-color: beige;
    height: 50px;
    font-size: 20px;

}

.mContent button:hover {

    color: beige;
    background-color: black;

}


/*GAMEBOARD STYLING*/

/*using css grid for gameboard as whole, flex for elements within it*/
.gameboard {
    display: grid;
    grid-template-rows: auto auto auto auto auto auto auto;
    border: 2px solid black;
}

.row {
    display: flex;
    flex-direction: row;
}

/*TABLE CELL STYLING*/
.cell {
    border: 2px solid black;
    background-color: #dbe0d8;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cell img {
    height: 76px;
    width: 76px;

}

.pTile {
    width: 77px;
    height: 77px;

}

.rowGoal {
    border-top: 2px solid black;
    border-bottom: 2px solid black;
    border-left: none;
    border-right: 2px solid black;

    background-color: #dbe0d8;
    width: 100px;
    height: 80px;
    font-size: 35px;
    text-align: center;
    padding-top: 2%;
    padding-right: 15px;
    padding-left: -10px;
}

.rowTotal {
    border-top: 2px solid black;
    border-bottom: 2px solid black;
    border-right: none;
    border-left: 2px solid black;

    background-color: #dbe0d8;
    width: 70px;
    height: 80px;
    font-size: 35px;
    text-align: right;
    padding-top: 2%;
    padding-right: 10px;
}


.rowNeeded {
    border: 2px solid black;
    background-color: rgb(160, 157, 157);
    color: #dbe0d8;
    width: 140px;
    height: 80px;
    font-size: 35px;
    text-align: center;
    padding-top: 2%;
}


/*END GAMEBAORD STYLING*/


/*CURRENT TILE AND PSBL ACTIONS STLYING*/

.play {
    align-self: flex-start;
    border: 4px solid black;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    margin-left: 30px;
    margin-top: 20px;
}


.currTile {
    /* border: 2px solid black; */
    height: 300px;
    width: 300px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    /* background-color: #F2F1E8; */

}

.currTile img {

    max-height: 250px;
    max-width: 250px;

}

.cTile {
    border: 4px solid black;

}

.psblActions {
    padding: 2px 3px;
}

/*END CURR TILE AND PSBL ACTIONS STYLE*/



/*TILE NUMS AND POINT SHEET STLYING... extra section*/

.sPowers {
    display: block;
    margin: 0 auto;


}

.tileNums {
    display: flex;
    flex-direction: row;
    justify-content: center;
    /* border: 2px solid black; */
    height: 50px;
    width: 296px;
    margin: 0 auto;
    margin-top: 10px;
    padding-top: 7px;

}

#rowsDone {

    margin-top: -8px;
    margin-left: 5px;
    font-size: 35px;

}

/*END TILE NUMS AND POINT SHEET STYLE*/


.hidden {
    display: none;
}


.license {

    margin-top: -20px;
    display: block;
    padding-left: 50px;
    text-wrap: none;
    width: 1000px;

}

.license h4 {

    margin-top: -5px;

}

#priv {

    display: block;
    margin-top: 10px;

}


button {
    background-color: #c5eecb;
    color: black;
    text-align: center;
    /* display: block; */
    border-radius: 4px;
    font-size: 16px;
    width: 280px;
    height: 25px;
    border: 2px solid black;
    margin-top: 3px;

}

button:hover:enabled {

    background-color: black;
    color: white;

}

button:disabled {

    opacity: 0.5;
    border: none;
    /* cursor: not-allowed; */

}


/*for responsive design... less than width of 1190 needs to be adjusted to column display*/


/*ipad is max width of 1024px... so anything less than that gets formatted with the following styling code... top-nav hidden, top-menu displayed*/

@media screen and (max-width: 1190px) {

    .modal {
        padding-top: 20%;

    }


    .mContent {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background-color: beige;
        width: 45%;
        margin: auto;
        padding: 25px;
        font-size: 25px;

    }

    .mContent a {

        margin-bottom: 12px;
        padding: 9px;
        font-size: 20px;
        width: 200px;
        height: 45px;

    }

    .mContent a:hover {

        font-size: 26px;
        padding-top: 4px;
        padding-bottom: 4px;
        margin-bottom: 12px;

    }

    .mContent button {

        color: black;
        background-color: beige;
        height: 50px;
        font-size: 20px;

    }

    .play {
        transform: scale(.8);
        margin-left: 0px;
        margin-top: 70px;

    }

    .license {
        margin-top: 10px;
        transform: scale(.7);
        margin-left: -40px;
        padding-left: 0px;

    }

    header {
        margin-bottom: 15px;
        height: 40px;
    }

    .currTile {
        height: 175px;
        width: 175px;
        margin-bottom: 10px;
        margin: 0 auto;

    }

    .currTile img {

        max-height: 140px;
        max-width: 140px;

    }


    .psblActions {
        display: none;

    }

    .tileNums {
        display: none;

    }

    button {
        font-size: 16px;
        width: 200px;
        height: 50px;
        margin-top: 3px;
        padding: 2% 2%;

    }
}

/*ipad is max width of 1024px... so anything less than that gets formatted with the following styling code... top-nav hidden, top-menu displayed*/
@media screen and (max-width: 950px) {


    .modal {
        padding-top: 45%;

    }

    .mContent {
        width: 80%;
        margin: auto;
        padding: 25px;
        font-size: 30px;

    }

    .mContent a {

        border: 1px solid black;
        margin-bottom: 30px;
        padding: 13px;
        font-size: 30px;
        width: 394px;
        height: 65px;

    }

    .mContent a:hover {

        font-size: 25px;
        margin-bottom: 7px;

    }


    .mContent button {

        color: black;
        background-color: beige;
        height: 70px;
        width: 400px;
        font-size: 30px;
        margin-bottom: 5px;

    }


    html {
        overflow: scroll;

    }


    .psblActions {
        display: none;

    }

    .tileNums {
        display: none;

    }


    header {
        height: 40px;
        width: 650px;
        color: black;
        margin-top: 7%;
        margin-left: 7%;
        margin-bottom: 0px;
    }

    .gameScore {

        margin-left: 41%;
        /* border: 2px solid black; */

    }

    .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 500px;
    }

    .gameplay {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
        padding-right: 5px;

    }

    .gameboard {
        margin-top: 1%;
        margin-left: 5%;

    }

    .play {
        align-self: flex-start;
        border: 4px solid black;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-content: center;
        margin-left: 27%;
        margin-top: 20px;
        transform: scale(1);
    }


    .currTile {
        height: 175px;
        width: 175px;
        margin-bottom: 10px;
        margin: 0 auto;

    }

    .currTile img {

        max-height: 140px;
        max-width: 140px;

    }

    button {
        font-size: 16px;
        width: 320px;
        height: 70px;
        margin-top: 3px;
        padding: 2% 2%;

    }


    .license {
        margin-top: 9%;
        margin-left: 20%;
        /* display: inline; */
        padding-left: 0px;
        padding-bottom: 5%;
        text-wrap: wrap;
        width: 400px;
        transform: scale(1);

    }
}