@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

body {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  margin: 0; /* Убираем стандартные отступы у body */
  padding: 0; /* Убираем стандартные внутренние отступы у body */
  display: flex; /* Включаем Flexbox для body */
  flex-direction: column; /* Элементы внутри body будут располагаться по вертикали */
  align-items: center; /* Центрируем содержимое body по горизонтали */
  min-height: 100vh; /* Гарантируем, что body занимает всю высоту окна просмотра */
  color: rgb(196, 195, 193);
  background-image: url(/smooth_noise.gif);
}


.container {
  background-color: rgba(16, 16, 20, 0.84);
  /* border-left: 15px solid #9196fe;
  border-right: 10px solid #9196fe; */
}

.search-container {
  margin-top: 44px !important;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
}

::selection {
  background: #926ee4; /* фон выделения */
  color: white;
}

/* Для Firefox нужен отдельный селектор */
::-moz-selection {
  background: #926ee4;
  color: white;
}

*, *::before, *::after {
  box-sizing: border-box;
}

::-webkit-scrollbar {
  width: 3px; /* Ширина для вертикального скроллбара */
}

a {
  transition: all 0.3s ease-in-out; 
  text-decoration: none;
}

p a {
  text-decoration: underline;
}

li {
  padding: 10px;
}

img {
  cursor: default !important;
}

.article-main-image {
  width: 100%;
  flex-wrap: wrap;
  display: flex;
  justify-content: center;
  align-items: center;
  
}

.article-main-image img {
  max-width: 100%;
  height: auto;
  display: block;
}


.article-main-text {
  width: 100%;
  margin-top: 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-around !important;
  align-items: flex-start !important;
}

.article-main-text time {
  margin-bottom: 15px;
}

.article-item-meta {
  display: flex;
  flex-direction: column;
}

.article-item-meta span {
  color: #9196fe;
  font-weight: bold;
}

.flex-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  min-width: 100%;
}

.flex-images img {
  max-width: 550px;
  margin: 10px;
}

.responsive-img {
  padding-top: 15px;
  padding-bottom: 15px;
  display: block;
  margin: 0 auto;
  max-width: 80%;
  height: auto;
  max-height: 600px;
}


.btn {
  color: black;
  background: #9196fe;
  padding: 5px;
  font-weight: bold;
  cursor: pointer;
}

.iddqd {
  text-align: left !important;
  width: 100% !important;
  max-width: 1440px;
  margin: 0;
  flex: 2;
  padding: 10px;
  margin-bottom: 20px;
  flex: 1;
}

.iddqd h2 {
  margin: 0px !important;
  padding: 0px !important;
}

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-top: 80px;
  padding-bottom: 80px;
  padding-left: 10px;
  padding-right: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  font-size: 18px;
  line-height: 1.6;
  margin-top: 20px !important;
  margin-bottom: 20px !important;
  text-align: justify;
}

.content {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
}

.container h1, h2, h3, h4 h5 {
  text-align: left;
  padding: 20px 0px 10px 0px;
  margin: 0px;
  color: #9196fe;
  font-weight: 300;
  font-size: 1.5rem;
  font-weight: bold;
}


.container a {
  color: #c4c3c1;
}

.container a:hover {
  color: #9196fe;
}

.main_footer {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  text-align: center;
  background-color: rgba(16, 16, 20, 0.84);
}

.main_footer p {
  color: #9196fe;
}


header {
  max-width:  1440px;
  width: 100%;

  font-family: "Manrope", sans-serif;
  position: relative;
  background-color: transparent;
  min-height: 70px;
  display: flex;
  justify-content: space-between;
  padding: 0px 0px;
  background-repeat: no-repeat;
  background-size: cover;
}

header .cult {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  width: 100%;
  padding-bottom: 30px;
  padding-top: 10px;
  font-size: 70px;
  color: #9196fe;
  /* background: #101014; */
  font-weight: bold;
  z-index: 1;
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,  
    -1px 1px 0 #000, 
    1px 1px 0 #000;   
}

header .logo-wrapper a {
  width: 100% !important;
}

header h1 {
  width: 30%;
  text-align: left;
  padding: 15px;
  background-color: rgba(16, 16, 20, 0.84);
  font-size: 35px;
  color: #c4c3c1 !important;
  z-index: 2;
  text-transform: uppercase !important;
  font-weight: 600;
  margin-left: 5px !important;
  margin-right: 0 !important;
  margin-left: 0px !important;
  margin: 0;
}

