/* =========================================
   BASE STYLES & STRUCTURAL LAYOUT
========================================= */
.main-layout {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
}
@media (max-width: 1100px) {
  .main-layout {
    flex-direction: column;
    align-items: center;
  }
}

/* =========================================
   MOBILE RESPONSIVENESS OVERRIDES
========================================= */
@media screen and (max-width: 650px) {
  body {
    padding-top: 20px;
    overflow-x: hidden;
  }
  .glitch {
    font-size: 24px;
    letter-spacing: 1px;
  }
  #sudoku-board {
    grid-template-columns: repeat(9, 10.5vw);
    grid-template-rows: repeat(9, 10.5vw);
    border-width: 2px;
    gap: 1px;
  }
  .cell-input {
    font-size: 22px;
  }
  .cell-possibilities {
    font-size: 2.2vw;
    top: 2px;
    left: 3px;
    line-height: 1.1;
  }
  .controls {
    width: 95vw;
    gap: 10px;
    margin-top: 20px;
  }
  button,
  .upload-btn {
    padding: 10px;
    font-size: 12px;
  }
  #side-panel-wrapper {
    width: 95vw !important;
  }
  .crop-container {
    width: 95%;
    padding: 15px;
  }
}
@media screen and (max-width: 380px) {
  .cell-input {
    font-size: 18px;
  }
  .cell-possibilities {
    font-size: 8px;
    line-height: 1;
  }
  button,
  .upload-btn {
    font-size: 11px;
    padding: 8px;
  }
}
