@font-face {
  font-family: "Vazir";
  src: url("/fonts/vazir.woff2") format("woff2");
}

:root {
  --theme-color: #007acc;
}

body,
html {
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Vazir", sans-serif;
  background: #1e1e1e;
  color: white;
  -webkit-user-select: none !important;
  user-select: none !important;
}

button,
input,
select,
option {
  font-family: "Vazir" !important;
  outline: none !important;
}

select {
  text-align: center;
}

header {
  background: #252526;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

#tabs {
  display: flex;
  gap: 8px;
}

#tabs button {
  background: #333;
  border: none;
  color: #ccc;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: bold;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

#tabs button.active {
  color: white;
  border-bottom-color: var(--theme-color);
  background: #1e1e1e;
}

#controls {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-evenly;
  gap: 10px;
}

#controls select,
#controls button,
#feedbackBtn {
  cursor: pointer;
  background: var(--theme-color);
  border: none;
  color: white;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: bold;
}

#controls select {
  min-width: 130px;
}

#controls button:hover,
#controls select:hover,
#feedbackBtn:hover {
  filter: brightness(0.75);
}

#editor {
  flex: 1;
  height: calc(100vh - 220px);
}

#preview {
  height: 40vh;
  width: 100%;
  border: none;
  background: white;
}

#buttons {
  background: #252526;
  padding: 10px 20px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

#buttons button {
  cursor: pointer;
  background: var(--theme-color);
  border: none;
  color: white;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.3s ease;
}

#buttons button:hover {
  filter: brightness(0.75);
}

#developed-by {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: "Consolas", monospace;
  font-size: 0.85rem;
  color: #888;
  background: transparent;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  margin: 2rem auto 1rem;
  transition: background-color 0.2s ease, color 0.2s ease;
  opacity: 0.8;
}

#developed-by:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: #fff;
  opacity: 1;
}

#developed-by i {
  font-size: 1rem;
  transition: transform 0.2s ease;
}

#developed-by:hover i {
  transform: translateX(3px);
}

@media (hover: none) and (pointer: coarse) {
  *:focus {
    outline: none;
  }
}

.my-popup {
  background-color: #1e1e1e !important;
  color: #fff !important;
}

.my-confirm {
  background-color: #2196f3 !important;
  color: #fff !important;
  border: none !important;
  cursor: pointer;
}

.my-cancel {
  background-color: #f44336 !important;
  color: #fff !important;
  border: none !important;
  cursor: pointer;
}

.my-container {
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.my-actions {
  direction: ltr;
}

.my-popup {
  background-color: #1e1e1e !important;
  color: #fff !important;
}

.my-confirm {
  background-color: #2196f3 !important;
  color: #fff !important;
  border: none !important;
}

.my-cancel {
  background-color: #f44336 !important;
  color: #fff !important;
  border: none !important;
}

.my-container {
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.my-actions {
  direction: ltr;
}

.allContainer {
  position: relative;
}

.menuContainer {
  display: none;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  top: 2rem;
  left: 0px;
  position: absolute;
  width: 200px;
  z-index: 1000;
  background: #252526;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 10px;
  box-shadow: 0 0 20px #1c1c1c;
}

.menuLable {
  cursor: pointer;
  padding: 7px 15px;
  background-color: #44444476;
  border-radius: 5px;
}

.menuLable:hover {
  background-color: #555;
}

.menuLable:hover + .menuContainer {
  display: flex;
}

.menuContainer:hover {
  display: flex;
}

.headerBtns {
  display: flex;
  gap: 10px;
  align-items: center;
}

.accountMenuAllContainer {
  display: none;
}

.login-btn {
  background-color: transparent;
  border: 1px solid currentColor;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.9rem;
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 0.2s ease, transform 0.2s ease;
  z-index: 999;
  cursor: pointer;
}

.login-btn:hover {
  background-color: rgba(255 255 255 / 0.1);
  transform: scale(1.05);
}

body.light .login-btn:hover {
  background-color: rgba(0 0 0 / 0.05);
}

.login-btn i {
  font-size: 1rem;
}

#quitAcc {
  background-color: #da191f !important;
}

#quitAcc:hover {
  background-color: #ad141a !important;
}

@media screen and (max-width: 570px) {
  #tabs {
    flex-direction: column;
    gap: 20px;
  }

  #controls {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
    justify-content: stretch;
  }

  .menuLable:not(.accountOptions) {
    display: inline-block;
    width: 65px;
    text-align: center;
  }

  #preview {
    height: 25vh;
  }
}

.phoneMessage {
  display: none;
  font-family: "Vazir";
  color: black;
}

@media screen and (max-width: 323px) {
  #feedbackBtn {
    display: none !important;
  }
}

@media screen and (max-width: 255px) {
  body {
    display: none;
  }
}
