@import url('https://fonts.googleapis.com/css2?family=Rubik+Distressed&display=swap');

@font-face {
  font-family: STALKER;
  src: url(AmazS.T.A.L.K.E.R.v.3.0.ttf);
}

.rubik-distressed-regular {
  font-family: "Rubik Distressed", system-ui;
  font-weight: 400;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
}

body {
  background: #0a0a0a;
}

/*Navigacija*/

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  padding: 0 20px;
  box-sizing: border-box;
}

nav a img {
  height: 50px;
}

nav div {
  display: flex;
  gap: 8px;
}

nav div a {
  color: white;
  background-color: transparent;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 8px 12px;
  font-family: "Rubik Distressed", system-ui;
  transition: 0.3s;
}

nav div a:hover {
  background-color: white;
  color: black;
}

.hamburger {
  display: none;
  cursor: pointer;
  padding: 10px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 5px 0;
  transition: 0.3s;
}

.overlay {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.95);
  overflow-x: hidden;
  transition: 0.5s;
}

.overlay-content {
  position: relative;
  top: 18%;
  width: 100%;
  text-align: center;
  margin-top: 30px;
}

.overlay a {
  padding: 12px;
  text-decoration: none;
  font-size: 36px;
  color: #ffffff;
  display: block;
  font-family: "Rubik Distressed", system-ui;
  transition: 0.3s;
}

.overlay a:hover,
.overlay a:focus {
  color: #cccccc;
}

.overlay .closebtn {
  position: absolute;
  top: 20px;
  right: 45px;
  font-size: 60px;
  color: white;
  cursor: pointer;
}

@media (max-width: 1140px) {
  nav div {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .overlay .closebtn {
    font-size: 40px;
    top: 15px;
    right: 35px;
  }
}

@media screen and (max-height: 450px) {
  .overlay a {
    font-size: 20px;
  }
}

@media screen and (max-height: 450px) {
  .overlay a {
    font-size: 20px
  }

  .overlay .closebtn {
    font-size: 40px;
    top: 15px;
    right: 35px;
  }
}

/*Footer*/

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
  width: 100%;
  font-size: 1.1rem;
  font-family: sans-serif;
  background: rgba(10, 10, 10, 0.9);
  color: white;
  border-top: 1px solid rgb(238 153 26);
  margin-top: 20px;
}

footer a {
  color: white;
  background-color: transparent;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 8px 12px;
  font-family: "Rubik Distressed", system-ui;
  transition: 0.3s;
}

footer a:hover {
  background-color: white;
  color: black;
}

/*Naslovna*/

#hero_sekcija {
  max-width: 100vw;
}

#myVideo {
  position: absolute;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100vh;
}

.kategorije {
  position: absolute;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #f1f1f1;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-size: 18pt;
  left: 0;
}

.kategorije h1 {
  font-family: STALKER;
  font-size: 120pt;
  padding-bottom: 10px;
}

.kategorije h2 {
  font-family: "Rubik Distressed", system-ui;
  font-size: 1.5em;
  padding-bottom: 50px;
  text-align: center;
}

.kategorije a {
  color: white;
  background-color: transparent;
  text-decoration: none;
  border: 2px solid white;
  padding: 20px;
  border-radius: 30px;
  font-family: "Rubik Distressed", system-ui;
  transition: 0.3s;
}

.kategorije a:hover {
  color: black;
  background-color: white;
}

/*Priča/Atmosfera/Modifikacije/Izrada*/

main {
  display: flex;
  justify-content: center;
  flex-direction: column;
  margin-top: 100vh;
}

.tekst_sekcija h2 {
  font-family: "Rubik Distressed", system-ui;
}

.tekst_sekcija_h2 {
  padding-top: 120px;
  border-radius: 20px;
  margin-bottom: 50px;
  text-align: center;
  color: white;
  font-family: "Rubik Distressed", system-ui;
  font-size: 30pt;
}

.tekst_sekcija a {
  text-decoration: none;
  color: rgb(238 153 26);
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  transition: 0.3s;
}

