@import "./reset.css";

* {
  box-sizing: border-box;
}
:root {
  --main-color: #ffffff;
  --body-color: #eff1f3;
  --text-color: #121212;
  --border-color: #1e63f9;
  --font-family: Roboto, sans-serif;

  --theme-bg-color: #000000;
  --theme-tx-color: #fff;

  --border-radius: 0.6rem;
  --gap: 0.8rem;
}

html,
body {
  font-size: 14px;
  /* background-color: var(--body-color); */
  font-family: Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: linear-gradient(-45deg, #8652ee, #23a6d5, #23d5ab);

  background-size: 100%;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;

  /* animation: gradient 15s ease infinite; */
}
#background-image {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100vh;
  /* -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px); */
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.container {
  width: 100%;
  height: 100vh;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.wapper {
  width: 60%;
}

/* nav bar start */
nav {
  width: 100%;
  height: 3rem;
  background-color: var(--main-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.6rem;
  border-radius: var(--border-radius);
}

nav .logo {
  width: 30px;
  height: 30px;
}

nav .logo img,
nav .logo svg {
  width: 100%;
  height: 100%;
}
nav .logo svg g {
  fill: var(--theme-bg-color);
}

nav .nav_menu ul {
  display: flex;
  align-items: center;
}

nav .nav_menu ul a {
  padding: 0.2rem 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--theme-bg-color);
}
nav .nav_menu ul a i {
  font-size: 1.2rem;
  margin-top: 0.1rem;
  color: red;
}
/* nav bar End */

.main_conatiner {
  margin-top: var(--gap);
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius);
  position: relative;
}

/* html block => input and display area start */
.html_block {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: auto var(--gap) 40%;
}
/* main */
.html_main_block {
  width: 100%;
  height: 100%;
  padding: 0.6rem 0.6rem;
  background-color: var(--main-color);
  border-radius: var(--border-radius);
}

.input_block {
  padding: 0.6rem 0.6rem;
  border: 1px solid var(--theme-bg-color);
  border-radius: var(--border-radius);
}

.input_block textarea {
  width: 100%;
  resize: none;
  border: none;
  outline: none;
  background-color: transparent;
  font-size: 1.2rem;
}
.input_btns {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.input_btns input {
  accent-color: var(--theme-bg-color);
}
/* Preview block start  */
.preview_block {
  width: 100%;
  height: 100%;
  background-color: var(--main-color);
  padding: 0.6rem;
  display: grid;
  grid-template-rows: 90% auto;
  align-content: space-between;
  border-radius: var(--border-radius);
}
.preview_block .canves {
  width: 100%;
  height: 100%;

  border-radius: var(--border-radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.preview_block #qr {
  width: 100%;
  height: 100%;
}

.preview_block .canves svg {
  border-radius: var(--border-radius);
  width: 100%;
  height: 100%;
}
/* footer */

footer {
  margin-top: var(--gap);
  width: 100%;
  height: 4rem;
  background: #1e1e1e;
  border-radius: var(--border-radius);
  color: #9c9c9c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}

footer a {
  color: #fff;
}
footer p {
  margin-top: 0.2rem;
}
.setting_block {
  width: 100%;
  height: 100%;
  background-color: var(--main-color);
  position: absolute;
  z-index: 99;
  border-radius: var(--border-radius);
  display: none;
}
.setting_main {
  width: 100%;
  height: 100%;
  /* display: flex;
  align-items: center;
  justify-content: center; */
}
.theme_block {
  width: 100%;
  height: 100%;
}
.grid {
  width: 100%;
  /* height: 100%; */
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* justify-content: space-between; */
  /* align-items: center; */
  grid-gap: 1rem;
  padding: 1rem;
}
.theme_block input {
  accent-color: var(--theme-bg-color);
}
.grid_items {
  width: 100%;
  height: 6rem;
  background-color: orange;
  border-radius: var(--border-radius);
  background-size: 100%;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 100%;
}

.grid_items label {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0.4rem;
}
.grid_items input {
  display: block;
  width: 1rem;
  height: 1rem;
}

.theme_setting {
  border-top: 1px solid var(--body-color);
  padding: 0.8rem 0.4rem;
}

.theme_range-block {
  display: flex;
  flex-direction: column;
  /* align-items: center; */
}
.theme_range-block input {
  accent-color: var(--theme-bg-color);
}
/* root  */
#notification {
  background-color: var(--main-color);
  border-radius: var(--border-radius);
  padding: 1rem;
  display: none;

  position: fixed;
  bottom: 4rem;
  right: 2rem;
}
#notification a {
  color: var(--theme-bg-color);
  cursor: pointer;
  border-bottom: 1px solid transparent;
}
#notification a:hover {
  text-decoration: underline;
  color: var(--theme-bg-color);
  border-bottom: 1px solid var(--theme-bg-color);
}

button {
  display: inline-block;
  text-transform: capitalize;
  font-weight: 400;
  line-height: 1.53;
  color: #697a8d;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.2rem 1.25rem;
  font-size: 0.9375rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease-in-out;
  color: #fff;
  background-color: var(--theme-bg-color);
  border-color: var(--theme-bg-color);
  box-shadow: 0 0.125rem 0.25rem 0 rgb(105 108 255 / 40%);
}
#status {
  display: none;
}
#loader {
  width: 100%;
  height: 100%;
  position: absolute;
  background-color: var(--main-color);
  align-items: center;
  justify-content: center;
  display: none;
}
.loader {
  border: 4px solid #f3f3f3;
  border-radius: 50%;
  border-top: 4px solid var(--theme-bg-color);
  width: 50px;
  height: 50px;
  -webkit-animation: spin 2s linear infinite; /* Safari */
  animation: spin 0.2s linear infinite;
}

/* Safari */
@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* * -------------------MEDIA----------------- */
@media screen and (max-width: 1024px) {
  .wapper {
    width: 90%;
  }
}
@media screen and (max-width: 768px) {
  .wapper {
    width: 90%;
  }
}
@media screen and (max-width: 624px) {
  :root {
    --border-radius: 0.4rem;
    --gap: 0.4rem;
  }
  .container {
    display: block;
    height: 100%;
  }

  .wapper {
    width: 100%;
  }
  .main_conatiner {
    background-color: var(--main-color);
    height: 100%;
  }
  .html_block {
    height: 100%;
    display: grid;
    grid-template-columns: 100%;
  }
  .html_main_block {
    grid-area: 2;
  }
  .preview_block {
    grid-area: 1;
  }
  footer {
    flex-direction: column;
    justify-content: center;
    padding: 0.6rem;
  }
}
