:root {
  --primary-color: #087c35;
  --secondary-color: #cca90c;
  --base-font-size: 16px;
}

@font-face {
  font-family: 'Cairo';
  src: url('assets/fonts/Cairo-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cairo';
  src: url('assets/fonts/Cairo-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cairo';
  src: url('assets/fonts/Cairo-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

body {
  margin: 0;
  font-family: 'Cairo', sans-serif;
  background-color: #f4f4f4;
}

html {
  --width: min(0.3906vw, 7.5px);
  font-size: calc(var(--base-font-size) + var(--width));
}

* {
  box-sizing: border-box;
}

main {
  position: relative;
  display: flex;
  width: 100%;
  height: 100vh;
  height: 100svh;
  background-color: white;
  margin: auto;
}

.wrapper {
  flex: 1;
  display: grid;
}

.bg {
  grid-area: 1 / 1;
  position: relative;
  background: url('./assets/background_1920x1080.png');
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
  overflow: clip;
}

.bg .blur {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 40%;
  aspect-ratio: 1 / 1;
  background: radial-gradient(rgba(204 169 12 / 0.3) 0%, rgba(204, 169, 12, 0) 70%);
  border-radius: 50%;
}

.bg .first {
  left: 100%;
  top: 0;
  animation: blur-anim-1 10s linear infinite;
}

.bg .second {
  left: 100%;
  top: 100%;
  animation: blur-anim-2 10s linear infinite;
}

@keyframes blur-anim-1 {
  0% {
    left: 0;
    top: 0;
  }
  30% {
    left: 100%;
    top: 0;
  }
  60% {
    left: 100%;
    top: 100%;
  }
  90% {
    left: 0;
    top: 100%;
  }
  100% {
    left: 0;
    top: 0;
  }
}

@keyframes blur-anim-2 {
  0% {
    left: 100%;
    top: 100%;
  }
  30% {
    left: 0;
    top: 100%;
  }
  60% {
    left: 0;
    top: 0;
  }
  90% {
    left: 100%;
    top: 0;
  }
  100% {
    left: 100%;
    top: 100%;
  }
}

.contents {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.contents .container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  font-size: 1.8rem;
  color: #fff;
  text-align: center;
}

.contents .container * {
  margin: 0;
}

.contents .more-than {
  color: var(--secondary-color);
  font-weight: bold;
  font-size: 1rem;
}

.contents .more-than span {
  display: inline-block;
  width: 25vw;
  margin-right: 0.5rem;
  border-bottom: solid 2px #fff;
}

.home-button {
  position: absolute;
  bottom: 40px;
  right: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem;
  background-color: #fff;
  border: solid 2px #d9d9d9;
  border-radius: 24px;
  z-index: 200;
}

.home-button svg {
  width: 40px;
  height: 40px;
  fill: var(--primary-color);
}

.animated-number {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  height: 1em;
  margin-bottom: 0.2em;
  font-family: Cairo;
  font-size: 10rem;
  font-weight: 300;
  line-height: 1em;
  text-align: center;
  color: var(--secondary-color);
  overflow: hidden;
  overflow: clip;
}

.cycle {
  position: relative;
  width: 0.6em;
  display: block;
  float: left;
  top: 0%;
  transition: top 2s var(--easing-elastic);
}

main {
  --easing-elastic: linear(
    0,
    0.214,
    0.537,
    0.778,
    0.94,
    1.043,
    1.101,
    1.124,
    1.122,
    1.104,
    1.063,
    1.002,
    0.951,
    0.924,
    0.916,
    0.92,
    0.938,
    0.968,
    1.001,
    1.026,
    1.041,
    1.047,
    1.046,
    1.037,
    1.022,
    1.007,
    0.995,
    0.987,
    0.983,
    0.983,
    0.985,
    0.989,
    0.992,
    0.997,
    1.001,
    1.003,
    1.002,
    1.001,
    0.999,
    0.997,
    0.996,
    0.996,
    0.996,
    0.996,
    0.997,
    0.997,
    0.998,
    0.998,
    0.999,
    1
  );
}
