* {
  box-sizing: border-box;
}

.honey {
    background-color: honeydew;
}
.whit {
    background-color: white;
}

.tric {
    background-color: pink;
}

.pgcont {
    display: flex;
    align-items: center;
}
.cardcont {
    display: flex;
    align-items: center;
    justify-content: center;
}
.cardcont2 {
    display: flex;
    align-items: center;
    justify-content: center;
}
.prevcardcont {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pg {
    display: inline-block;
    font-size: 12px;
}

p { 
    font-size: 17px; 
    display: inline;
    font-weight: bold;
}

.prevcard {
    border-radius: 6px;
    padding: 6px;
    display: flex;
    font-weight: bold;
    opacity: 0.66;
}

.callcard {
    border-radius: 6px;
    padding: 6px;
    display: flex;
    font-weight: bold;
    line-height: 0.9;
    
}

.opa {opacity: 0.5;}

.hl2 {
    border: solid gold 2px;
}

.hl {
    border: solid coral 2px;
}

.nhl {
    border: solid darkgreen 1px; 
}

.nhl2 {
    border: solid gold 2px; 
}


.card {
    border-radius: 6px;
    padding: 6px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    background-position: right bottom; 
    background-repeat: no-repeat; 
    background-size: 60% 60%; 
    font-weight: bold;
    line-height: 0.9;
}
.cX {
    visibility: hidden;
}

.cE {
    color: darkseagreen;
}
.cH {
    color: rgb(223, 0, 0);
    background-image: url('hearts.png');
    background-color: white;
}

.cS {
    color: rgb(36, 130, 27);
    background-image: url('leaves.png');
    background-color: white;
}
.cC {
    color: rgb(102, 9, 4);
    background-image: url('acorns.png');
    background-color: white;
}
.cD {
    color: rgb(133, 133, 4);
    background-image: url('bells.png');
    background-color: white;
}

.cG {
    color: slategrey;
    background-image: url('joker.png');
    background-color: white;
}


.p0 {
    color: navy;
}
.p1 {
    color: orangered;
}
.p2 {
    color: saddlebrown;
}
.p3 {
    color: teal;
}
.p4 {
    color: deeppink;
}

.bod {
    font-family: Comfortaa;
    cursor: Default;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items:center;
    padding: 0;
    margin: 0;
    overflow: scroll;
    flex-wrap: wrap;
}
.bod::-webkit-scrollbar {
    display: none;
}

.imag {
    height: 40px;
    margin: 10px;
}

.inp {
    display: inline-block;
    font-family: Comfortaa;
    padding: 5px;
    margin: 5px;
    border-top: none; 
    border-left: none;
    border-right: none;
    background-color: transparent;
}

.inp1 {
    border-bottom: solid slategrey 1px;
    color: slategrey;    
    font-size: 20px;
    background-color: transparent;
    
}

.inp10 {
    border-bottom: solid slategrey 1px;
    color: slategrey;    
    font-size: 12px;
    background-color: transparent;
}

.inp100 {
    border-bottom: solid slategrey 1px;
    color: slategrey;    
    font-size: 12px;
    background-color: transparent;
}

.inp100x {
    color: slategrey;    
    font-size: 12px;
    background-color: transparent;
}

.ce {
    text-align: center;
}

.ri {
    text-align: right;
}

.inp2 {
    border-bottom: solid seagreen 1px;
    color: seagreen;
    font-size: 20px;
}

.inp20 {
    border-bottom: solid seagreen 1px;
    color: seagreen;
    font-size: 12px;
}

.inp200 {
    color: seagreen;
    font-size: 12px;
    font-weight: bold;
}

.inp3 {
    border-bottom: solid crimson 1px;
    color: crimson;
    font-size: 12px;
}
.inp3x {
    color: crimson;
    font-size: 12px;
}

.inp4 {
    border-bottom: solid sienna 1px;
    color: sienna;
    font-size: 12px;
}

.inp5 {
    border-bottom: solid slateblue 1px;
    color: slateblue;
    font-size: 12px;
}

.inp500 {
    color: slateblue;
    font-size: 12px;
    font-weight: bold;
}

.inp6 {
    border-bottom: solid tomato 1px;
    color: tomato;
    font-size: 12px;
}
.inp6x {
    color: tomato;
    font-size: 12px;
}
.inp600 {
    color: tomato;
    font-size: 12px;
}
.inp800 {
    color: royalblue;
    font-size: 12px;
    font-weight: bold;    
}

.inp400 {
    color: sienna;
    font-size: 12px;
    font-weight: bold;
}

.invis {
        visibility: hidden;
}

.iblc {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    font-size: 12px;
}

.tabl {
    border-collapse: collapse;
    font-size: 12px;
}

.cell_nav {
    border: none;
    text-align: left;
    padding: 4px;
}
.cell_nav_r {
    border: none;
    text-align: right;
    padding: 4px;
}
.cell_header {
    border-bottom: solid black 1px;
    color: black;
    text-align: left;
    padding: 4px;
}
.cell_row_l {
    border-bottom: solid slategrey 1px;
    color: slategrey;
    text-align: left;
    padding: 4px;
}
.cell_row_r {
    border-bottom: solid slategrey 1px;
    color: slategrey;
    text-align: right;
    padding: 4px;
}
.cell_row_c {
    border: none;
    color: slategrey;
    text-align: center;
    padding: 4px;
    font-size: 10px;
}
#datetime_ranking {
    border: none;
    color: slategrey;
    text-align: center;
    font-family: Comfortaa;
    font-size: 10px;
    background-color: transparent;
}

