:root {
    --bg: #0f0f0f;
    --bg2: #1a1a1a;
    --text: #e1e1e1;
    --accent: #3bd1ff;
    --card: #181818;
    --border: #2a2a2a;
}

body {
    margin: 0;
    background: var(--bg);
    font-family: Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 900px;
    margin: auto;
}

header {
    text-align: center;
    padding: 70px 20px 40px;
    background: #101010;
}

header h1 {
    margin: 0;
    font-size: 2.6rem;
}

header p {
    color: #bbb;
    margin: 8px 0 18px;
}

.links a {
    margin: 6px;
    color: var(--accent);
    text-decoration: none;
    border: 1px solid var(--accent);
    padding: 6px 14px;
    border-radius: 4px;
    transition: 0.2s;
}
.links a:hover {
    background: var(--accent);
    color: #000;
}

section {
    margin: 45px 0;
}

h2 {
    font-size: 1.4rem;
    margin-bottom: 14px;
    color: var(--accent);
}

h3 {
    margin-top: 20px;
    color: var(--accent);
}


footer {
    text-align: center;
    padding: 20px;
    color: #777;
    border-top: 1px solid var(--border);
}

#diff_input {
  display: flex;
  flex-direction: column; /* kolumnowo, bo mamy <p> + div */
  align-items: center;    /* centrowanie poziome całej zawartości */
  gap: 8px;               /* odstęp między tekstem a input+button */
  margin-bottom: 20px;
}

#diff_input div {
  display: flex;
  align-items: center;
  gap: 6px; /* minimalna przerwa między input a button, możesz ustawić 0 jeśli chcesz zero */
}

#diff_input input[type="number"] {
  width: 60px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg2);
  color: var(--text);
  font-size: 16px;
}

#diff_input button#generate {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 6px 14px;
  border-radius: 4px;
  font: inherit;
  cursor: pointer;
  transition: 0.2s;
}

#diff_input button#generate:hover {
  background: var(--accent);
  color: #000;
}

#diff_input button#generate:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 209, 255, 0.4);
}

#board_actions {
    display: none;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

#board_actions button {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 6px 14px;
    border-radius: 4px;
    font: inherit;
    cursor: pointer;
    transition: 0.2s;
}

#board_actions button:hover {
    background: var(--accent);
    color: #000;
}

#board_actions button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 209, 255, 0.4);
}

.sudoku {
    display: grid;
    grid-template-columns: repeat(9, 42px); /* 9 kolumn po 42px */
    grid-template-rows: repeat(9, 42px);    /* 9 wierszy po 42px */
    gap: 2px;                               /* odstępy między komórkami */
    justify-content: center;                 /* wycentrowanie planszy */
    margin: 20px auto;
}
.sudoku input {
    width: 42px;
    height: 42px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    box-sizing: border-box;
    border: 1px solid var(--border);
    background: var(--bg2);
    color: var(--text);
    outline: none;
}

/* Mobile */
@media (max-width: 600px) {
    #board_actions {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    #board_actions button {
        width: 80%;
    }
}

/* Responsywność */
@media (max-width: 600px) {
    header h1 {
        font-size: 2rem;
    }

    .skills ul, .about ul {
        flex-direction: column;
    }

    .skills ul li, .about ul li {
        width: 100%;
    }
}

@media (max-width: 600px) {
  #diff_input div {
    flex-direction: column; /* input nad button */
    gap: 6px;
    width: 100%;
    align-items: center;
  }

  #diff_input input[type="number"],
  #diff_input button#generate {
    width: 80%; /* węższe na mobile */
  }
}