@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

@font-face {
  font-family: britney;
  src: url(Britney_Complete/Fonts/OTF/Britney-Bold.otf);
}

*{
  margin: 0;
  padding:0;
}

body {
    overflow-x: hidden;
    font-family: "Montserrat", sans-serif;
    background-color: #dcc084;
  }
  
  .prvi{
    height: 100vh;
    width: 100vw;
    background-image: url(slike/section1.jpg);
    background-size: cover;
    background-repeat: no-repeat;
  }

  .drugi{
    width: 100vw;
    background-color: #ca5331;
    color: white;
    line-height: 30px;
  }

  h2{
    padding-top: 5vh;
    margin-left: 15%;
    font-size: 40pt;
    font-family: britney;
  }

  .uvod{
    margin-left: 15%;
    margin-right: 10%;
    padding-top: 3%;
    padding-bottom: 5%;
  }
  
  main{
    width: 100%;
    height: 200%;
    background-color: #dcc084;
    padding-top: 5vh;
  }

  .lenta_naslov{
    margin-right: 80%;
    font-size: 40pt;
    font-family: britney;
  }

  .lenta_text{
    margin-left: 15%;
    margin-right: 10%;
    margin-bottom: 10%;
    margin-top: 2%;
  }

  img {
    max-width: 100%;
  }
  
  .ag-section{
    margin-bottom: 2%;
  }

  .ag-format-container {
    width: 1160px;
    margin: 0 auto;
  
    position: relative;
  }
  
  .ag-timeline-block {
    padding: 30px 0;
  }
  .ag-timeline_title-box {
    padding: 0 0 30px;
  
    text-align: center;
  }
  .ag-timeline_tagline {
    font-size: 40px;
    color: rgb(84, 89, 95);
  }

  .ag-timeline_title {
    background-image: url(https://raw.githubusercontent.com/SochavaAG/example-mycode/master/pens/timeline/images/bg.jpg);
    background-repeat: no-repeat;
    background-position: 50% 50%;
  
    background-size: cover;
    -webkit-background-clip: text;
    background-clip: text;
    text-fill-color: transparent;
    color: transparent;
  
    font-size: 80px;
  }
  
  .ag-timeline_item {
    margin: 0 0 50px;
  
    position: relative;
  }
  .ag-timeline_item:nth-child(2n) {
    text-align: right;
  }
  
  .ag-timeline {
    display: inline-block;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  
    position: relative;
  }
  .ag-timeline_line {
    width: 2px;
    background-color: #393935;
  
    position: absolute;
    top: 2px;
    left: 50%;
    bottom: 0;
  
    overflow: hidden;
  
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    transform: translateX(-50%);
  }
  
  .ag-timeline_line-progress {
    width: 100%;
    height: 20%;
    background-color: #ca5331;
  }
  
  .ag-timeline-card_box {
    padding: 0 0 20px 50%;
  }
  .ag-timeline_item:nth-child(2n) .ag-timeline-card_box {
    padding: 0 50% 20px 0;
  }
  .ag-timeline-card_point-box {
    display: inline-block;
    margin: 0 14px 0 -28px;
  }
  .ag-timeline_item:nth-child(2n) .ag-timeline-card_point-box {
    margin: 0 -28px 0 14px;
  }
  .ag-timeline-card_point {
    height: 50px;
    line-height: 50px;
    width: 50px;
    border: 3px solid #dcc084;
    background-color: #ca5331;
  
    text-align: center;
    font-family: 'ESL Legend', sans-serif;
    font-size: 20px;
    color: #FFF;
  
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
  }
  .js-ag-active .ag-timeline-card_point {
    color: #1d1d1b;
    background-color: #ca5331;
  }
  .ag-timeline-card_meta-box {
    display: inline-block;
  }
  .ag-timeline-card_meta {
    margin: 10px 0 0;
  
    font-family: 'ESL Legend', sans-serif;
    font-weight: bold;
    font-size: 28px;
    color: #ca5331;
  }
  .ag-timeline-card_item {
    display: inline-block;
    width: 45%;
    margin: -77px 0 0;
    /*background-color: #282828;*/
  
    opacity: 0;
  
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
  
    -webkit-box-shadow: 0 0 0 0 rgba(0,0,0,.5);
    -moz-box-shadow: 0 0 0 0 rgba(0,0,0,.5);
    -o-box-shadow: 0 0 0 0 rgba(0,0,0,.5);
    box-shadow: 0 0 0 0 rgba(0,0,0,.5);
  
    -webkit-transition: -webkit-transform .5s, opacity .5s;
    -moz-transition: -moz-transform .5s, opacity .5s;
    -o-transition: -o-transform .5s, opacity .5s;
    transition: transform .5s, opacity .5s;
  
    position: relative;
  }
  .ag-timeline_item:nth-child(2n+1) .ag-timeline-card_item {
    -webkit-transform: translateX(-200%);
    -moz-transform: translateX(-200%);
    -ms-transform: translateX(-200%);
    -o-transform: translateX(-200%);
    transform: translateX(-200%);
  }
  .ag-timeline_item:nth-child(2n) .ag-timeline-card_item {
    -webkit-transform: translateX(200%);
    -moz-transform: translateX(200%);
    -ms-transform: translateX(200%);
    -o-transform: translateX(200%);
    transform: translateX(200%);
  }
  .js-ag-active.ag-timeline_item:nth-child(2n+1) .ag-timeline-card_item,
  .js-ag-active.ag-timeline_item:nth-child(2n) .ag-timeline-card_item {
    opacity: 1;
  
    -webkit-transform: translateX(0);
    -moz-transform: translateX(0);
    -ms-transform: translateX(0);
    -o-transform: translateX(0);
    transform: translateX(0);
  }
  .ag-timeline-card_arrow {
    height: 18px;
    width: 18px;
    margin-top: 20px;
  
  
    z-index: -1;
    position: absolute;
    top: 0;
    right: 0;
  
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
  }
  .ag-timeline_item:nth-child(2n+1) .ag-timeline-card_arrow {
    margin-left: calc(-18px / 2);
    margin-right: calc(-18px / 2);
  }
  .ag-timeline_item:nth-child(2n) .ag-timeline-card_arrow {
    margin-left: -10px;
  
    right: auto;
    left: 0;
  }
  .ag-timeline-card_img {
    width: 100%;
  }
  .ag-timeline-card_info {
    padding: 20px 30px;
  }
  .ag-timeline-card_title {
    display: none;
    margin: 10px 0 0;
  
    font-family: 'ESL Legend', sans-serif;
    font-weight: bold;
    font-size: 28px;
    color: #e2c079;
  }
  .ag-timeline-card_desc {
    line-height: 1.45;
  
    font-size: 16px;
    color: #6a604f;
  }
  
  
  @media only screen and (max-width: 979px) {
    .ag-timeline_line {
      left: 30px;
    }
  
    .ag-timeline_item:nth-child(2n) {
      text-align: left;
    }
  
    .ag-timeline-card_box,
    .ag-timeline_item:nth-child(2n) .ag-timeline-card_box {
      padding: 0 0 20px;
    }
    .ag-timeline-card_meta-box {
      display: none;
    }
    .ag-timeline-card_point-box,
    .ag-timeline_item:nth-child(2n) .ag-timeline-card_point-box {
      margin: 0 0 0 8px;
    }
    .ag-timeline-card_point {
      height: 40px;
      line-height: 40px;
      width: 40px;
    }
    .ag-timeline-card_item {
      width: auto;
      margin: -65px 0 0 75px
    }
    .ag-timeline_item:nth-child(2n+1) .ag-timeline-card_item,
    .ag-timeline_item:nth-child(2n) .ag-timeline-card_item {
      -webkit-transform: translateX(200%);
      -moz-transform: translateX(200%);
      -ms-transform: translateX(200%);
      -o-transform: translateX(200%);
      transform: translateX(200%);
    }
    .ag-timeline_item:nth-child(2n+1) .ag-timeline-card_arrow {
      right: auto;
      left: 0;
    }
    .ag-timeline-card_title {
      display: block;
    } 
    .ag-timeline-card_arrow {
      margin-top: 12px;
    }

    .prvi{
      height: 100vh;
      width: 100vw;
      background-size: cover;
    background-repeat: no-repeat;
    }
  }
  
  @media only screen and (max-width: 767px) {
    .ag-format-container {
      width: 96%;
    }
  
    .ag-timeline-card_img {
      height: auto;
      width: auto;
    }
  }
  
  @media only screen and (max-width: 639px) {
    .ag-timeline_title {
      font-size: 60px;
    }
  
    .ag-timeline-card_info {
      padding: 10px 15px;
    }
    .ag-timeline-card_desc {
      font-size: 14px;
    }
  }
  
  @media only screen and (max-width: 479px) {
  
  }
  
  @media (min-width: 768px) and (max-width: 979px) {
    .ag-format-container {
      width: 750px;
    }
  
  }
  
  @media (min-width: 980px) and (max-width: 1161px) {
    .ag-format-container {
      width: 960px;
    }
  
  }

  figcaption{
    width: 70vw;
    font-size: 15pt;
    text-align: left;
  }

/*Navigacija*/
.navigacija{
  height: 100px;
  width: 100vw;
  display: flex;
  justify-content: center; /* Centriranje sadržaja po horizontali */
  align-items: center;
  background-color: #f4e3c7;
}

.active{
  font-weight: bold;
}

.logo{
  width: 15%;
  margin-right: auto;
  margin-bottom: 8vh;
}

.gumb{
  width: 1;
  border: 1px solid #ca5331;
  padding: 10px;
  box-shadow: 5px 10px #ca5331;
  padding: 15px 35px;
  text-align: center;
  display: inline;
  font-size: 15px;
  background-color: #f4e3c7;
}

a{
  text-decoration: none;
  color: #ca5331;
}

button{
  margin-right: 5vw;
}

/* figure*/
figure{
  height: fit-content;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

img{
	width: 50vw;
  margin-top: 10vh;
}

figcaption{
	font-size: 17pt;
  width:49vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  bottom: 10vh;
}

p{
	font-size: 14pt;
  width: 70vw;
	text-align: left;
	margin-bottom: 3vh;
}

.okviri{
  background-color: white;
  border: 1px solid #ca5331;
  padding: 10px;
  box-shadow: 5px 10px #ca5331;
  width: 52vw;
  position: relative;
  margin: auto;
  margin-top: 10vh;
  padding-bottom: 20vh;
}

h1{
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 10%;
  font-size: 70pt;
  font-family: britney;
  color: #ca5331;
  text-shadow: 5px 5px #e2c079;
}

footer{
  height: 10vh;
  width: 100vw;
  background-color: #ca5331;
  text-align: center;
  padding-top: 50px;
  margin-top: 20vh;
}

/*.line::before {
  content: " ";
  display: block;
  height: 0.3vh;
  width: 15vh;
  position: absolute;
  top: 50%;
  left: 6vh;
  background: white;
}

line{
  position: relative;
  top:100%;
  max-width:  33.738191632928476vw;
  text-align: center;
}*/

.fig{
    width: 40vw;
    text-align: left;
}

@media screen and (max-width: 1200px) {
    .prvi {
        height: 53vh;
        background-size: 100vw;
        background-size: cover;
    }
    h1 {
        font-size: 50pt;
    }
    .fig {
      margin-left: 4vh;
    }
}

@media screen and (max-width: 600px) {
  .prvi {
      height: 34vh;
      background-size: 100vw;
      background-size: cover;
  }
  h1 {
      font-size: 50pt;
  }

  .gumb {
      font-size: 10pt;
      padding: 10px 25px;
      box-shadow: 2.5px 5px #ca5331;
  }
  .fig {
    margin-left: 4vh;
  }
}