body {
    padding: 0px;
    margin: 0px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: medium;
}

img {
    max-height: 12vh;
    max-width: auto;
}

.hero{
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr .1fr 1.5fr;

}

.table {
    background-image: url("../images/table.png");
    background-repeat: no-repeat;
    background-color: rgb(92, 218, 123);
    grid-area: 1/1/2/2;
    display: grid;
    grid-template-columns: .2fr .3fr .3fr .3fr;
    grid-template-rows: .2fr 1fr;
    height: 39vw;
    width: 41vw;
    position: relative;
}

.nav{
    grid-area: 2/1/3/2;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    width: 39vw;
    align-items: center;
    padding-left: 2vw;
}

.message {
    background-color: rgb(182, 225, 197);
    display: none;
    top: 315px;
    left: 160px;
    padding: 5px;
    width: 230px;
    height: 60px;
    position: absolute;
    text-align: center;
}

.contact {
    grid-area: 1/1/2/2;
}

.rules{
    grid-area: 1/2/2/3;
    
}

.deal-button {
    grid-area: 1/3/2/4;
    font-size: x-large;
    font-weight: 800;
    font-style: italic;
    text-shadow: 2px 2px 2px #7e8e89;
    letter-spacing: .1em;
    color: green;
    cursor: pointer;
}

.contact, .rules {
    font-size: medium;
    font-weight: 600;
    cursor: pointer;
}


.you-balance, .aunt-balance, .uncle-balance {
    display: none;
    background-color: white;
    height: 15px;
    width: 70px;
    border: 1px solid black;
    font-size: small;
    font-style: italic;
    text-align: center;
    position: absolute;
}

.you-balance {
    top: 390px;
    left: 240px;
}

.aunt-balance {
    top: 325px;
    left: 75px;
}

.uncle-balance {
    top: 190px;
    left: 240px;
}

.dealer-button {
    background-color: white;
    display: none;
    height: 20px;
    width: 20px;
    border-radius: .75em;
    border: 1px solid red;
    color: red;
    font-weight: 700;
    font-style: italic;
    text-align: center;
    position: absolute;
}

.trump-card {
    top: 250px;
    left: 420px;
    position: absolute;
}

.shooter-button {
    background-color: black;
    display: none;
    height: 20px;
    width: 20px;
    border-radius: .75em;
    color: white;
    font-weight: 700;
    font-style: italic;
    text-align: center;
    position: absolute;
}

.bid-options {
    display: none;
    top: 215px;
    left: 175px;
    position: absolute;
}

.aunt-bid, .uncle-bid{
    display: none;
    background-color: white;
    height: 40px;
    width: 75px;
    border-radius: 3em;
    border: 2px solid black;
    color: black;
    font-size: x-large;
    font-weight: 800;
    font-style: italic;
    text-align: center;
    position: absolute;
    z-index: 100;
}

.aunt-bid {
    left: 30px;
    top: 200px;
}

.uncle-bid {
    left: 330px;
    top: 12px;
}



.bid-container {
    background-color: rgb(181, 246, 206);
    display: grid;
    grid-template-rows: .5fr 1fr;
    height: 65px;
    width: 200px;
    border: 3px solid darkgreen;
    border-radius: .5em;

}


.bid-text {
    grid-area: 1/1/2/2;
    text-align: center;
    font-style: italic;

}

.bid-inside {
    grid-area: 2/1/3/2;
    display: grid;
    grid-template-columns: 1fr .1fr 1fr .1fr 1fr;
    padding: 5px;

}
.bid-pass{
    grid-area: 1/1/2/2;

}
.bid-half{
    grid-area: 1/3/2/4;

}
.bid-pot{
    grid-area: 1/5/2/6;

}

.bid-pass, .bid-half, .bid-pot {
    background-color: black;
    font-size: large;
    font-weight: 800;
    font-style: italic;
    color: rgb(181, 242, 204);
    border: 1px solid black;
    height: 25px;
    width: 50px;
    cursor: pointer;
    text-align: center;
}

.player-points, .aunt-points, .uncle-points {
    display: none;
    font-size: large;
    font-weight: 800;
    font-style: italic;
    color: white;
    z-index: 100;
    position: absolute;
}

.player-points {
    top: 415px;
    left: 390px;
}

.aunt-points {
    top: 165px;
    left: 110px;
}

.uncle-points{
    top: 85px;
    left: 390px;
}

.pot-container {
    display: none;
    grid-template-rows: .5fr 1fr;
    left: 420px;
    top:195px;
    width: 50px;
    height: 50px;
    position: absolute;

}

.pot {
    font-size: small;
    font-weight: 400;
    font-style: italic;
    text-align: center;   
}

.pot-amount {
    background-color: white;
    border: 1px solid black;
    border-radius: 0.3em;
    font-size: large;
    font-weight: 800;
    font-style: italic;
    text-align: center;
}

