/*html {
   box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background: #ffffff url('../img/background.png');
    font-family: 'Coda', cursive;
}
*/
.cardcontainer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/*h1 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 1000;
} */

/*
 * Styles for the deck of cards
 */

.deck {
   /* width: 660px;*/
   /* min-height: 680px; */
    background: linear-gradient(160deg, #cacaca 0%, #aa7ecd 100%);
    padding: 32px;
    border-radius: 10px;
    border-style: solid;
    border-width: 5px;
    border-color: #2e3d49;
    border-radius: 10px;
    box-shadow: 12px 15px 20px 0 rgba(46, 61, 73, 0.5);
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin: 0 0 3em;
   
}

.deck .card {
    height: 175px;
    width: 175px;
    background: #2e3d49;
    font-size: 0;
    color: #ff00c8;
    border-radius: 8px;
    cursor: pointer;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    box-shadow: 5px 2px 20px 0 rgba(46, 61, 73, 0.5);
	margin: 5px !important;
		-webkit-transition: transform 1s;
  -webkit-transform-style: preserve-3d;
	transition: transform 1s;
  transform-style: preserve-3d;
	position: relative;
}

.deck .card.open {
    /*transform: rotateY(180deg) !important;*/
   /* background: #4e754e;*/
	background: transparent;
    cursor: default;
}

.deck .card.show {
    font-size: 50px;
	-webkit-transform: rotateY(180deg) !important;
	transform: rotateY(180deg) !important;
}

.deck .card.match {
    cursor: default;
    /*background: #02ccba;*/
	background: transparent;
    font-size: 50px;
	/*transform: rotateY(180deg) !important;*/
}

.card-face {
  position: absolute;
  height: 100%;
  width: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;

}


.card-image {
	width: 100%;
    height: 100%;
    background-size: cover;
    /* background-position: center bottom;*/
	background-position: center center;
    border-radius: 8px;
	-webkit-transform: rotateY(180deg);
	transform: rotateY(180deg);
}

.card-back {
	width: 100%;
    height: 100%;
  background: transparent;
    border-radius: 8px;
	/*transform: rotateY(180deg);*/
	background: url('https://www.abt.org/wp-content/themes/abt/img/ABT_white.png');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center center;
}

.hidden-item {
  height: 0px !important;
  border: none !important;
  background: transparent !important;
	list-style: none !important;
	padding: 0 12px !important;
}

.card-text-overlay {
    position: absolute;
    width: 100%;
    text-align: center;
    bottom: 0;
    background: #000000;
    color: #ffffff;
       font-size: 1vw;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
	line-height:200%;

}

/*
 * Styles for the Score Panel
 */

.score-panel {
    text-align: left;
    width: 345px;
    margin-bottom: 10px;
}

.score-panel .stars {
    margin: 0;
    padding: 0;
    display: inline-block;
    margin: 0 5px 0 0;
}

.score-panel .stars li {
    list-style: none;
    display: inline-block;
}

.score-panel .restart {
    /*float: right;*/
    cursor: pointer;
}

/*
 * Responsiveness
 */

@media only screen and (max-width: 800px){
    .deck .card{
      width: 100px;
      height: 100px;
      line-height: 100px;
    }
  
    .deck {
      width: 600px;
    }
}
  
@media only screen and (max-width: 450px){
    .deck .card{
     /* width: 50px;*/
     /* height: 50px;*/
     /* line-height: 50px;*/
		  width: 45px;
      height: 45px;
      line-height: 45pxpx;
    }
  
    .deck {
      width: 300px;
    }
}