.tekst_sekcija a:hover {
  border-top: 1px solid transparent;
  border-bottom: 1px solid rgb(238 153 26);
}

.artikli {
  height: fit-content;
  width: 75vw;
  color: white;
  margin: auto;
  margin-top: auto;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-around;
  align-items: center;
  margin-top: 5%;
  padding-bottom: 3%;
  padding: 2%;
  line-height: 1.4;
  background: rgba(30, 30, 30, 0.8);
  border-radius: 20px;
  border: 1px solid rgb(238 153 26);
  font-size: 13pt;
  transition: 0.3s;
}

.artikli:hover {
  box-shadow: 0 10px 16px 0 rgb(238 153 26), 0 6px 20px 0 rgb(238 153 26);
}

.artikli div {
  width: 40%;
}

.artikli img {
  width: 45%;
}

.artikli h2 {
  color: rgb(238 153 26);
}

/*Mehanike*/

#mehanike {
  padding-top: 120px;
}

.mehanike {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 80px 0;
}

.mehanika {
  background: rgba(30, 30, 30, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 30px;
  transition: all 0.3s;
  border: 1px solid rgb(238 153 26);
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  transition: 0.3s;
}

.mehanika:hover {
  box-shadow: 0 10px 16px 0 rgb(238 153 26), 0 6px 20px 0 rgb(238 153 26);
}

.mehanika h2 {
  color: rgb(238 153 26);
  text-align: center;
  font-family: "Rubik Distressed", system-ui;
}

.mehanika p {
  color: white;
}

.mehanika img {
  width: 180px;
  height: 180px;
}

/*Steam igre*/

.steam_igre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

/*Codepen - Slideshow Gallery*/
/*https://codepen.io/trungvose/pen/EydyoL*/

/*---- NUMBER OF SLIDE CONFIGURATION ----*/
.wrapper {
  max-width: 60em;
  margin: 1em auto;
  position: relative;
  margin-top: 150px;
}

input {
  display: none;
}

.inner {
  width: 500%;
  line-height: 0;
}

.article_galerija {
  width: 20%;
  float: left;
  position: relative;
}

.article_galerija img {
  width: 100%;
}

/*---- SET UP CONTROL ----*/
.slider-prev-next-control {
  height: 50px;
  position: absolute;
  top: 50%;
  width: 100%;
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  transform: translateY(-50%);
}

.slider-prev-next-control label {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.7;
}

.slider-prev-next-control label:hover {
  opacity: 1;
}

.slider-dot-control {
  position: absolute;
  width: 100%;
  bottom: 0;
  text-align: center;
}

.slider-dot-control label {
  cursor: pointer;
  border-radius: 5px;
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #bbb;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  transition: all 0.3s;
}

.slider-dot-control label:hover {
  background: #ccc;
  border-color: #777;
}

/* Info Box */
.info {
  position: absolute;
  font-style: italic;
  line-height: 20px;
  opacity: 0;
  color: white;
  text-align: left;
  -webkit-transition: all 1000ms ease-out 600ms;
  -moz-transition: all 1000ms ease-out 600ms;
  transition: all 1000ms ease-out 600ms;
  background-color: black;
  padding: 1%;
}

.info h3 {
  color: #fcfff4;
  margin: 0 0 5px;
  font-weight: normal;
  font-size: 1.5em;
  font-style: normal;
}

.info.top-left {
  top: 30px;
  left: 30px;
}

.info.top-right {
  top: 30px;
  right: 30px;
}

.info.bottom-left {
  bottom: 30px;
  left: 30px;
}

.info.bottom-right {
  bottom: 30px;
  right: 30px;
}

/* Slider Styling */
.slider-wrapper {
  width: 100%;
  overflow: hidden;
  border-radius: 5px;
  box-shadow: 1px 1px 4px #666;
  background: #fff;
  background: #fcfff4;
  -webkit-transform: translateZ(0);
  -moz-transform: translateZ(0);
  -ms-transform: translateZ(0);
  -o-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-transition: all 500ms ease-out;
  -moz-transition: all 500ms ease-out;
  transition: all 500ms ease-out;
}

.slider-wrapper .inner {
  -webkit-transform: translateZ(0);
  -moz-transform: translateZ(0);
  -ms-transform: translateZ(0);
  -o-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-transition: all 800ms cubic-bezier(0.77, 0, 0.175, 1);
  -moz-transition: all 800ms cubic-bezier(0.77, 0, 0.175, 1);
  transition: all 800ms cubic-bezier(0.77, 0, 0.175, 1);
}

/*---- SET POSITION FOR SLIDE ----*/
#slide1:checked~.slider-prev-next-control label:nth-child(5)::after, #slide5:checked~.slider-prev-next-control label:nth-child(4)::after, #slide4:checked~.slider-prev-next-control label:nth-child(3)::after, #slide3:checked~.slider-prev-next-control label:nth-child(2)::after, #slide2:checked~.slider-prev-next-control label:nth-child(1)::after, #slide5:checked~.slider-prev-next-control label:nth-child(1)::after, #slide4:checked~.slider-prev-next-control label:nth-child(5)::after, #slide3:checked~.slider-prev-next-control label:nth-child(4)::after, #slide2:checked~.slider-prev-next-control label:nth-child(3)::after, #slide1:checked~.slider-prev-next-control label:nth-child(2)::after {
  font-family: FontAwesome;
  font-style: normal;
  font-weight: normal;
  text-decoration: inherit;
  margin: 0;
  line-height: 38px;
  font-size: 3em;
  display: block;
  color: #777;
}

