@import "./base.css";
@import "./cards.css";
@import "./imprint.css";

:root {
  /* Vars */
  --color-background: #615b5b;
  --color-text: #1d1d1e;

  --border-radius-s: 0.6rem;
  --border-radius-m: 1.6rem;

  --shadow-s: 0 2px 6px #34343597;
  --shadow-m: 0 5px 10px #34343597;
  --shadow-l: 0 10px 16px #34343597;

  --transition-speed-fast: all 0.1s ease-out;
  --transition-speed-slow: all 0.3s ease-out;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;

  a {
    transition: var(--transition-speed-fast);
  }
}

.logo img {
  width: 120px;
  aspect-ratio: 1/1;
}
.logo a:hover {
  transform: scale(1.04);
}

h1 {
  font-size: 2.4rem;
  color: #fff;
  font-weight: 800;
  margin: 1.6rem 0 8rem 0;
}

h2 {
  font-size: 2.4rem;
  font-weight: 800;
  margin: 2.2rem 0 0.8rem 0;
}

a {
  color: var(--color-text);
  transition: var(--transition-speed-fast);
}
a.link:hover {
  opacity: 0.6;
  text-decoration: underline;
}

main {
  position: relative;
}

.content-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 3rem;
  margin-top: 2rem;
  background-color: #fff;
  border-radius: var(--border-radius-m);
  box-shadow: var(--shadow-m);
  transition: var(--transition-speed-slow);
}

.content-box:hover {
  transform: scale(1.01);
  box-shadow: var(--shadow-l);

  .image {
    transform: scale(1.02) translateY(-0.6rem);
  }
}

.content-box.game {
  align-items: center;
  margin-bottom: 3rem;
}

.content-box .image {
  width: 24rem;
  border-radius: var(--border-radius-s);
  box-shadow: var(--shadow-m);
  margin-top: -8rem;
  transition: var(--transition-speed-slow);
}

.version {
  font-weight: 600;
  letter-spacing: 0.1rem;
}

/* Buttons */

.button {
  flex: 1;
  text-align: center;
  line-height: 4rem;
  width: 100%;
  font-weight: 800;
  background-color: #1d1d1e;
  color: #fff;
  border-radius: var(--border-radius-s);
  transition: var(--transition-speed-fast);
}

.button:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-m);
}
.button:active {
  transform: scale(1);
  box-shadow: var(--shadow-s);
}

.buttons {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  width: 100%;
  margin-bottom: 1rem;
}

/* Footer */

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 6rem;
}

/* Card */

.card {
  position: fixed;
  width: 20rem;
  box-shadow: var(--shadow-m);
  border-radius: 20px;

  transition: var(--transition-speed-slow);
}

.card:hover {
  box-shadow: var(--shadow-l);
}

/* 

    iPad

*/

@media screen and (max-height: 700px) {
  .logo img {
    width: 80px;
  }
  h1 {
    font-size: 1.8rem;
    margin: 1rem 0 4rem 0;
  }
  .content-box {
    padding: 2em;
  }
  .content-box .image {
    width: 16rem;
    margin-top: -4rem;
  }
}

/* iPhone */

@media screen and (max-width: 400px) {
  h2 {
    font-size: 2rem;
  }
  footer {
    flex-direction: column;
    gap: 4rem;
    flex-flow: column-reverse;
  }
}
