@import url("https://fonts.googleapis.com/css2?family=Rubik+Beastly&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap");

:root {
  --primary-color: #e2a600;
  --light-color: #fffaec;
  --dark-color: #d19900;
  --gray-color: rgba(255, 255, 255, 0.1);
}

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

body {
  height: 100vh;
  width: 100vw;
  display: flex;
  font-family: "Montserrat", sans-serif;
  background: #10141b;
  user-select: none;
  overflow: hidden;
  -webkit-user-drag: none;
  -webkit-tap-highlight-color: transparent;
}

h1 {
  margin-bottom: 2rem;
  text-align: center;
  font-size: 6rem;
  color: var(--primary-color);
  font-family: "Rubik Beastly", cursive;
  font-weight: 400;
}

button {
  cursor: pointer;
  padding: 0.8rem;
  border-radius: 5rem;
  background: var(--primary-color);
  border: 0.2rem solid var(--primary-color);
  color: var(--light-color);
  font-size: 0.8rem;
  font-weight: 800;
  margin: 0.5rem;
}

button:hover {
  background: var(--dark-color);
  border: 0.2rem solid var(--dark-color);
}

button:active {
  border: 0.2rem solid var(--light-color);
}

button:disabled {
  cursor: default;
  opacity: 0.8;
  background: var(--primary-color);
  border: 0.2rem solid var(--primary-color);
}

.buttons {
  position: fixed;
  left: 0;
  bottom: 0;
  margin: 0 0 1rem 1rem;
  display: flex;
  flex-direction: column;
  z-index: 3;
}

#page-wrapper {
  margin: auto;
}

.score {
  position: fixed;
  right: 0;
  top: 0;
  margin: 1.5rem 1.5rem 0 0;
  display: flex;
  background: var(--gray-color);
  width: 10rem;
  height: 10rem;
  border-radius: 2rem;
}

.score-text {
  font-size: 6rem;
  font-weight: 800;
  color: var(--primary-color);
  margin: auto;
}

.game-area {
  width: 600px;
  height: 400px;
  display: flex;
  flex-wrap: wrap;
  margin: 0 auto;
}

.hole {
  flex: 1 0 33.33%;
  overflow: hidden;
  position: relative;
}

.hole:after {
  display: block;
  background: url(./assets/images/hide-bar.svg);
  background-size: contain;
  background-repeat: no-repeat;
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 2;
  bottom: -110px;
}

.target {
  background: url("./assets/images/merve-vectorizer.png") bottom center
    no-repeat;
  background-size: 75%;
  position: absolute;
  top: 100%;
  width: 100%;
  height: 100%;
  transition: all 0.4s;
}

.hole.up .target {
  top: 0;
}

.blood {
  position: absolute;
  background: url(./assets/images/blood.svg);
  background-size: cover;
  width: 10%;
  height: 10%;
  z-index: 4;
  animation: blood-effect 4s;
}

#portrait-messages {
  background: var(--primary-color);
  border: 0.2rem solid var(--light-color);
  color: var(--light-color);
  padding: 1rem;
  margin: auto;
  font-size: 1.2rem;
  font-weight: 500;
  border-radius: 5rem;
  text-align: center;
}

@keyframes blood-effect {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  50%,
  100% {
    opacity: 0;
    transform: translateY(-100);
  }
}

@-webkit-keyframes blood-effect {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  50%,
  100% {
    opacity: 0;
    transform: translateY(-100);
  }
}

@media only screen and (orientation: portrait) {
  #page-wrapper {
    display: none !important;
  }
}

@media only screen and (orientation: landscape) {
  #portrait-messages {
    display: none !important;
  }
}

@media only screen and (max-width: 1024px) {
  .score {
    width: 8rem;
    height: 8rem;
  }
  .score-text {
    font-size: 4rem;
  }
  .buttons {
    flex-direction: row;
  }
  h1 {
    font-size: 4rem;
  }
}
