@import url('https://fonts.googleapis.com/css2?family=Anton&family=Bangers&family=Lobster&family=Noto+Sans:wght@400;700&family=Oswald:wght@469&family=Pacifico&family=Press+Start+2P&display=swap');

/*site background and standard font*/
body {
    background: #0f0c29;  
    background: -webkit-linear-gradient(to right, #24243e, #302b63, #0f0c29); 
    background: linear-gradient(to right, #24243e, #302b63, #0f0c29); 
    width: 100%;
    margin: 0;
    font-family: 'Bangers', cursive;
    
}
body::-webkit-scrollbar {
    display: none;
}

/* This is only used for the setup page logo*/
h1 {
    text-align: center;
    background: linear-gradient(to left, cyan, blue, violet);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 60px;
    line-height:160px;
    font-family: 'Pacifico', cursive;
}





/***** Setup Screen Playername Boxes ******/
input {
    width: 100%;
}

#playerlistcontainer {
    width: 70%;
    height: 250px;
    padding-left: 15%;
    padding-right: 15%;
}

.playernamelistElement {
    font-family: 'Bangers', cursive;
    color: white;
    font-size: x-large;
    margin-top: 1rem;
    border-radius: 3px;
    border: 1px transparent;
    padding: 8px;
    
}

/***** Classes for Menu during game ******/

.pinfo {
    margin: 0;
    margin-left: 6px ;
}

.pname {
    margin-left: 6px ;
    margin-top: 4px;
    margin-bottom: 0px;
    vertical-align: top;
}

.playerBox {
    overflow: hidden;
    vertical-align: top;
    color: #FFFFFF;
    box-sizing: border-box;
    display: inline-block;
}
#playerboxes {
    display: inline-block;
}

#cornerMenu {
    vertical-align: top;
    background: #AAAAAA;
    color : #FFFFFF;
}

/***** Game Cards with Classes needed for 3D effect******/

 /* 3D scene and positioning in page layout*/
.cardContainer {
    box-shadow: 0px 60px 76px 0px rgba(0,0,0,0.5);
    border: 1px solid black;
    box-sizing: border-box;
    display: inline-block;
    background-color: transparent;
    width:16%;
    margin: 2%;
    height:300px;
    perspective: 600px;
}

/* This class is added onclick to turn the card*/
.cardRotate {
    transform: rotateY(180deg);
}

/*parent class for front and back content*/
.cardinternalContainer{
    width: 100%;
    height: 100%;
    transition: 0.4s;
    transform-style: preserve-3d;
    position: relative;
}