.imag_div {
    min-width: 100vw;
    
}

#menu {
    position: fixed;
    top:0;
    left:0;
    min-width: 100vw; 
    background-color: white;
    z-index: 2;
}

#menu2 {
    position: fixed;
    background-color: transparent;
    z-index: 2;
}


#div_game {
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    flex: 100%;
}

.status {
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hand {
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 6px;
}

.gamemenu {
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.message {
    margin-top: 6px;
    font-size: 14px;
}

.inp1000 {
    color: royalblue;
}
.inp2000 {
    color: deeppink;
}

ln {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 100%;
}


#div_create_game {
    position: absolute;
    top: 40px;
    left:0;
    width: 100vw;
}

#div_add_player {
    position: absolute;
    top: 40px;
    left:0;
    width: 100vw; 
}

#iframe_ranking {
    border: none;
    overflow:scroll;
}
#iframe_ranking::-webkit-scrollbar {
  display: none;
}

#ranking {
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}


#iframe_games {
    border: none;
    overflow:scroll;
}
#iframe_games::-webkit-scrollbar {
  display: none;
}

#games {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

#login {
    margin-top: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
}

.endo {
    position: absolute;
}
.incard {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
}

@media (orientation: landscape) {
    .prevcard {
        width: 7vw;
        height: 3.5vw;
        align-items: center;
        justify-content: flex-start;
        font-size: 2.5vw;
        background-position: right center; 
        background-repeat: no-repeat; 
        background-size: 40% 80%; 
    }
    .callcard {
        width: 3.5vw;
        height: 7vw;
        align-items: center;
        justify-content: flex-start;
        flex-direction: column;
        font-size: 2vw;
        margin-left: 3px;
        margin-right: 3px;
        background-position: center bottom; 
        background-repeat: no-repeat; 
        background-size: 80% 40%; 
    }
    .prevcardcont {
        width: 16vw;
        height: 3.5vw;
        margin: 3px;
    }
    .pgcont { 
        width: 16vw;
        height: 4vw;
        margin: 3px;
        justify-content: center;
    }
    .pg {
        text-align: center;
    }
    .card {
        min-width: 7vw;
        min-height: 7vw;
        font-size: 2.5vw;
    }
    subp {
        font-size: 1vw;
    }

    .ptscap {
        font-size: 1.5vh;
    }
    .ptscap2 {
        font-size: 2.25vh;
    }
    .cardcont {
        width: 16vw;
        height: 7vw;
        margin: 3px;
    }
    .cardcont2 {
        width: 7vw;
        height: 7vw;
        margin: 3px;
    }
    
    #menu2 {
        top: 0;
        right: 0;
        writing-mode: vertical-lr;
        transform: rotate(180deg);
    }
    #div_game {
        flex-direction: column;
        padding-right: 32px;
    }
    .status {
        flex-direction: column;
    }
    ln {
        flex-direction: row;
        width: 100vw;
    }
    .hand {
        flex-direction: row;
        align-items:center;
        justify-content:center;
        width: 100vw;
    }
    .bod {
        flex-direction: row;
    }
    #login {
        flex-direction: row;
    }

    .inp1 {
        width: 25vw;
    }
  
    .inp2 {
        width: 25vw;    
    }

    #iframe_games {
        position: absolute;
        top:40px;
        left:0;
        width: 48vw;
        max-height: 55vh;
    }
    
    #iframe_ranking {
        position: absolute;
        top:40px;
        left:51vw;
        width: 48vw;
        max-height: 55vh;
    }

    .endo {
        top: 500px;
    }

    .imag_div {
        width: 100vw;
    }
}

