a {
  color: white;
}

::selection {
  background-color: green;
  color: yellow;
}

header {
  /* align-items: center; */
  /* justify-content: center; */
  /* justify-items: center; */
  text-align: center;
}

img {
}

ul {
  width: 95%;
}

html,body {
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  width: 100%;
  height: 100%;
  align-content: center;
  align-items: center;
  justify-items: center;
  margin: 0px;
  background: black;
}

.search_field {
  min-width: 300px;
  max-width: 80%;
  width: 80%;
  height: 30px;
  display: flex;
  position: sticky;
  margin: 30px;
}

.search_input {
  width: 100%;
  height: 2rem;
  border: 3px green solid;
  text-align: center;
  color: green;
  font-size: 24px;
}


.search_result li {
  margin: 30px;
  word-break: break-all;
  height: auto;
}

.search_result {
  padding: 10px;
  min-width: 300px;
  width: calc(100% - 50px);
  max-height: calc(100% - 30px - 20px - 112px);
  overflow-y: scroll;
}

.search_resulttop li {
  margin: 30px;

  word-break: break-all;
  height: auto;
}

.search_resulttop {
  padding: 10px;
  padding-top:0px;
  min-width: 300px;
  width: calc(100% - 50px);
  max-height: calc(100% - 30px - 20px - 112px);
  overflow-y: scroll;
}

.footer {
  position: fixed;
  bottom: 15px;
  height: 15px;
  background: black;
  font-size: small;
}

.ad_banner {
  min-width: 10px;
  min-height: 10px;
  display: inline-block;
  color: black;
  margin-right: 5px;
}

.buyform {
  position: absolute;
  top: 10px;
  max-height: calc(100% - 50px);
  overflow-y: scroll;
  z-index: 9;
  margin: 0 auto;
  background: white;
  padding: 10px;
  border: 1px solid black;
}

.closebutton {
}

.top_news{
  color: white;
  display:flex;
}
.top_news__elem {
  display: inline-flex;
}















@-webkit-keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-250px * 7));
  }
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-250px * 7));
  }
}
.slider {
    background: black;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.125);
    /* height: 100px; */
    margin: auto;
    overflow: hidden;
    position: relative;
    width: 960px;
}
.slider::before, .slider::after {
  background: linear-gradient(to right, black 0%, rgba(0, 0, 0, 0) 100%);
  content: "";
  height: 100px;
  position: absolute;
  width: 200px;
  z-index: 2;
}
.slider::after {
  right: 0;
  top: 0;
  transform: rotateZ(180deg);
}
.slider::before {
  left: 0;
  top: 0;
}
.slider .slide-track {
    -webkit-animation: scroll 40s linear infinite;
    animation: scroll 40s linear infinite;
    display: flex;
    width: calc(120ch*2*21);
}
.slider .slide {
    /* height: 100px; */
    width: fit-content;
    margin-left: 3ch
}






/* Container */
#authWidget {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 400px;
  width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  background: black;
  border: 2px solid white;
  padding: 16px 20px;
  box-sizing: border-box;
  border-radius: 8px;
  font-family: sans-serif;
  color: white;
  z-index: 1000;
  user-select: none;
}

/* Header */
#authWidget > h2 {
  text-align: center;
  margin-bottom: 16px;
  user-select: text;
}

/* Forms */
#authWidget form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Inputs */
#authWidget input[type="text"],
#authWidget input[type="email"],
#authWidget input[type="password"] {
  padding: 10px 12px;
  font-size: 1rem;
  border: 2px solid white;
  border-radius: 4px;
  background: transparent;
  color: white;
  box-sizing: border-box;
  outline-offset: 2px;
  user-select: text;
}

/* Focus outline green */
#authWidget input[type="text"]:focus,
#authWidget input[type="email"]:focus,
#authWidget input[type="password"]:focus,
#authWidget select:focus {
  border-color: #00ff00;
  outline: none;
}

/* Buttons */
#authWidget button[type="submit"] {
  padding: 12px;
  font-size: 1rem;
  border: 2px solid white;
  border-radius: 4px;
  background: transparent;
  color: white;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s ease;
}

/* Button hover/active */
#authWidget button[type="submit"]:hover,
#authWidget button[type="submit"]:focus {
  border-color: #00ff00;
  outline: none;
}

/* Separator */
#authWidget > div.separator {
  text-align: center;
  margin: 24px 0;
  color: white;
  user-select: none;
}

/* Close Button */
#authWidget .closeBtn {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  background: transparent;
  border: none;
  color: white;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

#authWidget .closeBtn:hover,
#authWidget .closeBtn:focus {
  background-color: green;
  outline: none;
}

/* Responsive tweaks */
@media (max-width: 320px) {
  #authWidget {
    padding: 12px 16px;
  }

  #authWidget input[type="text"],
  #authWidget input[type="email"],
  #authWidget input[type="password"],
  #authWidget button[type="submit"] {
    font-size: 0.9rem;
    padding: 10px;
  }

  #authWidget .closeBtn {
    font-size: 24px;
    padding: 8px 10px;
  }
}
