body {
  background-image: url(/images/rick-and-morty-purple-pink-planet-wallpaper.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  margin: 3rem;
  overflow: hidden;
}

button:hover{
  cursor: pointer;
}

.container{
  margin: 70px auto 100px auto;
}


.left-column{
  height: 80vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.center-column{
  height: 80vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
}

.right-column{
  height: 80vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rick-score{
  width: 300px;
  height: 232px;
  background-image: url(/images/rick-score.png);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;

}

.morty-score{
  width: 300px;
  height: 232px;
  background-image: url(/images/morty-score.png);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;

}

.score{
  color: #A4FD59;
  font-size: 50px;
  font-family: 'Press Start 2P', cursive;
   position: relative;
  top: 1rem;

}

.rick-card, .morty-card{
  position: relative;
  height: 320px;
  width: 224px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.the-card{
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: all 0.5s ease;

}

.card-front{
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  background-image: url(/images/rick-morty-card-back.png);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  -webkit-backface-visibility: hidden;
}

.card-back{
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  background-image: url(/images/front1.png);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
}

.character-img {
  width: 170px;
  height: 170px;
  background-size: cover;
  background-repeat: no-repeat;
  border: solid white 4px;

}

.strength {
  margin: 0;
  color: white;
}

.character-name{
  margin: 0;
  color: white;
  text-align: center;
}

.the-card-flip{
  transform: rotateY(180deg);
}

.strength {
  margin: 3rem 0 0;
  color: white;
}

.character-name{
  margin: 0;
  color: white;
}

.modal{
  position: fixed;
  top: 25%;
  left: 25%;
  background-color: black;
  height: 30%;
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: solid white 6px;
  color: white;
}

.start-modal{
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 0;
  font-family: 'Press Start 2P', cursive;
  background-image: url(/images/space-background.jpg);

}

.start-modal > h1{
  font-size: 20px;
}

.winner-modal{
  margin: 0;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  border: none;
  background-color: rgb(6, 7, 11);
}

.start-image{
  height: 400px;
}

.blink {
	-webkit-animation: blink .75s linear infinite;
	-moz-animation: blink .75s linear infinite;
	-ms-animation: blink .75s linear infinite;
	-o-animation: blink .75s linear infinite;
	 animation: blink .75s linear infinite;
}

@-webkit-keyframes blink {
	0% { opacity: 1; }
	50% { opacity: 1; }
	50.01% { opacity: 0; }
	100% { opacity: 0; }
}

@-moz-keyframes blink {
	0% { opacity: 1; }
	50% { opacity: 1; }
	50.01% { opacity: 0; }
	100% { opacity: 0; }
}

@-ms-keyframes blink {
	0% { opacity: 1; }
	50% { opacity: 1; }
	50.01% { opacity: 0; }
	100% { opacity: 0; }
}

@-o-keyframes blink {
	0% { opacity: 1; }
	50% { opacity: 1; }
	50.01% { opacity: 0; }
	100% { opacity: 0; }
}

@keyframes blink {
	0% { opacity: 1; }
	50% { opacity: 1; }
	50.01% { opacity: 0; }
	100% { opacity: 0; }
}

.winner-gif{
  height: 50%;
}

.gif-img{
  width:100%;
  margin: 0;
}

.hidden {
  display: none;
}

.gif {
    position: relative;
    z-index: -1;
    width: 262px;
}

.picture-frame{
  height: 230px;
  background-image: url(/images/picture-frame.gif);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result {
  height: 105px;
}

.result > h2 {
  text-align: center;
  color: red;
  border: solid red 5px;
  width: 50%;
  margin: 2rem auto;
  background-color: rgba(255, 255, 255, 0.5);
}

.game-button{
  background: #153458;
  border-radius: 10px;
  width: 323px;
  height: 81px;
  font-family: 'Press Start 2P', cursive;
  font-style: normal;
  font-weight: normal;
  font-size: 28px;
  line-height: 28px;
  color: #FFFFFF;
  align-self: center;
  border: none;
  outline: none;
}

.winnerText{
  font-family: 'Press Start 2P', cursive;;
}

.reset-button{
  background: black;
  border-radius: 10px;
  font-family: 'Press Start 2P', cursive;
  color: white;
  padding: 1rem 2rem;
  border: solid white 2px;
}


/* iPhone 6/7/8 */

@media only screen
and (min-device-width : 375px)
and (max-device-width : 667px)
and (orientation : landscape) {

  body{
    margin: 0;
  }

  .container{
    margin: .7rem;
  }

  .center-column{
    height: 90vh;
  }

  .left-column{
    height: 95vh;
  }

  .right-column{
    height: 95vh;
  }

  .rick-score, .morty-score {
    width: 193px;
    height: 148px;
  }

  .picture-frame{
    width: 201px;
    height: 133px;
    margin: 0 auto;
  }

  .game-button{
    width: 200px;
    height: 58px;
    font-size: 18px;
  }

  .result > h2{
    font-size: 18px;
  }

  .gif{
    width: 162px;
  }

  .winnerText{
    font-size: 20px;
  }

  .character-img{
    margin-top: 5px;
    width: 95px;
    height: 95px;
  }

  .card-back{
    justify-content: space-between;
  }

  .character-name {
    font-size: 12px;
    width: 45%;
    margin-bottom: 5px;
    padding: 0 2px;
}

  .strength {
    margin: .4rem 0 0;
  }

  .start-image {
    height: 290px;
}

}

@media only screen
and (min-device-width : 375px)
and (max-device-width : 667px)
and (orientation : portrait) {

  body {
    height: 90vw;
    transform: rotate(90deg);
    background-image: url(/images/rick-and-morty-purple-pink-planet-wallpaper-portrait.jpg);
    margin: 2rem 1rem 0 1rem;
  }

  .container{
    margin: .5rem;
  }

  .center-column{
    height: 95vw;
  }

  .left-column{
    height: 95vw;
  }

  .right-column{
    height: 95vw;
  }

  .rick-score, .morty-score {
    width: 193px;
    height: 148px;
  }

  .picture-frame{
    width: 201px;
    height: 133px;
    margin: 0 auto;
  }

  .game-button{
    width: 200px;
    height: 58px;
    font-size: 18px;
  }

  .result > h2{
    font-size: 18px;
  }

  .gif{
    width: 162px;
  }

  .winnerText{
    font-size: 20px;
  }

  .character-img{
    width: 95px;
    height: 95px;
  }

  .character-name {
    font-size: 12px;
    width: 45%;
    margin-bottom: 5px;
    padding: 0 2px;
}

  .strength{
    margin: 1rem 0 0;
  }

  .start-image {
    height: 290px;
}

.start-modal {
    height: 400px;
    width: 690px;
    top: -20px;
    left: -48px;
    right: 0;
    bottom: 0;
    border: 0;
    font-family: 'Press Start 2P', cursive;
    background-image: url(/images/space-background.jpg);
}
}

/* iPhone X  */

@media only screen
and (min-device-width : 375px)
and (max-device-width : 812px)
and (-webkit-device-pixel-ratio : 3)
and (orientation : landscape) {


.center-column{
  height: 95vh;
}

.rick-score, .morty-score {
  width: 193px;
  height: 148px;
}

.picture-frame{
  width: 201px;
  height: 133px;
  margin: 0 auto;
}

.game-button{
  width: 230px;
  height: 58px;
  font-size: 18px;
}

.result > h2{
  font-size: 18px;
}

.gif{
   width: 162px;
}

.winnerText{
  font-size: 20px;
}

.character-img{
   width: 95px;
   height: 95px;
}

.character-name{
  font-size: 14px;
  }

  .start-image {
    height: 290px;
}

}


/* iPad */

@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)
and (orientation : landscape) {

body{
  margin: 3rem 0;
}

 .strength{
    margin-top: 0;
    font-size: 2rem;
  }

   .character-img{
    margin-top: 15px;

  }

  .card-back{
    justify-content: space-between;
  }

  .character-name {
    font-size: 22px;
    width: 70%;
    margin-bottom: 15px;
    padding: 0 2px;
}

}

@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)
and (orientation : portrait){

  body {
    height: 100vw;
    transform: rotate(90deg);
    /* margin: 3rem 0; */
    background-image: url(/images/rick-and-morty-purple-pink-planet-wallpaper-portrait.jpg);
  }

  .left-column{
    height: 100%;
  }

  .center-column{
    height: 100%;
  }

  .right-column{
    height: 100%;
  }

  .container {
    margin: 70px auto 100px auto;
    width: 950px;
  }

  .start-modal{
    width: 1024px;
    left: -118px;
  }



}
