body {
  font-family: 'Segoe UI', Arial, sans-serif;
  text-align: center;
  background: #0a0a0f;
  color: #fff;
  margin: 0;
  min-height: 90vh;
}

#header{
    display: flex;
    gap: 10px;
    justify-items: center;
    justify-content: center;
}


h1 {
  color: #00ffe7;
  text-shadow: 0 0 8px #00ffe7, 0 0 16px #0ff;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  letter-spacing: 2px;
}
#dashbord {
  display: flex;
  gap: 50px;
  justify-content: center;
  align-items: flex-start;
}
#board {
  display: grid;
  grid-template: repeat(3, 100px) / repeat(3, 100px);
  margin: 2em auto;
  gap: 8px;
  width: max-content;
  background: #181828;
  border-radius: 18px;
  box-shadow: 0 0 24px #00ffe7a0;
  padding: 16px;
}
.cell {
  background: #181828;
  color: #00ffe7;
  font-size: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid #00ffe7;
  border-radius: 12px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 8px #00ffe740;
}
.cell:hover {
  background: #22223b;
  color: #fff;
  box-shadow: 0 0 16px #00ffe7a0;
}
.checking {
  background: #b00 !important;
  color: #fff;
}
#status {
  margin: 1em;
  font-size: 1.3em;
  color: #00ffe7;
  letter-spacing: 1px;
}
#reset {
  margin-top: 1em;
  background: #0a0a0f;
  color: #00ffe7;
  border: 2px solid #00ffe7;
  padding: 0.5em 1.5em;
  font-size: 1.1em;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 8px #00ffe740;
}
#reset:hover {
  background: #00ffe7;
  color: #0a0a0f;
  box-shadow: 0 0 16px #00ffe7a0;
}
#consol {
  border: 2px solid #00ffe7;
  background: #181828;
  width: 350px;
  min-height: 360px;

  margin: 20px;
  margin-right: 50px;
  border-radius: 14px;
  box-shadow: 0 0 18px #00ffe740;
  overflow-y: auto;
  padding: 0.5em 1em;
  text-align: left;
}
#consolList {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: 'Fira Mono', 'Consolas', monospace;
  font-size: 1em;
}
li {
  color: #00ffe7;
  margin-bottom: 0.3em;
  padding: 0.3em 0.5em;
  border-left: 3px solid #00ffe740;
  background: #23233a;
  border-radius: 6px;
  box-shadow: 0 0 4px #00ffe720;
  transition: background 0.2s;
}
li:last-child {
  background: #00ffe720;
  color: #fff;
  font-weight: bold;
  border-left: 3px solid #00ffe7;
}
::-webkit-scrollbar {
  width: 8px;
  background: #181828;
}
::-webkit-scrollbar-thumb {
  background: #00ffe7a0;
  border-radius: 8px;
}

img{
    position: fixed;
    top: 0;
    left: 0;
    width: 100px;
    border-radius: 100%;
    margin: 10px;
}

/* Responsive styles for medium, large, and iPad screens */
@media (max-width: 1100px) {
  #dashbord {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  #consol {
    margin-right: 0;
    width: 90vw;
    max-width: 400px;
    min-width: 240px;
  }
  #board {
    margin: 1.5em auto;
  }
}

@media (max-width: 800px) {
  #board {
    grid-template: repeat(3, 70px) / repeat(3, 70px);
    padding: 10px;
  }
  #consol {
    width: 95vw;
    max-width: 350px;
    min-width: 180px;
    min-height: 220px;
    font-size: 0.95em;
  }
  h1 {
    font-size: 1.5em;
    margin-top: 1em;
  }
}

@media (max-width: 600px), (max-width: 900px) and (orientation: portrait) {
  #dashbord {
    flex-direction: column;
    gap: 18px;
  }
  #board {
    grid-template: repeat(3, 48px) / repeat(3, 48px);
    padding: 6px;
    gap: 5px;
  }
  .cell {
    font-size: 1.3em;
    border-radius: 8px;
  }
  #consol {
    width: 98vw;
    max-width: 98vw;
    min-width: 120px;
    min-height: 120px;
    font-size: 0.9em;
    margin: 8px 0;
    padding: 0.4em 0.5em;
  }
  h1 {
    font-size: 1.1em;
    margin-top: 0.7em;
  }
  #header {
    flex-direction: column;
    gap: 6px;
  }
  img {
    width: 60px;
    margin: 4px;
  }
}

/* iPad landscape and portrait */
@media (min-width: 700px) and (max-width: 1024px) {
  #board {
    grid-template: repeat(3, 80px) / repeat(3, 80px);
    padding: 12px;
  }
  #consol {
    width: 70vw;
    max-width: 400px;
    min-width: 180px;
    min-height: 180px;
    font-size: 1em;
  }
}