:root {
  --text: hsl(193, 38%, 86%);
  --accent: hsl(150, 100%, 66%);

  --card: hsl(217, 19%, 24%);
  --background: hsl(218, 23%, 16%);

  --additional: hsl(217, 19%, 38%);
}

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

body {
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background-color: var(--background);
  color: var(--text);
  font-family: "Manrope", sans-serif;
}

.card {
  max-width: 90vw;
  width: 600px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  background-color: var(--card);
  padding: 50px 50px 70px 50px;
  margin: 0 30px;
  text-align: center;
  border-radius: 15px;
  box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.2);
}

.dice-wrapper {
  position: relative;
  transform: translateY(-50%);
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}
.dice-wrapper::after {
  content: "";
  position: absolute;
  inset: -25px;
  border-radius: 50%;
  z-index: -1;
  background-color: var(--accent);
}
.dice-wrapper:hover::after {
  box-shadow: 0px 0px 30px var(--accent);
}
.dice {
  display: block;
  transform-origin: center;
}

.advice {
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 4px;
}

.advice-text {
  font-size: 28px;
  font-weight: 800;
}

.divider {
  width: 100%;
  height: 10px;
  background: url(./images/pattern-divider-desktop.svg) no-repeat center;
}

.error-alert {
  position: fixed;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  background: #a30505;
  color: white;
  font-size: 20px;
  padding: 14px 20px;
  border-radius: 10px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@media (max-width: 500px) {
  .card {
    padding: 30px 30px 60px 30px;
  }
  .advice-text {
    font-size: 24px;
  }
  .divider {
  background: url(./images/pattern-divider-mobile.svg) no-repeat center;
}
}
