@import url('https://fonts.googleapis.com/css2?family=Modak&display=swap');

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
}

body {
  overflow-x: hidden;
  background: #000;
  font-family: 'Modak', cursive;
}

button,
input {
  font-family: 'Modak', cursive;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}


/* ================= PAGE ================= */

.page {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
}

.hidden {
  display: none !important;
}


/* ================= HOME ================= */

.home-page {
  background: #54c8f5;
}

.hero-bg,
.dark-bg {
  position: absolute;
  inset: 0;

  background-image: url("./assets/desktop-bg.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}


/* ================= HOME BUTTONS ================= */

.home-buttons {
  position: absolute;
  z-index: 10;

  right: 4%;
  bottom: 7%;

  display: flex;
  gap: 38px;
}


/* HOME BUTTON */

.figma-button {
  width: 230px;
  height: 92px;

  border: 4px solid #000;
  border-radius: 24px;

  background: #e8e8e8;

  color: #000;
  font-size: 34px;
  line-height: 1;

  box-shadow: 0 5px 0 #000;

  cursor: pointer;
}

.figma-button:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #000;
}


/* ================= INNER PAGES ================= */

.inner-page {
  background: #315e6d;
}

.dark-bg {
  filter: brightness(.47);
}


/* ================= HAMBURGER ================= */

.hamburger {
  position: absolute;

  z-index: 100;

  top: 36px;
  right: 45px;

  width: 64px;
  height: 52px;

  padding: 0;

  border: 0;
  background: transparent;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  cursor: pointer;
}

.hamburger span {
  display: block;

  width: 100%;
  height: 8px;

  background: #000;

  border-radius: 10px;
}


/* ================= NAVIGATION ================= */

.nav-overlay {
  position: fixed;

  inset: 0;

  z-index: 200;

  background: rgba(0, 0, 0, .15);
}

.nav-menu {
  position: absolute;

  top: 105px;
  right: 45px;

  width: 270px;

  padding: 25px;

  border: 4px solid #000;
  border-radius: 18px;

  background: #e7e7e7;

  box-shadow: 0 5px 0 #000;

  display: flex;
  flex-direction: column;

  gap: 14px;
}

.nav-menu button {
  border: 0;

  background: transparent;

  color: #000;

  text-align: left;

  font-size: 25px;

  cursor: pointer;
}


/* ================= APPLY PAGE ================= */

.apply-title {
  position: relative;

  z-index: 10;

  width: max-content;

  margin: 74px auto 10px;

  padding: 20px 14px 17px;

  border: 3px solid #000;
  border-radius: 14px;

  background: #e4e4e4;

  box-shadow: 0 5px 0 #000;

  color: #000;

  font-size: 18px;

  line-height: 1;
}


.apply-card {
  position: relative;

  z-index: 10;

  width: 555px;

  margin: 17px auto 0;

  padding: 12px 10px 13px;

  border: 3px solid #d7d7d7;
  border-radius: 15px;

  background: #000;

  box-shadow: 0 4px 0 #000;
}


/* TASK ROW */

.task-row {
  width: 100%;

  min-height: 54px;

  margin-bottom: 9px;

  padding: 7px 10px;

  border-radius: 4px;

  background: #d9d9d9;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 15px;
}


.task-label {
  color: #000;

  font-size: 17px;

  line-height: 1;
}


/* BLACK ACTION / INPUT */

.task-action,
.task-row input {
  flex: 0 0 157px;

  width: 157px;
  height: 34px;

  border: 0;
  border-radius: 8px;

  background: #000;

  color: #fff;

  font-size: 13px;

  outline: none;
}


.task-action {
  display: flex;

  align-items: center;

  justify-content: center;

  text-decoration: none;
}


.task-row input {
  padding: 0 12px;
}


.task-row input::placeholder {
  color: #999;
}


/* QUOTE */

.small-label {
  display: flex;

  flex-direction: column;

  gap: 2px;

  font-size: 10px;
}

.small-label span {
  font-size: 9px;
}


/* WALLET */

.wallet-row {
  border: 4px solid #139cff;

  padding: 4px 6px;
}


/* SEND */

.send-button {
  display: block;

  width: 88px;

  height: 49px;

  margin: 7px auto 0;

  border: 0;

  border-radius: 13px;

  background: #4b98ff;

  color: #000;

  font-size: 18px;

  cursor: pointer;
}


/* ================= ART PAGE ================= */

.art-title {
  position: relative;

  z-index: 10;

  width: 275px;

  margin: 34px auto 30px;

  padding: 17px 20px 14px;

  border: 3px solid #000;

  border-radius: 15px;

  background: #e4e4e4;

  box-shadow: 0 5px 0 #000;

  color: #000;

  text-align: center;

  font-size: 43px;

  line-height: .9;
}


/* FIVE ART CARDS */

.art-grid {
  position: relative;

  z-index: 10;

  width: 700px;

  margin: 0 auto;

  display: grid;

  grid-template-columns: repeat(6, 1fr);

  grid-template-rows: 175px 175px;

  gap: 30px 20px;
}


.art-card {
  overflow: hidden;

  border: 3px solid #000;

  border-radius: 13px;

  box-shadow: 0 4px 0 #000;

  background: #ddd;

  pointer-events: none;
}


/* EXACT 3 TOP / 2 BOTTOM */

.art-card:nth-child(1) {
  grid-column: 1 / 3;
}

.art-card:nth-child(2) {
  grid-column: 3 / 5;
}

.art-card:nth-child(3) {
  grid-column: 5 / 7;
}

.art-card:nth-child(4) {
  grid-column: 2 / 4;
}

.art-card:nth-child(5) {
  grid-column: 4 / 6;
}


.art-card img {
  width: 100%;

  height: 100%;

  display: block;

  object-fit: cover;

  pointer-events: none;
}


/* ================= SUCCESS POPUP ================= */

.success-overlay {
  position: fixed;

  inset: 0;

  z-index: 500;

  display: flex;

  align-items: center;

  justify-content: center;

  background: rgba(0, 0, 0, .55);
}

.success-popup {
  width: 470px;

  padding: 30px;

  border: 4px solid #000;

  border-radius: 20px;

  background: #e7e7e7;

  box-shadow: 0 6px 0 #000;

  text-align: center;
}


.success-popup p {
  margin: 0 0 22px;

  color: #000;

  font-size: 24px;

  line-height: 1.1;
}


.success-popup button {
  width: 90px;

  height: 42px;

  border: 3px solid #000;

  border-radius: 11px;

  background: #4b98ff;

  font-size: 16px;

  cursor: pointer;
}


/* ========================================================= */
/* ====================== MOBILE =========================== */
/* ========================================================= */

@media (max-width: 700px) {

  .page {
    min-height: 100svh;
    height: auto;
    overflow-y: auto;
  }


  /* MOBILE BACKGROUND */

  .hero-bg,
  .dark-bg {
    background-image: url("./assets/mobile-bg.png");
    background-size: cover;
    background-position: center center;
  }


  /* HOME */

  .home-buttons {
    right: 50%;

    bottom: 6%;

    transform: translateX(50%);

    width: 92%;

    gap: 10px;
  }


  .figma-button {
    width: 50%;

    height: 65px;

    font-size: 24px;

    border-width: 3px;
  }


  /* HAMBURGER */

  .hamburger {
    top: 18px;

    right: 20px;

    width: 48px;

    height: 38px;
  }

  .hamburger span {
    height: 6px;
  }


  /* MENU */

  .nav-menu {
    top: 70px;

    right: 20px;

    width: 210px;

    padding: 20px;
  }

  .nav-menu button {
    font-size: 21px;
  }


  /* ===================================================== */
  /* ================= ART MOBILE ======================= */
  /* ===================================================== */

  .art-title {
    position: relative;

    width: 180px;
    height: 65px;

    margin: 78px auto 18px;

    padding: 13px 15px 10px;

    border: 3px solid #000;

    border-radius: 15px;

    background: #e4e4e4;

    box-shadow: 0 5px 0 #000;

    color: #000;

    font-size: 32px;

    line-height: 1;

    text-align: center;

    z-index: 10;
  }


  /* ART GRID */

  .art-grid {
    position: relative;

    width: calc(100% - 34px);

    margin: 0 auto 25px;

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    grid-template-rows: repeat(3, 150px);

    gap: 14px;

    z-index: 10;
  }


  /* ALL ART CARDS */

  .art-card {
    width: 100%;

    height: 150px;

    min-width: 0;

    min-height: 0;

    border: 3px solid #000;

    border-radius: 13px;

    box-shadow: 0 4px 0 #000;

    overflow: hidden;
  }


  .art-card img {
    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;
  }


  /* TOP FOUR */

  .art-card:nth-child(1),
  .art-card:nth-child(2),
  .art-card:nth-child(3),
  .art-card:nth-child(4) {
    grid-column: auto;
  }


  /* FIFTH ARTWORK */

  .art-card:nth-child(5) {
    grid-column: 1 / 3;

    width: 150px;

    height: 150px;

    justify-self: center;
  }


  /* ===================================================== */
  /* ================= APPLY MOBILE ===================== */
  /* ===================================================== */

  .apply-title {
    width: calc(100% - 40px);

    margin-top: 73px;

    text-align: center;

    font-size: 14px;
  }


  .apply-card {
    width: calc(100% - 40px);
  }


  .task-label {
    font-size: 11px;
  }


  .small-label {
    font-size: 8px;
  }


  .small-label span {
    font-size: 7px;
  }


  .task-action,
  .task-row input {
    flex-basis: 42%;

    width: 42%;

    font-size: 9px;
  }


  /* ===================================================== */
  /* ================= SUCCESS POPUP ===================== */
  /* ===================================================== */

  .success-popup {
    width: calc(100% - 40px);
  }


  .success-popup p {
    font-size: 19px;
  }

}
