:root {
  --clr-elite: #c700c7;
  --clrtxt-elite: #fff;
  --clr-top: #09cc16;
  --clrtxt-top: #000;
  --clr-norm: #fff700;
  --clrtxt-norm: #000;
  --clr-worst: #fc2626;
  --clrtxt-worst: #fff;
}

html, body, #idContent {
    width: 100%;
    height: 100%; /* Обов'язково для обох! */
    margin: 0;
    padding: 0;
}

a:link { text-decoration: none; }
.text-shadow { text-shadow: 0px 0px 10px #4a1495; }

#avatar-photo[access='3'] { border: solid 2px #00cfd2; box-shadow: 2px 2px 0 #00cfd2;}
#avatar-photo[access='7'] { border: solid 2px #e88b00; box-shadow: 2px 2px 0 #e88b00;}
#avatar-photo[access='15'] { border: solid 2px #00ea00; box-shadow: 2px 2px 0 #00ea00;}
#avatar-photo[access='31'] { border: solid 2px #ffee00; box-shadow: 2px 2px 0 #ffee00;}
#avatar-photo[access='63'] { border: solid 2px #001aff; box-shadow: 2px 2px 0 #001aff;}
#avatar-photo[access='127'] { border: solid 2px #f00000; box-shadow: 2px 2px 0 #f00000;}
#avatar-photo[access='255'] { border: solid 2px #7b0177; box-shadow: 2px 2px 0 #7b0177;}

.legend-color { --zone-color: #gray; background-color: var(--zone-color); }
.legend-color[data-level="elite"] { --zone-color: var(--clr-elite); color: var(--clrtxt-elite);}
.legend-color[data-level="top"] { --zone-color: var(--clr-top); color: var(--clrtxt-top);}
.legend-color[data-level="norm"] { --zone-color: var(--clr-norm); color: var(--clrtxt-norm);}
.legend-color[data-level="worst"] { --zone-color: var(--clr-worst); color: var(--clrtxt-worst);}

.bg-img {
    width: 100%;
    height: 100vh;
    object-fit: cover; /* Працює як background-size: cover */
    object-position: top center;
    position: fixed;
    top: 0;
    left: 0;
    opacity: 0.618;
    z-index: -1; /* Щоб картинка була позаду всього */
}


/* Стилі для кнопки "Авторизація" */
.neuro-button {
  display: inline-block;
    background-color: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    outline: none;
    position: absolute;
    box-sizing: border-box;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(111, 66, 193, 0.4);
    top: 50%;
    left: 60%;
}

/* Градієнтне обведення */
.neuro-button::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 3px;
    border-radius: 50px;
    background: linear-gradient(135deg, #1d9047, #1d9047, #6f42c1, #007bff);
    -webkit-mask: 
       linear-gradient(#fff 0 0) content-box, 
       linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: all 0.3s ease;
}

/* Внутрішній вміст кнопки */
.neuro-button-content {
    display: block;
    background-color: rgba(10, 10, 20, 0.95);
    padding: 16px 48px;
    border-radius: 47px;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.neuro-button-content a{
    color: #08e85a;
}

/* Ефекти при взаємодії */
.neuro-button:hover {
    box-shadow: 0 0 40px rgba(0, 123, 255, 0.6);
    transform: scale(1.03);
}

.neuro-button:hover .neuro-button-content {
    background-color: rgba(20, 20, 35, 0.9);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.9);
}

.neuro-button:active {
    transform: scale(0.98);
    box-shadow: 0 0 10px rgba(111, 66, 193, 0.8);
}

#avatar-box {
  position: absolute;
  top: 5px;
  right: 5px;
}
#avatar-box span {
  position: relative;
  display: inline-flex;
  top: 0;
  right: 0;
  font-size: 16px;
  color: #fff;
  max-width: 6.18rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#avatar-box img {
  background: none;
  position: relative;
  top: 0;
  right: 0;
  height: 38px;
  width: 38px;
  border-radius: 25%;
  overflow: hidden;
}
#avatar-box img[islogin="1"] { background-color: #fff; }
#avatar-box img[islogin="0"] { background: none; }


/* іконки меню */
.btn-square {
  /*min-width: 100px;
  min-height: 100px;
  max-width: 100px;
  max-height: 100px;*/
  width: 100px;
  height: 100px;
  flex: 0 0 100px;

  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  
  /* Тінь: колір тіні підібраний під градієнт 
  box-shadow: 0 4px 15px rgba(1, 245, 22, 0.635); */
  box-shadow: 2px 2px 10px rgb(1 145 245 / 64%);
  
  /* Плавна анімація */
  transition: all 0.3s ease;
}
.btn-square i { font-size: 2rem; }
.textInBtn { overflow: hidden; text-overflow: ellipsis;}

.btn-custom-gradient { background: linear-gradient(135deg, #3cacf0, #7f008f); }

.btn-custom-gradient:hover {
    /* Збільшуємо тінь та трохи піднімаємо кнопку при наведенні */
    box-shadow: 0px 6px 20px rgb(223 20 243);
    transform: translateY(-2px);
}
    
.btn-custom-gradient:active { transform: translateY(0); }
.btn-custom-gradient span { font-size: 1rem; }

.photoSearch { height: 3rem; }

@media (orientation: portrait) {
  .bg-img {
    object-fit: contain;
    background-color: #000; /* Додаємо чорний фон, якщо картинка не заповнює все */
  }
  .neuro-button {
    left: 20%;
    top: 50%;
  }
}
/* Якщо потрібно трохи змінити фокус для мобільних */
@media (max-width: 600px) {
  .neuro-button {
    left: 20%;
    top: 50%;
  }
    .bg-img {
        object-position: center top; /* або задай точніше, наприклад: 50% 10% */
    }
}