.ashtray {
    left: 288px;
    top: 75px;
    position: absolute;
}

.cigar-smoke {
    left: 300px;
    top: 1px;
    position: absolute;
}

.smoke {
    left: 95px;
    top: 100px;
    position: absolute;
}

.new-game {
    display: none;
    left: 180px;
    top: 200px;
    padding: 5px;
    font-size: large;
    font-weight: 600;
    font-style: italic;
    color: blue;
    text-align: center;
    text-decoration: underline;
    cursor: pointer;
    position: absolute;
}

.no-exchange, .yes-exchange {
    font-size: medium;
    font-weight: 600;
    font-style: italic;
    color: blue;
    text-align: center;
    text-decoration: underline;
    cursor: pointer;
}

p {
    text-align: center;
}

.rules-text {
    grid-area: 3/1/4/2;
    font-size: medium;
    font-weight: 400;
    width: 40vw;
    margin-top: 15vh;
}


.rules-header{
    margin-left: 4vw;
    font-weight: 600;
    text-align: center;   
}

.back-button {
    font-weight: 600;
    text-align: right;
}

.petoet {
    display: none;
    left: 130px;
    top: 235px;
    padding: 5px;
    font-size: 60px;
    font-weight: 800;
    font-style: italic;
    color: white;
    text-align: center;
    text-shadow: 0 0 3px red, 0 0 5px red;
    letter-spacing: .2em;
    cursor: pointer;
    z-index: 1000;
    position: absolute;

}

.flag-right, .flag-left{
    display: none;
    top: 190px;
    z-index: 1000;
    position: absolute;
}

.flag-left{
    left: 100px;
}

.flag-right {
    left: 390px;
}


.text-balloon {
    display: none;
    background-image: url("../images/balloon2.png");
    background-repeat: no-repeat;
    background-origin: border-box;
    font-family: 'Times New Roman', Times, serif;
    font-size: small;
    width: 130px;
    height: 80px;
    z-index: 1000;
    position: absolute;
}

.balloon-text {
    padding-top: 12px;
    padding-left: 16px;
    padding-right: 16px;
}

/*  responsive at 1920, 1400(laptop), 800(tablet), 410, 375, 360*/

@media only screen and (max-width: 800px) {
    html,body{
        overflow-x: hidden;
    }

    img {
        max-height: 11vh;
        max-width: auto;
    }

    .table {
        width: 75vw;
        height: 72vw;
    }
    .nav {
        width: 75vw;
    }

    .rules-text {
        width: 75vw;
    }
}


@media only screen and (max-width: 560px) {
    html,body{
        overflow-x: hidden;
    }

    .table {
        width: 100vw;
        height: 130vw;
    }
}

@media only screen and (max-width: 430px) {

    html,body{
        overflow-x: hidden;
    }

    img {
        max-height: 9vh;
        max-width: auto;
    }

    .nav {
        width: 100vw;
    }

    .rules-text {
        width: 100vw;
    }

    .table {
        background-image: url("../images/table-medium.png");
        width: 100vw;
        height: 110vw;
    }

    .pot-container {
        left: 84vw;
        top: 18vw;
    }

    .message {
        top: 255px;
        left: 132px;
        width: 200px;

    }

    .bid-options {
        top: 175px;
        left: 135px;
    }

    .ashtray {
        left: 230px;
        top: 60px;

    }

    .cigar-smoke {
        left: 245px;
    }

    .smoke {
        left: 75px;
        top: 84px;
    }

    .aunt-bid {
        top: 150px;
    }
    
    .uncle-bid {
        left: 260px;
        top: 5px;
    }

    .you-balance {
        top: 340px;
        left: 50vw;
    }
    
    .aunt-balance {
        top: 268px;
        left: 55px;
    }
    
    .uncle-balance {
        top: 150px;
        left: 50vw;
    }

    .trump-card {
        top: 32vw;
        left: 85vw;
    }

    .player-points {
        top: 365px;
        left: 75vw;
    }
    
    .aunt-points {
        top: 125px;
        left: 80px;
    }
    
    .uncle-points{
        top: 45px;
        left: 75vw;
    }

    .new-game {
        left: 130px;
    }

    .rules-text {
        padding: 5px;
    }

    .petoet {
        left: 90px;
    }

    .flag-left {
        left: 60px;
    }
    .flag-right {
        left: 350px;
    }
}





@media only screen and (max-width: 360px) {


    img {
        max-height: 8vh;

    }


    .table {
        background-image: url("../images/table-small.png");

    }

    .flag-left, .flag-right {
        max-height: 8vh;
        max-width: auto;
    }
    .flag-left {
        left: 25px;
    }
    .flag-right {
        left: 300px;
    }

    .new-game {
        left: 100px;
    }

    .rules-text {
        padding: 5px;
    }

}