*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

:root {
  --textTemen: #444;
  --textBel: #fff;
  --lineHeight: 22pt;
}

body {
  min-height: 100vh;
  font-family: system-ui;
  font-size: 12pt;
  background-color: #000;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

iframe {
  display: block;
  width: 99vw;
  height: calc((99vw / 16) * 9);
  border: none;
}

strong{
  font-weight: 700;
}

b {
  font-weight: 700;
}

nav {
  position: fixed;
  top: 0;
  min-width: 100%;
  min-height: 3rem;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2;
  padding-top: .25rem;
}

.meni-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;


  & a{
    color: #fff;
    display: inline;
    text-decoration: none;

  }

  & a:hover{
    font-weight: 900;
  }

  & a img{
    height: 2rem;
    display: inline;
    filter: opacity(0.5);
  }

  & a:hover img{
    filter: opacity(1);
  }

  & a:active img{
    filter: opacity(1);
  }

  & div:nth-child(1){
    padding-left: 1rem;  
  }

  & div:nth-child(1) a{
    padding-right: 1rem;  
  }

  & div:nth-child(2){
    justify-self: right; 
    padding-top: .25rem; 
    padding-right: .5rem;  
  }

  & div:nth-child(2) a{
    padding-inline: .2rem;    
  }
}

.hero {
  min-height: 95dvh;
  background-image: url('img/SlikaLanding.webp');
  background-size: cover;
  background-position: top right;
}

.hero-about {
  min-height: 95dvh;
  background-image: url('img/about/about.webp');
  background-size: cover;
  background-position: center;
}

.hero h1 {
  font-size: 16pt;
  padding-top: 50vh;
  text-align: center;
  font-weight: 300;
  color: #fff;
}

h1 {
  font-size: 60pt;
  font-weight: 900;
  padding-bottom: 2rem;
  color: #444;
}

h3 {
  font-size: 12pt;
  line-height: var(--lineHeight);
  color: var(--textTemen);
}

article {
  position: relative;
}

article > div {
  display: block;
  position: absolute;
  display: none;
  transition: filter 0.5s;
  
}

article > a > img {
  filter: saturate(0);
  width: 100%;
}

article:hover > div {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  /* text-shadow: 1px 1px #000; */
  display: block;
}

article:hover > a > img,
article:active > a > img {
  filter: saturate(1);
  transition: filter 0.5s;
}

.sodrzina {
  display: grid;
  grid-template-columns: 1fr 1fr;
  color: white;
}

.sodrzina h2 {
  font-size: 32px;
  font-weight: 900;
}

.sodrzina p {
  font-size: 14pt;
}

.zatemneto {
  filter: brightness(0.5);
}

.belaPozadina {
  background-color: #fff;
}

.opis {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 1rem;
  padding-block: 4rem 1rem;
}

.about-grid{
  padding-top: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 98dvh;
  align-items: center;
}

.koloni {
  display: grid;
  gap: 2rem;
}

.koloni p {
  font-weight: 100;
  line-height: var(--lineHeight);
  color: var(--textTemen);
}

.koloni p .bel-tekst{
  font-weight: 100;
  line-height: var(--lineHeight);
}

.sliki {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.dveSoEdna {
  grid-template-columns: 2fr 1fr;
}

.ednaSoEdna {
  grid-template-columns: 1fr 1fr;
}

.triSoDve {
  grid-template-columns: 3fr 2fr;
}

.dvaRemDole {
  padding-bottom: 2rem;
}

.nevidliv{
  display: none;
}

.bel-tekst{
  color: #fff !important;
}

@media only screen and (max-width: 600px) {
  .hero, .hero-about {
    min-height: 70vh;
  }
  h1 {
    font-size: 48px;
    line-height: 1;
  }
  .meni-grid a img{
    filter: opacity(1);
  }
  .sodrzina {
    display: grid;
    grid-template-columns: 1fr;
    color: white;
  }
  .sodrzina h2 {
    font-size: 1.5rem;
  }
  .ednaSoEdna,
  .dveSoEdna,
  .triSoDve,
  .sliki,
  .about-grid {
    grid-template-columns: 1fr;
  }

  article > div {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: block;
  }

  /* article > a > img{
    filter: saturate(1);
  } */
}
