@import url('https://fonts.googleapis.com/css2?family=Arizonia&family=Poppins:wght@100;200;300;400;500;600;700;800;900&family=Red+Hat+Text:wght@300;400;500;600;700&display=swap');

/* RESET / OSNOVNO */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #f7ebe8;
  background-image: url(./media/background.jpg);
  background-attachment: scroll;
  color: #070608;
  font-family: 'Red Hat Text', sans-serif;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

svg {
  width: 25px;
}

a {
  color: #5d507f;
}

a:hover {
  color: #85b1b2 !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Red Hat Text', sans-serif;
  font-size: large;
}

h3 a,
nav a,
aside a {
  text-decoration: none;
}

/* HEADER PREKO SLIDERA */

header {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  max-width: 90%;
  height: 50px;
  display: grid;
  grid-template-columns: 250px 1fr 50px;
  align-items: center;
  z-index: 1000;
  color: #eee;
  font-family: Poppins, sans-serif;
}

header .logo {
  font-weight: bold;


}

header .menu {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  font-weight: 500;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #eee;
  font-size: 32px;
  cursor: pointer;
  z-index: 1001;
}

/* SLIDER */

.slider {
  height: 100vh;
  margin: 0;
  position: relative;
  background-color: #010101;
  color: #eee;
  font-family: Poppins, sans-serif;
}

.slider .list .item {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  transition: 0.5s;
}

.slider .list .item.active {
  opacity: 1;
  z-index: 10;
}

.slider .list .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider .list .item::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to top, #070707, 50%, transparent);
}

.slider .list .item .content {
  position: absolute;
  left: 10%;
  top: 20%;
  width: 500px;
  max-width: 80%;
  z-index: 1;
}

.slider .list .item .content p:first-child {
  text-transform: uppercase;
  letter-spacing: 10px;
}

.slider .list .item .content h2 {
  font-size: 60px;
  margin: 0;
}

@keyframes showContent {
  to {
    transform: translateY(0);
    filter: blur(0);
    opacity: 1;
  }
}

.slider .list .item.active p:first-child,
.slider .list .item.active h2,
.slider .list .item.active p:nth-child(3) {
  transform: translateY(30px);
  filter: blur(20px);
  opacity: 0;
  animation: showContent 0.5s 0.7s ease-in-out forwards;
}

.slider .list .item.active h2 {
  animation-delay: 1s;
}

.slider .list .item.active p:nth-child(3) {
  animation-duration: 1.3s;
}

/* SLIDER STRELICE */

.arrows {
  position: absolute;
  top: 30%;
  right: 50px;
  z-index: 100;
}

.arrows button {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 5px;
  background-color: #eee5;
  color: #eee;
  font-family: monospace;
  font-size: x-large;
  transition: 0.5s;
}

.arrows button:hover {
  background-color: #eee;
  color: #000;
}

/* THUMBNAILS */

.thumbnail {
  position: absolute;
  bottom: 50px;
  z-index: 11;
  display: flex;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 250px;
  padding: 0 50px;
  overflow: auto;
}

.thumbnail::-webkit-scrollbar {
  width: 0;
}

.thumbnail .item {
  width: 150px;
  height: 220px;
  flex-shrink: 0;
  filter: brightness(0.5);
  transition: 0.5s;
  position: relative;
}

.thumbnail .item.active {
  filter: brightness(1.5);
}

.thumbnail .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.thumbnail .item .content {
  position: absolute;
  inset: auto 10px 10px 10px;
}

/* LAYOUT */

.page-cols-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr minmax(320px, 1200px) 1fr;
}

.content-width,
.page-content {
  grid-column: 2 / 3;
}

.full-width {
  grid-column: 1 / -1;
}

.page-content {
  margin-top: 40px;
}

.content-cols-3 {
  display: grid;
  gap: 20px;
}

.content-cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ČLANCI */

.article img {
  width: 640px;
  height: 360px;
  object-fit: cover;
  border-radius: 10px;
}

.article3 img {
  width: 640px;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
}

/* TAMNA SEKCIJA */

.dark {
  grid-column: 1 / -1;
  width: 100%;
  background-color: #072e11;
  color: #eeeeee;
  padding: 10px 0;
}

.dark .content-cols-3 {
  max-width: 1200px;
  margin: 0 auto;
  gap: 10px;
  padding: 0 20px;
}

.dark article a {
  display: block;
  text-decoration: none;
  color: #eeeeee;
}

.dark article img {
  width: 100%;
  border: 1px solid #979393;
}

.tekstD {
  padding: 0 20px;
}

/* TRAKA */

.traka {
  grid-column: 1 / -1;
  width: 100%;
  background-color: #072e11;
  color: #eeeeee;
}

.traka article {
  max-width: 1200px;
  margin: 0 auto;
}

.poruka {
  font-family: Arizonia, sans-serif;
  font-weight: 100;
  font-size: xx-large;
  padding: 40px;
  text-align: center;
}

.poruka-potpis {
  padding-right: 80px;
  text-align: right;
}

/* MAGAZIN */

.page-title {
  grid-column: 2 / 3;
  margin-top: 60px;
  text-align: center;
  font-family: Red Hat TExt;
  font-size: xx-large;
}

.kratki {
  font-size: medium;
}

/* FOOTER */

.page-footer {
  margin-top: 60px;
  background-color: #072e11;
  color: #eeeeee;
  text-align: left;
  font-size: x-small;
}

.page-footer a {
  color: #eeeeee;
}

.copyright {
  grid-column: 1 / -1;
  text-align: center;
  font-size: large;
}

/* MEDIA QUERIES */

@media (min-width: 600px) {
  .content-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .content-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 678px) {
  header {
    grid-template-columns: 1fr auto;
    max-width: 100%;
    width: 100%;
    padding: 15px 20px;
    height: auto;
    left: 0;
    transform: none;
  }

  header .logo {
    width: auto;
    font-size: 18px;
    z-index: 1001;
  }

  .menu-toggle {
    display: block;
  }

  header .search {
    display: none;
  }

  header .menu {
    position: absolute;
    top: 55px;
    right: 20px;
    display: none;
    flex-direction: column;
    gap: 15px;
    padding: 20px 25px;
    margin: 0;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 10px;
    text-align: right;
    font-size: 14px;
  }

  header .menu.active {
    display: flex;
  }

  .slider .list .item .content h2 {
    font-size: 45px;
  }

  .arrows {
    top: 55%;
    right: 20px;
  }

  .thumbnail {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .content-cols-2 {
    grid-template-columns: 1fr;
  }

  .kratki {
    display: none;
  }

  .poruka {
    font-size: x-large;
    padding: 30px 20px;
  }

  .poruka-potpis {
    padding-right: 30px;
  }
}