* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "basic-sans";
}

html {
  font-size: 16px;
}

header {
  width: 100%;
  height: 120vh;
  background: url(img/zuto.png), url(img/plava-pozadina.png);
  background-size: contain, cover;
  background-repeat: no-repeat, repeat-x;
  background-position: right top, center;
  position: relative;
}

.headwrap {
  width: 100%;
  max-width: 1920px;
  height: 120vh;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.nav {
  position: fixed;
  left: 50%;
  top: 0; /* Umjesto bottom */
  transform: translateX(-50%) translateY(calc(80vh));
  width: 90%;
  border-radius: 2.01825rem;
  background: #5ad569;
  max-width: 44.3125rem;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
  transition: transform 0.4s ease-in-out;
}

.nav.top {
  transform: translateX(-50%) translateY(5%);
}

.navbtn {
  border-radius: 1.00913rem;
  border: 2px solid #f6f6f6;
  background: #f6f6f6;
  color: #5ad569;
  text-align: center;
  font-size: 1.5625rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.875rem; /* 120% */
  padding: 2rem;
  cursor: pointer;
}

.nobg {
  background: none;
  color: #f6f6f6;
}

.videos {
  width: 100%;
  height: 100vh;
  background: url(img/ruka.png);
  background-position: 60% bottom;
  background-repeat: no-repeat;
  background-size: contain;
  margin-bottom: -22rem;
  margin-top: 22rem;
  position: relative;
}

.mySwiper2 {
  position: absolute;
  left: 45%;
  top: -35%;
  transform: translateX(-50%) rotate(3deg);
}

@media (max-width: 1681px) {
  .mySwiper2 {
    max-width: 84rem;
    top: -28%;
    left: 43.5%;
  }
}

@media (max-width: 1601px) {
  .mySwiper2 {
    max-width: 96rem;
    top: -32%;
    left: 47%;
  }
}

@media (max-width: 1441px) {
  .mySwiper2 {
    max-width: 96rem;
    top: -32%;
    left: 46%;
  }
}

@media (max-width: 1369px) {
  .mySwiper2 {
    max-width: 80rem;
    top: -28%;
    left: 48%;
  }
}

@media (max-width: 1025px) {
  .mySwiper2 {
    max-width: 70rem;
    top: -28%;
    left: 40%;
  }
}

.josko,
.josko2,
.josko3,
.josko4 {
  height: 100%;
  max-height: 1183px;
  max-width: 1917px;
  width: auto;
  object-fit: contain;
  position: absolute;
  left: 10%;
  top: 20%;
  z-index: 20;
  pointer-events: none;
  display: none;
  transform: scale(2);
}

.active {
  display: block;
}

.joskomob {
  display: none;
}

.zvrlj {
  position: absolute;
  left: -10vw;
  top: 0;
  z-index: 2;
}

.megafon {
  position: absolute;
  max-width: 42rem;
  bottom: 0%;
  right: -5%;
}

.krug {
  position: absolute;
  left: 0;
  bottom: 0;
}

.titlewrap {
  position: absolute;
  right: 5%;
  top: 10%;
}

.title {
  font-family: "thunderhouse-pro";
  color: #ff369a;
  text-align: right;
  font-size: 20.17956rem;
  font-style: normal;
  font-weight: 400;
  line-height: 9.51325rem; /* 47.143% */
  position: relative;
  z-index: 10;
}

.papir {
  position: absolute;
  right: -5%;
  bottom: 28%;
  z-index: 1;
  width: 100%;
  max-width: 38rem;
}

.smtitle {
  color: #ff369a;
  font-family: "thunderhouse-pro";
  font-size: 13.08125rem;
  font-style: normal;
  font-weight: 400;
  line-height: 9.51325rem;
}

.xsmtitle {
  color: #ff369a;
  font-family: "thunderhouse-pro";
  font-size: 9.37806rem;
  font-style: normal;
  font-weight: 400;
  line-height: 9.51325rem;
  display: block;
  padding-top: 1rem;
}

.headlead {
  color: #ff369a;
  text-align: right;
  font-family: "thunderhouse-pro";
  font-size: 4.0625rem;
  font-style: normal;
  font-weight: 400;
  line-height: 4.8125rem; /* 118.462% */
  position: relative;
  z-index: 10;
  padding-top: 2rem;
}

.valovi {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 25;
}

.intro {
  background: #f6f6f6;
  width: 100%;
  padding: 2rem 0 11rem 0;
}

.content {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
}

.flex {
  display: flex;
  align-items: center;
}

.box50 {
  width: 50%;
}

.ruke {
  max-width: 608px;
  margin: 0 auto;
  width: 100%;
}

.lead {
  color: #242c5f;
  font-size: 21px;
  font-style: normal;
  font-weight: 400;
  line-height: 30px; /* 142.857% */
}

.bg {
  position: relative;
  z-index: 1;
  color: #fff;
}

.bg::before {
  content: "";
  position: absolute;
  inset: -0.3em -0.2em;
  background: url("img/rozo.svg") center/cover no-repeat;
  z-index: -1;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.articles {
  width: 100%;
  background: url(img/plava-pozadina.png);
  margin-top: -4rem;
  padding-top: 12rem;
  padding-bottom: 6rem;
  position: relative;
  font-size: 0;
}

.articles::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -2px;
  height: 12px;
  background: #f6f6f6;
  pointer-events: none;
}

.motiv {
  width: 100%;
  background: url(img/zuta-pozadina.png);
  margin-top: -8rem;
  padding-top: 12rem;
  padding-bottom: 16rem;
  position: relative;
  font-size: 0;
}

.game {
  width: 100%;
  background: url(img/rozi_full.svg), url(img/zelena-pozadina.png);
  background-position: center top, center top;
  background-size: 60%, cover;
  background-repeat: no-repeat, repeat;
  margin-top: -8rem;
  padding-top: 12rem;
  padding-bottom: 6rem;
  position: relative;
  font-size: 0;
}

.gameholder {
  margin: 3rem auto;
}

.gamelead {
  color: #fff;
  text-align: center;
  font-size: 1.3125rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1.875rem; /* 142.857% */
  padding-top: 3rem;
}

.voxbg {
  position: absolute;
  left: 0;
  bottom: 15%;
  max-width: 400px;
  pointer-events: none;
}

.reels {
  width: 100%;

  margin-top: 1.4rem;
}

.subtitle {
  color: #ff369a;
  font-family: "thunderhouse-pro";
  font-size: 15.625rem;
  font-style: normal;
  font-weight: 400;
  line-height: 9.375rem;
  text-align: center;
  text-shadow: 12px 12px 0px #ffffff;
}

.sublead {
  color: #f6f6f6;
  text-align: center;
  font-family: "thunderhouse-pro";
  font-size: 4.0625rem;
  font-style: normal;
  font-weight: 400;
  line-height: 4.8125rem;
  padding-top: 1.47rem;
}

.artgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.75rem 1.44rem;
  padding-top: 4rem;
}

