@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Nova+Square&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

html{
  cursor: url(Cursor/Best.cur), auto;
}

section{
  padding: 20px 20px;
}

.section-home{
  position: relative;
  min-height: 100vh;
  background: url(Images/Wallpaper.jpg)no-repeat;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  filter: transparent;
}

.section-home:before{
  content: '';
  position: absolute;
  background: linear-gradient(to top, #23252B, transparent);
  width: 100%;
  height: 80px;
  bottom: 0;
}

.section-home h1{
  color: #ffffff;
  font-size: 10vw;
  font-weight: 800;
  text-shadow: 0 5px 25px rgb(0 0 0 / 20%);
  opacity: 0.3;
}

.section-two{
  min-height: 100vh;
  background: #23252B;
}

.section-two h4{
  color: #fff;
  font-size: 2em;
  font-weight: 700;
  margin: 30px 0;
}

.section-two h3{
  color: #fff;
  font-size: 2em;
  font-weight: 700;
  margin: 30px 0;
}

.section-two h2{
  color: #fff;
  font-size: 3em;
  font-weight: 700;
  margin: 30px 0;
}

.section-two h1{
  color: #fff;
  font-size: 5em;
  font-weight: 700;
  font-family: 'Nova Square';
  margin: 30px 0;
  text-align: center;
}

.section .color{
  color: #ff0000;
}

.section-two p{
  color: #fff;
  font-size: 1em;
  margin: 30px 0;
}

@media (max-width: 1260px){
  .section-two img{
    float: left;
    vertical-align: top;
    width: 320px;
    height: 260px;
  }

  .section-two iframe{
    margin-top: -130px;
    width: 320px;
    height: 450px;
  }

  .section-home h1{
    color: #ffffff;
    font-size: 15vw;
    font-weight: 800;
    text-shadow: 0 5px 25px rgb(0 0 0 / 20%);
    opacity: 0.3;
  }
}

header{
  z-index: 999;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #23252B;
  box-shadow: 0 5px 25px rgb(0 0 0 / 20%);
  padding: 0 100px;
  transition: 0.6s;
}

header .logo{
  color: #ff7b00;
  font-size: 1.8em;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
}

header .navigation{
  position: relative;
  line-height: 75px;
  transition: 0.6s;
  transition-property: line-height;
}

header .navigation .menu{
  position: relative;
  display: flex;
  justify-content: center;
  list-style: none;
  user-select: none;
}

.menu-item > a{
  color: #fff;
  font-size: 0.9em;
  text-decoration: none;
  margin: 20px;
  padding: 25px 0;
}

.menu-item > a:hover{
  color: #469DFF;
  transition: 0.3s;
}

.menu-item .sub-menu{
  position: absolute;
  background: #23252B;
  top: 74px;
  line-height: 40px;
  list-style: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 5px 25px rgb(0 0 0 / 20%);
  pointer-events: none;
  transform: translateY(20px);
  opacity: 0;    
  transition: 0.3s;
  transition-property: transform, opacity;
}

header.sticky .menu-item .sub-menu{
top: 60px;
}

.menu-item:hover .sub-menu{
  pointer-events: all;
  transform: translateY(0);
  opacity: 1;

}

.menu-item .sub-menu .sub-item{
  position: relative;
  padding: 7px 0;
  cursor: pointer;
  box-shadow: inset 0px -30px 5px -30px rgba(255, 255, 255, 0.2);
}

.menu-item .sub-menu .sub-item a{
  color: #ffffff;
  font-size: 1em;
  text-decoration: none;
  padding: 15px 30px;
}

.menu-item .sub-menu .sub-item:hover{
  background: #4080EF;
}

.menu-item .sub-menu .sub-item:last-child:hover{
  border-radius: 0 0 8px 8px;
}

.menu-btn{
  display: none;
}


@media (max-width: 1375px ){
  header .menu-item > a{
    color: #fff;
    font-size: 0.8em;
    text-decoration: none;
    margin: 20px;
    padding: 25px 0;
  }

}
@media (max-width: 1260px){
header .navigation .menu{
  position: fixed;
  display: block;
  background: #23252b;
  min-width: 350px;
  height: 100vh;
  top: 0;
  right: -100%;
  padding: 90px 50px;
  visibility: hidden;
  overflow-y: auto;
  transition: 0.5s;
  transition-property: right, visibility;
}

header.sticky .navigation{
  line-height: 75px;
}

header .navigation .menu.active{
  right: 0;
  visibility: visible;
}

.menu-item{
  position: relative;
}

.menu-item .sub-menu{
  opacity: 1;
  position: relative;
  top: 0;
  transform: translateX(10px);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  overflow: hidden;
  display: none;
}

header.sticky .menu-item .sub-menu{
  top: 0;
}

.menu-item:hover .sub-menu{
  transform: translateX(10px);
}

.menu-item .sub-menu .sub-item{
  box-shadow: none;
}

.menu-item .sub-menu .sub-item:hover{
  background: none;
}

.menu-item .sub-menu .sub-item a:hover{
  color: #4080EF;
  transition: 0.3s;
}

.close-btn{
  position: absolute;
  background: url(Images/close.png)no-repeat;
  width: 40px;
  height: 40px;
  background-size: 25px;
  background-position: center;
  top: 0;
  left: 0;
  margin: 25px;
  cursor: pointer;
}

.menu-btn{
  background: url(Images/menu.png)no-repeat;
  width: 40px;
  height: 40px;
  background-size: 30px;
  background-position: center;
  cursor: pointer;
  display: block;
}

header{
  padding: 15px 20px;
}

header.sticky{
  padding: 10px 20px;
}
}

body
{
  justify-content: flex-end;
  align-items: flex-end;
}

footer
{
  position: relative;
  width: 100%;
  background: #3586ff;
  min-height: 100px;
  padding: 20px 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
footer .social_icon,
footer .menu
{
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px 0;
  flex-wrap: wrap;
}

footer .social_icon li,
footer .menu
{
  list-style: none;
}

footer .social_icon li a
{
  font-size: 2em;
  color: #fff;
  margin: 0 10px;
  display: inline-block;
  transition: 0.5s;
}

footer .social_icon li a:hover
{
  transform: translateY(-10px);
}

footer .menu li a
{
  font-size: 1.2em;
  color: #fff;
  margin: 0 10px;
  display: inline-block;
  transition: 0.5s;
  text-decoration: none;
  opacity: 0.75;
}

footer .menu li a:hover
{
  opacity: 1;
  color: #fff;
}

footer p
{
  color: #fff;
  text-align: center;
  margin-top: 15px;
  margin-bottom: 10px;
  font-size: 1.1em;
}

footer .wave
{
  position: absolute;
  top: -100px;
  left: 0;
  width: 100%;
  height: 100px;
  background: url(Images/wave.png);
  background-size: 1000px 100px;
}

footer .wave#wave1
{
  z-index: 1000;
  opacity: 1;
  bottom: 0;
  animation: animateWave 4s linear infinite;
}

footer .wave#wave2
{
  z-index: 999;
  opacity: 0.5;
  bottom: 10px;
  animation: animateWave_02 4s linear infinite;
}

footer .wave#wave3
{
  z-index: 1000;
  opacity: 0.2;
  bottom: 15px;
  animation: animateWave_03 3s linear infinite;
}

footer .wave#wave4
{
  z-index: 999;
  opacity: 0.7;
  bottom: 20px;
  animation: animateWave_04 3s linear infinite;
}

.container {
  text-align: center;
}

h1 {
  margin-left: 30px;
  margin-bottom: 50px;
}

.button {
  width: 170px;
  padding-top: 30px;
  padding-bottom: 30px;
  text-align: center;
  color: #000;
  text-transform: uppercase;
  font-weight: 600;
  margin-left: 30px;
  margin-bottom: 30px;
  cursor: pointer;
  display: inline-block;
}

.button {
  color: #000;
  border: 3px solid #f2ff00;
  background-image: -webkit-linear-gradient(30deg, #f2ff00 50%, transparent 50%);
  background-image: linear-gradient(30deg, #f2ff00 50%, transparent 50%);
  background-size: 500px;
  background-repeat: no-repeat;
  background-position: 0%;
  -webkit-transition: background 300ms ease-in-out;
  transition: background 300ms ease-in-out;
}
.button:hover {
  background-position: 100%;
  color:#f2ff00;
}

@keyframes animateWave
{
  0%
  {
    background-position-x: 1000px;
  }
  100%
  {
    background-position-x: 0px;
  }
  
}
@keyframes animateWave_02
{
  0%
  {
    background-position-x: 0px;
  }
  100%
  {
    background-position-x: 1000px;
  }
  
}

#overlay
{
  width: 100%;
  height: 100%;
  position: fixed;
  background: rgba(255, 0, 106, 0.4);
}

.game-info-container {
	grid-column: 1 / -1;
	display: flex;
	justify-content: space-between;
}

.game-info {
	color: #fff;
	font-size: 4em;
  font-family: 'Nova Square';
}

.game-container {
	margin: 50px auto;
	display: grid;
	grid-template-columns: repeat(8, auto);
	grid-gap: 10px;
	justify-content: center;
	perspective: 500px;
}

.card {
	position: relative;
	cursor: url("Cursor/Best.cur"), auto;
	height: 230px;
	width: 180px;
}

.card-face {
	position: absolute;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 100%;
	border-radius: 12px;
	border-width: 1px;
	border-style: solid;
	overflow: hidden;
	transition: transform 500ms ease-in-out;
	backface-visibility: hidden;
}

.card.visible .card-back {
	transform: rotateY(-180deg); 
}

.card.visible .card-front {
	transform: rotateY(0); 
}

.card-back {
	background-color: #000;
	transform: rotateY(0); 
}

.card-back-image {
	width: 180px;
	height: 230px;
	transition: 0.2s;
}

.card-back:hover .card-back-image {
	width: 160px;
	height: 210px;
}

.card-value {
	width: 180px;
	height: 230px;
	transition: .2s;
}

.card-front:hover .card-value {
	transform: scale(1);
}

.card-front {
	background-color: #000000;
	transform: rotateY(180deg);
}

.overlay-text {
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 100;
	display: none;
	position: fixed;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	color: #c0161c;
	font-family: 'Nova Square', serif;
	transition: background-color 500ms, font-size 500ms;
}

.overlay-text-small {
	font-size: .3em;
}

.overlay-text.visible {
	display: flex;
	animation: overlay-grow 500ms forwards;
}

@keyframes dance {
	0%, 100% {
	transform: rotate(0)
	}
	25% {
	transform: rotate(-30deg)
	}
	75% {
	transform: rotate(30deg)
	}
}

@keyframes overlay-grow {
	from {
	background-color: rgba(0, 0, 0, 0);
	font-size: 0;
	}
	to {
	background-color: rgba(0, 0, 0, .8);
	font-size: 8em;
	}
}

@media (max-width: 1024px) {
	.game-container {
	grid-template-columns: repeat(4, auto)
	}

	.game-info-container {
	flex-direction: column;
	align-items: center;
	}
}

@media (max-width: 800px) {
	.game-container {
	grid-template-columns: repeat(6, auto)
	}

	.game-info-container {
	flex-direction: column;
	align-items: center;
	}
}

@media (max-width: 375px) {
	.game-container {
	grid-template-columns: repeat(4, auto)
	}

	.game-info-container {
	flex-direction: column;
	align-items: center;
	}
}


.section-score{
	min-height: 100vh;
  background-color: #23252B;
}

.section-score h1{
  color: #fff;
  font-size: 5em;
  font-weight: 700;
  font-family: 'Nova Square';
  margin: 30px 0;
  text-align: center;
}


/* Add this CSS code to your existing game.css or create a new CSS file */

#scoreboard {
    position: relative;
    top: 0;
    right: 0;
	width: -webkit-fill-available;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#scoreboard table {
    width: 100%;
    border-collapse: collapse;
}

#scoreboard th, #scoreboard td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

#scoreboard th {
    background-color: #f2f2f2;
}

#scoreboard td {
    font-size: 14px;
}

#scoreboard th:first-child, #scoreboard td:first-child {
    width: 70%;
}
