html {
  background-color: white;
}

body {
    margin: 0;
    padding: 0;
    background-image: url(../jpg/wollpaper10.jpg);
    background-size: cover;
    align-content: center;
    height: 100vh;
}

#banner {
  display: none;
}

#full {
  display: none;
}

#mute {
    font-size: 10pt;
    width: 50px;
    height: 50px;
    display: block;
    border-radius: 50px;
    position: relative;
    top: 1vh;
    right: -235px;
    display: none;
}

#container {
    display: flex;
    flex-direction: column;
    max-width: 900px;
    min-width: 700px;
    margin:0 auto; 
}

#container::backdrop {
        background: rgba(255,0,0,.0);
}

header {
    width: 100%;
    height: 100px;
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 20px; 
}

#copyright {
    align-self: flex-end;
}

#main_menu {
    border-radius: 50%;
    height: 50px;
    width: 50px;
    z-index: 1;
}

.titular {
  background: rgba(159, 154, 157, 0.8);
  border-radius: 20px;
  padding: 5px;
  width: 90%;
  text-align: center;
}

.list {
    position: absolute;
    min-height: 40%;
    background-image: url(../jpg/wallpaper1.jpg);
    background-size: auto 100%;
    border: solid 1px black;
    border-radius: 10px ;
    box-shadow: gray 2px 1px 7px; 
    display: none;
}

.block{
    position: absolute;
    top: 75px;    
    list-style-type: none;
    width: 200px;
    display: block;
    z-index: 1;
}

.list > li {
    margin: 15px auto;
    border: 1px solid black;
    font-size: 15pt;
    border-radius: 7px;
    text-align: center;     
    cursor: pointer; 
}

#main_menu, .list > li {
    background: white;
    border: solid 1px black;
}

#main_menu, #full, .list > Li, .timer button {
  box-shadow: gray 2px 1px 7px;
}

#game {            
    height: 750px;
    width: 100%;
    display: grid;
    justify-items: center;
    row-gap: 0;   
    perspective: 1000px;
}

.flip {
    transform-style: preserve-3d;
}

.card {
    position: relative;    
    transform-style: preserve-3d;
    transition: .3s linear;
}

.card:hover {
    transform: translateZ(25px);
}

.card:hover.over, .card.over {
    transform: rotateY(180deg);
}

.c16 {
    width: 100px;
    height: 150px;
}
 
.c36 {
  Width: 80px;
  height: 110px;
}

.shirt, .face{    
    border-radius: 10px;
    box-shadow: gray 2px 2px 7px;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    box-sizing: border-box;
    backface-visibility: hidden;
}

.shirt {
    border: 1px solid black;
    transform: rotateY(0deg);    
    background-size: cover;
}

.shirt0{
    background-image: url(../jpg/shirt0.jpg);
    border-color: black;
}

.shirt1{
    background-image: url(../jpg/shirt1.jpg);
    border-color: white;
}

.shirt2{
    background-image: url(../jpg/shirt2.jpg);
    border-color: black;
}

.face {
    transform: rotateY(-180deg);
    background-color: white;
    background-size: cover;
    border: 1px solid white;
}

.timer {
    width: 100%;      
    align-items: baseline;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.timer button, .score, .phrase, .restart, #full, #main_menu, #mute, .butMenu {
    background: white;    
    text-shadow: grey 2px 2px 1px;
}

.timer button, .score, .timer span, .phrase, .restart, #full, .butMenu {
    text-align: center;
    font-size: 40pt;    
    color: black;
  }
  
.timer button, .butMenu {
  border-radius: 20px;
}

.butMenu{
    font-size: 20pt;
}
  
.timer span, header > h1, #copyright, #banner span, .startButton, label{
    display: block;    
    text-shadow: red 2px 2px 7px;
    color: yellow;
}

.screen {
    position: absolute;
    left: calc((100% - 900px)/2); 
    top:5px;
    z-index: 1000;
    width: 900px;
    height: 930px;
    background: url(../jpg/menu1.jpg);
    background-size: cover;
    border: 3px solid black;
}

.score, .expr, .shirtC, .shirtR, .backR, .backG, .phrase, .restart, .startButton{
    margin: 10px auto;
    border-radius: 20px;
}

.shirtC {
    width: 270px;
    height: 410px;    
    border: black 2px solid;   
    background-size: cover;
}

.shirtR, .backR, .scrn {
    text-align: center; 
}

.backG {
    width: 500px;
    height: 270px;    
    border: white 2px solid;
    background-image: url(../jpg/wollpaper10.jpg);
    background-size: cover;
}

.butMenu {
    display: block;
    margin: 30px auto;
}

.scrn {
    width: 100%;
    height: 100%;    
}

.expr {
    height: 300px;
    width: 90%;    
    background-size: cover;
    border: 1px solid white;
    margin: 100px auto;
}

.score, .phrase, .restart {
    width: 250px;
    border: 1px solid black;
}

.score {    
    margin: 260px auto;        
}

.phrase{
    margin: 50px auto;
}

