:root {
    --bg: #121212;
    --primary: #fcd34d;
    --accent: #2563eb;
}

body{
  background-color:  #ece6e6;
      margin: 0;
    --bg:  #ece6e6;
    --text: #ece6e6;
    --primary: # #ece6e6;;
    --accent: #1d4ed8;
}

/* body.light  {
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--bg);
    color: var(--text);
  
    transition: all 0.3s ease;
} */

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

.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;
}

.start {
    background-color: #22c55e;
    color:  #ece6e6;;
}

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

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

.generate,
.export-btn button {
    background-color: var(--accent);
    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;
}

/* .cube-img img {
    width: 80px;
} */

.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) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    .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;
    }

#footer {
  background-color: var(--bg);
  color: var(--text);
  padding: 30px 20px;
  text-align: center;
  border-top: 1px solid #333;
  margin-top: 5vh;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
}

.footer-logo {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.footer-logo span {
  color: var(--primary);
}

.footer-links {
  margin: 15px 0;
}

.footer-links a {
  margin: 0 10px;
  text-decoration: none;
  color: var(--text);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-copy {
  font-size: 14px;
  color: #aaa;
  margin-top: 15px;
}
