@import url('https://fonts.googleapis.com/css2?family=Open+Sans&display=swap');


@media only screen and (orientation: portrait) and (min-width: 525px) and (max-width: 550px) {
	#wrapper{
	transform: scale(0.95);
		}
	
}

@media only screen and (orientation: portrait) and (min-width: 500px) and (max-width: 524px) {
	#wrapper{
	transform: scale(0.9);
		}
}

@media only screen and (orientation: portrait) and (min-width: 475px) and (max-width: 499px) {
	#wrapper{
	transform: scale(0.85);
	}
}

@media only screen and (orientation: portrait) and (min-width: 450px) and (max-width: 474px) {
	#wrapper{
	transform: scale(0.8);
		}
}

@media only screen and (orientation: portrait) and (min-width: 425px) and (max-width: 449px) {
	#wrapper{
	transform: scale(0.75);
	}
}

@media only screen and (orientation: portrait) and (min-width: 400px) and (max-width: 424px) {
	#wrapper{
	transform: scale(0.7);
	}
}

@media only screen and (orientation: portrait) and (max-width: 399px) {
	#wrapper{
	transform: scale(0.65);
	}
}

@media only screen and (orientation: landscape) and (min-height: 590px) and (max-height: 620px) {
	#wrapper{
	transform: scale(0.95);
		}
}

@media only screen and (orientation: landscape) and (min-height: 560px) and (max-height: 589px) {
	#wrapper{
	transform: scale(0.9);
		}
}

@media only screen and (orientation: landscape) and (min-height: 530px) and (max-height: 559px) {
	#wrapper{
	transform: scale(0.85);
	}
}

@media only screen and (orientation: landscape) and (min-height: 500px) and (max-height: 529px) {
	#wrapper{
	transform: scale(0.8);
		}
}

@media only screen and (orientation: landscape) and (min-height: 470px) and (max-height: 499px) {
	#wrapper{
	transform: scale(0.75);
	}
}

@media only screen and (orientation: landscape) and (min-height: 440px) and (max-height: 469px) {
	#wrapper{
	transform: scale(0.7);
	}
}

@media only screen and (orientation: landscape) and (min-height: 410px) and (max-height: 439px) {
	#wrapper{
	transform: scale(0.65);
	}
}
@media only screen and (orientation: landscape) and (max-height: 409px) {
	#wrapper{
	transform: scale(0.6);
	}
}

html {
    background: #2a2751;
    font-family: "Open Sans";
	font-weight: bold;
}

#wrapper {
	position:absolute;
	margin:auto;
	left:-100%;right:-100%;
	top:-100%;bottom:-100%;
    min-width: 800px;
    min-height: 900px;
    background: #2a2751;
	background-image: url("../images/CP_Memory-Game_background-NEW.png");
	background-size: 800px auto;
  	background-repeat: no-repeat;
	background-position: center;
  
}


.game {
	position: absolute;
	top: 49%;
    left: 50%;
 width:507px;
height:562px; 
	transform: translate(-50%, -50%);
}

.controls {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

button {
    background: #009de0;
    color: #FFF;
    border-radius: 8px;
	box-shadow: 7px 7px 5px rgb(00 00 00 / 40%);
    padding: 10px 20px;
    border: 0;
    cursor: pointer;
	font-weight: bold;
    font-size: 24pt;
}

.disabled {
    color: rgb(255 255 255 / 50%);
}

.stats {
    color: #FFF;
    font-size: 14pt;
	margin-top:5px;
}

.board-container {
    position: relative;
}

.board,
.win {
    border-radius: 15px;
    box-shadow: 7px 7px 5px rgb(00 00 00 / 40%);
    background: #2a2751;
	border: solid 2px;
	border-color: #fff;
	-webkit-transition: transform .6s cubic-bezier(0.4, 0.0, 0.2, 1);
    transition: transform .6s cubic-bezier(0.4, 0.0, 0.2, 1);
	-webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.board {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(4, auto);
    grid-gap: 20px;
}

.board-container.flipped .board {
	-webkit-transform: rotateY(180deg) rotateZ(50deg);
    transform: rotateY(180deg) rotateZ(50deg);
}

.board-container.flipped .win {
	-webkit-transform: rotateY(0) rotateZ(0);
    transform: rotateY(0) rotateZ(0);
}

.card {
    position: relative;
    width: 100px;
    height: 100px;
    cursor: pointer;
}

.card-front,
.card-back {
    position: absolute;
    border-radius: 6px;
	box-shadow: 4px 4px 5px rgb(00 00 00 / 40%);
    width: 100%;
    height: 100%;
    background: #293e84;
	background-image: url("../images/CP_Emblem.svg");
  	background-repeat: no-repeat;
	background-position: center;
	background-size: auto 60%;
	-webkit-transition: transform .6s cubic-bezier(0.4, 0.0, 0.2, 1);
    transition: transform .6s cubic-bezier(0.4, 0.0, 0.2, 1);
	-webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.card-back {
	-webkit-transform: rotateY(180deg) rotateZ(50deg);
    transform: rotateY(180deg) rotateZ(50deg);
    background: #fff;
  	background-repeat: no-repeat;
	background-position: center;
	background-size: 100%;
	color: #FFF;
    font-size: 1pt;
}

.card.flipped .card-front {
	-webkit-transform: rotateY(180deg) rotateZ(50deg);
    transform: rotateY(180deg) rotateZ(50deg);
}

.card.flipped .card-back {
	-webkit-transform: rotateY(0) rotateZ(0);
	transform: rotateY(0) rotateZ(0);
}

.win {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    background: #009de0;
	-webkit-transform: rotateY(180deg) rotateZ(50deg);
    transform: rotateY(180deg) rotateZ(50deg);
}

.win-text {
    position: absolute;
    top: 50%;
    left: 50%;
	-webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    font-size: 18pt;
	font-weight: bold;
    color: #fff;
}

.highlight {
    color: #293e84;
}

#schlussgruss {
	position: absolute;
	top: 48px;
    left: 75px;
	width:350px;
	height:410px;
	overflow: hidden;
	border:none;
	z-index:10;
}

#gruss {
	width:350px;
	height:410px;
	overflow: hidden;
	border:none;
}