#slide5:checked~.slider-prev-next-control label:nth-child(1)::after, #slide4:checked~.slider-prev-next-control label:nth-child(5)::after, #slide3:checked~.slider-prev-next-control label:nth-child(4)::after, #slide2:checked~.slider-prev-next-control label:nth-child(3)::after, #slide1:checked~.slider-prev-next-control label:nth-child(2)::after {
  content: ">";
  padding-left: 8px;
}

#slide5:checked~.slider-prev-next-control label:nth-child(1), #slide4:checked~.slider-prev-next-control label:nth-child(5), #slide3:checked~.slider-prev-next-control label:nth-child(4), #slide2:checked~.slider-prev-next-control label:nth-child(3), #slide1:checked~.slider-prev-next-control label:nth-child(2) {
  display: block;
  float: right;
  margin-right: 5px;
}

#slide1:checked~.slider-prev-next-control label:nth-child(5), #slide5:checked~.slider-prev-next-control label:nth-child(4), #slide4:checked~.slider-prev-next-control label:nth-child(3), #slide3:checked~.slider-prev-next-control label:nth-child(2), #slide2:checked~.slider-prev-next-control label:nth-child(1) {
  display: block;
  float: left;
  margin-left: 5px;
}

#slide1:checked~.slider-prev-next-control label:nth-child(5)::after, #slide5:checked~.slider-prev-next-control label:nth-child(4)::after, #slide4:checked~.slider-prev-next-control label:nth-child(3)::after, #slide3:checked~.slider-prev-next-control label:nth-child(2)::after, #slide2:checked~.slider-prev-next-control label:nth-child(1)::after {
  content: "<";
  padding-left: 8px;
}

#slide5:checked~.slider-dot-control label:nth-child(5), #slide4:checked~.slider-dot-control label:nth-child(4), #slide3:checked~.slider-dot-control label:nth-child(3), #slide2:checked~.slider-dot-control label:nth-child(2), #slide1:checked~.slider-dot-control label:nth-child(1) {
  background: #333;
}

#slide5:checked~.slider-wrapper article:nth-child(5) .info, #slide4:checked~.slider-wrapper article:nth-child(4) .info, #slide3:checked~.slider-wrapper article:nth-child(3) .info, #slide2:checked~.slider-wrapper article:nth-child(2) .info, #slide1:checked~.slider-wrapper article:nth-child(1) .info {
  opacity: 1;
}

