* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  border: none;
  outline: none;
}
html {
  scroll-behavior: smooth;
  font-size: clamp(12px, 2vw, 16px);
}
*::-webkit-scrollbar {
  width: 0;
  height: 0;
}
body {
  background-color: rgb(186, 224, 255);
  font-family: sans-serif;
}
.container {
  max-width: 1600px;
  margin: auto;
  width: 100%;
  min-height: 100vh;
}
.nav {
  height: 70px;
  width: 100%;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  overflow: scroll;
  background-color: rgba(0, 0, 0, 0.5);
}
.nav button,
label {
  cursor: pointer;
  display: inline-block;
  padding: 0.8rem 2.6rem;
  border-radius: 6px;
  font-size: 1rem;
  background-color: crimson;
  color: #fff;
}
.text-editor {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  min-height: calc(100vh - 70px);
}
.text {
  padding: 1rem;
  background-color: #fff;
  color: #222;
  font-weight: 200;
  width: 100%;
  height: 100%;
  border-right: 0.5rem black solid;
  border-top: 5px rgb(12, 8, 8) solid;
  overflow:auto;
}

iframe {
  overflow: auto;
  width: 100%;
  background-color: azure;
  height: 100%;
  border-top: 5px rgb(12, 8, 8) solid;
}

#live {
  display: none;
}
#show-nav {
  position: fixed;
  bottom: 0%;
  z-index: 99;
  left: 0;
  padding: 8px 26px;
  border-radius: 6px;
  background-color: crimson;
  color: #fff;
  border: none;
  cursor: pointer;
  display: none;
}

/* media query */
@media screen and (max-width: 750px) {
  .nav {
    height: 60px;
  }
  .text-editor {
    font-size: 1.5rem;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, min(calc(100vh - 40px)));
  }
}
