body {
  background-image: url(/back.avif);
  background-position: center;
   background-size: cover;
    background-attachment: fixed;
  background-color: #e4e4e4;
}
/* @import url('https://fonts.googleapis.com/css2?family=Playwrite+AU+NSW:wght@100&display=swap'); */
*{
  font-family: "Cursive2",  sans-serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;

  padding: 0px;
  margin: 0px;
    box-sizing: border-box;
    
}

canvas {
  touch-action: none;
  position: fixed;
  /* top: 50%;
  left: 50%; */
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  z-index: 5;
  user-select: none; 
  /* pointer-events: none; */
}

/* @import url(font/PlaywriteAUNSW-VariableFont_wght.ttf); */

@font-face {
    font-family: 'Cursive2';
    src: url(/font.ttf) ;
    font-weight: 400;
    /* font-weight: 200; */
    /* font-style: normal; */
}

.artInfo p{
    text-indent: 20px; 
    margin-bottom: 15px;
    line-height: 1.6; 
}
.pArtPage{
    text-indent: 20px; 
    margin-bottom: 15px;
    line-height: 1.6; 
}

h3 {
  text-align: center;
}

h1{
  font-size: 50px;
  margin-top: 40px;
  margin-bottom: 40px;
  font-weight: 900;
  font-style: normal;
  /* font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif; */
}

a {
  /* Цвет текста */
  /* color: rgb(92, 92, 92); */
  color: rgb(255, 0, 106);
  /*text-decoration: none;  Убираем подчеркивание */
  /*cursor: pointer;  Меняем курсор */
  text-decoration: none;
  /* transition: all 0.2s ease; */
  /* Плавные переходы */
  padding: 0px;
  margin: 0px;
  /* width: 0px;
  height: 0px; */
}

a:hover {
  /* color: rgb(111, 0, 255); */
  text-decoration: underline;
}

.head {
  /* position: fixed; */
  width: 100%;
  /* top: 0; */
  /* left: 0; */
  /* z-index: 1000; */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  justify-items: center;
  background-color: #ffffff;
  /* background-color: #ffb3ca; */
  min-height: 60px;
  gap: 20px;
  /* Расстояние между элементами */
}
.logo {
  height: 35px;
  /* aspect-ratio: 1/1; */
}
.usr {
  height: 40px;
  animation: usrH 4s linear infinite;
  padding-left: 10px;
}
.login {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

@keyframes usrH {
  0% {
    filter: hue-rotate(0);
  }

  100% {
    filter: hue-rotate(360deg);
  }
}

.artPage {
  max-width: 1000px;
  margin: 0 auto;
  /* padding-left: 15px;
  padding-right: 15px;
  padding-top: 20px;
  padding-bottom: 20px; */
  display: flex;
  align-items: center;
  flex-direction: column;
}

/* header{
  display: flex;
  align-items: center;
} */
.collUp{

}
.collPredir{
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  padding: 8px;
  background-color: #ffffffb5;
  row-gap: 8px;
  column-gap: 42px;
  margin-top: 20px;

  /* max-height: 100%; */
  /* overflow: hidden; */
  /* transition: max-height 0.3s ease, opacity 0.3s ease; */
}
.collPredir.hidden{
  display: none;
}


.collPredir i{
  float: right;
}
.collPredir a{
  /* color: #ffffff; */
  /* background-color: #7038ff; */
  /* border-radius: 2px; */
  color: #585858;
  margin: -4px;
  padding: 6px;
  /* background-color: #0000000c;
  border-radius: 2px; */
}

.collPredir a:hover{
  color: #ffffff;
  background-color: #7038ff;
  border-radius: 2px;
  /* margin: -4px;
  padding: 6px; */
}



footer {

  /* position: absolute; */
  background-color: #293331;
  /* bottom: 0; */
  height: 400px;
  width: 100%;
}

.bsr {
  display: grid;
  grid-template-columns: 2fr 2fr 2fr 2fr;
  /* justify-content: center; */
  /* align-items: center; */
  /* width: 100%; */
  max-width: 1200px;
  /* grid-column-gap: 8px; */
  /* grid-row-gap: 8px; */
  gap: 15px;
  padding: 15px;

}


.image-container {
    position: relative;
    overflow: hidden;
    /* display: inline-block; */
    /* aspect-ratio: 1/1; */
    width: 100%;
    height: 100%; 
    /* margin: 20px; */
    /* border: 2px solid rgb(2, 2, 2); */
}

.image-container img {
    margin: 0px;
    padding: 0px;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.overlay-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay-text p {
    color: #ffffff;
    /* background-color: #0303031f; */
    font-size: 18px;
    text-align:center;
    margin-top: auto; 
    margin-bottom: 10px; 
}

.image-container:hover img {
    transform: scale(1.05);
    opacity: 0.8;
}

.image-container:hover .overlay-text {
    opacity: 1;
}






.artImd{
  object-fit: cover; /* Аналог background-size: cover */
  object-position: center; /* Аналог background-position: center */
  min-height: 500px;
  width: 100%;
  height: 100% ;
}

.artInfo {
  width: 100%;
  height: auto;
  display:  flex;
  flex-direction: column;
  /* margin-left: 20px; */
  padding-left: 20px;
  padding-right: 10px;
  box-sizing: border-box;
}

.addTxtView{
  overflow: hidden;
  width: 100%;
  /* background-color: aqua; */
  box-shadow: inset 0px -8px 8px -8px rgba(0, 0, 0, 0.62);
transition: 
  height 0.4s ease, 
  box-shadow 0.7s ease;
}


/* .addTxtView.active {
  background-color: red; 
  height: 60px;
 } */


.artPageMflex{
    overflow: hidden;
    background-color: #ffffff;
    display: grid;
    grid-template-columns: auto 500px;
    margin-top: 120px;
    border-radius: 5px;
    margin-bottom: 200px;
}

@media (max-width: 768px) {
  .artPageMflex {
    grid-template-columns: 1fr; /* Один столбец */
    grid-template-rows: auto auto; /* Два ряда */
  }
  .collPredir{
   grid-template-columns: 1fr 1fr;
  }
  .bsr{
    grid-template-columns: 2fr 2fr;
    gap: 4px;
    padding-left: 4px;
    padding-right: 4px;
  }
}

.baseBox{
  overflow: hidden;
  /* width: 100%; */
  /* height: 100%; */
  background: rgb(255, 255, 255);
  border-radius: 5px;
  /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); */
}


.bbat {
  background: rgb(83, 83, 83);
  color: white;
  padding: 5px 40px;
  border: none;
  border-radius: 226px;
  font-size: 22px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: fixed;
  z-index: 88;
  left: 50%;
  top: 95%;
  transform: translate(-50%, -50%);
  display: none;
}

#axisButton {
  background: linear-gradient(45deg, #d60072, #9e2bfd);
  color: white;
  padding: 5px 40px;
  border: none;
  border-radius: 2px;
  font-size: 28px;
  transition: 0.5s;
  /* Вместо background-position используем transform: skew */
  animation: gradient-change 4s linear infinite;
  animation-direction: alternate;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@keyframes gradient-change {
  0% {
    filter: hue-rotate(-40deg);
  }

  100% {
    filter: hue-rotate(40deg);
  }
}

#axisButton:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  /* Можно добавить дополнительные эффекты */
  filter: brightness(1.1);
}


/* canvas {
  position: fixed;
} */