@import url(https://cdn.jsdelivr.net/gh/sunn-us/SUIT/fonts/static/woff2/SUIT.css);

@font-face {
  font-family: "hwt-lustig-elements", sans-serif;
  font-weight: 400;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
}

button {
  color: #000;
}

/* .alert{
  background-color: white;
  border: 1px solid black;
  padding: 1rem;
} */

body {
  font-family: "SUIT-Regular", sans-serif;
  /* font-weight: 400; */
  font-size: 18px;
  /* font-weight: 400; */
  word-break: break-all;
  padding: 0;
  margin: 2rem 4rem;
  background-color: rgb(246, 246, 246);
  line-height: 1.6;
  color: #000;
  overflow-x: hidden;
}

.webpreview-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding-bottom: 5rem;
  background-color: greenyellow;
  border: 1px solid black;
  padding: 1rem;
  margin: 5rem 0;
}

.webpreview-container a {
  text-decoration: none;
  list-style-type: none;
  color: blue;
}

.webpreview-container ul {
  background-color: white;
  border-left: 1px solid black;
  border-right: 1px solid black;
  border-bottom: 1px solid black;
}

.webpreview-container li {
  border-top: 1px solid black;
  padding: 1rem 1rem;
  list-style-type: none;
}

/* .webpreview-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  border: 1px solid black;
}

.webpreview-iframe {
  overflow
  position: absolute;
  top: 0; left: 0;
  width: 1280px;
  height: 720px; 
  transform: scale(0.5);
  transform-origin: 0 0;
} */

@media screen and (max-width: 768px) {
  body {
    font-size: 16px;
    margin: 1rem;
    /* word-break: break-all; */
  }
  .credit a {
    font-size: 7px !important;
  }
}
header {
  /* font-family: "hwt-lustig-elements", sans-serif;
  font-size: 10rem;
  padding-bottom: 3rem; */
  display: grid;
  grid-template-columns: 2fr 2fr 1fr;
  padding-bottom: 2rem;
  padding-top: 2rem;
  gap: 2rem;
}

hr {
  /* margin-bottom: 5rem; */
  border: 0.5px solid;
}

.box:first-child {
  background-color: greenyellow;
}

.box:last-child {
  background-color: rgb(232, 232, 232);
  margin-bottom: 0;
}

@media screen and (max-width: 768px) {
  .box:last-child {
    /* margin-bottom: 1rem; */
  }
}

.box {
  border: 1px solid #000;
  padding: 1rem;
  background-color: white;
  /* border-radius: 0.5rem; */
  margin-bottom: 1rem;
  position: relative;
  z-index: 9999;
  /* overflow: visible; */
  /* padding-bottom: 2rem; */
}

.code-preview {
  /* width: 100%; */
  color: greenyellow;
  padding: 1rem;
  background-color: #080729;
  /* border: 1px solid white; */
  border-radius: 1rem;
  margin-top: 1rem;
}

.fontpreview-comments {
  padding: 0;
  list-style-type: none;
}

.fontpreview-comments li {
  /* display: grid;
  grid-template-columns: 1fr 0fr; */
  background-color: greenyellow;
  border: 1px solid #000;
  text-decoration: none;
  padding: 0.5rem;
  margin: 0.5rem 0;
  border-radius: 5px;
  height: fit-content;
  word-break: break-all;
  word-wrap: break-all;
}

.font-preview-container {
  height: 100%;
  /* font-size: 20px; */
  /* color: white; */
}

.font-preview-container ul {
  padding: 0;
  list-style-type: none;
}

.font-preview-container li {
  /* display: grid;
  grid-template-columns: 1fr 0fr; */
  border: 1px solid #000;
  text-decoration: none;
  padding: 0.5rem;
  margin: 0.5rem 0;
  background-color: #eeeeee;
  /* border-radius: 5px; */
  height: fit-content;
  word-break: break-all;
  word-wrap: break-all;
}

strong {
  /* padding-bottom: 1rem; */
}

h3 {
  padding-bottom: 1rem;
  /* color: rgb(75, 255, 75); */
}

.font-preview-container {
  /* padding-left: 2rem; */
}

/* 댓글 입력 폼 스타일 */
form {
  background-color: #fff;
  border: 1px solid #000;
  padding: 20px;
  /* border-radius: 5px; */
  /* margin-top: 20px; */
}

.form-field {
  margin-bottom: 10px;
}

label {
  display: block;
  margin-bottom: 1rem;
  font-weight: bold;
  font-size: 1.5rem;
}

input[type="text"],
input[type="website"],
textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
  margin-top: 1rem;
}

input[type="submit"] {
  background-color: white;
  /* color: white; */
  border: 1px solid #000;
  padding: 10px 20px;
  /* border: none; */
  border-radius: 4px;
  cursor: pointer;
  /* float: right; */
  position: relative;
  bottom: 0;
  color: #000;
}

input[type="submit"]:hover {
  background-color: #eee;
  color: #000;
}

