body {
  background-color: rgb(255, 255, 255);
  overflow: hidden;
}

@font-face {
  font-family: "n";
  src: URL('/fonts/RubikGlitch-Regular.ttf') format('truetype');
}

.p1 {
  font-family: "n";
  src: URL('/fonts/RubikGlitch-Regular.ttf') format('truetype');
  /* text-shadow: var(--shadowcolor) 5px 5px; */
  margin-bottom: 10px;
  color: var(--textcolor);
  -webkit-user-select: none;
  /* top: 40%;
    left: 50%;
    transform: translate(-50%,-50%);
    position: fixed; */
  /* color: azure; */
}

:root {
  --firstcolor: #dddddd93;
  --secondcolor: #707070c9;
  --shadowcolor: #0000008a;
  --placecolor: #707070;
  --textcolor: #000000;
  --hovtextcolor: #363636;
}

:root[theme='dark'] {
  --firstcolor: #2020206c;
  --secondcolor: #363636;
  --shadowcolor: #ffffff7d;
  --placecolor: #707070;
  --textcolor: #ffffff;
  --hovtextcolor: #b3b3b3;
}

.mobmessage {
  color: azure;
  margin-top: 20%;
}

.toolbox:hover {
  /* width: 201px; */
}

#registerbox {
  color: var(--textcolor);
  display: none;
  animation-name: showregister;
  animation-duration: 0, 5s;
}

@keyframes showregister {
  from {
    width: auto;
  }

  to {
    width: 370px;
  }
}

.toolbox {
  padding-top: 35px;
  top: 5%;
  left: 98%;
  transform: translate(-98%, -5%);
  position: fixed;
  z-index: 20;
  margin-top: 10px;
  margin-right: 10px;
  width: 100px;
  height: 300px;
  -webkit-user-select: none;
}

.openedbox {
  margin-top: 15px;
  height: 130px;
  width: 165px;
  animation-duration: 0.5s;
  animation-name: opentoolbox;
  margin-left: -66px;
  color: var(--textcolor);
}

.closedbox {
  animation-duration: 0.5s;
  animation-name: closetoolbox;
  width: 0px;
  opacity: 0;
  color: var(--textcolor);
}

@keyframes closetoolbox {
  0% {
    height: 130px;
    width: 165px;
    opacity: 1;
    margin-left: -66px;
    margin-top: 15px;
  }

  99% {
    opacity: 1;
  }

  100% {
    margin-top: -40px;
    margin-left: 15px;
    height: 0px;
    opacity: 0;
    width: 0px;
  }
}


@keyframes opentoolbox {
  from {
    margin-top: -40px;
    margin-left: 15px;
    height: 0px;
    width: 0px;
  }

  to {
    margin-top: 15px;
    margin-left: -66px;
    height: 130px;
    width: 165px;
  }
}


.gearbutton {
  /* width: 100px; */
  height: 30px;
  width: 30px;
  color: var(--textcolor);
  /*top: 9%;
    left: 95%;
    transform: translate(-50%,-50%);
    position: fixed;
  font-size: 21px;
  z-index: 999; */
}

.gearbutton:hover {
  /* color: gray; */
}

.mainbox {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  position: fixed;
  text-align: center;
}

.registerbox {
  border: 2px solid var(--secondcolor);
  border-left: 4px solid var(--secondcolor);
  border-right: 4px solid var(--secondcolor);
  box-shadow: var(--firstcolor) 5px 5px;
  padding: 10px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  position: fixed;
  text-align: center;
}

.fa2box {
  color: azure;
  border: 2px solid var(--secondcolor);
  border-left: 4px solid var(--secondcolor);
  border-right: 4px solid var(--secondcolor);
  box-shadow: var(--firstcolor) 5px 5px;
  padding: 10px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  position: fixed;
  text-align: center;
}

.butflex {
  display: flex;
  justify-content: space-around;
}

.but {
  border: solid var(--secondcolor) 2px;
  font-size: 20px;
  width: 90px;
  margin: 10px;
  margin-top: 30px;
}

