  body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 20px;
  }

  .qwixx-block {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 700px;
    text-align: center;
    margin: 0 auto;
  }

@media (max-width: 800px) {
  .qwixx-block {
      padding: 10px;
  }
  .row span {
      width: 35px;
      height: 35px;
      font-size: 0.9rem;
  }
  .legend-values span,
  .penalty-boxes span,
  .total {
      width: 25px;
      height: 25px;
      font-size: 0.8rem;
  }
}

@media (max-width: 800px) {
  body {
      padding: 10px;
  }
  button {
      width: 100%;
      font-size: 16px;
      padding: 8px;
  }
  .result-boxes {
      flex-wrap: wrap;
      justify-content: center;
  }
  .plus {
      display: none; /* Hide plus signs to save space */
  }
}
  
  .qwixx-block h1 {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }
  
  .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
  }
  
  .row span {
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
  }
  
  .row span.lock {
    font-size: 1.5rem;
    cursor: pointer;
  }
  
  .red span, .total.red { background: #ffcccc; }
  .yellow span, .total.yellow { background: #fff7cc; }
  .green span, .total.green { background: #ccffcc; }
  .blue span, .total.blue { background: #cce5ff; }
  .total.penalty {
    background: #e0e0e0;
  }
  
  .legend {
    margin-bottom: 20px;
    text-align: center;
  }
  
  .legend-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
  }
  
  .legend-header span {
    font-weight: bold;
    margin-right: 10px;
  }
  
  .legend-values {
    display: flex;
    gap: 1px;
  }
  
  .legend-values span {
    width: 30px;
    height: 30px;
    border: 1px solid #ccc;
    text-align: center;
    line-height: 30px;
    border-radius: 4px;
    background: #f4f4f4;
  }
  
  .summary {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .totals {
    flex: 2;
  }
  
  .penalties {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .penalties small {
    font-size: 0.8rem;
    margin-bottom: 5px;
    color: gray;
    text-align: center;
  }
  
  .penalty-boxes {
    display: flex;
    gap: 5px;
  }
  
  .penalty-boxes span {
    width: 30px;
    height: 30px;
    border: 2px solid #ccc;
    border-radius: 4px;
    background: #eee;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
  }
  
  .penalty-boxes span.marked {
    background-color: #ff6666;
    border-color: #cc0000;
    color: #fff;
  }
  
  .result-title {
    font-size: 1rem;
    margin-right: 10px;
    vertical-align: middle;
  }
  
  .result-boxes {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .plus {
    font-size: 1.2rem;
    color: gray;
    align-self: center;
  }
  
  .total {
    width: 40px;
    height: 40px;
    border: 2px solid #ccc;
    border-radius: 4px;
    text-align: center;
    font-size: 1rem;
  }

  .row span.marked {
    background-color: #000;
    color: #fff;
    font-size: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .row.locked span:not(.lock) {
    text-decoration: line-through;
    color: #888;
    pointer-events: none;
  }

  body {
    perspective: 1000px;
    background-color: #f0f0f0;
    font-family: Arial, sans-serif;
}

.dice-container {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  justify-content: center;
  align-items: center;
  margin: 15px;
}

.dice {
    width: 100px;
    height: 100px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(-30deg) rotateY(-30deg);
    transition: transform 1s;
    margin: 20px;
}

@media (max-width: 800px) {
  .dice {
      width: 60px;
      height: 60px;
  }
  .side {
      width: 60px;
      height: 60px;
  }
  .dot {
      width: 10px;
      height: 10px;
  }
}

.dice.white .side {
    background-color: white;
    color: black;
}

.dice.red .side {
    background-color: red;
    color: white;
}

.dice.yellow .side {
    background-color: yellow;
    color: black;
}

.dice.green .side {
    background-color: green;
    color: white;
}

.dice.blue .side {
    background-color: blue;
    color: white;
}

.side {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid #333;
    display: flex;
    justify-content: center;
    align-items: center;
    backface-visibility: hidden;
}

.side .dots {
    position: relative;
    width: 80%;
    height: 80%;
}

.dot {
    width: 20px;
    height: 20px;
    background-color: currentColor;
    border-radius: 50%;
    position: absolute;
}

/* 1 Dot */
.dot-1 { top: 50%; left: 50%; transform: translate(-50%, -50%); }

/* 2 Dots */
.dot-2-1 { top: 25%; left: 25%; transform: translate(-50%, -50%); }
.dot-2-2 { bottom: 25%; right: 25%; transform: translate(50%, 50%); }

/* 3 Dots */
.dot-3-1 { top: 25%; left: 25%; transform: translate(-50%, -50%); }
.dot-3-2 { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.dot-3-3 { bottom: 25%; right: 25%; transform: translate(50%, 50%); }

/* 4 Dots */
.dot-4-1 { top: 25%; left: 25%; transform: translate(-50%, -50%); }
.dot-4-2 { top: 25%; right: 25%; transform: translate(50%, -50%); }
.dot-4-3 { bottom: 25%; left: 25%; transform: translate(-50%, 50%); }
.dot-4-4 { bottom: 25%; right: 25%; transform: translate(50%, 50%); }

/* 5 Dots */
.dot-5-1 { top: 25%; left: 25%; transform: translate(-50%, -50%); }
.dot-5-2 { top: 25%; right: 25%; transform: translate(50%, -50%); }
.dot-5-3 { bottom: 25%; left: 25%; transform: translate(-50%, 50%); }
.dot-5-4 { bottom: 25%; right: 25%; transform: translate(50%, 50%); }
.dot-5-5 { top: 50%; left: 50%; transform: translate(-50%, -50%); }

/* 6 Dots */
.dot-6-1 { top: 25%; left: 25%; transform: translate(-50%, -50%); }
.dot-6-2 { top: 25%; right: 25%; transform: translate(50%, -50%); }
.dot-6-3 { top: 50%; left: 25%; transform: translate(-50%, -50%); }
.dot-6-4 { top: 50%; right: 25%; transform: translate(50%, -50%); }
.dot-6-5 { bottom: 25%; left: 25%; transform: translate(-50%, 50%); }
.dot-6-6 { bottom: 25%; right: 25%; transform: translate(50%, 50%); }

.front  { transform: rotateY(  0deg) translateZ(50px); }
.back   { transform: rotateY(180deg) translateZ(50px); }
.right  { transform: rotateY( 90deg) translateZ(50px); }
.left   { transform: rotateY(-90deg) translateZ(50px); }
.top    { transform: rotateX( 90deg) translateZ(50px); }
.bottom { transform: rotateX(-90deg) translateZ(50px); }

button {
    display: block;
    margin: 5px auto;
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
}

footer {
  margin-top: 20px;
  font-size: 0.8rem;
  color: #888;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.login-container {
  background: linear-gradient(135deg, #ffcccb, #ffffcc, #ccffcc, #cce5ff);
  padding: 20px 30px;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 444px;
  width: 90%;
  animation: float 3s ease-in-out infinite;
}

.login-container h1 {
  font-size: 2rem;
  margin-bottom: 35px;
  color: #444;
}

.subtitle {
  font-size: 1rem;
  color: #666;
  margin-bottom: 20px;
}

.login-container form {
  display: flex;
  flex-direction: column;
}

label {
  font-size: 1rem;
  color: #333;
}

input:focus {
  outline: none;
  border-color: #666;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}


form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.login-container label,
.login-container input,
.login-container button {
  margin-bottom: 10px;
}

.login-container input {
  padding: 8px;
}

.login-container button {
  padding: 10px;
}

/* Container for user info and game content */
.container {
  display: flex;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto; /* Center the container */
}

/* User info box */
.user-info {
  width: 300px;
  margin-right: 20px;
  background-color: #ffffff;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.user-info h3,
.user-info h4 {
  margin: 0;
  margin-bottom: 10px;
}

.user-info ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.user-info ul li {
  margin-bottom: 5px;
  font-size: 1rem;
}

/* Game content */
.game-content {
  flex-grow: 1;
}