/*
SPACING SYSTEM (px)
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128

FONT SIZE SYSTEM (px)
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98
*/

/* COLORS
turtle green: #6e8752 
Base Blue: #135FFF
Coinbase light blue: #6e95f0
*/

/* COLOR SHEME */
:root {
  --background-color: #e9dcc7;
  --base-blue: #135fff;

  /* Text */
  --header-color: #f3f4fa;
  --text-color: #031020;

  /* Cards */
  --card-color: #6e8752;
  --border-color: #031020;
  --border-size: 3px;
  --corner-round: 24px;

  /* Buttons */
  --btn-text: #111;
  --btn-color: #97b8ff;
  --btn-color2: #acbee9;
  --btn-color3: #135fff;
  --btn-shadow: #031020;

  --btn-shadow-size: 8;
  --btn-shadow-size-hover: calc(var(--btn-shadow-size) + 5);
  --btn-shadow-size-active: calc(var(--btn-shadow-size) - 3);

  /* Image Scales */
  --foot-scale: 0.6;
}

@font-face {
  font-family: "tard-type";
  src: url("media/fonts/tardle-text.ttf");
}

/* UNIVERSALS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: "tard-type", sans-serif;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 4px;
  font-size: 24px;
  color: var(--text-color);
  background-image: linear-gradient(
    to bottom,
    var(--background-color),
    var(--base-blue)
  );
}

h1 {
  color: var(--header-color);
  font-size: 60px;
}

/* BUTTONS */
a {
  text-decoration: none;
}
.card-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  align-items: center;
}
.grid-parent {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.button-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 15px;
  max-height: 100%;
}

.btn-icon {
  width: 100%;
  height: auto;
  stroke: var(--btn-text);
  fill: var(--btn-text);
}

.btn-buy-svg {
  width: 60%;
  height: auto;
  stroke: var(--btn-text);
  fill: var(--btn-text);
}

#buy {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  padding-top: 35px;
  justify-content: center;
  align-items: center;
}
#buy p {
  margin-top: 25px;
  font-size: 42px;
  letter-spacing: 25px;
  text-align: center;
}
#buy p::after {
  content: "";
  margin-right: -21px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background-color: var(--btn-color);
  color: var(--btn-text);
  border-radius: 5px;
}
.btn:focus {
  outline: none;
}

.clickable {
  background-color: var(--btn-color);
  box-shadow: 0 calc(var(--btn-shadow-size) * 1px) var(--btn-shadow);
}

.clickable:hover {
  background-color: var(--btn-color2);
  box-shadow: 0 calc(var(--btn-shadow-size-hover) * 1px) var(--btn-shadow);
  transform: translateY(
    calc((var(--btn-shadow-size-hover) - var(--btn-shadow-size)) * -1px)
  );
  cursor: pointer;
}

.clickable:active {
  background: var(--btn-color3);
  box-shadow: 0 calc(var(--btn-shadow-size-active) * 1px) var(--btn-shadow);
  transform: translateY(
    calc((var(--btn-shadow-size-active) - var(--btn-shadow-size)) * -1px)
  );
}

.cancel {
  position: relative;
}

.cancel::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background-image: url("media/imgs/soon.svg");
  background-size: contain; /* or 'contain' depending on your needs */
  background-position: center;
  background-repeat: no-repeat;
  display: block;
}

/* LAYOUT */
.container {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 720px 1fr;
  overflow: hidden;
}
.page {
  position: relative;
  display: grid;
  grid-column: 2;
  grid-template-rows: repeat(2, 1fr);
  grid-template-columns: repeat(2, 1fr);
  height: 1080px;
  place-items: center;
}

header {
  grid-column: 2;
}

.header-logo {
  position: absolute;
  top: 15px;
  right: 0;
}
.header-logo img {
  width: 500px;
  height: auto;
}
.ca {
  font-size: 12px;
  word-break: break-all;
}

.shell {
  background-image: url("media/imgs/turtleshell.png");
  background-size: contain;
  background-repeat: no-repeat;
  --scale: 0.8;
  width: calc(236px * var(--scale));
  height: calc(240px * var(--scale));
  position: absolute;
  top: -140px;
  transform: rotate(5deg);
  z-index: 51;
}