#slide1:checked~.slider-wrapper .inner {
  margin-left: 0%;
}

#slide2:checked~.slider-wrapper .inner {
  margin-left: -100%;
}

#slide3:checked~.slider-wrapper .inner {
  margin-left: -200%;
}

#slide4:checked~.slider-wrapper .inner {
  margin-left: -300%;
}

#slide5:checked~.slider-wrapper .inner {
  margin-left: -400%;
}

/*---- TABLET ----*/
@media only screen and (max-width: 850px) and (min-width: 450px) {
  .slider-wrapper {
    border-radius: 0;
  }
}

/*---- MOBILE----*/
@media only screen and (max-width: 450px) {
  .slider-wrapper {
    border-radius: 0;
  }

  .slider-wrapper .info {
    opacity: 0;
  }
}

@media only screen and (min-width: 850px) {
  body {
    padding: 0 80px;
  }
}

/*AI generiraro - Fakcije*/

.main-section {
  position: relative;
  padding-top: 120px;
  margin-bottom: 80px;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.content-wrapper {
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  color: white;
}

.carousel-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: rgba(30, 30, 30, 0.8);
  border-radius: 20px;
  border: 1px solid rgb(238 153 26);
  transition: 0.3s;
}

.carousel-wrapper:hover {
  box-shadow: 0 10px 16px 0 rgb(238 153 26), 0 6px 20px 0 rgb(238 153 26);
}

.carousel-window {
  flex-grow: 1;
  overflow: hidden;
  margin: 0 20px;
  display: flex;
  justify-content: center;
}

.carousel-track {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
  width: max-content;
}

.carousel-item {
  text-align: center;
  user-select: none;
  transition: opacity 0.3s, transform 0.3s;
  width: fit-content;
  cursor: pointer;
  padding-bottom: 5px;
}

.carousel-item p {
  font-family: "Rubik Distressed", system-ui;
}

.carousel-item:hover {
  transform: scale(1.05);
}

.logo-box {
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 24px;
}

.logo-box img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.nav-btn {
  font-size: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 10px;
}

.info-box {
  background: rgba(30, 30, 30, 0.8);
  padding: 40px;
  min-height: 300px;
  text-align: center;
  border-radius: 20px;
  transition: opacity 0.3s ease-in-out;
  border: 1px solid rgb(238 153 26);
  transition: 0.3s;
}

.info-box:hover {
  box-shadow: 0 10px 16px 0 rgb(238 153 26), 0 6px 20px 0 rgb(238 153 26);
}

.info-box h2 {
  margin-bottom: 20px;
  font-size: 24px;
  color: rgb(238 153 26);
  font-family: "Rubik Distressed", system-ui;
}

.info-box p {
  text-align: justify;
  margin-bottom: 15px;
  line-height: 1.5;
}

.fade-out {
  opacity: 0;
}

.carousel-wrapper button {
  color: white;
}

.carousel-item .logo-box img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  transition: transform 0.3s ease-in-out;
}

.carousel-item p {
  margin-top: 10px;
  transition: color 0.3s ease-in-out;
  font-weight: normal;
}

.carousel-item.active .logo-box img {
  transform: scale(1.3);
}

.carousel-item.active p {
  color: rgb(238, 153, 26);
  font-weight: bold;
}

@media (max-width: 1140px) {
  .artikli {
    flex-direction: column;
    width: 90%;
  }

  .artikli div {
    width: 95%;
  }

  .artikli img {
    width: 80%;
    padding-top: 15px;
  }

  .kategorije h1 {
  font-family: STALKER;
  font-size: 100pt;
  padding-bottom: 10px;
}

.kategorije h2 {
  font-family: "Rubik Distressed", system-ui;
  font-size: 1em;
  padding-bottom: 50px;
}
}

@media (max-width: 700px) {
  #myVideo {
    display: none;
  }

  .kategorije {
    background-image: url(materijali/prica/pripyatD.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
  }
}