@import url(https://fonts.googleapis.com/css?family=Lato:300italic,700italic,300,700);

body {
  background-color: #fefefe;
background-image: url(http://www.transparenttextures.com/patterns/textured-paper.png);
/* This is mostly intended for prototyping; please download the pattern and re-host for production environments. Thank you! */
  padding:50px;
  font:14px/1.5 Lato, "Helvetica Neue", Helvetica, Arial, sans-serif;
  color:#777;
  font-weight:300;
}

h1, h2, h3, h4, h5, h6 {
  color: #fff !important;
  margin:0 0 20px;
  background-color: #222;
  padding-left: 5px;
  padding-right: 5px;
  padding-top: 5px;
  padding-bottom: 5px;
  
  border-radius: 10px;
}
.line-separator {
  position: fixed;
  top: 0;
  left: 42.25vw;
  height: 100%;
  width: 3px;
  background-color: black;
  z-index: 9999;
}

 p,ul, ol, table, pre, dl {
  margin:0 0 20px;
  font-weight: bold;
  color: #000000;
}
.p2{
  margin:0 0 20px;
  box-shadow: 0 0 10px 5px black;
}

h1, h2, h3 {
  line-height:1.1;
}

h1 {
  font-size:28px;
}

h2 {
  color:#393939;
}

h3, h4, h5, h6 {
  color:#494949;
}

a {
  color:#39c;
  font-weight:400;
  text-decoration:none;
}

a small {
  font-size:11px;
  color:#777;
  margin-top:-0.6em;
  display:block;
}

.wrapper {
  width:860px;
  margin:0 auto;
}

blockquote {
  border-left:1px solid #e5e5e5;
  margin:0;
  padding:0 0 0 20px;
  font-style:italic;
}

code, pre {
  font-family:Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal;
  color:#333;
  font-size:12px;
}

pre {
  padding:8px 15px;
  background: #f8f8f8;  
  border-radius:5px;
  border:1px solid #e5e5e5;
  overflow-x: auto;
}

table {
  width:100%;
  border-collapse:collapse;
}

th, td {
  text-align:left;
  padding:5px 10px;
  border-bottom:1px solid #e5e5e5;
}

dt {
  color:#444;
  font-weight:700;
}

th {
  color:#444;
}

img {
  max-width:100%;
}

header {
  width:270px;
  float:left;
  position:fixed;
}

header ul {
  list-style:none;
  height:40px;
  
  padding:0;
  
  background: #eee;
  background: -moz-linear-gradient(top, #f8f8f8 0%, #dddddd 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f8f8f8), color-stop(100%,#dddddd));
  background: -webkit-linear-gradient(top, #f8f8f8 0%,#dddddd 100%);
  background: -o-linear-gradient(top, #f8f8f8 0%,#dddddd 100%);
  background: -ms-linear-gradient(top, #f8f8f8 0%,#dddddd 100%);
  background: linear-gradient(top, #f8f8f8 0%,#dddddd 100%);
  
  border-radius:5px;
  border:1px solid #d2d2d2;
  box-shadow:inset #fff 0 1px 0, inset rgba(0,0,0,0.03) 0 -1px 0;
  width:270px;
}

header li {
  width:89px;
  float:left;
  border-right:1px solid #d2d2d2;
  height:40px;
}

header ul a {
  line-height:1;
  font-size:11px;
  color:#999;
  display:block;
  text-align:center;
  padding-top:6px;
  height:40px;
}
.slider-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slider {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.slider-input {
  width: 200px;
  margin-right: 10px;
}

.slider-value {
  margin-left: 10px;
}

.text-input {
  width: 200px;
  font-size: 16px;
  margin-left: 10px;
}
.text-input2 {
  width: 80px;
  font-size: 12px;
}

#create-btn {
  margin-top: 20px;
}

.popup {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
}

.popup-content {
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  width: 100%;
  max-width: 1000px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 100vh; /* Set height for popup content */
  max-height: calc(100vh - 100px); /* Limit max height based on viewport height */
  overflow-y: auto; /* Add vertical scrollbar when content overflows */
}
.popup-content2 {
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  width: 100%;
  max-width: 1000px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 100vh; /* Set height for popup content */
  max-height: calc(100vh - 100px); /* Limit max height based on viewport height */
  overflow-y: auto; /* Add vertical scrollbar when content overflows */
}

.options label {
  font-size: 18px; /* Increased font size */
  font-weight: bold; /* Made the text bold */
  margin-left: 10px;
}

.options input[type="checkbox"] {
  transform: scale(1.5); /* Increased the size of the checkboxes */
}

/* CSS */
.button-35 {
  align-items: center;
  background-color: #222;
  border-radius: 12px;
  box-shadow: transparent 0 0 0 3px,rgba(18, 18, 18, .1) 0 6px 20px;
  box-sizing: border-box;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  flex: 1 1 auto;
  font-family: Inter,sans-serif;
  font-size: .6rem;
  font-weight: 700;
  justify-content: center;
  line-height: 1;
  margin: 0;
  outline: none;
  padding: 1rem 1.2rem;
  text-align: center;
  text-decoration: none;
  transition: box-shadow .2s,-webkit-box-shadow .2s;
  white-space: nowrap;
  border: 0;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.button-35:hover {
  box-shadow: #ffffff 0 0 0 3px, transparent 0 0 0 0;
}
codestring {
  display: block;
  color: white;
  background-color: #222;
  padding: 10px;
  width: max-content;
  border-radius: 5px;
  border: 1px solid #ddd;
  font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}


.close-btn {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

strong {
  color:#222;
  font-weight:700;
}

header ul li + li {
  width:88px;
  border-left:1px solid #fff;
}

header ul li + li + li {
  border-right:none;
  width:89px;
}

header ul a strong {
  font-size:14px;
  display:block;
  color:#222;
}

section {
  width:500px;
  float:right;
  padding-bottom:50px;
}

small {
  font-size:11px;
}

hr {
  border:0;
  background:#e5e5e5;
  height:1px;
  margin:0 0 20px;
}

footer {
  width:270px;
  float:left;
  position:fixed;
  bottom:50px;
}

/* ── Tablet (≤960px) ── */
@media screen and (max-width: 960px) {
  body {
    padding: 24px 16px;
  }

  div.wrapper {
    width: auto;
    margin: 0;
  }

  header, section, footer {
    float: none;
    position: static;
    width: auto;
  }

  header {
    padding: 0;
    margin-bottom: 24px;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 16px;
  }

  header ul {
    position: static;
    margin-top: 12px;
  }

  section {
    border: none;
    padding: 0;
    margin: 0;
  }

  header a small {
    display: inline;
  }

  /* Toggle still fixed but smaller offset */
  .lang-toggle {
    top: 12px;
    right: 12px;
  }
}

/* ── Small Tablet / Large Phone (≤768px) ── */
@media screen and (max-width: 768px) {
  body {
    padding: 16px 12px;
  }

  h1 { font-size: 22px; }
  h2 { font-size: 17px; }

  .slider-input {
    width: 140px;
  }

  .text-input {
    width: 140px;
    font-size: 14px;
  }

  .text-input2 {
    width: 64px;
    font-size: 11px;
  }

  /* Toggle smaller */
  .lang-option {
    padding: 5px 10px;
    font-size: 12px;
  }

  /* GitHub nav buttons adapt */
  header ul {
    width: auto;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    background: none;
    border: none;
    box-shadow: none;
  }

  header li {
    width: auto;
    float: none;
    border: none;
    height: auto;
  }

  header li + li,
  header li + li + li {
    width: auto;
    border: none;
  }

  header ul a {
    padding: 6px 14px;
    height: auto;
    font-size: 12px;
    background: #eee;
    border-radius: 6px;
    border: 1px solid #d2d2d2;
    color: #555;
  }

  header ul a strong {
    font-size: 13px;
  }

  /* Popup fills screen */
  .popup-content,
  .popup-content2 {
    width: 92%;
    max-width: none;
    height: auto;
    max-height: 85vh;
    padding: 16px;
    border-radius: 10px;
  }

  .popup-content p,
  .popup-content2 p {
    font-size: 14px !important;
  }

  /* Code blocks */
  pre {
    font-size: 11px;
    padding: 6px 10px;
  }

  codestring {
    font-size: 12px;
    padding: 8px;
  }

  /* Buttons */
  .button-35 {
    padding: 0.7rem 1rem;
    font-size: 0.7rem;
  }

  /* Image */
  .p2 img {
    max-width: 100%;
    height: auto;
  }

  /* Options checkboxes */
  .options label {
    font-size: 15px;
  }
}

/* ── Phone (≤480px) ── */
@media screen and (max-width: 480px) {
  body {
    padding: 12px 10px;
    font-size: 13px;
  }

  h1 { font-size: 19px; }
  h2 { font-size: 15px; }

  .slider-input {
    width: 110px;
  }

  .text-input {
    width: 110px;
    font-size: 13px;
  }

  .text-input2 {
    width: 54px;
  }

  /* Toggle even smaller */
  .lang-toggle {
    top: 8px;
    right: 8px;
    padding: 2px;
    border-radius: 8px;
  }

  .lang-option {
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 6px;
  }

  /* Compress slider row for narrow screens */
  .slider-row {
    gap: 2px;
  }

  .slider p {
    font-size: 12px;
    margin-bottom: 2px;
  }

  .slider {
    margin-bottom: 2px;
  }

  /* GitHub nav - horizontal scroll if needed */
  header ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    gap: 3px;
  }

  header ul a {
    padding: 5px 10px;
    font-size: 11px;
    white-space: nowrap;
  }

  header ul a strong {
    font-size: 12px;
  }

  /* Popup */
  .popup-content,
  .popup-content2 {
    width: 96%;
    max-height: 80vh;
    padding: 12px;
  }

  .close-btn,
  .close-button {
    font-size: 24px;
  }

  /* Code blocks */
  pre, codestring {
    font-size: 10px;
    padding: 5px 8px;
  }

  /* Smaller buttons */
  .button-35 {
    padding: 0.55rem 0.8rem;
    font-size: 0.65rem;
    border-radius: 8px;
  }

  /* Options */
  .options label {
    font-size: 13px;
    margin-left: 6px;
  }

  .options input[type="checkbox"] {
    transform: scale(1.2);
  }
}

@media print {
  body {
    padding:0.4in;
    font-size:12pt;
    color:#444;
  }
}

/* ── Language Toggle Switch ── */
.lang-toggle {
  position: fixed;
  top: 16px;
  right: 24px;
  z-index: 10000;
  display: inline-flex;
  background: #e8e8e8;
  border-radius: 10px;
  padding: 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  gap: 2px;
}

.lang-option {
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: Lato, "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #666;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.lang-option:hover {
  color: #333;
}

.lang-option.active {
  background: #222;
  color: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
