:root {
      --bg-color: #1e1e1e;
      --text-color: #d4d4d4;
      --keyword: #569cd6;
      --string: #ce9178;
      --comment: #6a9955;
      --type: #4ec9b0;
      --number: #b5cea8;
      --link: #9cdcfe;
    }

    [data-theme="light"] {
      --bg-color: #f5f5f5;
      --text-color: #1e1e1e;
      --keyword: #005cc5;
      --string: #032f62;
      --comment: #6a737d;
      --type: #22863a;
      --number: #005cc5;
      --link: #0366d6;
    }

    [data-contrast="high"] {
      --bg-color: #000000;
      --text-color: #ffffff;
      --keyword: #00ffff;
      --string: #ffb86c;
      --comment: #b0ffb0;
      --type: #ff79c6;
      --number: #ffd700;
      --link: #ffff00;
    }

    body[data-theme="light"][data-contrast="high"] {
      --bg-color: #ffffff;
      --text-color: #000000;
      --keyword: #00008b;         /* sötétkék */
      --string: #800000;          /* bordó */
      --comment: #228B22;         /* sötétzöld */
      --type: #8B008B;            /* sötétlila */
      --number: #000080;          /* tengerészkék */
      --link: #ff0000;            /* élénk piros */
    }


    body {
      background-color: var(--bg-color);
      color: var(--text-color);
      font-family: "Courier New", Courier, monospace;
      padding: 2rem;
      margin: 0;
      transition: background 0.3s, color 0.3s;
    }

   .sr-only {
      position: absolute;
      width: 1px;
      height: 1px; 
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    .header-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 2rem;
      gap: 1rem;
      flex-wrap: wrap;
    }

    .cv-container {
      max-width: 1100px;
      margin: 0 auto;
      position: relative;
    }

    .profile-img {
      float: right;
      margin-left: 20px;
      border-radius: 6px;
      width: 150px;
    }

    .code-block {
      opacity: 0;
      max-height: 0;
      overflow: hidden;
      pointer-events: none;
      transition: opacity 0.6s ease;
      line-height: 1.8;
    }

    .code-block.active {
      opacity: 1;
      max-height: 9999px;
      pointer-events: auto;
    }

    .theme-toggle button,
    .lang-toggle button {
      margin-right: 0.0;
      background: #333;
      border-radius: 20px;
      border: none;
      color: white;
      padding: 0.6rem 1rem 0.5rem 1rem;
      min-width: 52px;
      cursor: pointer;
      transition: background 0.3s;
      font-family: "Courier New", Courier, monospace;
    }
    .lang-toggle {
      display: flex;
      gap: 0.5rem;
    }

    .lang-toggle button:hover,
    .theme-toggle button:hover {
      background: #666;
    }

    .lang-toggle button.active {
      background: var(--type);
      color: var(--bg-color);
    }

    .keyword { color: var(--keyword); }
    .string { color: var(--string); }
    .comment { color: var(--comment); font-style: italic; line-height: 1.5; }
    .type { color: var(--type); }
    .number { color: var(--number); }
    .public { margin-bottom: .5em; margin-top: 1em; }
    .indent { display: block; margin-left: 2em; }
    .indent2 { display: block; margin-left: 4em; }
    a { color: var(--link); text-decoration: none; }

    [data-theme="dark"] .moon { display: none; }
    [data-theme="light"] .sun { display: none; }

    @media (max-width: 700px) {
      .profile-img {
        float: none;
        display: block;
        margin: 0 auto 20px;
      }
    }