.but:hover {
  cursor: pointer;
  border: solid rgb(68, 68, 68) 2px;
}

.loginbox {
  /* top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    position: fixed; */
  /* height: 160px; */
  /* border: 2px solid azure; */
  border: 2px solid var(--secondcolor);
  border-left: 4px solid var(--secondcolor);
  border-right: 4px solid var(--secondcolor);
  padding: 10px;
  /* background: #2A2A2A; */
  background: var(--firstcolor);
  padding-bottom: 10px;
}

.inputform {
  background-color: var(--firstcolor);
  margin-bottom: 20px;
  /* color: azure; */
  color: var(--textcolor);
  height: 27px;
  width: 200px;
  margin: 5px;
  text-align: center;
  font-size: 20px;
  /* background: #2A2A2A; */
  background: var(--firstcolor);

}

label img {
  margin-bottom: -2px;
}

.cap4a {
  margin-top: 2px;
  /*
    width: 300px;
    height: 65px;
    border:#20272F solid 1px;
    align-items: center;
    
    padding-left: -10px;*/
}

iframe {
  width: 97.8% !important;

  /* height: 55px !important; */
}

.butonlogreg {
  border: 2px var(--textcolor);
  height: 27px;
  width: 95%;
  /* color: azure; */
  text-align: center;
  font-size: 1rem;
  margin: 5px;
  border: 2px solid var(--secondcolor);
  margin-top: 5px;
  padding: 4px;
  color: var(--textcolor);
  background: var(--firstcolor);
  font-size: 24px;
  -webkit-user-select: none;
}

.butonlogreg:hover {
  /* background-color: darkgrey; */
  color: var(--hovtextcolor);
  cursor: pointer;
  border-left: 2px solid var(--secondcolor);
  border-right: 2px solid var(--secondcolor);
  box-shadow: #838383 1px 1px;
}

.butonforpass {
  font-size: 12px;
  cursor: pointer;
  color: var(--textcolor);
}

.butonforpass:hover {
  color: var(--hovtextcolor);
}

.notify {
  width: 470px;
  border: 1px solid var(--secondcolor);
  border-left: solid var(--secondcolor) 4px;
  border-right: solid var(--secondcolor) 4px;
  background: #ff6464ad;
  padding-top: 12px;
  padding-bottom: 12px;
  font-weight: bold;
  font-size: 25px;
  animation-duration: 0.5s;
  animation-name: opennotify;
}

.notify2 {
  width: 232px;
  border: 1px solid var(--secondcolor);
  border-left: solid var(--secondcolor) 4px;
  border-right: solid var(--secondcolor) 4px;
  background: #ff6464ad;
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 25px;
  animation-duration: 0.5s;
  animation-name: opennotify;
}

@keyframes opennotify {
  from {
    height: 0px;
  }

  to {
    height: 28px;
  }
}

.themechiledsun {
  width: 30px;
  height: 30px;
  margin: 2px;
  cursor: pointer;
}

.themechiledmoon {
  width: 24px;
  height: 24px;
  margin: 2px;
  cursor: pointer;
}

.themeselector {
  display: flex;
  justify-content: space-around;
  margin: 10px;
}

.backsel {
  margin-top: 10px;
  display: flex;
  justify-content: space-around;
}

.themeselbut {
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.themeselbut:hover {
  color: var(--firstcolor);
}

.lanselectorbut {
  border: solid var(--firstcolor) 2px;
  width: 40px;
  height: 30px;
}

.lanselector {
  text-align: center;
}


#background {
  /* background-color:#2A2A2A; */
  background-color: var(--secondcolor);
  box-sizing: border-box;
  z-index: 99;
  margin-top: -20px;
  margin-left: -20px;
  height: 120%;
  width: 120%;
}

/* body,html{
  overflow:hidden;
  box-sizing:border-box;
  margin:0;
  padding:0; 
}  */

input[type=radio] {
  display: none;
}

#text {
  position: absolute;
  display: block;
  top: 0;
  text-align: center;
  padding-left: 31px;
  padding-right: 30px;
}