.yellow {
  font-family: "thunderhouse-pro";
  color: #ffd930;
}

.blue {
  font-family: "thunderhouse-pro";
  color: #1ca6f4;
}

.arturl {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.artimg {
  width: 100% !important;
  height: 200px !important;
  object-fit: cover !important;
  background-position: center !important;
  border-radius: 1rem !important;
}

.arttitle {
  color: #f6f6f6;
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1.75rem; /* 116.667% */
  text-decoration: none;
  padding-top: 1.44rem;
  height: 6rem;
}

.videoimg {
  max-width: 42rem;
  display: block;
  margin: 6rem auto 0 auto;
}

.primfooter {
  background: #f6f6f6;
  position: relative;
  padding: 2rem 0;
}

.footerwrap {
  padding: 3rem 0;
  width: 100%;
  max-width: 52rem;
  margin: 0 auto;
  text-align: center;
}

.label {
  color: #43525a;
  text-align: center;
  font-size: 1.1875rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.75rem; /* 147.368% */
  text-transform: uppercase;
}

.legal {
  color: #242c5f;
  text-align: center;
  font-size: 1rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.5rem; /* 150% */
}

.logos {
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 3.12rem 0;
}

.secfooter {
  background: #5ad569;
  width: 100%;
  padding: 2rem 0;
  position: relative;
}

.links {
  align-items: center;
  justify-content: center;
  gap: 4.69rem;
  margin: 0 auto;
}

.link {
  text-decoration: none;
  color: #f6f6f6;
  text-align: center;
  font-size: 1.1875rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1.75rem; /* 147.368% */
  position: relative;
  z-index: 1;
}

.link::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 25px;
  background: url(img/rozi_papir.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 100px;
  height: 40px;
  z-index: -1;
}

.link::before:first-of-type {
  left: 0;
}

.knjiga {
  position: absolute;
  left: 0;
  top: 0;
  max-height: 30rem;
}

.footerimg {
  position: absolute;
  right: 0;
  bottom: 0;
  max-width: 18rem;
}

@media (max-width: 1681px) {
  html {
    font-size: 12px;
  }
  .title {
    line-height: 0.1;
  }
  .megafon {
    right: 0;
    max-width: 450px;
  }

  .josko,
  .josko2,
  .josko3,
  .josko4 {
    transform: scale(1.6);
  }
  .videos {
    margin-top: 30rem;
    margin-bottom: -32rem;
    background-position: 70% center;
  }
}

@media (max-width: 1369px) {
  .videos {
    margin-top: 20rem;
    margin-bottom: -18rem;
    background-position: 70% center;
  }
  .content {
    padding: 0 1rem;
  }
}

@media (max-width: 970px) {
  .content {
    padding: 0 1rem;
  }

  .titlewrap {
    position: static;
    padding: 1rem;
  }
  .title {
    font-size: 10rem;
    padding-top: 6rem;
    text-align: left;
  }
  .headlead {
    text-align: left;
  }
  .smtitle {
    font-size: 7rem;
    line-height: 0.5;
  }
  .xsmtitle {
    font-size: 5rem;
    line-height: 1;
  }
  .subtitle {
    font-size: 7rem;
  }
  .voxbg {
    display: none;
  }
  .megafon,
  .krug {
    display: none;
  }
  .videoimg {
    width: 90%;
    margin: 6rem auto 0 auto;
  }
  .game {
    background-size: contain, cover;
  }

  .headwrap {
    display: flex;
    flex-direction: column;
  }
  .flex {
    display: block;
  }
  .box50 {
    width: 100%;
  }
  .ruke,
  .artimg {
    width: 100%;
  }
  .content,
  .footerwrap {
    padding: 0 1rem;
  }
  .artgrid {
    grid-template-columns: repeat(1, 1fr);
  }
  .logos {
    display: flex;
    flex-direction: column;
    gap: 3rem;
  }
  .links {
    display: flex;
    gap: 2rem;
  }
  .papir {
    display: none;
  }

  .joskomob {
    display: block;
  }
  .mySwiper2 {
    position: static;
    transform: none;
  }
  .videos {
    background: none;
    margin: 0 auto;
    height: auto;
  }
  header,
  .headwrap {
    height: auto;
  }
  .active {
    height: 50vh;
  }
  .nav {
    position: static;
    transform: none;
  }
  .titlewrap {
    order: 1;
  }
  .joskos {
    order: 2;
  }
  .nav {
    order: 3;
    margin: 0 auto;
    padding: 1rem;
    margin-bottom: 2rem;
  }
  .valovi {
    display: none;
  }
  .navbtn {
    font-size: 1.3rem;
    padding: 1rem;
  }
  .josko,
  .josko2,
  .josko3,
  .josko4 {
    height: 50vh;
    left: 0;
    position: static;
    transform: scale(1.3);
    margin: 0 auto;
  }
  .bg {
    color: unset;
  }
  .bg::before {
    display: none;
  }
  .mySwiper2 {
    max-width: 70%;
  }
  .quiz-container {
    padding: 0 1rem;
    transform: scale(1);
  }
  .knjiga,
  .footerimg {
    display: none;
  }
}