.nek {
  position: fixed;
  top: -20px;
  z-index: 50;
  height: 250px;
  width: 135px;
}
#neck-back {
  stroke: var(--border-color);
  stroke-width: 52px;
}
#neck-front {
  stroke: var(--card-color);
  stroke-width: 48px;
}

.turtle-head {
  background-image: url("media/imgs/tizzy-head.png");
  background-size: contain;
  background-repeat: no-repeat;
  --scale: 0.6;
  width: calc(236px * var(--scale));
  height: calc(240px * var(--scale));
  position: fixed;
  top: 50px;
  z-index: 50;
  transform-origin: 50% 23%;
  cursor: pointer;
}

footer {
  grid-column: 1 / -1;
  background-color: var(--card-color);
  border-top: var(--border-color) calc(var(--border-size) - 1px) solid;
  text-align: center;
  position: relative;
}
#feets {
  font-size: 12px;
}

footer img {
  /* display: block; */
  position: absolute;
  bottom: calc(-135px * var(--foot-scale));
}

.left-foot {
  --xmove: -200px;
  transform: translateX(var(--xmove));
  height: calc(262px * var(--foot-scale));
  width: calc(192px * var(--foot-scale));
  animation: updown 7s ease-in infinite;
  transform-origin: 60% 72%;
}

.right-foot {
  --xmove: 100px;
  transform: translateX(var(--xmove));
  height: calc(293px * var(--foot-scale));
  width: calc(184px * var(--foot-scale));
  animation: updown 5s ease-in reverse infinite;
  transform-origin: 69% 81%;
}

@keyframes updown {
  0%,
  100% {
    transform: translateX(var(--xmove)) translateY(0) rotate(-6deg);
  }
  18% {
    transform: translateX(var(--xmove)) translateY(-15px) rotate(6deg);
  }
  36% {
    transform: translateX(var(--xmove)) translateY(0) rotate(-6deg);
  }
  54% {
    transform: translateX(var(--xmove)) translateY(0) rotate(6deg);
  }
  72% {
    transform: translateX(var(--xmove)) translateY(0) rotate(-6deg);
  }
  90% {
    transform: translateX(var(--xmove)) translateY(0) rotate(6deg);
  }
}
@keyframes rotate {
  0%,
  100% {
    transform: rotate(-6deg);
  }
  50% {
    transform: rotate(6deg);
  }
}
/* --- CARDS */
.card {
  position: absolute;
  background-color: var(--card-color);
  border: var(--border-color) var(--border-size) solid;
  border-radius: var(--corner-round);
  box-shadow: 8px 8px 24px rgb(0, 0, 0, 0.3);
  margin: 25px;
  padding-left: 30px;
  padding-bottom: 30px;
  padding-right: 30px;
  animation-name: rotate;
  animation-duration: 4s; /* Default duration, will be overridden by JavaScript */
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.card1 {
  grid-column: 2;
  grid-row: 1 / span 2;
  height: 50%;
  width: 90%;
  top: 180px;
}

.card2 {
  grid-column: 1 / span 2;
  grid-row: 1;
  height: 30%;
  width: 90%;
  bottom: 220px;
}
.card3 {
  grid-column: 2;
  grid-row: 1 / span 2;
  height: 40%;
  width: 90%;
  bottom: 50px;
}
.card3 ul {
  list-style-type: none;
  font-size: 24px;
}
.card3 li {
  position: relative;
  padding-left: 20px;
}
.card3 li::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 8px;
  /* transform: translateY(-50%); */
  background-image: url("media/favicon.png");
  background-size: cover;
  width: 24px;
  height: 24px;
}

.card4 {
  grid-column: 1 / span 2;
  grid-row: 1;
  height: 50%;
  width: 50%;
}

/* ---   IMAGES */

.toilet {
  background-image: url("media/imgs/toilet.png");
  background-size: contain;
  background-repeat: no-repeat;
  width: 673px;
  height: 738px;
  position: absolute;
  right: -40px;
  bottom: -330px;
}
#fart-animation {
  position: absolute;
  stroke-linecap: round;
  stroke: #2e9735;
  stroke-width: 8;
  right: 125px;
  top: 125px;
  z-index: -1;
}

.cowboy {
  background-image: url("media/imgs/cowboy.png");
  background-size: contain;
  background-repeat: no-repeat;
  /* transform: scaleX(-1); */
  width: calc(1132px * 0.7);
  height: calc(805px * 0.7);
  position: absolute;
  bottom: -470px;
  left: -100px;
}

