.content{
  max-width: 900px;
  margin: auto;
  padding: 20px;
}
* {
  color: white !important;
}

p{
  color: white;
}
h1{
  color: white;
}
#modeToggle {
  padding: 6px 12px;
  background: var(--accent);
  color: #ece6e6;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.hide{
  display: none;
}

.timer-display {
  font-size: 80px;
  font-family: monospace;
  text-align: center;
  margin: 30px 0 10px;
  color: var(--primary);
}

.timer-buttons button,
.penalty-buttons button,
.generate,
.export-btn button {
  margin: 5px;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}

.pagination button{
  background-color: #15474d;
}
.start {
  background-color: #22c55e;
  color: #ece6e6;
  ;
}

.stop {
  background-color: #ef4444;
  color: white;
}

.reset {
  background-color: #6b7280;
  color: white;
}

.generate,
.export-btn button {
  background-color: #15474d;
  color: white;
}

.penalty-buttons button {
  background-color: #f87171;
}

.scramble-section {
  margin: 20px 0 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.scramble-header {
  flex: 1;
  min-width: 250px;
}

.scramble {
  font-family: monospace;
  font-size: 20px;
}

.options,
.averages {
  margin: 10px auto;
  text-align: center;
}

.averages p {
  color: var(--primary);
}

table {
  margin-left: 10%;
  width: 80%;
  border-collapse: collapse;
  margin-top: 20px;
}

table th,
table td {

  padding: 10px;
  border: 1px solid #333;
  text-align: center;
}

@media screen and (max-width: 768px) {
 

  .scramble-section {
    flex-direction: column;
    text-align: center;
  }

  .averages {
    flex-direction: column;
  }
}



.scene {
  width: 120px;
  height: 120px;
  perspective: 800px;
  margin-right: 10vw;
}

/* Continuous spin */
.cube-btn {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: rotateCube 10s linear infinite;
  cursor: pointer;
  border: none;
  background: transparent;
  box-shadow: none;
  outline: none;
}

@keyframes rotateCube {
  0% {
    transform: rotateX(0deg) rotateY(0deg);
  }

  100% {
    transform: rotateX(360deg) rotateY(360deg);
  }
}

.cube-face {
  position: absolute;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  width: 120px;
  height: 120px;
  border: 2px solid #333;
}

.cube-face div {
  border: 1px solid #222;
}

.front div {
  background: red;
}

.back div {
  background: orange;
}

.left div {
  background: blue;
}

.right div {
  background: green;
}

.top div {
  background: yellow;
}

.bottom div {
  background: white;
}

.front {
  transform: rotateY(0deg) translateZ(60px);
}

.back {
  transform: rotateY(180deg) translateZ(60px);
}

.left {
  transform: rotateY(-90deg) translateZ(60px);
}

.right {
  transform: rotateY(90deg) translateZ(60px);
}

.top {
  transform: rotateX(90deg) translateZ(60px);
}

.bottom {
  transform: rotateX(-90deg) translateZ(60px);
}

.label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-weight: bold;
  pointer-events: none;
  user-select: none;
}