@media (orientation: portrait) {
    .prevcard {
        min-width: 6vw;
        height: 12vw;
        align-items: flex-start;
        justify-content: center;
        font-size: 2vh;
        background-position: center bottom; 
        background-repeat: no-repeat; 
        background-size: 80% 40%; 
    }
    .callcard {
        min-width: 6vw;
        height: 12vw;
        align-items: center;
        justify-content: flex-start;
        flex-direction: column;
        margin-left: 3px;
        margin-right: 3px;
        font-size: 2vh;
        background-position: center bottom; 
        background-repeat: no-repeat; 
        background-size: 80% 40%; 
    }
    .prevcardcont {
        width: 24vw;
        height: 12vw;
        margin: 3px;
        padding-right: 6px;
        justify-content: flex-start;
        padding-left: 6px;
    }
    .pgcont { 
        width: 24vw;
        height: 12vw;
        margin: 3px;
        padding-right: 6px;
        justify-content: flex-end;
    }
    .pg {
        text-align: right;
    }
    .card {
        min-width: 12vw;
        min-height: 12vw;
        font-size: 2.5vh;
    }
    subp {
        font-size: 1vh;
    }
    .ptscap {
        font-size: 1.5vw;
    }
    .ptscap2 {
        font-size: 2.25vw;
    }
    .cardcont {
        width: 24vw;
        height: 12vw;
        margin: 3px;
    }
    .cardcont2 {
        width: 12vw;
        height: 12vw;
        margin: 3px;
    }
    .bod {
        flex-direction: column;
    }
    
    #login {
        flex-direction: column;
        flex-wrap: wrap;
    }
    
    .inp1 {
        width: 80vw;
    }
    
    .inp2 {
        width: 80vw;    
    }

    #menu2 {
        top: 0;
    }
    
    #div_game {
        flex-direction: column;
        padding-top: 32px;
    }
    .status {
        flex-direction: row;
    }
    ln {
        flex-direction: column;
    }

    .hand {
        max-height: 28vw;
        min-height:28vw;
        flex-direction: column;
        flex-wrap: wrap;
        width: 100%;
        align-items: center;
        justify-content:flex-start;
    }

    #iframe_games {
        position: absolute;
        top: 0;
        left: 1vw;
        width: 98vw;
        height: 50%;
        padding-top: 40px;
        overflow: scroll;
    }
    #iframe_games::-webkit-scrollbar {
        display: none;
    }    
    #iframe_ranking {
        position: absolute;
        top: 53%;
        left: 1vw;
        width: 98vw;
        height: 45%;
        overflow: scroll;
    }
    #iframe_games::-webkit-scrollbar {
        display: none;
    }    

    .endo {
        top: 100%;
    }

}