/* background for card front, this is the side with the blue dot pattern*/
.card-front {
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
	position: absolute;
    /*
    background-image: url(mem.svg);
    background-size: 350% ;
    background-position: center;
    */
    background-image: radial-gradient(#0074D9 1px, #FFFFFF 1px), radial-gradient(#0074D9 1px, #FFFFFF 1px);
    background-size: calc(3 * 1px) calc(3 * 1px);
    background-position: 0 0, calc(10 * 1px) calc(10 * 1px);
}
/*background for backside of card. this is the side with the emoji*/
.card-back {
    background-color: white;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;

    transform: rotateY(-180deg);
    position: absolute;
	top: 0;
    left: 0;
    
}


/***** Misc. Rules ******/

.spacer-10 {
    display: inline-block;
    width: 10%;
}

.blinking {
    animation: blink 1.2s linear infinite;
}

.clock{
    padding-top: 0.8em;
    display: block;
    width: 100%;
    text-align: center;
    font-family: 'Anton', sans-serif;
    font-size: larger;
}

/***** Reset Button Rules******/

.resetbutton {
    text-align: center;
    width: 100%;
    display: block;
    margin: 0;
    padding: 0;
    background-color: #AAAAAA;
    color: #FFFFFF;
    font-size: xx-large;
    border: 0px;
}
.resetbutton:hover {
    text-shadow: 0px 0px 11px rgba(255, 255, 255, 0.87);
}
.resetbutton:active{
    text-shadow: 0px 0px 11px rgba(255, 255, 255, 0.87);
    outline: none;
}
.resetbutton:focus {
    outline: none;
}

/***** Start Button Rules ******/

.startbutton {
    box-shadow: -5px 13px 74px -8px rgba(0,0,0,0.75);
    background: #FFFFFF;
    border-radius: 6px;
    border: 0px;
    color: #111111;
    padding: 20px 3px;
    text-decoration: none;
    font-size: xx-large;
    font-family: 'Pacifico', cursive;
    
    
}
.startbutton:hover{
    background: linear-gradient(90deg, #FC466B 0%, #3F5EFB 50%,#FC466B 100% );
    background-size: 400%;
    color: #FFFFFF;
    border: 0px ;
    transition: .3s ease-in-out;
    animation: fading 20s linear infinite;
}
.startbutton:active {
    outline: none;
    box-shadow: inset 0px 5px 52px -17px rgba(0,0,0,0.72);
}
.startbutton:focus {
    outline: none;
}

/******Range Slider Styling********/
.slidercontainer {
    font-size: larger;
    width: 70%;
    padding-left: 15%;
    padding-right: 15%;
  }

  input[type=range] {
      opacity: 70%;
      width: 100%;
      height: 1em;
      border-radius: 1em;
      line-height: 1;
      -webkit-appearance: none;
  }
  input[type=range]:focus {
      outline: none;
      opacity: 100%;
  }
  input[type=range]:hover {
    opacity: 100%;
}
   /* Webkit specific Elements */
  input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 1em;
    border-radius: 1em;
  }
  input[type=range]::-webkit-slider-thumb {
    opacity: 100%;
    height: 2em;
    width: 2em;
    border-radius: 2em;
    background: #212121;
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -0.5em;
  }
  /* Firefox specific Elements */
  input[type=range]::-moz-range-track {
    width: 100%;
    height: 1em;
    border-radius: 1em;
  }
  input[type=range]::-moz-range-thumb {
    opacity: 100%;
    height: 2em;
    width: 2em;
    border: 0px;
    border-radius: 2em;
    background: #212121;
    cursor: pointer;
    margin-top: -0.5em;
  }

/*** Animation Keyframes ***/
  
  @keyframes fading {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}
  @keyframes blink {
      50% { opacity: 0;}
  }

  /***** Fix Setup Screen for small heights ******/
@media only screen and (max-height:750px) {
    h1 {
        margin-top: 0;
        margin-bottom: 0;
        line-height: 120px;
        font-size: 60px;
    }
    .startbutton {
        margin-top: 0;
    }
}
/***** Setup Screen for taller Sizes ******/
@media only screen and (min-height:750px) {
    .startbutton {
     margin-top: 2rem;
    }
}
/***** Phones ******/
@media only screen and (max-width:500px) {
    .cardContainer {
        width: calc(94% / 6);
        margin: 0.5%;
        height: calc(94vw / 6) ;
    }
    .pname {
        font-size: smaller;
    }
    .pinfo {
        font-size: small;
    }

    #cornerMenu{
        display: none;
    }

    #contentWrapper {
        margin-bottom: 70px;
    }
    #bottomMenu {
        position: fixed;
        bottom: 0;
        display: block;
        width:100%;
        height: 90px;
        background: #AAAAAA;
        color : #FFFFFF;
    }
    #playerboxes {
        width: 100%;
    }

    .playerBox {
        height: 70px;
    }
    #topbar_spacer{
        height: 70px;
    }
    
    .startbutton {
        width: 90%;
        margin-left: 5%;
    }
}
/***** Smaller Window / Tablets ******/
@media only screen and (max-width:900px) and (min-width:500px) {
    .cardContainer {
        width: 11.5%;
        margin: 0.5%;
        height: 11.5vw;
    }
    .pname {
        font-size: medium;
    }
    .pinfo {
        font-size: smaller;
    }
    #cornerMenu {
        display: inline-block;
        height: 90px;
        width: 10%;
    }
    .playerBox {
        height: 90px;
    }
    #topbar_spacer{
        height: 90px;
    }

    #playerboxes {
        width: 90%;
    }
    #bottomMenu {
        display: none;
    }
    .startbutton {
        width: 30%;
        margin-left: 35%;
    }

}
/***** Bigger Window ******/
@media only screen and (min-width:900px) {
    .cardContainer {
        width: 9%;
        margin: 0.5%;
        height: 9vw
    }
    #cornerMenu {
        display: inline-block;
        width: 5%;
        height: 100px;
    }
    #playerboxes {
        width: 95%;
    }
    #bottomMenu {
        display: none;
    }
    .playerBox {
        height: 100px;
    }
    #topbar_spacer{
        height: 100px;
    }
    #setupScreen {
        margin-top: 3%;
        margin-bottom: 3%;
        background-color: white	;
        display: inline-block;
        width: 80%;
        padding: 1rem;
        padding-bottom: 4rem ;
        border-radius: 10px;
    }
    
    .pname {
        font-size: xx-large;
    }
    .startbutton {
        width: 30%;
        margin-left: 35%;
    }
}
/***** Everything small ******/
@media only screen and (max-width:900px) {
    #setupScreen {
        background-color: white	;
        display: inline-block;
        width: 100%;
        height: calc(100% + 200px);
        padding-bottom: 4rem ;
    }
    .spacer-10 {
        display: none;
    }
}