.restart{
    margin: -30px auto 30px;
    font-size: 25pt;
    max-height: 50px;
}

#load{
    position: absolute;
    background: rgba(255,255,255, 0.5);
    width: 100%;
    height: 100vh;
    margin: 0;
    z-index: 1000;
}

.none{
    display: none;
}

#load > img {
    height: 100px;
    width: 100px;
    border: 1px solid black;
    border-radius: 20%;
    margin: 40vh calc(100% / 2 - 50px) auto calc(100% / 2 - 50px);
}

#load > span {
    margin: 0px calc(100% / 2 - 50px) auto calc(100% / 2 - 50px);
}

.startButton {
    background-image: url(../jpg/start.png);
    background-size: cover;
    width: 200px;
    height: 200px;
    margin : auto;
    font-size: 30pt;
    box-shadow: red 0px 0px 7px;
}

.startButton:active{
    filter: invert(1);
}

.radio {
    position: relative;
    top: -10px;
}

input[type="radio"]:checked, 
input[type="radio"]:not(:checked){
    position: absolute;
    opacity: 0;
}

input[type="radio"]:checked + label, 
input[type="radio"]:not(:checked) + label {
    display: inline-block;
    position: relative;
    padding-left: 28px;
    line-height: 20px;
    cursor: pointer;
    
}

input[type="radio"]:checked + label:before, 
input[type="radio"]:not(:checked) + label:before {
    content: "";
    position: absolute;
    left: 0px;
    top: 0px;
    width: 13px;
    height: 13px;
    border: 1px solid #dd6413;
    background-color: #ffffff;
}

input[type="radio"]:checked + label:before, 
input[type="radio"]:not(:checked) + label:before {
    border-radius: 100%;
}

input[type="radio"]:checked + label:after, 
input[type="radio"]:not(:checked) + label:after {
    content: "";
    position: absolute;
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

input[type="radio"]:checked + label:after, 
input[type="radio"]:not(:checked) + label:after {
    left: 4px;
    top: 4px;
    width: 7px;
    height: 7px;
    border-radius: 100%;
    background-color: #b40808;
}

input[type="radio"]:not(:checked) + label:after {
    opacity: 0;
}


@media (max-height: 420px) {
    body {
     height: 100vh;
     overflow-y: hidden;
    }
    
    #banner {
      display: block;
      background: rgba(255, 255, 255, 0.2);
      min-width: 100%;
      min-height: 100%;
      position: absolute;
      backdrop-filter: blur(1px);
      z-index: 2000;
      text-align: center;
      font-size: 30pt ;
    }
    
    #banner span {
        display: block;
        Width: 300px;
        height: 100px;
        left: 33%;
        top: 30%;
        position: absolute;
        box-shadow:  red 0 0 7px;
        border-radius: 20px;
        background-color: rgba(230, 217, 206, 0.8);
      }
}

@media (max-width: 699px) and (min-width: 320px){
    body {
        display: block;
        min-height: 100vh;
        min-height: calc(var(--vh) * 100);
        background-position: center;
        background-size: cover;
    }
    
    #full, #mute {
        font-size: 10pt;
        width: 40px;
        height: 40px;
        display: block;
        border-radius: 50px;
        position: absolute;
        top: 1vh;
        right: 3vh;
    }
    
    #mute {
      right: 10vh;
      font-size: 8pt;
      display: none;
    }

    header {
        margin: 0;
        height: 10vh;
    }

    #main_menu {
        height: 50px;
    }

    .block {
        top: 25px;
        width: 70px;
    }

    .list {
        position: absolute;
        top: 0;
        min-height: 90%;
        width: 250px;       
    }

    .list > li {        
        font-size: 20pt;
        border-radius: 20px;
        text-align: center;
    }

    #container {             
        min-height: 90vh;
        min-width: 300px;
        margin: 0;
        justify-content: space-between;
    }
    
    .startButton {
        
        width: 150px;
        height: 150px;
    }
    
   .titular input {
        margin: 50px;
        border-radius: 20px;
        height: 50px;
        width: 80px;
   }
   
   #form{
        display: none;
   }

    #game{
        margin: 0 auto;
        max-height: 70vh;
    }
    
   .card:hover {
        transform: translateZ(0);
    }

    .c16 {
        width: 10vh;
        height: 14vh;
    }

    #cells36 {
      display: none;
    }

    .timer button, .score, .timer span {
        font-size: 20pt;
    }

    .score {
        margin: 230px auto;
    }

    .screen {    
        left: 0;
        top: 7px;
        width: 100%;
        height: 90%;
    }
    
    .shirtC {
      width: 135px;
      height: 205px;    
      border: black 2px solid;   
      background-size: cover;
    }

    .backG {
      width: 250px;
      height: 135px;    
      border: white 2px solid;
      background-image: url(../jpg/wollpaper10.jpg);
      background-size: cover;
    }

    .expr {
        height: 250px;
        width: 90%;    
        background-size: cover;
        border: 1px solid white;
        margin: 50px auto;
    }
}