/*
    Name: Oron Fink
    ID: 217309251
*/

html, body {
    width: 100%;
    height: 100%; 
}

.game-page, .end-game-page {
    display: none;
    height: 100%;
    width: 100%;
}

.game-page {
    background: rgb(29, 31, 32);
}

.end-game-page .card {
    height: 100%;
}

.player-data-page{
    background-color: black;
	background-image: url("downloads/memory-game-background.jpg");
	background-position: center;
    background-origin: content-box;
    background-repeat: no-repeat;
    background-size: cover;
	min-height:100vh;
	font-family: 'Noto Sans', sans-serif;
}

.text-center{
	color: black;	
	text-transform: uppercase;
    font-size: 23px;
    margin: -50px 0 80px 0;
    display: block;
}

.box{
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%,-50%);
    background-color: rgba(255, 255, 255, 0.89);
	border-radius: 5px;
	padding: 70px 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.input-container{
	position: relative;
	margin-bottom: 25px;
}

.input-container input{ 
    border:0;
    border-bottom: 1px solid black;  
    width: 100%;
    padding: 8px 0 5px 0;
    font-size: 16px;
}

.input-container input:focus{ 
    border: none;	
    outline: none;
    border-bottom:1px solid #3ae0ab;	
}

.btn{
	padding: 10px 20px;
	margin-top: 50px;
}

.input-container input:focus ~ label, .input-container input:valid ~ label{
	top: -12px;
	font-size: 12px;
}

body {
    font-family: "Open Sans", sans-serif;
    color: #fafafa;
    font-size: 1.4rem; 
    background: rgb(29, 31, 32);
}
  
header {
    margin: 0 0 0.5rem; 
}

header h1 {
    color: #fafafa;
    font-size: 1.8rem;
    padding: 1.5rem 0 0; 
    text-align: center;
}
  
.cell {
   height: 10rem;
   width: 8rem;
   margin-bottom: 0.8rem;
   margin-left: 2rem;
   margin: 1rem;
}

.cell .memory-card {
    height: 10rem;
    width: 8rem;
    color: #067fb9;
    transform-style: preserve-3d;
    transition: transform 0.5s;
    cursor: pointer; 
}
      
.cell .memory-card figure {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    border-radius: 1rem;
    position: absolute;
    text-align: center;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden; 
}

.cell .memory-card .front {
    background-color: #fafafa;
    opacity: 1;
    background: linear-gradient(135deg, #e3f74555 25%, transparent 25%) -12px 0/ 24px 24px, linear-gradient(225deg, #e3f745 25%, transparent 25%) -12px 0/ 24px 24px, linear-gradient(315deg, #e3f74555 25%, transparent 25%) 0px 0/ 24px 24px, linear-gradient(45deg, #e3f745 25%, #fafafa 25%) 0px 0/ 24px 24px;
}

.cell .memory-card .back {
    background: #fafafa;
    transform: rotateY(180deg); 
}
    
.cell .memory-card.flipped, .cell .memory-card.matched {
    transform: rotateY(180deg); 
}

.restart, .pause {
    cursor: pointer; 
}
  
@media screen and (max-width: 767px) {
    .cell .memory-card {
        line-height: 100px; 
    }
      
    .cell .memory-card figure {
        font-size: 24px; 
    } 
}

#error {
    font-size: 0.7rem;
}

.card-header {
    font-size: 3rem;
    margin-top: 3rem;
}