* {
  margin: 0;
}
::-webkit-scrollbar {
  width: 0.5rem;
}
::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 0.5rem;
}
::-webkit-scrollbar-thumb {
  background: #5476b6;
  border-radius: 0.5rem;
}
::-webkit-scrollbar-thumb:hover {
  background: #5476b6cc;
  cursor: pointer !important;
}
body {
  color: #fff;
  background-color: #075688;
  font-family: Fira Code, SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace;
}
input,
button,
select,
option {
  background-color: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 1rem;
}
.app {
  width: 80vw;
  height: 100vh;
  padding: 1rem;
  margin: auto;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.title {
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  div {
    text-align: center;
  }
}
.inp {
  gap: 0.5rem;
  height: 3rem;
  width: fit-content;
  display: flex;
  align-items: center;
  border: 2px solid #5476b6;
  padding: 0 1rem;
  padding-inline-end: 0;
  font-size: 1rem;
  line-height: 1.5rem;
  border-radius: 0.5rem;
  background-color: transparent;
  overflow: hidden;
}
.inp input {
  width: 4rem;
  text-align: center;
  font-size: 1.25rem;
  color: #fff;
}
.inp input::placeholder {
  color: #9ca3af;
}
.btn {
  background-color: #5476b6;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}
.btn:hover {
  background-color: #5476b6cc;
}
.btn:active {
  transform: scale(1.1);
}
.convert {
  height: 100%;
  margin-inline-start: 1rem;
  padding: 0 1rem;
  font-size: 1.25rem;
}
select {
  background-color: #075688;
  color: #fff;
  font-size: 1rem;
  border: 2px solid #5476b6;
  border-radius: 0.5rem;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.3s;
  appearance: none;
}
select:hover {
  border-color: #5476b6cc;
}
select:focus {
  outline: none;
  border-color: #5476b6cc;
}
option {
  background-color: #5476b6;
  color: #fff;
}
.main {
  flex: 1;
  margin-top: 1rem;
  display: flex;
  position: relative;
  overflow: auto;
}
.res {
  flex: 1;
  padding: 0.5rem;
  color: #fff;
  border-radius: 0.5rem;
  border: 2px solid #5476b6;
  resize: none;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.opts {
  position: absolute;
  right: 0.5rem;
  top: 0.5rem;
}
.copy {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
}
.dialog {
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.3);
  outline: none;
  border: none;
}
.dialog-main {
  width: fit-content;
  margin: auto;
  margin-top: 15vh;
  padding: 1rem;
  border-radius: 0.5rem;
  background-color: #075688;
  color: #fff;
  position: relative;
}
.dialog-main h2 {
  font-size: 1rem;
  text-align: center;
  margin-bottom: 0.5rem;
}
.dialog-main h2:last-child {
  margin-bottom: 0;
}
.qr-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.qr-wrap img {
  height: 45vh;
}
@media screen and (max-width: 960px) {
  .app {
    width: 95vw;
  }
  .title {
    display: block;
  }
  .inp {
    margin: auto;
  }
  .qr-wrap img {
    height: 30vh;
  }
}
