body{
    margin: 0px;
    padding: 0px;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    background-color: var(--secondary);
    font-family: monospace;
}

/*Za naslov da se wrapuje*/

h1{
  overflow-wrap: anywhere;
}



a:link,
a:hover,
a:visited{
    color: var(--font-secondary);
    text-decoration: none;
}

a:hover{
    color: var(--font-primary);
}

a.button-link:hover{
  color: var(--tertiary);
}

.glow-text{
  color: var(--tertiary);
  text-shadow: 0 0 16px var(--tertiary);
}

.placeholder-minimal-A{
  box-shadow: rgb(8 8 8 / 98%) 0px 3px 12px;
  background-color: var(--button-background-color);
  border-radius: 12px;
}

.placeholder-minimal-B{
  padding: 8px 12px;
  box-shadow: rgb(8 8 8 / 98%) 0px 3px 12px;
  background-color: var(--button-background-color);
  border-radius: 12px;
}

.placeholder-regular{
  margin: 8px;
  padding: 12px 16px;
  box-shadow: rgb(8 8 8 / 98%) 0px 3px 12px;
  background-color: var(--button-background-color);
  border-radius: 12px;
}

.glow-text:hover{
    text-shadow:
    0 0 5px var(--tertiary),
    0 0 10px var(--tertiary),
    0 0 20px var(--tertiary),
    0 0 40px var(--tertiary);
}

.glow-button{

  /*text-shadow: 0 0 16px var(--button-shadow-color);*/
  /*border: 1px solid var(--button-border-color);*/
  /*padding: 7px 4px;*/

  /*Novo*/
  padding: 12px 16px;
  box-shadow: rgb(8 8 8 / 98%) 0px 3px 12px;
  background-color: var(--button-background-color);
  border-radius: 12px;
  color: var(--tertiary);
  text-shadow: 0 0 6px var(--button-shadow-color);
  transition: 0.1s ease;
}

.glow-button:hover{
    text-shadow:
    /* 0 0 5px var(--tertiary),
    0 0 10px var(--tertiary),
    0 0 20px var(--tertiary),
    0 0 40px var(--tertiary); */
    0 0 5px var(--tertiary),
    0 0 8px var(--tertiary),
    0 0 4px var(--tertiary),
    0 0 30px var(--tertiary);
    background-color: var(--button-hover-background-color);
    scale: 1.1;
    transition: 0.1s ease;
}

.glow-button:active{
    scale: 1.0;
    transition: 0.1s ease;
}

.button-wrapper{
  display: flex;
  flex-direction: row;
  width: 100%;
  gap: 16px;
}

/*-----------------------------CRVENI STILIZOVANI FONT*/
.styled-font{
    color: var(--tertiary) !important;
}

.styled-font-special{
    color: var(--special-color) !important;
}

/*-------------------------------------------------------------------HEADER*/

header{
    width: 100%;
    display: flex;
    align-items: center;
    background-color: var(--primary);
}

nav{
    display: flex;
    flex-direction: row;
    flex-grow: 1;
    align-items: center;
    justify-content: center;
}

.nav-button{
    padding: 12px;
    font-size: x-large;
}

#nav-left-placeholder{
width: 25%;
min-width: 25%;
height: 100%;
padding: 12px;
display: flex;
align-items: center;
justify-content: flex-start;
}

#nav-right-placeholder{
width: 25%;
min-width: 25%;
height: 100%;
padding: 12px;
display: flex;
align-items: center;
justify-content: flex-end;
}

#clock{
    width: fit-content;
    height: 100%;
    display: flex;
    align-self: center;
    justify-self: center;
    /* padding: 12px;
    padding-right: 48px; */
    color: var(--tertiary);
}

/*--------------------------------------------GLAVNI SADRZAJ (HERO, SEKCIJE...)*/

main{
    display: flex;
    flex-grow: 1;
    max-width: 50%;
    width: 32%;
    padding: 2% 6%;
    flex-direction: column;
    align-self: center;
}


#hero{
    max-width: 100%;
    padding-top: 5%;
    padding: 5%;
}

#hero-heading{
    font-size: 6rem;
    margin-bottom: 0px;
    color: var(--font-primary);
}

#hero-under-heading{
    font-size: 2rem;
    margin-top: 0px;
    color: var(--font-secondary);
}

.showoff-heading{
    font-size: 4rem;
    /* margin-bottom: 0px; */
    color: var(--font-primary);
}

/*-----------------------------------------Sekcije*/
.column-section,
.row-section{
    display: flex;
    /* padding: 2% 1%; */
    padding: 2% 2%;
    flex-direction: column;
    color: var(--font-primary);
    align-items: flex-start;
}

.row-section{
  flex-direction: row;
}

/*------------------------------------------Tabele*/
/* table {
  max-width: 100%;
  width: fit-content;
  border-spacing: 0;
  border-collapse: collapse;
  font-size: large;
}

th{
color: var(--font-primary);
}

td{
    color: var(--font-secondary);
}

th, td {
  padding: 12px 16px;
  border: 1px solid var(--border-color);
} */

/*------------------------------------------Tabela - Zakrivljena*/
table {
  max-width: 100%;
  width: fit-content;

  border-collapse: separate;   /* changed */
  border-spacing: 0;

  border: 1px solid var(--border-color);
  box-shadow: rgb(8 8 8 / 98%) 0px 3px 12px;
  background-color: var(--table-background-color);

  border-radius: 8px;
  overflow: hidden;

  font-size: large;
}

th {
  color: var(--font-primary);
}

td {
  color: var(--font-secondary);
}