.honeypot {
  display: none;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.fontpreview-layout {
  /* background-color: white; */
  /* height: 80vh; */
  /* border: 1px solid black; */
  /* padding: 3rem; */
  /* background-color: greenyellow; */
  /* width: 100%;
  height: 100%;
  display: flex;
  position: relative; */
  /* overflow: hidden; */
  overflow: visible;
}

.fontpreview-wrap {
  /* padding: 1rem; */
  margin-top: 5rem;
  display: grid;
  grid-template-columns: 4fr 3fr;
  gap: 3rem;
  overflow: visible;
  /* padding: 6rem;
  margin: 0 -3rem; */
  /* border: 1px solid #ccc; */
  /* background-color: white; */
  /* width: 100%; */
  height: 100%;
  /* overflow: hidden; */
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

:root {
  --font-size: 30px;
}

.cls-1 {
  fill: #231815;
}

.horizontal-tb {
  display: none;
}

/* 댓글 목록 스타일 */
.comment {
  display: grid;
  grid-template-rows: 4fr 1fr;
  overflow: hidden;
}

.fontpreview-comments {
  border: 1px solid black;
  padding: 1rem;
  background-color: rgb(232, 232, 232);
  overflow-y: scroll;
  margin-bottom: 1rem;
  /* margin-top: 1rem; */
}

.fontpreview-comments span {
  color: #ccc;
  float: right;
  display: contents;
  font-size: 0.75rem;
}

.fontpreview {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-bottom: 5rem;
}

.fontpreview div {
  box-sizing: border-box;
}

.editableDiv {
  /* display: inline-table;
  margin-top: 1rem;
  overflow: hidden;
  background-color: white;
  height: 100%; */
}

#editableDiv {
  margin-top: 1rem;
  border: 1px solid #000;
  /* float: inline-end; */
  outline: none;
  color: #000;
  -webkit-appearance: none;
  -moz-appearance: none;
  writing-mode: horizontal-tb;
  /* display: flex; */
  width: 100%;
  /* position: fixed; */
  height: 600px;
  /* margin-bottom: 20px; */
  background-color: white;
  overflow-y: scroll;
  overflow-x: hidden;
  padding: 15px;
  box-sizing: border-box;
  font-size: var(--font-size);
  line-height: calc(1.5 * 30px);
}

@media screen and (max-width: 768px) {
  #editableDiv {
    height: 400px;
  }
}

.credit a {
  font-size: 10px;
  color: #ccc;
  display: block;
  text-decoration: none;
  width: fit-content;
  /* text-align: right; */
}

.download {
  padding-left: 1rem;
  text-align: right;
  box-sizing: border-box;
  padding-right: 0.25rem;
}

.nameOfRange {
  width: 30px;
  float: left;
}

.intro {
  margin-top: 7px;
  margin-left: 7px;
  float: left;
  font-size: 15px;
  font-weight: bold;
}

#fontSelect {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  color: #000;
  width: 100%;
  height: 45px;
  float: left;
  border: 1px solid #000;
  padding: 8px;
  font-size: 18px;
  background: transparent;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M7.5 12.8l-4.6-5.2c-.2-.2-.2-.6 0-.8l.7-.7c.2-.2.6-.2.8 0l3.1 3.5L12.1 4c.2-.2.6-.2.8 0l.7.7c.2.2.2.6 0 .8L8.5 12.8c-.2.2-.6.2-.8 0z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 12px;
  cursor: pointer;
  /* margin-right: 20px; */
  /* margin-bottom: 20px; */
  background-color: white;
}

#writingMode .nameofrange:nth-child(2) {
  display: none;
}

.textDirection {
  -o-appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  appearance: none;
  float: left;
  padding: 5px;
  color: #000;
  margin-top: 2px;
  font-size: 16px;
  background: transparent;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M7.5 12.8l-4.6-5.2c-.2-.2-.2-.6 0-.8l.7-.7c.2-.2.6-.2.8 0l3.1 3.5L12.1 4c.2-.2.6-.2.8 0l.7.7c.2.2.2.6 0 .8L8.5 12.8c-.2.2-.6.2-.8 0z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 12px;
  cursor: pointer;
  background-color: white;
  border: 1px solid #000;
}

.disabled-option {
  color: grey;
  pointer-events: none;
}

.fontpreview-mobile {
  width: 100%;
  height: 100%;
  display: none;
}

iframe {
  border: none;
}
#fristSection {
  -webkit-appearance: none;
  -moz-appearance: none;
  display: grid;
  grid-template-columns: 1fr 3fr 0fr;
  padding-bottom: 1rem;
  height: fit-content;
  gap: 1rem;
  /* display: block; */
}

#secondSection {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-gap: 0 2rem;
  background-color: white;
  padding: 10px;
  border: 1px solid #000;
  align-items: center;
  height: fit-content;
  /* display: block; */
  /* padding-top: 1rem; */
}

.type-set input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 2px;
  outline: none;
  margin: 0;
  border-radius: 20px;
  border: solid 1px #000000;
  background: white;
}

.type-set input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 20px;
  border: solid 1px #000000;
  background: white;
  cursor: pointer;
}

.type-set input[type="range"]::-webkit-slider-thumb:hover {
  background: black;
}

/* .grep {
  vertical-align: 0.5rem;
  margin-top: -1rem;
  letter-spacing: 0.5rem;
} */

@media screen and (max-width: 768px) {
  .fontpreview-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    /* padding: 2rem; */
  }
  .webpreview-wrap {
    display: grid;
    grid-template-columns: 1fr;
  }

  header {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  header div:nth-child(3) {
    display: none;
  }
  .comment {
    /* grid-template-rows: 1fr 1fr; */
    padding-top: 2rem;
  }
  .fontpreview-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    /* padding: 2rem; */
  }

  :root {
    --font-size: 25px;
  }

  .editableDiv {
    line-height: calc(1.5 * 20px);
  }

  #secondSection {
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
  }

  #fristSection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    line-height: 1.2;
  }
  .download {
    display: none;
  }
  .fontpreview-mobile {
    display: flex;
  }
  /* .fontpreview-desktop{
    display: none;
  } */
}

.font-preview-title {
  /* color: #2c3e50; */
  margin-bottom: 20px;
}

.font-preview-description {
  /* color: #34495e; */
  line-height: 1.6;
}
