
@font-face {
  src: url("./lib/Arvo\ Bold.ttf");
  font-family: "arvo-bold";
}
@font-face {
  src: url("./lib/Arvo-Regular.ttf");
  font-family: "arvo-regular";
}

body {
  width: 100vw;
  height: 100vh;
  margin: 0;
  justify-content: center;
  align-content: center;
  font-family: "arvo-regular";
  overflow: hidden;
  background-color: transparent;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 0;
}
#full-area{
  width: 100%;
  height: 100vh;
  background: #fff;
  margin: 0;
  border: none !important;
  background-repeat: no-repeat;
  background-size: cover;
}
#game-area{
  width: 1800px;
  height: 1220px;
  position: absolute;
  overflow: hidden;
  background-repeat: no-repeat;
  background-size: cover;
}
canvas {
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  pointer-events: none;
  justify-content: center;
  align-content: center;
}
#logo{
  position: absolute;
  background: url('./media/logo1.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  width: 248px;
  height: 230px;
  margin-left: 20px;
  margin-top: -16px;
}
button {
  color: #fff;
  font-family: inherit;
  font-weight: 500;
  padding: 6px 12px;
  font-size: 16px;
  cursor: pointer;
  background-color: transparent;
  border: none;   outline: none;
}
button:hover {
  background-color: rgba(0, 0, 0, 0.3);
  border-color: rgba(0, 0, 0, 0.3);
}

#container::after,
.clearfix::after {
  clear: both;
  content: "";
  display: table;
}

#container {
  height: 100vh;
  width: 1300px;
  text-align: center;
  margin: 25px 390px;
}

#controls {
  position: absolute;

  display:flex;
  top: 0;
  z-index: 100001;
  background-color: #C1DFDF;
  border: 4px solid transparent;
border-right-color: #FFCE00;

}

#one-card{
  position: absolute;
  background: url('./media/Fichier 8.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  width: 226px;
  height: 88px;
  margin-top: 515px;
  margin-left: 27px;    outline: none;
}

.stack0{
  position: absolute;
  background: url('./media/fondspade.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover
}
.stack1{
  position: absolute;
  background: url('./media/fonddiamond.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover
}
.stack2{
  position: absolute;
  background: url('./media/fondclub.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover
}
.stack3{
  position: absolute;
  background: url('./media/fondheart.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover
}

#three-card{
  position: absolute;
  background: url('./media/Fichier 7.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  width: 226px;
  height: 88px;
  margin-top: 620px;
  margin-left: 27px;   outline: none;
}
#undo{
  position: absolute;
        background: url('./media/Fichier 2.png');
        background-repeat: no-repeat;
        background-position: center center;
        background-size: cover;
        width: 226.4px;
        height: 88px;
        margin-top: 315px;
        margin-left: 30.8px;
        cursor: pointer;
        outline: none;
        
}
#restart{
  outline: none;
  position: absolute;
        background: url('./media/Fichier\ 3.png');
        background-repeat: no-repeat;
        background-position: center center;
        background-size: cover;
        width: 260.8px;
        height: 104px;
        margin-top: 1096px;
        margin-left: 8px;
        cursor: pointer;
        
}
#logo1{
  position: absolute;
  background: url('./media/spelaharpan.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  width: 328.9px;
  height: 39px;
  margin-top: 1129px;
  margin-left: 504px;
  opacity: 65%;
}
#force-win{
  outline: none;
  position: absolute;
  background: url('./media/Fichier\ 11.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  width: 99.2px;
  height: 89px;
  margin-top: 729px;
  margin-left: 24px;
  cursor: pointer;
}

#hint{
  position: absolute;
        background: url('./media/Fichier\ 10.png');
        background-repeat: no-repeat;
        background-position: center center;
        background-size: cover;
        width: 99.2px;
        height: 89px;
        margin-top: 729px;
        margin-left: 157px;
        cursor: pointer;
        outline: none;
}
.timer{
  position: absolute;
  margin-top: 250px;
  margin-left: 95px;
  color: black;
}

#play{
  position: absolute;
  margin-top: 8px;
  margin-left: 136px;
  font-size:1.8em ;
  display: none;
  cursor: pointer;
  outline: none;
}

#pause{
  position: absolute;
  margin-top: 8px;
  font-size:1.8em ;
  margin-left: 144px;
  cursor: pointer;
  display: flex;
  outline: none;
}
#score {
  color: black;
  position: absolute;
    margin-top: 843px;
    margin-left: 36px;
    width: 208px;
    height: 92px;
    text-align: center;
    align-content: center;
    justify-content: center;
    background: url('./media/2/Fichier 32.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
  }
  #score2{
    position: absolute;
    margin-top: 12px;
    margin-left: -40px;
    font-size: 30px;
    width: 80px;
    height: 70px;
    font-weight: bold;
    text-align: center;
    align-content: center;
    justify-content: center;
    background: url('./media/Fichier 31.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
  }