.select {
  display: inline-block;
  width: 99%;
  height: 34px;
  line-height: 30px;
  position: relative;
}

.items {
  display: block;
  min-height: 30px;
  position: absolute;
  border: 2px solid var(--firstcolor);
  background: var(--secondcolor);
  overflow: hidden;
  width: 100%;
  cursor: pointer;
}

.select input[name="list"]:not(:checked)~#text {
  color: black;
  background: #72727270;
}

.select input[name="list"]:checked~#text {
  background: transparent;
  color: transparent;
  z-index: 2;
}

#select:disabled~.items #text {
  background: #c4c4c4;
}

::placeholder {
  color: var(--hovtextcolor);
  opacity: 1;
}

/* #select:not(:checked) ~ .items
{
  height: 30px;
} */

.items label {
  border-top: 2px solid #72727270;
  display: none;
  padding-left: 10px;
  background: #72727270;
}

.items label:hover {

  cursor: pointer;
}

#select:checked~.items {
  padding-top: 30px;
}

#select:checked~.items label {
  display: block;
}

.items input:checked+label {
  display: block !important;
  border: none;
  background: var(--firstcolor);
}

#select:checked~.bg {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 0;
}

a {
  display: block;
  width: 160px;
  text-align: center;
  padding: 5px 0;
  color: var(--textcolor);
  text-decoration: none;
  border: 2px solid #ddd;
}

a:hover {
  cursor: pointer;
  border-color: red;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  border-radius: 10px;
}

canvas {
  border: 2px solid #ddd;
  border-radius: 5px;
  display: block;
  margin-top: 20px;
  margin-bottom: 5px;
}

.controls {
  text-align: center;
  margin: 10px 0;
}

.slider-container {
  margin: 10px 0;
}

label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
}

#rotationSlider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 40px;
  background: #4b4b4b79;
  /* Светло-серый фон трека */
  border-radius: 1px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
  /* Тень для глубины */
}

#rotationSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 50px;
  height: 36px;
  background: linear-gradient(#4d4d4d, #525252);
  /* Градиент как в iOS 6 */
  border: 1px solid #adb5bd;
  border-radius: 1px;
  cursor: grab;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
}

#rotationSlider::-webkit-slider-thumb:active {
  cursor: grabbing;
  background: linear-gradient(#4d4d4d, #525252);
  /* Темнее при нажатии */
}

#rotationSlider::-moz-range-track {
  background: #d3d3d3;
  /* Светло-серый фон для Firefox */
  height: 40px;
  border-radius: 1px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

#rotationSlider::-moz-range-thumb {
  width: 50px;
  height: 36px;
  background: linear-gradient(#666666, #505050);
  /* Градиент как в iOS 6 */
  border: 1px solid #adb5bd;
  border-radius: 1px;
  cursor: grab;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#rotationSlider::-moz-range-thumb:active {
  cursor: grabbing;
  background: linear-gradient(#777777, #525252);
}

#rotationSlider:disabled {
  background: #5555553f;
  /* Светлее для отключенного состояния */
  cursor: not-allowed;
}

#rotationSlider:disabled::-webkit-slider-thumb,
#rotationSlider:disabled::-moz-range-thumb {
  background: #2A2A2A;
  /* Светлее для отключенного состояния */
  cursor: not-allowed;
}

/* Фоновая надпись для интуитивности */
#rotationSlider::before {
  content: "Slide to Verify →";
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #c9cbce;
  /* Серый текст */
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: bold;
  z-index: 1;
  transition: opacity 0.3s;
}

/* Скрываем надпись, когда слайдер в конце */
#rotationSlider[value="460"]::before {
  opacity: 0;
}

button:hover {
  background-color: #0056b3;
}

.status {
  text-align: center;
  margin: 10px 0;
  padding: 10px;
  border-radius: 5px;
}

.loading {
  background-color: #fff3cd;
  color: #856404;
}

.error {
  background-color: #f8d7da;
  color: #721c24;
}

.success {
  background-color: #d4edda;
  color: #155724;
}