@font-face {
    font-family: "cursive";
    src: url("Creepy.woff")
        format("woff"),
      url("Creepy.woff2")
        format("woff2");
  }
  
  @font-face {
    font-family: "Lunacy";
    src: url("Lunacy.woff")
        format("woff"),
      url("Lunacy.woff2")
        format("woff2");
  }
  
  * {
    box-sizing: border-box;
  }
  
  html {
    min-height: 100vh;
    cursor: url("Ghost.cur"),
      auto;
  }
  
  body {
    margin: 0;
    /* background: radial-gradient(#9d5900, #3d2200); */
    background: radial-gradient(#FF1053, #6C6EA0);
  }
  
  .page-title {
    color: #FFA630;
    font-family: cursive;
    font-weight: normal;
    text-align: center;
    font-size: 6em;
  }
  
  .game-info-container {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
  }
  
  .game-info {
    font-family: cursive;
    color: #FDF7FA;
    font-size: 4em;
  }
  
  .game-container {
    display: grid;
    grid-template-columns: repeat(4, auto);
    grid-gap: 10px;
    margin: 50px;
    justify-content: center;
    perspective: 500px;
  }
  
  .card {
    position: relative;
    height: 175px;
    width: 125px;
  }
  
  .card:hover {
    cursor: url("GhostHover.cur"),
      auto;
  }
  
  .card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    backface-visibility: hidden;
    border-radius: 12px;
    border-width: 1px;
    border-style: solid;
    transition: transform 500ms ease-in-out;
  }
  
  .card.visible .card-back {
    transform: rotateY(-180deg);
  }
  
  .card.visible .card-front {
    transform: rotateY(0);
    background-color: darksalmon;
    border-color:#ff5050
  }
  
  .card.matched .card-value {
    animation: dance 1s linear infinite 500ms;
  }
  
  .overlay-text {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    justify-content: center;
    align-items: center;
    z-index: 100;
    color: #FFA630;
    font-family: cursive;
  }
  
  .overlay-text-small {
    font-size: 0.3em;
  }
  
  .overlay-text.visible {
    display: flex;
    flex-direction: column;
    animation: overlay-grow 500ms forwards;
  }
  
  @keyframes overlay-grow {
    from {
      background-color: rgba(0, 0, 0, 0);
      font-size: 0;
    }
    to {
      background-color: rgba(0, 0, 0, 0.8);
      font-size: 10em;
    }
  }
  
  @keyframes dance {
    0%,
    100% {
      transform: rotate(0);
    }
    25% {
      transform: rotate(-30deg);
    }
    75% {
      transform: rotate(30deg);
    }
  }
  
  .card-back {
    background-color: black;
    border-color: #ff5050;
  }
  
  .card-front {
    background-color: #ffbb89;
    border-color: #333;
    transform: rotateY(180deg);
  }
  
  .card-value {
    transition: transform 100ms ease-in-out;
    transform: scale(0.9);
    /* width: 150px; */
  }
  
  .card-front:hover .card-value {
    transform: scale(1);
  }
  
  .cob-web {
    position: absolute;
    width: 47px;
    height: 47px;
    transition: width 100ms ease-in-out, height 100ms ease-in-out;
  }
  
  .card-face:hover .cob-web {
    width: 52px;
    height: 52px;
  }
  
  .cob-web-top-left {
    transform: rotate(270deg);
    top: 0;
    left: 0;
  }
  
  .cob-web-top-right {
    top: 0;
    right: 0;
  }
  
  .cob-web-bottom-left {
    transform: rotate(180deg);
    bottom: 0;
    left: 0;
  }
  
  .cob-web-bottom-right {
    transform: rotate(90deg);
    bottom: 0;
    right: 0;
  }
  
  .spider {
    align-self: flex-start;
    transform: translateY(-10px);
    transition: transform 100ms ease-in-out;
  }
  
  .card-back:hover .spider {
    transform: translateY(0);
  }
  
  @media (max-width: 600px) {
    .game-container {
      grid-template-columns: repeat(2, auto);
    }
  
    .game-info-container {
      flex-direction: column;
      align-items: center;
    }

    
  }

  @media (max-width: 1000px) {
    .page-title{
      margin-top: 200px;
      font-size: 124px;
    }

    .game-container{
      margin-top: 60px;
    }
    .card {
      position: relative;
      height: 237px;
      width: 184px;
    }
    .card-value{
      width: 145px;
    }
    
  }

  @media (max-width: 1200px) {
      .btn-3{
        margin-top: 220px;
        margin-right: 50px;
        font-size: 45px;
        height: 55px;
        height: 109px;
        padding-top: 34px;
        padding-right: 32px;
        padding-left: 46px;
      }

      html{
        margin-top: 211px;
      }
      .spider{
        width: 126px;
      }
    }
    /* @media (max-width: 950px) {
    .btn-3{
      padding: 30px;
      height: 133px;
      font-size: 63px;
    } 
  }*/
  

  /* Background Styles Only */
  
  @import url("https://fonts.googleapis.com/css?family=Raleway");
  
  .side-links {
    position: absolute;
    top: 15px;
    right: 15px;
  }
  
  .side-link {
    font-family: Raleway;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-bottom: 10px;
    color: white;
    width: 180px;
    padding: 10px 0;
    border-radius: 10px;
  }
/*   
  .side-link-youtube {
    background-color: cornflowerblue;
  } */
    
  /* .side-link-text {
    margin-left: 10px;
    font-size: 18px;
  } */
/* 3 */
.btn-3 {
  background: rgb(0,172,238);
background: linear-gradient(0deg, rgba(0,172,238,1) 0%, rgba(2,126,251,1) 100%);
  /* width: 130px;
  height: 40px; */
  line-height: 42px;
  /* padding: 0; */
  border: none;
  font-family: cursive;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-bottom: 10px;
    color: white;
    text-align: center;
}

.btn-3 span {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}
.btn-3:before,
.btn-3:after {
  position: absolute;
  content: "";
  right: 0;
  top: 0;
   background: rgba(2,126,251,1);
  transition: all 0.3s ease;
}
.btn-3:before {
  height: 0%;
  width: 2px;
}
.btn-3:after {
  width: 0%;
  height: 2px;
}
.btn-3:hover{
   background: white;
  box-shadow: none;
}
.btn-3:hover:before {
  height: 100%;
}
.btn-3:hover:after {
  width: 100%;
}
.btn-3 span:hover{
   color: rgba(2,126,251,1);
}
.btn-3 span:before,
.btn-3 span:after {
  position: absolute;
  content: "";
  left: 0;
  bottom: 0;
   background: rgba(2,126,251,1);
  transition: all 0.3s ease;
}
.btn-3 span:before {
  width: 2px;
  height: 0%;
}
.btn-3 span:after {
  width: 0%;
  height: 2px;
}
.btn-3 span:hover:before {
  height: 100%;
}
.btn-3 span:hover:after {
  width: 100%;
}