#card-turns{
  background: url('./media/2/Fichier 33.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  position: absolute;
  margin-top: 452px;
  margin-left: 46.5px;
  width: 204px;
  height: 38px;
  text-align: center;
  align-content: center;
  justify-content: center;
}
#moves{
  position: absolute;
  color: black;
    margin-top: 972px;
    margin-left: 36px;
    font-weight: bold;
    text-align: center;
    width: 208px;
    height: 92px;

    text-align: center;
    background: url('./media/2/Fichier 30.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
  }
  #moves1{

    font-family: "arvo-regular";
    text-align: center;
    font-size: 1.8em;
    top: 40%;
    margin-left: -6px;
    font-weight: bold;

  }
  #center2{
    position: absolute;
    font-family: "arvo-regular";
margin-left: 53px;
margin-top: 38px;
    width: 100px;
    height: 50px;
    text-align: center;
justify-content: center;
align-items: center;
    font-weight: bold;
  }
  #score1{
    font-family: "arvo-regular";
    font-size: 1.8em;

    font-weight: bold;
  }
  #center1{
    position: absolute;
    font-family: "arvo-regular";
margin-left: 53px;
margin-top: 15px;
    width: 100px;
    height: 50px;
    text-align: center;
justify-content: center;
align-items: center;
    font-weight: bold;
  }
  
  #timer-clock{
    position: absolute;
    background: url('./media/2/Fichier 39.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    width: 53px;
    height: 53px;
    margin-top: -22px;
    margin-left: -71px;
  }
  #line{
    position: absolute;
    background: url('./media/2/Fichier 36.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    width: 190px;
    height: 4px;
    margin-top: 424px;
    margin-left: 49px;
  }
  #timer-text{
    background: url('./media/Timer- (2).png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    width: 80px;
    height: 65px;
    font-size: 25px;
  font-weight: bold;
  text-align: center;
  position: absolute;
  margin-top: -25px;
  margin-left: -8px;
  }
  #chronotime{
    position: absolute;
    font-family: "arvo-regular";
    font-size: 1.8em;
    font-weight: bold;
  }

  #won{
    display: none;
    background: url('./media/Fichier 22.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    width:1020px;
    height: 850px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    z-index: 20000;
}
#yes-btn{
  background: url('./media/Fichier 27.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  width:345px;
  height: 134px;
  position: absolute;
  top: 73.5%;
  left: 16%;
  cursor: pointer;
  outline: none;
}
#no-btn{
  background: url('./media/Fichier 26.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  width:345px;
  height: 134px;
  position: absolute;
  top: 73.5%;
  left: 55%;
  cursor: pointer;
  outline: none;
}

#reset{
 display: none;
  background: url('./media/Fichier 25.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  width:1207px;
  height: 854px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  z-index: 20000;
  outline: none;
}
#again-btn{
    background: url('./media/Fichier 23.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    width:579px;
    height: 110px;
    position: absolute;
    left: 21.8%;
    top: 77.8%;
    cursor: pointer;
    outline: none;
}
.columns {
  width: 1400px;
  
}

.column {
  float: left;
  position: relative;
  width: 175px;
  height: 246px;
  
}

.column .card:nth-child(1), .column .ghost:nth-child(1) {
  top: 0px;
  z-index: 11;
  
}

.column .card:nth-child(2), .column .ghost:nth-child(2) {
  top: 25px;
  z-index: 12;
}

.column .card:nth-child(3), .column .ghost:nth-child(3) {
  top: 50px;
  z-index: 13;
}

.column .card:nth-child(4), .column .ghost:nth-child(4) {
  top: 75px;
  z-index: 14;
}

.column .card:nth-child(5), .column .ghost:nth-child(5) {
  top: 100px;
  z-index: 15;
}

.column .card:nth-child(6), .column .ghost:nth-child(6) {
  top: 125px;
  z-index: 16;
}

.column .card:nth-child(7), .column .ghost:nth-child(7) {
  top: 150px;
  z-index: 17;
}

.column .card:nth-child(8), .column .ghost:nth-child(8) {
  top: 175px;
  z-index: 18;
}

.column .card:nth-child(9), .column .ghost:nth-child(9) {
  top: 200px;
  z-index: 19;
}

