@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700;1,800&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
}

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 22px;
  color: #fff;
  background: linear-gradient(180deg, #24246a 0%, #107ac0 100%);
  background-size: cover;
  background-attachment: fixed;

}

.bg-homepage {
  background-image: url('/img/bg_cards_gradient.svg');
}

a {
  text-decoration: none;
}

/* Navbar */
/* Homepage */
.navbar-container {
  margin: 30px 100px;
  padding: 30px;
}

.navbar-logo {
  height: 70px;
}

/* Game Page */
.navbar-game {
  display: flex;
  justify-content: space-between;
}

/* Header */
/* Homepage */
.header {
  margin: 80px auto;
  text-align: center;
  font-size: 40px;
}

/* Number of players */
.player-container {
  max-width: 1160px;
  margin: 10px auto 10px auto;
  display: grid;
  grid-template-columns: repeat(2, 300px);
  gap: 60px;
  justify-content: center;
  text-align: center;
}

/* Player Name */
.player-name, .submit-name {
  max-width: 1160px;
  margin: 10px auto;
  justify-content: center;
  text-align: center;
}

.player-name {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(1, 600px);
  gap: 40px;
}

/* Buttons */
.player-input {
  width: 400px;
  margin: 0 auto;
  padding: 10px 30px;
  border-radius: 100px;
  border: unset;
  font-size: 40px;
  background: #fff;
  color: #24246a;
}

.player-input::placeholder {
  color: #24246a;
}

.player-input:focus {
  outline: none;
  border: unset;
}

.button-1 {
  padding: 15px 30px;
  color: #fff;
  border: 2px solid #F65D7C;
  border-radius: 100px;
  background-color: transparent;
}

.button-1:hover {
  background-color: #F65D7C;
}


.button-homepage {
  font-size: 40px;
  cursor: pointer;
}

.button-navbar {
  font-size: 30px;
}

.btn-name {
  margin-top: 50px;
  width: 250px;
}

/* Dashboard */
.dashboard {
  font-size: 26px;
  max-width: 1220px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
}

.dashboard-container {
  width: 500px;
  padding: 19px 57px;
  border-radius: 100px;
  background-color: #006;
  box-shadow: 0px 4px 40px 0px #00000026;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px 20px;
  align-items: center;
}

.dashboard-line {
  display: flex;
  justify-content: space-between;
}

.dashboard-line2 {
  display: flex;
  justify-content: space-between;
}

.strike, .strike1, .strike2, .strike3, .strike4 {
  color: #F65D7C;
}

/* Timer Container */
.timer-container {
  margin: auto 0;
  padding: 30px 50px;
  background-color: #006;
  color: #fff;
  border-radius: 100px;
  letter-spacing: 2px;
}

/* Player active */
.player-active {
  border-bottom: 1px solid #f65d7c;
}

/* Grid Style */
.grid {
  max-width: 1220px;
  width:70%;

  margin: 60px auto;
  padding: 10px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: space-evenly;
  -ms-flex-pack: space-evenly;
  justify-content: space-evenly;
  padding-bottom: 40px;
}

.card {
  position: relative;
  -webkit-transition: all .4s linear;
  -o-transition: all .4s linear;
  transition: all .4s linear;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  width: 16.66%;
  aspect-ratio: 1 / 1;
  height: auto;

}



.back,
.front {
  position: absolute;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  height: 100%;
  width: 100%;

}

.front {
  background: url('../img/back_card.png') no-repeat center center / contain;
  border: #fff dashed 1px;
}

.back {
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
  border: #000 dashed 1px;
  background-color: #0090d0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
}

.selected {
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
}

.match .front {
  background: #24246a !important;
}

@media only screen and (max-width: 1281px) {
.navbar-container {
  margin: 0;
}



 }
 p {
  text-align: center;

 }

 p a {
  color: #F65D7C;

 }