th,
td {
  padding: 12px 16px;

  /* inner grid */
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* remove extra outer borders */
tr:last-child td {
  border-bottom: none;
}

th:last-child,
td:last-child {
  border-right: none;
}

.bio-image{
  width: 100%;
  max-width: 164px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
}




/*-------------------------------------------------------------------FOOTER*/
footer{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    height: fit-content;
    background-color: var(--primary);
}

.footer-column{
    display: flex;
    flex-direction: column;
    padding: 24px;
    color: var(--font-secondary);
}

.copyright {
  color: var(--font-secondary);
  font-size: 0.9rem;
  text-align: center;
  opacity: 0.8;
}

/*-----------------------------------------INFO / BLOG SECTIONS*/

.info-block,
.blog-block{
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 32px 0px;
    color: var(--font-primary);
}

.info-block h2,
.blog-block h2{
    margin: 0px 0px 16px 0px;
    font-size: 2.5rem;
    color: var(--font-primary);
}

.info-block h3,
.blog-block h3{
    margin: 0px 0px 12px 0px;
    font-size: 1.5rem;
    color: var(--font-primary);
}

.info-block p,
.blog-block p{
    margin: 0px 0px 18px 0px;
    color: var(--font-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

.info-block p:last-child,
.blog-block p:last-child{
    margin-bottom: 0px;
}

.info-block.underline,
.blog-block.underline{
    padding-bottom: 40px;
}

/*-----------------------------------------BLOG LAYOUT HELPERS*/

.blog-meta{
    display: flex;
    flex-direction: row;
    gap: 16px;
    margin-bottom: 16px;
    color: var(--font-secondary);
    opacity: 0.8;
    font-size: 0.9rem;
}

.blog-image{
    width: 100%;
    max-width: 100%;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 24px;
}

.blog-tags{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.blog-tag{
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    color: var(--font-secondary);
    font-size: 0.9rem;
}

#hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--font-primary);
    text-shadow: 0 0 6px var(--button-shadow-color);
    font-size: 1.8rem;
    cursor: pointer;
    text-shadow:
    /* 0 0 5px var(--tertiary),
    0 0 10px var(--tertiary),
    0 0 20px var(--tertiary),
    0 0 40px var(--tertiary); */
    0 0 5px var(--tertiary),
    0 0 8px var(--tertiary),
    0 0 4px var(--tertiary),
    0 0 30px var(--tertiary);
}

#hamburger:hover{
    text-shadow:
    0 0 5px var(--tertiary),
    0 0 8px var(--tertiary),
    0 0 4px var(--tertiary),
    0 0 30px var(--tertiary);
}



/* Desktop varijante*/
@media (min-width: 1280px) and (max-width: 1920px) { 
    main{
      min-width: 60%;
      width: 60%;
    }

    #nav-left-placeholder{
      min-width: 0%;
      width: fit-content;
    }
    #nav-right-placeholder{
      min-width: 0%;
      width: fit-content;
    }
}

@media (min-width: 768px) and (max-width: 1280px) { 
    main{
      min-width: 60%;
      width: 60%;
    }

    #nav-left-placeholder{
      min-width: 0%;
      width: fit-content;
    }
    #nav-right-placeholder{
      min-width: 0%;
      width: fit-content;
    }

    .helper-direction{
      flex-direction: column;
    }

}

@media(max-width: 912px){
  #nav-left-placeholder{
      display: none;
    }
    #nav-right-placeholder{
      display: none;
    }
}

@media (max-width: 768px) {

    main{
      min-width: 75%;
    }

    .helper-direction{
      flex-direction: column;
    }
    .info-block,
    .blog-block{
        padding: 24px 0px;
    }

    .info-block h2,
    .blog-block h2{
        font-size: 1.8rem;
    }

    .info-block h3,
    .blog-block h3{
        font-size: 1.2rem;
    }

    .info-block p,
    .blog-block p{
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .blog-meta{
        flex-direction: column;
        gap: 4px;
    }
    

  /* HEADER */

  #hamburger {
      display: block;
      z-index: 1001;
      margin: 24px;
  }

  #clock{
    width: 100%;
    min-width: 100%;
  }

  header {
    flex-direction: column;
    align-items: flex-end;
  }

  nav {
    display: flex;              /* keep flex */
    flex-direction: column;
    width: 100%;
    background-color: var(--primary);
    padding: 0px;

    /* animation setup */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;

    transition: 
      max-height 0.3s ease,
      opacity 0.2s ease,
      transform 0.2s ease;
  }

  nav.active {
    max-height: 500px; /* big enough for your menu */
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* nav {
    flex-wrap: wrap;
    gap: 8px;
  } */

  .nav-button {
    font-size: 1rem;
    padding: 8px;
  }

  #clock {
    padding: 8px;
  }

  #nav-right-placeholder{
    display: none;
    width: fit-content;
    justify-content: center;
  }

  #nav-left-placeholder{
    display: none;
    min-width: 0%;
    width: 0%;
    justify-content: center;
  }
  /* HERO */
  #hero {
    padding: 10% 5%;
    text-align: center;
  }

  #hero-heading {
    font-size: 2.5rem;
  }

  #hero-under-heading {
    font-size: 1.2rem;
  }

  /* TABLE */
  table {
    font-size: 0.9rem;
  }

  th, td {
    padding: 8px 10px;
  }

  /* FOOTER */
  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-column {
    padding: 12px;
  }
}

@media (max-width: 768px){
  table {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 430px){
  main {
    width: 100%;
    max-width: 100%;
    padding: 0px;
  }
  
  /* .column-section{
    padding: 0px;
  } */

    /*Ovo je za overflow, da se padding i ostale stvari racunaju u konacnu duzinu elementa, van 100% (ostaje u opsegu do 100%) */
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
}