@import url("https://fonts.googleapis.com/css2?family=Fugaz+One&family=Secular+One&display=swap");

:root {
  --title-font: "Fugaz One", cursive;
  --subtitle-font: "Secular One", sans-serif;

  --color-black: #000;
  --color-white: #fff;
  --background-color: #06bcc1;

  --font-size-100: 100px;
  --font-size-72: 72px;
  --font-size-48: 48px;
  --font-size-40: 40px;
  --font-size-36: 36px;
  --font-size-24: 24px;
  --font-size-18: 18px;
  --font-size-12: 12px;

  --box-border: 3px solid var(--color-black);
  --box-padding: 30px;

  --section-height-800: 800px;
}

@media screen and (max-width: 1024px) {
  :root {
    --font-size-100: 80px;
    --font-size-72: 64px;
    --font-size-48: 40px;
    --font-size-40: 36px;
    --font-size-36: 32px;
    --font-size-24: 20px;
    --font-size-18: 12px;
    --font-size-12: 10px;

    --section-height-800: 600px;
  }
}

@media screen and (max-width: 768px) {
  :root {
    --font-size-72: 56px;
    --font-size-48: 32px;
    --font-size-18: 16px;

    --box-padding: 20px;
  }
}

@media screen and (max-width: 430px) {
  :root {
    --font-size-100: 42px;
    --font-size-72: 36px;
    --font-size-48: 18px;
  }
}

@media screen and (max-width: 375px) {
  :root {
    --font-size-48: 18px;
    --font-size-40: 24px;
  }
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--color-black);
  padding: 24px;
  background: var(--background-color);
}

a {
  color: var(--color-black);
  text-decoration: none;
}

a:hover {
  color: var(--color-white);
}

a:hover img {
  filter: brightness(0) invert(1);
}

img {
  width: 100%;
  height: auto;
}

/* grid */
.container {
  max-width: 1200px;
  margin: 24px auto 0;
}

.subtitle h1 {
  font-family: var(--subtitle-font);
  font-size: var(--font-size-72);
  font-style: italic;
  letter-spacing: 2px;
}

/* header */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo img {
  width: 25px;
  height: 25px;
}

.nav-logo h1 {
  font-family: var(--subtitle-font);
  font-size: var(--font-size-24);
  line-height: var(--font-size-24);
  letter-spacing: 1px;
}

.nav-link {
  display: flex;
  gap: 24px;
  font-family: var(--subtitle-font);
  font-size: var(--font-size-24);
  letter-spacing: 1px;
}

/* banner */
.banner {
  position: relative;
  height: var(--section-height-800);
}

.box {
  position: absolute;
  padding: var(--box-padding);
  background-color: var(--color-white);
  border: var(--box-border);
}

.bgText {
  position: absolute;
  top: 14%;
  right: 5%;
  z-index: 1;
}

.bgText h1 {
  color: var(--background-color);
  font-size: var(--font-size-100);
  line-height: var(--font-size-100);
  text-shadow: -2px 0 var(--color-black), 0 2px var(--color-black), 2px 0 var(--color-black),
    0 -2px var(--color-black);
}

.bgText h1:hover {
  text-shadow: -2px 0 var(--color-white), 0 2px var(--color-white), 2px 0 var(--color-white),
    0 -2px var(--color-white);
}