.logo-wrapper {
  width: 100%;
  display: flex;
  z-index: 10;
  align-content: center;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: 30px;
}

.logo {
  max-height: 50px;
}


nav {
  z-index: 10;
  background-color: #101014;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
}
nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  position: absolute;
  left: 50%;
  top: 170px;
  transition: all 0.3s ease-in-out;
  transform: translateX(-50%);
}

nav ul li a {
  display: block;
  font-size: 2em;
  text-decoration: none;
  padding: 10px 0;
  text-align: center;
  color: #9196fe;
  font-weight: bold !important;
  transition: all 0.2s ease-in-out;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  text-transform: uppercase !important;
  font-weight: 400;
}
nav ul li a:hover {
  color: #c4c3c1;
}

nav ul li a[aria-current="page"] {
  color: #c4c3c1;
  border-bottom: 1px solid #c4c3c1;
}

.toggle-btn {
  display: block;
  position: fixed;
  z-index: 11;
  right: 10px;
  top: 24px;
  cursor: pointer;
  background: rgba(16, 16, 20, 0.84);
  padding: 10px;
}
.toggle-btn .bar {
  width: 30px;
  height: 2px;
  margin: 7px auto;
  background-color: #9196fe;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 0 3px 1px rgba(0, 0, 0, 0.3);
}
.toggle-btn .bar:nth-child(2) {
  width: 20px;
}

#toggle:checked ~ nav {
  opacity: 1;
  visibility: visible;
}

#toggle:checked + label.toggle-btn .bar {
  background-color: #9196fe(255, 255, 255);
}
#toggle:checked + label.toggle-btn .bar:nth-child(2) {
  transform: translateX(50px);
  opacity: 0;
}
#toggle:checked + label.toggle-btn .bar:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
#toggle:checked + label.toggle-btn .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.glitch, .glow {
  color: #dfbfbf;
}


.scanlines {
  overflow: hidden;
  mix-blend-mode: difference;
}

.scanlines::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: repeating-linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.05) 0.5%, transparent 1%);
  animation: fudge 7s ease-in-out alternate infinite;
}

@keyframes fudge {
  from {
    transform: translate(0px, 0px);
  }
  to {
    transform: translate(0px, 2%);
  }
}
.glow {
  text-shadow: 0 0 1000px #dfbfbf;
  color: transparent;
  position: absolute;
  top: 0;
}

.subtitle {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 100;
  font-size: 0.8vw;
  color: rgba(165, 141, 141, 0.4);
  text-transform: uppercase;
  letter-spacing: 1em;
  text-align: center;
  position: absolute;
  left: 17%;
}


/*MAIN PAGE*/

.main-items-wrapper {
  list-style-type: none;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 40px;
}

/* SHARE */

.share-block {
  display: flex; 
  justify-content: center;
  align-items: center;
  width: 100%;
}

.share-telegram {
  padding: 15px;
}

/* Три колонки */
@media (max-width: 1100px) {
  .main-items-wrapper {
    grid-template-columns: repeat(3, 1fr);
  }
  header h1 {
    width: auto;
  }
}

/* Две колонки */
@media (max-width: 800px) {
  .main-items-wrapper {
    grid-template-columns: repeat(1, 1fr);
  }
}


.crop-item {
  max-width: 500px;
  font-weight: bold;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  flex-direction: column;
  overflow-wrap: break-word; 
  position: relative;
  margin: 15px; 
  position: relative;
  transition: all 0.3s ease-in-out; 
  background-color: #32323a;
  text-decoration: none;
}

.crop-item span {
  overflow-wrap: break-word;
  text-align: left;
  text-decoration: none;
}

.crop-footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.crop-free-use {
  min-width: 100px;
}

.crop-free-use {
  z-index: 1;
}

.crop-image img {
  cursor: pointer !important;
}

.crop-image {
  z-index: 0;
  width: 200px;
  height: 200px;
  filter: grayscale(1);
  object-fit: cover;
  transition: all 0.3s ease-in-out; 
  cursor: pointer !important;
}

