body, html {
  height: 100%;
  margin: 0;
  font-family: 'friends'
}

@font-face {
  font-family: 'friends';
  src: url('font/generator_config.txt');
  src: url('font/font-webfont.woff') format("woff");
  src: url('font/font-webfont.woff2') format("woff2");
  
  
}

* {
  box-sizing: border-box;
}

.bg-image {
  /* Full height */
  height: 50%;

  /* Center and scale the image nicely */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Images used */
.img1 { background-image: url("slike/s1.jpg"); }
.img2 { background-image: url("slike/s2.jpg"); }
.img3 { background-image: url("slike/s3.jpg"); }
.img4 { background-image: url("slike/s4.jpg"); }


/*gumb "kreni" pocetna*/


* {
  padding: 0;
  margin: 0;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -200px;
}

/* postavlja tekst u sredinu stranice/slike*/
.btn {
  text-decoration: none;
  /*border: 2px solid rgb(146, 148, 248);*/
  position: relative;
  overflow: hidden;
  background-color: rgba(0,0,0, 0.4);
  color: white;
  font-weight: bold;
  font-size: 60px;
  border: 10px solid #f1f1f1;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 450px; /*širina gumba*/
  padding: 20px;
  text-align: center;
  letter-spacing: 14px
}

/*responzivnost gumba*/
@media screen and (max-width: 600px) {
.btn {
  text-decoration: none;
  /*border: 2px solid rgb(146, 148, 248);*/
  position: relative;
  overflow: hidden;
  background-color: rgba(0,0,0, 0.4);
  color: white;
  font-weight: bold;
  font-size: 35px;
  border: 10px solid #f1f1f1;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 320px; /*širina gumba*/
  padding: 20px;
  text-align: center;
  letter-spacing: 14px
}
}

/*responzivnost gumba*/
@media screen and (max-width: 450px) {
.btn {
  text-decoration: none;
  /*border: 2px solid rgb(146, 148, 248);*/
  position: relative;
  overflow: hidden;
  background-color: rgba(0,0,0, 0.4);
  color: white;
  font-weight: bold;
  font-size: 22px;
  border: 10px solid #f1f1f1;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 250px; /*širina gumba*/
  height: 90px;
  padding: 20px;
  text-align: center;
  letter-spacing: 14px
}
}





.btn:hover {
  box-shadow: 1px 1px 25px 10px rgba(146, 148, 248, 0.4);
}

.btn:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(146, 148, 248, 0.4),
    transparent
  );
  transition: all 650ms;
}

.btn:hover:before {
  left: 100%;
}