.box-photo-bg {
  top: 4%;
  left: 0;
  width: 450px;
  height: 500px;
  background-image: linear-gradient(to top, #dfe9f3 0%, white 100%);
  z-index: 1;
}

.box-photo {
  padding: 0;
  top: 9%;
  left: 3%;
  width: 550px;
  height: 550px;
  z-index: 2;
}

.box-bigTitle {
  top: 24%;
  left: 40%;
  z-index: 3;
}

.box-bigTitle h1 {
  font-family: var(--title-font);
  font-size: var(--font-size-48);
  letter-spacing: 2px;
}

.box-text {
  top: 38%;
  right: 10%;
  font-family: var(--subtitle-font);
  font-size: var(--font-size-12);
  letter-spacing: 1px;
  border-radius: 50% / 50%;
  z-index: 3;
}

/* game section */
.game {
  position: relative;
  background-size: 50px 50px;
  background-image: linear-gradient(to right, var(--color-black) 1px, transparent 1px),
    linear-gradient(to bottom, var(--color-black) 1px, transparent 1px);
  background-color: var(--color-white);

  border: 0px solid transparent;
  outline: 2px solid var(--color-black);
}

.game-rule-column {
  display: flex;
  flex-direction: column;
  gap: 80px;
  padding: 120px 50px 76px;
}

.game-rule-row {
  display: flex;
  justify-content: space-between;
  gap: 50px;
}

.game-rule-second-row {
  display: flex;
  justify-content: center;
}

.box-game-rule {
  flex: 1;
  flex-basis: 100%;
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 50px 30px 24px;
}

.box-game-rule:hover {
  box-shadow: 10px 10px var(--color-black);
  transform: translate(-10px, -10px);
}

.game-rule-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.box-game-rule-icon img {
  height: 128px;
  width: auto;
}

.box-game-rule-subtitle {
  top: 0;
  left: 20px;
  right: 20px;
  padding: 8px 0;
  text-transform: uppercase;
  color: var(--color-white);
  font-family: var(--subtitle-font);
  font-size: var(--font-size-18);
  letter-spacing: 1px;
  transform: translateY(-50%);
  background: var(--color-black);
}

.box-game-rule p {
  margin-top: 16px;
}

.box-game-link {
  display: inline-block;
  position: static;
  padding: 10px 155px;
  color: var(--color-white);
  text-shadow: -2px 0 var(--color-black), 0 2px var(--color-black), 2px 0 var(--color-black),
    0 -2px var(--color-black);
  font-family: var(--subtitle-font);
  font-size: var(--font-size-40);
  letter-spacing: 3px;
  box-shadow: 10px 10px var(--color-black);
}

.box-game-link:hover {
  color: var(--color-black);
  text-shadow: none;
  transform: translate(10px, 10px);
  box-shadow: none;
}

.tag {
  padding: 0 2px;
  font-weight: bold;
  background-color: var(--background-color);
}

.footer {
  margin: 48px 0 24px;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.social-icon img {
  width: auto;
  height: 30px;
}

@media screen and (max-width: 1024px) {
  body {
    padding: 12px 24px;
  }

  .box-photo-bg {
    top: 2%;
    width: 350px;
    height: 400px;
  }

  .box-photo {
    top: 6%;
    width: 450px;
    height: 450px;
  }

  .box-text {
    top: 40%;
  }

  .game-rule-column {
    gap: 40px;
    padding: 65px 25px 36px;
  }

  .game-rule-row {
    gap: 25px;
  }

  .box-game-rule {
    padding: 50px 16px 24px;
  }
}

@media screen and (max-width: 768px) {
  .box-photo-bg {
    width: 300px;
    height: 350px;
  }

  .box-photo {
    width: 400px;
    height: 400px;
  }

  .box-bigTitle {
    left: 45%;
  }

  .box-text {
    top: 36%;
    right: 0;
  }

  .game-rule-row {
    flex-wrap: wrap;
    gap: 50px;
  }

  .box-game-rule {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: 40%;
  }
}

@media screen and (max-width: 430px) {
  body {
    padding: 6px 12px 12px;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }

  .nav-logo img {
    width: 30px;
    height: 30px;
  }

  .nav-logo h1 {
    font-size: var(--font-size-24);
    line-height: var(--font-size-24);
  }

  .nav-link {
    gap: 16px;
  }

  .box-photo-bg {
    top: 0;
    left: 0;
    width: 240px;
    height: 290px;
  }

  .box-photo {
    top: 4%;
    left: 6%;
    width: 340px;
    height: 340px;
  }

  .bgText {
    top: 55%;
    right: 5%;
  }

  .box-bigTitle {
    top: 0;
    left: 67%;
  }

  .box-text {
    top: auto;
    bottom: 32%;
    right: auto;
  }

  .box-game-rule {
    flex-basis: 90%;
  }

  .box-game-link {
    padding: 10px 52px;
    font-size: var(--font-size-24);
  }

  .game-rule-column {
    gap: 40px;
    padding: 65px 25px 70px;
  }

  .footer-row {
    flex-direction: column;
    gap: 24px;
  }
}

@media screen and (max-width: 375px) {
  .box-photo-bg {
    top: 0;
    left: 0;
    width: 220px;
    height: 270px;
  }

  .box-photo {
    top: 4%;
    left: 6%;
    width: 320px;
    height: 320px;
  }

  .bgText {
    top: 50%;
    left: 20%;
  }

  .box-text {
    top: auto;
    bottom: 36%;
    right: auto;
  }
}