.lambo {
  background-image: url("media/imgs/lambo.png");
  background-size: contain;
  background-repeat: no-repeat;
  width: calc(1110px * 0.6);
  height: calc(724px * 0.6);
  position: absolute;
  z-index: 10;
  bottom: -250px;
  left: -100px;
  animation: lambodrivein 1s ease-out paused;
  transform-origin: 88% 83%;
}
@keyframes lambodrivein {
  0% {
    transform: translateX(200%) rotate(0deg);
  }
  40% {
    transform: rotate(30deg);
  }
  50% {
    transform: rotate(0deg);
  }
  100% {
    transform: translateX(0);
  }
}
@keyframes lambodrivemore {
  0%,
  100% {
    transform: translateX(0px);
  }
  35% {
    transform: translateX(15px);
  }
  60% {
    transform: translateX(-9px);
  }
  60% {
    transform: translateX(7px);
  }
}

.bathrobe {
  background-image: url("media/imgs/bathrobe.png");
  background-size: contain;
  background-repeat: no-repeat;
  transform: scaleX(-1);
  width: calc(730px * 0.6);
  height: calc(844px * 0.6);
  position: absolute;
  bottom: -25px;
  left: -200px;
}

.tophat {
  background-image: url("media/imgs/tophat.png");
  background-size: contain;
  background-repeat: no-repeat;
  /* transform: scaleX(-1); */
  width: calc(748px * 0.6);
  height: calc(1050px * 0.6);
  position: absolute;
  bottom: -55px;
  right: -200px;
}

@media screen and (max-width: 768px) {
  .container {
    grid-template-columns: 1fr 10fr 1fr; /* Single column layout for smaller screens */
  }

  h1 {
    font-size: 42px;
  }

  p {
    font-size: 20px;
  }

  .page {
    grid-column: 2;
    grid-template-rows: repeat(4, 1fr);
    grid-template-columns: repeat(3, 1fr);
  }
  .header-logo {
    top: 50px;
    text-align: right;
  }
  .header-logo img {
    width: 50%;
    height: auto;
  }
  .card1 {
    grid-column: 2 / span 2;
    grid-row: 1 / span 3;
    height: 60vh;
    min-height: fit-content;
    width: 85%;
    right: -35px;
  }
  .card2 {
    grid-column: 1 / span 3;
    grid-row: 2 / span 2;
    height: 70%;
    width: 85%;
    bottom: 100px;
    left: -15px;
  }
  .card3 {
    grid-column: 1 / span 3;
    grid-row: 2 / span 2;
    height: 70%;
    width: 60%;
    right: -30px;
  }
  .card3 li {
    font-size: 22px;
  }
  .card4 {
    grid-column: 1 / span 3;
    grid-row: 2 / span 2;
    height: 85%;
    width: 60%;
    top: -100px;
    right: -30px;
  }

  .toilet {
    width: 100%;
    min-width: 400px;
    bottom: calc(100vw - 1100px);
    right: -100px;
  }
  #fart-animation {
    right: 40px;
    z-index: -1;
  }
  .cowboy {
    width: 100%;
    min-width: 400px;
    left: -100px;
    bottom: calc(100vw - 1000px);
  }
  .lambo {
    width: 100%;
    bottom: -200px;
  }
  .bathrobe {
    display: none;
  }
  .tophat {
    width: 320px;
    bottom: -150px;
    right: -50px;
  }
  #buy {
    max-width: 225px;
  }
  .header-logo p {
    display: none;
  }
}

@media screen and (max-width: 562px) {
  .toilet {
    bottom: -480px;
  }
  #fart-animation {
    right: 25px;
    top: 75px;
  }
  .cowboy {
    bottom: -400px;
  }
  .button-grid {
    grid-template-columns: 1fr;
  }
  .btn-icon {
    width: 35%;
  }
  .header-logo {
    width: 100%;
  }

  #buy p {
    font-size: 28px;
    letter-spacing: 18px;
    margin-top: 15px;
    padding: 0 15px;
    text-align: center;
  }
  #buy p::after {
    content: "";
    margin-right: -16px;
  }
  .card1 p {
    font-size: 14px;
    word-break: break-all;
  }
}
