html,
body {
    background-color: whitesmoke;
    text-align: center;
    color: black;
    font-family: 'Roboto', sans-serif;
}

h1 {
    font-size: 3em;
    font-weight: bolder;
}

body {
    max-width: 1028px;
    margin: 0 auto;
    padding: 0 50px;
    text-align: center;
}

main {
    min-width: 500px;
    margin: auto;
}

header {
    min-width: 500px;
}

.top-display {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 50px;
    min-width: 500px;
    background-color: darkgreen;
    border-top: solid 10px goldenrod;
    border-left: solid 10px goldenrod;
    border-right: solid 10px goldenrod;
    opacity: .8;
}

.money-box {
    display: flex;
    font-size: 2em;
    color: yellow;
    padding: 0 20px;
    height: 100%;
    align-items: center;
    font-weight: bolder;
}

.money-box span {
    padding: 0 10px;
}

.play-area {
    background-image: url("../images/green-felt.jpeg");
    display: grid;
    grid-template-columns: 25% 1fr 25%;
    grid-template-rows:  5% 1fr 1fr 1fr 5%;
    min-height: 600px;
    min-width: 500px;
    border: solid 10px goldenrod;
    text-align: center;
    opacity: .8;
}

.dealer {
    grid-area: 2 / 2 / span 2 / span 2;
    margin: 5px;
    align-content: center;
    display: flex;
}

.player {
    grid-area: 4 / 2 / span 2 / span 2;
    margin: 5px;
    display: flex;
}

.message-box {
    grid-area: 3 / 2 / span 1 / span 1;
    align-self: center;
    font-size: 3em;
    opacity: .5;
    justify-self: center;
}

#dev1 {
    grid-area: 4 / 1 / span 1 / span 1;
    align-self: center;
    font-size: 3em;
    opacity: .5;;
    font-weight: bold;
}

#dev2 {
    grid-area: 2 / 1 / span 1 / span 1;
    align-self: center;
    font-size: 3em;
    opacity: .5;;
    font-weight: bold;
}

.dealer p, .player p {
    display: none;
}

.display {
    display: none;
    margin-top: 100px;
    width: 100%;
    height: 200px;
    background-color: black;
    color: seashell;
    font-size: 30px;
}

#deal {
    visibility: visible;
}

.buttons {
    display: flex;
    justify-content: space-around;
    margin: 20px 0px;
}

.button {
    background-color: darkgreen;
    border: none;
    padding: 10px 25px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 2em;
    font-weight: bold;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 7.5%;
    outline: none;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 9px #999;;
}

.button:hover {background-color: darkgreen;}

.button:active {
    background-color: darkgreen;
    box-shadow: 0 5px #666;
    transform: translateY(4px);
}

#deal,
#hit,
#stay {
    pointer-events: none;
    opacity: 0.5;
}
#replay {
    visibility: hidden;
}
.playingCards {
    display: inline;
    visibility: hidden;
    width: 105px;
    height: 146px;
    border-radius: 7.5%;
    border: blue 2px solid;
    background-color: goldenrod;
}

#card1, #dcard1 {
    position: relative;
    right: 80px;
}

#card2, #dcard2 {
    position: relative;
    right: 160px;
}
#card3, #dcard3 {
    position: relative;
    right: 240px;
}

#card4, #dcard4 {
    position: relative;
    right: 320px;
}
#card5, #dcard5 {
    position: relative;
    right: 400px;
}

#card6, #dcard6 {
    position: relative;
    right: 480px;
}
#card7, #dcard7 {
    position: relative;
    right: 560px;
}

@media only screen and (min-width: 607px) and (max-width: 834px){
    body {
        font-size: 12px;
    }
    .button { 
        padding: 6px 15px;
    }    
}

@media only screen and (max-width: 606px){
    * {
        box-sizing: border-box;
      }

    html, body, main {
        font-size: 10px;
        max-width: 100%;
        margin: 0;
        padding: 0;
        min-width: none;
    }

    header {
        display: none;
    }

    .buttons {
        justify-content: center;
    }

    .button { 
        padding: 4px 10px;
        font-size: 3em;
        margin: 10px;
    }

    .play-area, .top-display {
        border: none;
        width: 100%;
    }

    .play-area {
        min-height: 200px;
    }
}