
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}

body {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  gap: 2rem;
  font-family: Arial, sans-serif;
  background-color: #7841f7;
}

.bg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 15%;
  background: #5c2dd5;
  border-radius: 5rem 5rem 0  0;
}


.nav {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  padding: 1rem 2rem;
  background-color: #7841f7;
}

a, .nav button {
  background-color: #5a33b6;
  color: white;
  border: none;
  padding: 0.8rem 1.4rem;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 2rem;
  transition: all 0.3s ease;
}

.nav a:hover, .nav button:hover {
  background: #4e2f97;
  transform: scale(1.1);
}

.logo {
  display: flex;
  justify-content: center;
  width: 100%;
  gap: .2rem;
}

.nav .logo .ball1 {
  gap: 1rem;
}

.nav .logo .ball-o {
  width: 1.5rem;
  height: 1.5rem;
  background-color:#fe6389;
  border: 3px solid #161616;
  border-radius: 50%;
  margin-bottom: .2rem;
  box-shadow: 0px 1.5px 0px 1px #000;
}

.nav .logo .ball-p {
  width: 1.5rem;
  height: 1.5rem;
  background-color: #fccd61;
  border: 3px solid #161616;
  border-radius: 50%;
  margin-bottom: .2rem;
  box-shadow: 0px 1.5px 0px 1px #000;
}

.card-game {
  width: 40rem;
  height: auto;
  padding: 2rem 3rem;
  gap: 2rem;
  border: 3px solid #161616;
  border-radius: 1rem;
  box-shadow: 0px 10px 0px 0px #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.rules {
  background: #f1f1f1;
  font-weight: bold;
  font-size: 1.5rem;
  color: #161616;
}


.rules-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1.2rem;
  font-weight: normal;
}

.rules-text h4 {
  color: #5a33b6;
}

.rules-list {
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  font-size: 1.2rem;
  font-weight: bold;
}

.red {
  color: #ca4969;
}

.yellow {
  color: #fab20a;
}