.column .card:nth-child(10), .column .ghost:nth-child(10) {
  top: 225px;
  z-index: 20;
}

.column .card:nth-child(11), .column .ghost:nth-child(11) {
  top: 250px;
  z-index: 21;
}

.column .card:nth-child(12), .column .ghost:nth-child(12) {
  top: 275px;
  z-index: 22;
}

.column .card:nth-child(13), .column .ghost:nth-child(13) {
  top: 300px;
  z-index: 23;
}

.column .card:nth-child(14), .column .ghost:nth-child(14) {
  top: 325px;
  z-index: 24;
}

.column .card:nth-child(15), .column .ghost:nth-child(15) {
  top: 350px;
  z-index: 25;
}

.column .card:nth-child(16), .column .ghost:nth-child(16) {
  top: 375px;
  z-index: 26;
}

.column .card:nth-child(17), .column .ghost:nth-child(17) {
  top: 400px;
  z-index: 27;
}

.column .card:nth-child(18), .column .ghost:nth-child(18) {
  top: 425px;
  z-index: 28;
}

.column .card:nth-child(19), .column .ghost:nth-child(19) {
  top: 450px;
  z-index: 29;
}

.column .card:nth-child(20), .column .ghost:nth-child(20) {
  top: 475px;
  z-index: 30;
}

.pack, .dealt {
  position: relative;
  width: 175px;
  height: 246px;
  float: left;
  
  
}

.stack {
  width: 175px;
  height: 246px;
  border-radius: 10px;
  display: inline-block;
  position: relative;

  box-sizing: border-box;
  
}

.dealer,
.stacks {
  float: left;
}

.dealer {
  width: 376px;
  text-align: left;  cursor: pointer;
}

.stacks {
  width: 900px;
  text-align: right;
}

.pack, .dealt, .stack, .column {
  background-color: rgba(0, 0, 0, 0.3);
  margin: 0px 10px 60px 0px;
  border-radius: 10px;
}


/* THE CARDS */
.card {
  width: 175px;
  height: 246px;
  position: relative;
  display: block;
  position: absolute;
  cursor: pointer;
  left: 0;
  background: transparent;
  top: 0;
  transform: rotateY(180deg);
  border-radius: 10px;
  z-index: 1;
  border: none;
  -webkit-user-drag: element;
  -webkit-user-drop: element;
}



.card, .card * {
  pointer-events: none;
}

.dealt .card {
  pointer-events: none;
}

.dealt .card:last-child, .column .card.flipped, .stack .card.flipped:last-child {
  pointer-events: inherit;
}

.card {
  transform-style: preserve-3d;
  transition: transform 250ms, z-index 250ms step-end;
}

.dealer.dealing .card {
  transition: transform 250ms;
}

.card > div {
  display: block;
  width: 175px;
  height: 246px;
  position: absolute;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
          border-radius: 10px;

}

