@import url("https://fonts.googleapis.com/css2?family=Inconsolata:wght@200;300;400;500;600;700;800;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display+SC:ital,wght@0,400;0,700;0,900;1,400;1,700;1,900&display=swap");
*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  font-family: inherit;
  box-sizing: border-box;
}

body {
  height: 100vh;
  width: 100vw;
  background: linear-gradient(to top left, #753682 0%, #bf2e34 100%);
  font-family: "Inconsolata", monospace;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.win-notification {
  font-family: "Playfair Display SC", serif;
  position: absolute;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  padding: 1vh 1vw;
  z-index: 100;
  font-size: 2vw;
  font-weight: 700;
  color: #fff;
}

.main-game {
  position: relative;
  width: 70vw;
  height: 80vh;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(100px);
  box-shadow: 0 3rem 5rem rgba(0, 0, 0, 0.2);
  border-radius: 9px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.main-game .result {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  transition: all 200ms;
  color: rgba(255, 255, 255, 0.1);
  font-size: 7vw;
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.25);
  font-weight: 900;
}
.main-game .result div {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}
.main-game .result p {
  user-select: none;
}
.main-game .result p:first-of-type {
  margin-bottom: 10%;
}
.main-game button {
  position: absolute;
  bottom: 4vh;
  padding: 2vh 1vw;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.2vw;
  cursor: pointer;
  z-index: 100;
  overflow: hidden;
  transition: all 200ms;
}
.main-game button::after {
  content: "";
  position: absolute;
  height: 100%;
  width: 150%;
  background-color: rgba(255, 255, 255, 0.4);
  top: 0;
  left: -170%;
  transform: skew(30deg);
  z-index: -1;
}
.main-game button:hover {
  color: white;
}
.main-game button:hover::after {
  animation: spring-bounce;
  animation-duration: 200ms;
  animation-fill-mode: forwards;
  animation-timing-function: linear;
}

.active {
  background-color: rgba(255, 255, 255, 0.2);
}

@keyframes spring-bounce {
  0% {
    left: -170%;
  }
  70% {
    left: -20%;
  }
  90% {
    left: -70%;
  }
  100% {
    left: -20%;
  }
}
.table {
  border-collapse: collapse;
  z-index: 100;
  height: 60%;
  width: 35%;
  display: flex;
  flex-direction: column;
}
.table .tr {
  display: flex;
  width: 100%;
  height: 33%;
}
.table .tr:first-of-type .td {
  border-top: none;
}
.table .tr:last-of-type .td {
  border-bottom: none;
}
.table .tr .td:first-of-type {
  border-left: none;
}
.table .tr .td:last-of-type {
  border-right: none;
}
.table .td {
  border: 2px solid rgb(255, 255, 255);
  text-align: center;
  font-size: 6vw;
  font-weight: 300;
  color: rgb(255, 255, 255);
  width: 33%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  user-select: none;
  transition: all 300ms;
}

.blur .td {
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(0, 0, 0, 0.25);
}

.win-td {
  color: rgb(255, 255, 255) !important;
}