@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');


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

/* =========================
   MAIN GRID LAYOUT
========================= */

.parent {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 300px;
  grid-template-rows: auto;
  gap: 5px;
  padding: 10px;
  max-width: 1200px;
  margin: auto;
}

/* =========================
   TITLE
========================= */

#title {
  grid-area: 1 / 1 / 2 / 6;
  text-align: center;
  padding: 10px;
}

/* =========================
   STATS BOXES
========================= */

#div1,#div3,#div5,#div7 {
  background: #fd7b3d;
  color: white;
  padding: 10px;
  text-align: center;
  font-size: 20px;
}

#div2,#div4,#div6,#div8 {
  background: white;
  padding: 10px;
  text-align: center;
  font-size: 20px;
  border: 1px solid #ddd;
}

/* =========================
   GRID AREAS
========================= */

#div1 { grid-area: 2 / 1 / 3 / 2; }
#div2 { grid-area: 3 / 1 / 4 / 2; }

#div3 { grid-area: 2 / 2 / 3 / 3; }
#div4 { grid-area: 3 / 2 / 4 / 3; }

#div5 { grid-area: 2 / 3 / 3 / 4; }
#div6 { grid-area: 3 / 3 / 4 / 4; }

#div7 { grid-area: 2 / 4 / 3 / 5; }
#div8 { grid-area: 3 / 4 / 4 / 5; }

/* =========================
   TEXTAREA
========================= */

#div9 {
  grid-area: 4 / 1 / 5 / 5;
}

#userInput {
  width: 100%;
  height: 150px;
  padding: 12px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid #ccc;
  resize: vertical;
  outline: none;
}

/* =========================
   BUTTON AREA
========================= */

#div11 {
  grid-area: 5 / 1 / 6 / 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 10px;
  border-radius: 10px;
}

.buttonBox button {
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-left: 5px;
}

.clearButton {
  background: #e74c3c;
  color: #fff;
}

.copyButton {
  background: #2ecc71;
  color: #fff;
}

/* =========================
   TABLE
========================= */

#div10 {
  grid-area: 6 / 1 / 7 / 6;
  background: #fff;
  padding: 10px;
  border-radius: 10px;
  overflow-x: auto;
}


/* =========================
   RESPONSIVE
========================= */

/* TABLET */
@media only screen and (max-width: 992px) {

  .parent {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

}

/* MOBILE */
@media only screen and (max-width: 768px) {

  .parent {
    grid-template-columns: 1fr;
  }

  #title,
  #div1,#div2,#div3,#div4,
  #div5,#div6,#div7,#div8,
  #div9,#div10,#div11 {
    grid-column: 1 / -1;
    grid-area: auto !important;
  }

  #div11 {
    /*flex-direction: column;*/
    gap: 10px;
    align-items: stretch;
  }

  .buttonBox {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
  }

  .buttonBox button {
    padding: 6px 10px;
    font-size: 14px;
  }

}

/* SMALL MOBILE */
@media only screen and (max-width: 480px) {

  .parent {
    padding: 8px;
  }

  #div1,#div2,#div3,#div4,
  #div5,#div6,#div7,#div8 {
    font-size: 16px;
  }

}























p {
  margin-top: 1em;
  margin-bottom: 1em;
}

.my-bordered-text {
  text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}

.separator {
  height: 25px;
}

tr {
  background: red;
}

table {
  font-family: "Anonymous Pro", monospace;
  border-collapse: separate !important;
}

th,
td {
  border: 1px solid black;
  text-align: center;
  vertical-align: middle;
}

.skippedCells {
  background-color: #eee !important;
  border: 1px dotted #eee;
}

#explanation {
  font-size: 16px;
  line-height: normal;
  text-align: left;
}

/* .show {
  display: none;
} */

#text-content {
  padding: 5px;

  font-size: 18px;
  line-height: 1.6;
}

.sidebar {
  grid-area: 1 / 5 / 8 / 6;
}

/*
    Start
*/

td {
  width: 24px;
  height: 24px;
  background-color: white;
  border-spacing: 0px 20px;
}


      .key-container {
            display: flex;
            align-items: center;
            gap: 20px;
            padding: 10px 0px;
            width: fit-content;
            font-size: 12px;
        }
        .key-item {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .key-box {
            width: 20px;
            height: 20px;
            border-radius: 3px;
        }
        .gsm {
            background-color: lightgray;
        }
        .extended-gsm {
            background-color:#f34848;
        }
        .unicode {
            background-color: #f3f348;
        }





#copiedText,
#copiedTextBlank {
  display: none;

  min-width: 200px;

  color: #fff;
  text-align: center;
  padding: 12px 16px;
  border-radius: 6px;

  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);

  font-size: 16px;
}

/* error */
#copiedTextBlank {
  background: #d9534f;
}

#copiedText{
 background: #5cb85c;   
}

/* show */
#copiedText.show,
#copiedTextBlank.show {
  display: block;
  animation: slideUp 0.25s ease;
}

/* animation */
@keyframes slideUp {
  from {
    transform: translate(-50%, 20px);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}