.card.diamonds.card-1.flipped .front{
  background: url('./media/diamond-ace.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.card.diamonds.card-2.flipped .front{
  background: url('./media/diamond-two.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.card.diamonds.card-3.flipped .front{
  background: url('./media/diamond-three.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.card.diamonds.card-4.flipped .front{
  background: url('./media/diamond-four.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.card.diamonds.card-5.flipped .front{
  background: url('./media/diamond-five.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.card.diamonds.card-6.flipped .front{
  background: url('./media/diamond-six.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.card.diamonds.card-7.flipped .front{
  background: url('./media/diamond-seven.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.card.diamonds.card-8.flipped .front{
  background: url('./media/diamond-eight.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.card.diamonds.card-9.flipped .front{
  background: url('./media/diamond-nine.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.card.diamonds.card-10.flipped .front{
  background: url('./media/diamond-ten.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.card.diamonds.card-J.flipped .front{
  background: url('./media/diamond-jack.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.card.diamonds.card-Q.flipped .front{
  background: url('./media/diamond-queen.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.card.diamonds.card-K.flipped .front{
  background: url('./media/diamond-king.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}



.card.spades.card-1.flipped .front{
  background: url('./media/spade-ace.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.card.spades.card-2.flipped .front{
  background: url('./media/spade-two.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.card.spades.card-3.flipped .front{
  background: url('./media/spade-three.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.card.spades.card-4.flipped .front{
  background: url('./media/spade-four.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.card.spades.card-5.flipped .front{
  background: url('./media/spade-five.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.card.spades.card-6.flipped .front{
  background: url('./media/spade-six.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.card.spades.card-7.flipped .front{
  background: url('./media/spade-seven.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.card.spades.card-8.flipped .front{
  background: url('./media/spade-eight.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.card.spades.card-9.flipped .front{
  background: url('./media/spade-nine.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.card.spades.card-10.flipped .front{
  background: url('./media/spade-ten.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.card.spades.card-J.flipped .front{
  background: url('./media/spade-jack.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.card.spades.card-Q.flipped .front{
  background: url('./media/spade-queen.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.card.spades.card-K.flipped .front{
  background: url('./media/spade-king.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}


.card.hearts.card-1.flipped .front{
  background: url('./media/heart-ace.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.card.hearts.card-2.flipped .front{
  background: url('./media/heart-two.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.card.hearts.card-3.flipped .front{
  background: url('./media/heart-three.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.card.hearts.card-4.flipped .front{
  background: url('./media/heart-four.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.card.hearts.card-5.flipped .front{
  background: url('./media/heart-five.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.card.hearts.card-6.flipped .front{
  background: url('./media/heart-six.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.card.hearts.card-7.flipped .front{
  background: url('./media/heart-seven.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.card.hearts.card-8.flipped .front{
  background: url('./media/heart-eight.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.card.hearts.card-9.flipped .front{
  background: url('./media/heart-nine.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.card.hearts.card-10.flipped .front{
  background: url('./media/heart-ten.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.card.hearts.card-J.flipped .front{
  background: url('./media/heart-jack.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.card.hearts.card-Q.flipped .front{
  background: url('./media/heart-queen.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.card.hearts.card-K.flipped .front{
  background: url('./media/heart-king.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}

.card.clubs.card-1.flipped .front{
  background: url('./media/club-ace.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.card.clubs.card-2.flipped .front{
  background: url('./media/club-two.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.card.clubs.card-3.flipped .front{
  background: url('./media/club-three.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.card.clubs.card-4.flipped .front{
  background: url('./media/club-four.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.card.clubs.card-5.flipped .front{
  background: url('./media/club-five.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.card.clubs.card-6.flipped .front{
  background: url('./media/club-six.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.card.clubs.card-7.flipped .front{
  background: url('./media/club-seven.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.card.clubs.card-8.flipped .front{
  background: url('./media/club-eight.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.card.clubs.card-9.flipped .front{
  background: url('./media/club-nine.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.card.clubs.card-10.flipped .front{
  background: url('./media/club-ten.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.card.clubs.card-J.flipped .front{
  background: url('./media/club-jack.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.card.clubs.card-Q.flipped .front{
  background: url('./media/club-queen.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.card.clubs.card-K.flipped .front{
  background: url('./media/club-king.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}

.card .rear {
  
  background-image: url("./media/cardflipped.png");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  transform: rotateY(180deg);
  border-radius: 10px;
}

.card.flipped {
  transform: rotateY(0deg);
  z-index: 2;
  border-radius: 10px;
  
}

.card::after, .column::after {
  position: absolute;
  left: 0;
  top: 0;
  width: 175px;
  height: 246px;
  content: "";
  opacity: 0;
  transition: opacity 250ms;
  pointer-events: none;
}

.card::before {
  pointer-events: none;
}

.column.hint {
  box-shadow: 0 0 0px 5px #fff inset;
}

.card.hint {
  transform: scale(1.10, 1.10);
  -ms-transform: scale (1.10);
-webkit-transform:scale(1.10);
-moz-transform: scale(1.10);
-o-transform: scale(1.10);
  
}

.column.over.empty::before, .column.over > .card:not(.dragging):last-child::before {
  content: "";
  width: 175px;
  height: 246px;
  background-color: rgba(255, 255, 255, 0.2);
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 10px;
  z-index: 100;
  border: 2px dashed #fff;
  box-sizing: border-box;
  cursor: pointer;
}
.column.over > .card:not(.dragging):last-child::before {
  top: 25px;
  
}

.card.dragging {
  z-index: 1000 !important;
  transition: z-index 20ms step-start;
  transform: scale(1.05, 1.05);
}

.card .value {
  position: absolute;
  font-size: 19.2307692308px;
  width: 19.2307692308px;
  height: 41.6666666667px;
  text-align: center;
}

.card .value::after {
  position: absolute;
  font-size: 20.8333333333px;
}

.card .value:nth-child(1) {
  top: 0px;
  left: 0px;
}

.card .value:nth-child(2) {
  bottom: 0px;
  right: 0px;
  transform: rotate(180deg);
}

.card .value:nth-child(1)::after,
.card .value:nth-child(2)::after {
  position: absolute;
  top: 15.625px;
  left: 50%;
  transform: translate3d(-50%, 0px, 0px);
  
  
}