.crop-item::before {
  transition: all 0.3s ease-in-out; 
  content: "";
  position: absolute;
  width: calc(100% + 10px);
  height: calc(100% + 10px);
  top: 50%;
  left: 50%;
  transition: all .3s cubic-bezier(0,.5,.5,1);
  transform: translate(-50%, -50%);
  background-image: linear-gradient(#c4c3c1, #c4c3c1), linear-gradient(#c4c3c1, #c4c3c1),
   linear-gradient(#c4c3c1, #c4c3c1), linear-gradient(#c4c3c1, #c4c3c1), linear-gradient(#c4c3c1, #c4c3c1), 
   linear-gradient(#c4c3c1, #c4c3c1), linear-gradient(#c4c3c1, #c4c3c1), linear-gradient(#c4c3c1, #c4c3c1);
    background-repeat: no-repeat;
    background-size: 16px 1px, 1px 16px, 1px 16px, 16px 1px, 16px 1px, 1px 16px, 16px 1px, 1px 16px;
    background-position: 0 0, 0 0, 100% 0, 100% 0, 100% 100%, 100% 100%, 0 100%, 0 100%;
}

.crop-item:hover::before{
  background-image: linear-gradient(#9196fe, #9196fe), linear-gradient(#9196fe, #9196fe),
   linear-gradient(#9196fe, #9196fe), linear-gradient(#9196fe, #9196fe), linear-gradient(#9196fe, #9196fe), 
   linear-gradient(#9196fe, #9196fe), linear-gradient(#9196fe, #9196fe), linear-gradient(#9196fe, #9196fe);
}

.crop-item:hover .crop-image{
  filter: none;
}

.main-item-title {
  text-decoration: none !important;
  font-weight: bold;
  text-align: center;
  padding: 10px;
  font-size: 1.2rem;
  margin-bottom: 10px;
  width: 100%;
}

.main-h {
  min-width: 100%;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.main-h  h2 {
  font-weight: bold;
  margin: 0px !important;
  padding: 0px !important;
}


.saab-gif {
  position: absolute;
  top: 7%;
  right: 15%;
}



/*Logbook*/

.item-logs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-startc;
  padding: 10px 10px 10px 0px;
  margin-bottom: 40px;
  z-index: 1;
}

.item-image {
  z-index: 0;
  filter: brightness(70%);
  margin-top: -210px;
  display: flex;
  justify-content: center;
}

.item-image img {
  object-fit: cover;
  max-width: 600px;
}

.item-text {
  padding: 0px 10px;
  overflow-wrap: break-word;
  text-transform: uppercase;
  font-weight: 400;
  flex: 2;
}

.item-text p {
  max-width: 800px;
}

.item-info {
  text-transform: uppercase;
  font-weight: 400;
}

.item-info span {
  color: #9196fe;
}

.item-tags, .article-tags {
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 15px;
  display: flex;
  flex-wrap: wrap;
}

.item-tags,.article-tag:first-child {
  margin-left: 0px;
}


.item-tag, .article-tag {
  font-size: 15px;
  font-weight: bold;
  padding: 5px;
  margin: 5px;
  background-color: #9196fe;
}


.item-news {
  width: 100%;
  display: flex;
}

.item-data, .item-news {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.item-data-item {
  cursor: pointer;
  padding-top: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 5px;
  max-width: 330px;
  color: #101014;
  text-align: center;
}

.item-tag  a, .article-tag a {
  color: #2A2A2A;
  text-decoration: none;
}

.item-data  a {
  color: #c4c3c1;
  text-decoration: none;
}

.item-tag  a:hover, .article-tag a:hover {
  color: white;
}

.item-data  a:hover {
  color: #9196fe;
}

.item-data-item img {
  cursor: pointer !important;
  filter: grayscale();
  border: 10px double #c4c3c1;
  width: 150px;
  height: 150px;
  object-fit: cover;
}


.item-data-item-text  {
  padding: 10px;
  text-transform: uppercase;
  padding-top: 15px;
  min-height: 70px;
  min-width: 300px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.item-data-item-text .item-title {
  font-weight: bold;
  transition: color 0.3s ease-in-out; 
}


.item-data-item:hover img{
  filter: none;
}
small {
  transition: color 0.3s ease-in-out; 
}


.paginator {
  margin-top: 30px;
  font-size: 18px;
  display: flex;
  width: 100%;
  justify-content: center;
}

.paginator .item{
  margin: 10px;
}

.paginator .pag-item{
  margin: 10px;
  padding: 10px;
}


/* бегушки */

.ticker {
  margin-top: 40px;
  margin-bottom: 40px;
  font-weight: 900;
  font-size: 4rem;
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
}

.track {
  display: inline-flex;
}

.track span {
  padding: 0 2rem;
}

/* Движение влево */
.ticker-left .track {
  animation: scroll-left 15s linear infinite;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Движение вправо */
.ticker-right .track {
  animation: scroll-right 15s linear infinite;
}

@keyframes scroll-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-bottom: 15px;
}

.about-text {
  min-width: 515px;
  padding: 0px 10px;
  overflow-wrap: break-word;
  font-weight: 400;
  flex: 1;
}

.about-text a {
  text-decoration: underline;
}


/*ODB DECODER*/
input {
  outline: none;
  
}

input[type="text"] { 
  width: 300px;
  padding: 10px;
  margin-bottom: 20px; 
  font-size: 16px; 
  background-color: transparent;
  color: white;
  border-bottom: 1px solid #9196fe;
  border-top: none;
  border-left: none;
  border-right: none;
}

#odbresults { 
  min-width: 100%;
  padding: 15px;
  margin: 0px 0px 15px 0px;
  border-radius: 5px; 
  border: 1px solid #9196fe;
  white-space: pre-wrap; 
  word-wrap: break-word;
  min-height: 515px;
  max-height: 515px;
  overflow: scroll;
}

/* VIN DECODER*/
.ben-logo {
  width: 100%;
  font-weight: bold;
  color: white;
  text-align: center !important;
}

.ben-logo a {
  color: white;
}

.vin-wrapper {
  width: 100%;
  display: flex;
  flex-wrap: wrap-reverse;
  align-items: flex-end;
  justify-content: space-between;
}

.vin-wrapper img {
  margin-top: 40px;
  position: relative;
}


.vin-decoder-text {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.vin-decoder-text input {
  margin-right: 15px;
}

#vinresults {
  margin-top: 15px;
  min-height: 500px;
  padding: 10px;
}


/*tools*/

.tools-logo {
  display: flex; 
  justify-content: center; 
  align-items: center; 
  width: 100%;
  margin-top: 100px;
}

.tools-wrapper {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  text-transform: lowercase;
}

.tools-wrapper .crop-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: end;
}

.tools-wrapper a {
  font-size: 24px !important;
  text-decoration: none;
}

.tools-item {
  margin-right: 15px;
  border: 1px double #9196fe;
  width: 300px;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  padding: 10px;
}


.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
}

.gallery a {
  display: block;
  overflow: hidden;
  position: relative;
}

.gallery img {
  cursor: pointer !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
}


@media (max-width: 1024px) {

  .crop-item {
    min-width: 80%;
  }

  .about-text {
    min-width: 100%;
    text-align: left;
  }

  .main_footer p {
    margin-top: 40px;
    text-align: center;
  }

  p {
    text-align: left;
  }

  .item-text {
    max-width: none;
  }

  .main-items-wrapper { 
    justify-content: center;
  }

  * {
    max-width: 1024px;
  }


  header {
    padding: 10px;
  }

  .logo-wrapper {
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
  }

  .item-logs {
    margin-top: 100px;
    flex-direction: column;
  }
  
  .item-image {
    max-width: none;
    right: 0;
  }

  .cult {
    text-align: center !important;
  }

  .glitch {
    text-align: center !important;
  }
}

@media (max-width: 666px) {

  h2 {
    font-size: 24px !important;
  }

  .item-tags {
    justify-content: center;
  }

  .tools-item {
    margin-right: 0;
  }


  .main-item {
    min-width: 300px;
    margin-right: 0px;
  }

  .logo-wrapper {
    margin-top: 40px;
  }


  .glitch {
    top: -40px;
    left: 47px;
    max-width: 600px;
  }
  
  .crop-item {
    width: 100% !important;
    margin: 0px;
  }

  .crop-item .item-data-item-text {
    min-width: 100% !important;
  }

  .item-image img {
    width: 100%;
  }
}

@media (max-width: 425px) {
  .glitch {
    font-size: 3rem !important;
  }
  
  .glitch::before, .glow::before {
    left: 7px;
  }
  
  .saab-gif {
    position: absolute;
    top: 15%;
    right: 3%;
  }
  
  header .cult {
    padding-left: 0px;
  }

  .crop-footer {
    flex-wrap: wrap;
  }

  .item-data-item-text {
    margin-bottom: 5px;
  }
}


@media (max-width: 320px) {
  .glitch {
    font-size: 2rem !important;
  }
}