*{
    margin: 0;
    padding : 0;
    box-sizing: border-box;
}

h1{
    text-align: center;
}

.row {
    display : flex;
}

.box-border {
    border : 0.5px solid black;
}

.box:hover {
    background-color: lightgray;
}

.gridContainer {
    border : 0.5px solid black;
}


body {
    display : flex;
    flex-direction : column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    gap : 32px;
}

.buttons{
    display: flex;
    gap : 48px;
    flex-direction: column;
    align-items: center;
    margin-top: 5%
}

button {
    padding : 8px 16px;
    background-color: #cf0000;
    color : white;
    border-radius: 16px;
    border : none;
    width: 120px;
}

.generateAI {
    width: 160px;
}

button:hover{
    background-color: #b10404;
    cursor : pointer;
}

button.selected {
    background-color: #7d0101;
}

.newGrid {
    margin-left : 16px;
}

.container {
    display : flex;
    gap: 84px;
}

.right {
    display : flex;
    flex-direction: row;
    align-items: center;
    gap: 32px;
}

.colorPicker {
    appearance: none;
    width: 100px;
    height: 100px;
    border: none;
    cursor: pointer;
    border-radius: 50%;
}

.colorPicker.selected {
    border: 2px solid #7d0101;
}

.colorPicker::-webkit-color-swatch{
    border-radius: 50%;
    border: none;
}

.colorPicker::--moz-color-swatch{
    border-radius: 50%;
    border: none;
}

.gridCustomization {
    display : flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.gridPanel {
    display : flex;
    flex-direction: column;
    gap: 16px;
}


.aiPanel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aiPrompt {
  width: 160px;
  resize: vertical;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-family: inherit;
}

.aiStatus {
  font-size: 12px;
  min-height: 16px;
}

.aiSide {
  width: 180px;
  padding-top: 8px;
}

.aiSide h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

.aiProgress {
  width: 180px;
  height: 10px;
  border-radius: 999px;
  background: #eee;
  overflow: hidden;
  border: 1px solid #ddd;
}

.aiProgressBar {
  height: 100%;
  width: 40%;
  border-radius: 999px;
  background: #cf0000;
  animation: aiIndeterminate 1s ease-in-out infinite;
}

@keyframes aiIndeterminate {
  0%   { transform: translateX(-120%); }
  50%  { transform: translateX(80%); }
  100% { transform: translateX(220%); }
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}


