@font-face {
  font-family: Valorax;
  src: url(../fonts/Valorax.otf);
}

@font-face {
  font-family: testFont;
  src: url(../fonts/EightgonItalic.ttf);
}

:root {
  --prim: #be123c;
  --scnd: #f97316;
  --fnt1: #f43f5e;
  --fnt2: #e11d48;
  --fnt3: #f59e0b;
  --shdw: #fb7185;
  --drk1: #09090b;
  --drk2: #450a0a;
  --wht1: #fafaf9;
  --wht2: #fff1f2;
  --grsh: #22c55e50;
  --gren: #4ade80;
  --blur: #42200650;
}

* {
  padding: 0;
  margin: 0;
  color: var(--fnt1);
  font-family: sans-serif;
}

body {
  background-color: var(--drk1);
}

h1 {
  color: var(--fnt2);
  font-family: Valorax;
  font-size: 4rem;
  text-shadow: 3px 3px 0 var(--shdw);
}
h2 {
  font-family: testFont;
  font-size: 1.7rem;
  text-shadow: 1px 1px 0 var(--shdw);
}

.valorax {
  font-family: testFont;
  font-size: 1.2rem;
  text-shadow: 1px 1px 0 var(--shdw);
}

#name {
  font-size: 2.5rem;
  text-shadow: 1.5px 1.5px 0 var();
  color: var(--fnt3);
}

.button {
  cursor: pointer;
  min-width: 180px;
  background-color: unset;
  border-radius: 4px;
  padding: 10px 15px;
  text-decoration: none;
  font-family: Valorax;
  display: flex;
  align-items: center;
  justify-content: center;
}
.button.red {
  border: 1px solid var(--fnt1);
  box-shadow: 0 5px 20px -10px var(--fnt1);
  transition: 0.2s ease-in-out all;
}
.button.green {
  border: 1px solid var(--gren);
  box-shadow: 0 5px 20px -10px var(--gren);
  transition: 0.2s ease-in-out all;
}
.button.red:hover {
  box-shadow: 0 10px 30px -10px var(--fnt1);
}
.button.green:hover {
  box-shadow: 0 10px 30px -10px var(--gren);
}
#circle-1 {
  top: 10%;
  right: 50%;
  position: fixed;
  z-index: -10;
  width: 300px;
  height: 300px;
  border-radius: 100%;
  background-color: var(--prim);
}
#circle-2 {
  z-index: -10;
  bottom: 10%;
  left: 20%;
  position: fixed;
  width: 200px;
  height: 200px;
  border-radius: 100%;
  background-color: var(--scnd);
}
#circle-3 {
  z-index: -10;
  bottom: 10%;
  right: 20%;
  position: fixed;
  width: 200px;
  height: 200px;
  border-radius: 100%;
  background-color: var(--gren);
}

#blur {
  z-index: -9;
  position: fixed;
  width: 100vw;
  height: 100vh;
  backdrop-filter: blur(100px);
  -webkit-backdrop-filter: blur(100px);
}

#banner {
  top: -81px;
  position: absolute;
  width: 100%;
  border-radius: 16px;
  z-index: -1;
}

.gridholder {
  padding: 100px 0;
  margin: auto;
  width: 700px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 224px auto 300px;
  gap: 30px;
}

.gridbox {
  width: 100%;
  height: 100%;
  border: 1px solid #00000000;
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  transition: 0.2s ease-in-out all;

  display: flex;
  flex-direction: column;
}
.gridbox:hover {
  border: 1px solid var(--scnd);
  margin-top: -5px;
}

