* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

:root {
  --width: 550px;
  --brand: #2fa8cc;
  --brand-dark: #2980ba;
  --background: #020202;
  --grid-column: repeat(4, 1fr);
}

body {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  background: var(--background);
  color: #fff;
  font:
    400 0.85rem/1.5 "Lexend Deca",
    sans-serif;
}

.logo {
  display: flex;
  gap: 5px;
}

.game-title {
  padding-top: 20px;
  width: var(--width);
  display: flex;
  align-items: center;
  justify-content: space-between;

  & h1 {
    font-family: "Asimovian", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: var(--brand);
  }
}

.game-board {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: var(--width);
}

.stats {
  text-align: right;
  margin-bottom: 12px;
}

.cards-grid {
  display: grid;
  grid-template-columns: var(--grid-column);
  gap: 5px;
  width: 100%;
}

.card {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--brand);
  border: 2px solid var(--brand-dark);
  border-radius: 12px;
  background-image: url(assets/diagonal.svg);
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
}

.card-img {
  aspect-ratio: 1;
  width: 90%;
  display: none;
}

.button-wrapper {
  display: flex;
  gap: 15px;
}

.button {
  all: unset;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  width: 100%;
  height: 40px;
  background-color: var(--brand-dark);
  border: 2px solid var(--brand);
  border-radius: 8px;
  cursor: pointer;
}

.revealed {
  background-color: #fff;
  border-color: #746f6f;
  cursor: not-allowed;
}

.revealed .card-img {
  display: block;
}

.level-options {
  background-color: var(--background);
  margin: auto;
  padding: 20px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  width: var(--width);
  text-align: center;
}

.hidden {
  display: none;
}

@media (width <= 38em) {
  :root {
    --width: calc(100vw - 20px);
  }
}
