@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    opacity: 1;
    text-shadow:
      0 0 5px white,
      0 0 10px white,
      0 0 20px white,
      0 0 40px white,
      0 0 80px white;
  }
  20%, 24%, 55% {
    opacity: 0.1;      /* flicker */
    text-shadow: none;  
  }
}

@font-face {
    font-family: 'Impact'; /* ime */
    src: url('fonts/impact/Impact.woff2.woff2') format('woff2'),
         url('fonts/impact/Impact.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'FranklinGothic-MediumCond'; 
    src: url('fonts/Franklin-Gothic-Medium-Cond/FranklinGothic-MediumCond.woff2.woff2') format('woff2'),
         url('fonts/Franklin-Gothic-Medium-Cond/FranklinGothic-MediumCond.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'onajfont'; 
    src: url('fonts/TwCenMTS/TwCenMTStd.woff2.woff2') format('woff2'),
         url('fonts/TwCenMTS/TwCenMTStd.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

body {
  background: black;
  color: white;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  
  
}

.container {
  display: flex;
  width: 90%;
  justify-content: space-between;
}

.left {
  width: 30%;
  margin-top: -90px;
}

.right {
  width: 50%;
  text-align: center;
  position: relative;
}

/*#main-title {
  font-size: 4em;
  font-weight: bold;
  transition: all 0.5s ease;
}*/

.subjects button {
  background: none;
  border: 2px solid white;
  border-radius: 50%;
  padding: 10px 15px;
  margin: 5px;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.years button:hover, .subjects button:hover {
  background: white;
  color: black;
}

#project-list {
  margin-top: 30px;
  font-size: 1.2em;
}

.subjects {
  display: flex;       
  gap: 10px;           
  flex-wrap: wrap;     
}


.subject {
  display: flex;           
  gap: 10px;               
  flex-wrap: wrap;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid white;
  display: flex;
  justify-content: center;
  align-items: center;
  /*margin: 10px;*/
  cursor: pointer;
}

.subject img {
  display: block;        
  width: auto;           
  height: 150px; 
  width: 100px;         
  transition: filter 0.2s ease; 
}
.subject:hover img {
  filter: invert(1); 
}

.subject img {
  width: 38px;  
  height: 38px;
}

.year {
  background: none;      
  border: none;          
  border-radius: 0;      
  width: auto;           
  height: auto;         
  padding: 0;            
  display: inline-block; 
  cursor: pointer;       
}

.year img {
  display: block;        
  width: auto;           
  height: 150px; 
  width: 100px;         
  transition: filter 0.2s ease; 
}
.year:hover img {
  filter: invert(1); 
}

.year.active img,
.subject.active img {
  filter: invert(1) drop-shadow(0 0 2px white); 
}







.text {
    font-family: 'Impact', sans-serif;
    font-size: 28px; 
}



.ime {
    font-family: 'Impact', sans-serif;
  font-size: 15vw; 
    display: inline-block;
    line-height: 1;
    margin: 0;
    letter-spacing: -1px;
    transform:  scaleY(1); /* sire i vise*/
}

.prezime {
    font-family: 'Impact', sans-serif;
  font-size: 10.7vw;
    display: block;
    line-height: 1;
    margin: -40px 0 0 0; /* za namjestit da se dodiruju */
    margin-left: 16px; 
}



h2 {
    font-family: 'onajfont', sans-serif;
    font-size: 70px; 
}
h3 {
    font-family: 'onajfont', sans-serif;
    font-size: 30px; 
}
p {
    font-family: 'FranklinGothic-MediumCond', sans-serif;
    font-size: 20px; 
}

/*.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  pointer-events: none; 
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 30px 15px rgba(255, 255, 255, 0.6);
  transform: translate(-50%, -50%);
  transition: transform 0.05s linear;
  z-index: 9999;
}
*/

body {
  cursor: none; /* sakri default */
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 15px 6px rgba(255, 255, 255, 0.8);
  pointer-events: none;
  z-index: 9999;
}

.neon {
  color: black; 
  text-shadow:
    0 0 5px white,
    0 0 10px white,
    0 0 20px white,
    0 0 40px white,
    0 0 80px white;
  animation: flicker 2.5s forwards;
}



.subjects-row {
  display: flex;
  gap: 20px;          /* razmak između kolona */
  align-items: flex-start; 
}



.subject-col {
  flex: 1; /* svaki predmet zauzima jednak prostor */
}


.subject-col p {
  background: none;      
  border-radius: 0;      
  padding: 0;           
  margin-bottom: 5px;    
  text-align: center;
  color: white;
  text-decoration: underline; 
  font-size: 18px;       
}


.subject-col h4 {
  font-size: 36px; /* veći naslov */
  text-align: center;
  margin-bottom: 15px; 
  text-transform: uppercase; 
}


.subjects-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 kolone jednako široke */
  gap: 20px;
}


.subject-column {
  flex: 1;            /* sve kolone jednako širine */
  display: flex;
  flex-direction: column; /
}

.subjects-container {
  display: flex;
  margin-top: 20px;
  border-top: 2px solid white; 
}

.subject-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 20px; 
  border-right: 2px solid white;
}

.subject-column:last-child {
  border-right: none; 
}

.subject-column h4 {
  font-size: 1.5rem; 
  margin-bottom: 10px;
}

.subject-column p {
  margin: 5px 0;
}

.subject-column p a {
  color: white;
  text-decoration: underline; 
  font-size: 1rem;
}

.subjects-row {
  display: flex;
  gap: 20px; 
  align-items: stretch;
}

.subject-col {
  flex: 1;
  padding: 10px;
  border-right: 2px solid #fff; /* crta između stupaca */
}

.subject-col:last-child {
  border-right: none;
}