.bannerbox {
  grid-column: 1/3;
  align-items: end;
  border: 1px solid var(--prim);
}
.adsbanner {
  grid-column: 1/3;
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.bannertexts {
  width: 340px;
  height: calc(100% - 70px);
  padding: 35px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.userdetail,
.chestholder,
.connectts {
  width: calc(100% - 40px);
  min-height: calc(100% - 40px);
  align-items: center;
  padding: 20px;
  gap: 20px;
}
.userdetail img,
.chestholder img,
.connectts img {
  width: 150px;
}
.chestholder img {
  width: 150px;
}
.connectts {
  grid-column: 1/3;
  justify-content: center;
  height: 280px;
}
.connectts p {
  font-family: testFont;
  text-align: center;
  font-size: 1.25rem;
}

#close-chest {
  z-index: 5;
  cursor: pointer;
  position: absolute;
  top: 75px;

  animation-name: chestshaker;
  animation-duration: 1.4s;
  animation-delay: 1s;
  animation-timing-function: ease-in-out;
}
.chestholder:hover #close-chest {
  animation-iteration-count: infinite;
  top: 65px;
}
#open-chest {
  cursor: pointer;
  position: absolute;
  top: 75px;
}
.prop {
  position: absolute;
  width: 60px !important;
  z-index: 9;
}
.prop:nth-child(1) {
  top: 180px !important;
  left: 70px;
}
.prop:nth-child(2) {
  top: 180px !important;
  right: 70px;
}
.hidden {
  display: none !important;
}

#taken {
  display: none;
  position: absolute;
  width: 100%;
  height: 100%;
  top: -1px;
  left: -1px;
  background-color: var(--grsh);
  border: 1px solid var(--gren);
  z-index: 10;
  border-radius: 16px;
  align-items: center;
  justify-content: center;
}
#taken img {
  width: 60px;
  height: 60px;
}
.flex {
  display: flex !important;
}

#popupblur {
  width: 100vw;
  height: 100vh;
  background-color: var(--blur);
  position: fixed;
  backdrop-filter: blur(5px);
  top: 0;
  right: 0;
  z-index: 50;
}

#popup {
  position: fixed;
  z-index: 51;
  width: 300px;
  padding: 20px;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid var(--gren);
  background-color: var(--grsh);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
#popup * {
  color: var(--gren);
  text-shadow: unset;
}
#popup img {
  width: 130px;
}

@keyframes chestshaker {
  0% {
  }
  5% {
  }
  10% {
    rotate: 0deg;
  }
  15% {
  }
  20% {
    rotate: 10deg;
    top: 45px;
  }
  25% {
  }
  30% {
    top: 65px;
    rotate: 0deg;
  }
  35% {
    top: 65px;
  }
  40% {
    top: 65px;
    rotate: -10deg;
  }
  45% {
    top: 65px;
  }
  50% {
    top: 65px;
    rotate: 0deg;
  }
  55% {
    top: 65px;
  }
  60% {
    top: 65px;
    rotate: 10deg;
  }
  65% {
    top: 65px;
  }
  70% {
    top: 65px;
    rotate: 0deg;
  }
  75% {
  }
  80% {
    rotate: -10deg;
  }
  85% {
    top: 55px;
  }
  90% {
    rotate: 0deg;
  }
  95% {
  }
  100% {
  }
}

@media screen and (max-width: 715px) {
  h1 {
    font-size: 2rem;
    text-shadow: 3px 3px 0 var(--shdw);
  }
  h2 {
    font-size: 1rem;
    text-shadow: 1px 1px 0 var(--shdw);
  }

  .gridholder {
    padding: 60px 0;
    width: 350px;
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
  .gridbox {
    min-height: 250px;
    border-radius: 8px;
  }
  #banner {
    top: -41px;
    position: absolute;
    width: 100%;
    border-radius: 8px;
  }
  .bannerbox {
    min-height: 111px;
  }

  .bannertexts {
    width: 170px;
    padding: 20px 0;
  }

  #close-chest {
    z-index: 5;
    cursor: pointer;
    position: absolute;
    top: 75px;
    animation-iteration-count: infinite;
  }
  #taken {
    border-radius: 8px;
  }
}
