:root {
  --main-color: #008e66;
  --color-block-1: #fbd00a;
  --color-block-2: #ef7025;
  --color-block-3: #d72129;
  --color-block-5: #b42080;
  --color-block-6: #005b9a;
  --button-hover: #00533a;
}

@font-face {
  font-family: "Core Sans C";
  src: url("./fonts/CoreSansC-45Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Core Sans C";
  src: url("./fonts/CoreSansC-55Medium.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: "Core Sans C";
  src: url("./fonts/CoreSansC-65Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "Core Sans C";
  src: url("./fonts/CoreSansC-75ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
}
@font-face {
  font-family: "Core Sans C";
  src: url("./fonts/CoreSansC-85Heavy.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
}

html {
  scroll-behavior: smooth;
}

body {
  padding: 0;
  margin: 0;
  font-family: "Core Sans C";
  background-color: #f9f9f9;
}

/* img {
    pointer-events: none;
  } */

.hidden {
  display: none !important;
}

.loader_backdrop {
  position: absolute;
  z-index: 12;
  background-color: var(--main-color);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader_backdrop--hidden {
  display: none !important;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
}

.mobile {
  display: none !important;
}

.header-mobile {
  display: none;
}

.dobitnici_button {
  cursor: pointer;
}

.dobitnici-od-prvo-kolo {
  display: flex;
  justify-content: center;
  margin-top: 55px;
  gap: 24px;
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 999; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.7); /* Black w/ opacity */
  overflow: hidden;
}

/* Modal Content/Box */
.modal-content {
  background-color: #fefefe;
  margin: 11% auto; /* 11% from the top and centered */
  padding: 10px;
  border: 1px solid #888;
  width: 500px; /* Could be more or less, depending on screen size */
}

.modal-content img {
  width: 100%;
}

/* The Close Button */
.close {
  color: black;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}


header {
  width: 100%;
  max-height: 5rem;
  height: 100%;
  padding: 1rem 0;
  background-color: #ffffff;
  box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.12);
  position: sticky;
  top: 0;
  z-index: 5;
}

.header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.header-logos {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 5rem;
}
.header-items {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.header-items a {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1rem;
  color: #000000;
  transition: color 0.1s ease-in-out;
  outline: none;
  border: none;
  background: none;
  padding: 0;
}
.header-items button,
#rules_menu,
#language_switcher {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1rem;
  color: #000000;
  transition: color 0.1s ease-in-out;
  outline: none;
  border: none;
  background: none;
  padding: 0;
}

#rules_menu {
  position: relative;
  cursor: pointer;
}

#rules_menu:hover {
  color: var(--main-color);
}

#rules_menu:hover .sub-menu {
  display: flex;
}

#language_switcher:hover .sub-menu {
  display: flex;
}

#language_switcher > .sub-menu {
  width: auto;
}

.sub-menu {
  position: absolute;
  display: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.25);
  z-index: 10;
  max-width: 200px;
  width: 100%;
}

.sub-menu a {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 0.5rem;
}
.sub-menu span {
  font-size: 16px;
  line-height: 16px;
  text-align: left;
  width: 100%;
}

.sub-menu a svg path {
  transition: fill 0.1s ease-in-out;
}
.header-mobile-menu {
  display: none;
  outline: none;
  border: none;
  background: none;
}

.sub-menu a:hover svg path {
  fill: var(--main-color) !important;
}

.header-items a:hover,
button:hover {
  color: var(--main-color);
}

.hero {
  background-image: url("./images/hero_bg.png");
  background-repeat: no-repeat;
  background-size: cover;
  height: auto;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.hero .container img {
  align-self: center;
  height: 629px;
  width: auto;
}

.btn {
  border-radius: 0.5rem;
  background-color: var(--color-block-3);
  text-transform: uppercase;
  padding: 1.8rem 2.5rem;
  color: #ffffff;
  font-size: 2.5rem;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 10px 6px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease-in-out;
  animation: fadeIn 2s cubic-bezier(0.77, 0, 0.175, 1);
}
.hero .btn {
  position: absolute;
  top: 45%;
}

.btn:hover {
  background-color: var(--main-color);
}

.hero-title {
  padding-top: 5rem;
  width: 100% !important;
  object-fit: contain;
  height: auto !important;
}

.section_1 {
  margin: 7.5rem auto;
  border-radius: 1.5rem;
  box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.12),
    -8px -8px 16px rgba(0, 0, 0, 0.12);
}
.section_1 .colors_block:nth-child(1) {
  border-end-start-radius: 1.5rem;
}

.section_1 .colors_block:nth-child(6) {
  border-end-end-radius: 1.5rem;
}

.section_1 h1 {
  color: var(--main-color);
  font-size: 3rem;
  font-weight: 800;
  line-height: 66px;
  text-align: center;
  padding-top: 50px;
  margin-bottom: 48px;
}

.section_1 p {
  text-align: center;
  color: #000000;
  line-height: 38px;
  letter-spacing: 0.01em;
  font-size: 1.625rem;
  font-weight: 600;
  margin-bottom: 52px;
}

.section_2 {
  margin: 7.5rem auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  overflow: hidden;
}
.section_2-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 3rem;
  overflow: hidden;
}

.section_2-main h1 {
  color: var(--main-color);
  font-size: 3rem;
  font-weight: 800;
}

.section_2-main li {
  color: #000000;
  font-size: 1.625rem;
  font-weight: 600;
  line-height: 38px;
  letter-spacing: 0.01em;
}

.section_2-main li:first-child {
  margin-bottom: 28px;
}

.section_3 {
  height: 860px;
  width: 100%;
  background-image: url("./images/bike_pattern.png");
  background-repeat: space;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section_3 .main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-image: url("./images/bike_bg.png");
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 24px;
  width: 100%;
}
.section_3 .main .content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  padding-top: 61px;
  padding-left: 92px;
  padding-right: 50px;
  padding-bottom: 41px;
}
.section_3 .main .content img {
  align-self: flex-end;
}

.section_3 .main .content .info h1 {
  color: #ffffff;
  font-size: 3rem;
  font-weight: 800;
  line-height: 66px;
  letter-spacing: 0.02em;
  margin-bottom: 3rem;
}

.section_3 .main .content .info p {
  color: #ffffff;
  font-size: 34px;
  font-weight: 800;
  line-height: 48px;
  letter-spacing: 0.01em;
  margin-bottom: 171px;
}

.section_3 .colors_block:nth-child(1) {
  border-end-start-radius: 1.5rem;
}

.section_3 .colors_block:nth-child(6) {
  border-end-end-radius: 1.5rem;
}

.section_4 {
  margin: 7.5rem auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 1.5rem;
}

.section_4-col-1 {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  justify-items: center;
  row-gap: 1.5rem;
}

.section_4-col-2 {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  justify-items: center;
  row-gap: 1.5rem;
}

.section_4-col-2-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-items: center;
  column-gap: 1.5rem;
}

.section_4 img {
  width: auto;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0px -4px 4px rgba(0, 0, 0, 0.12));
}

.section_4-mobile {
  display: none;
}

footer {
  overflow: hidden;
}

footer .footer {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--main-color);
  padding: 1rem 0;
}

.colors_blocks {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  filter: drop-shadow(0px -4px 4px rgba(0, 0, 0, 0.12));
}

.colors_block {
  width: 100%;
  height: 32px;
}

.colors_block:nth-child(1) {
  background-color: var(--color-block-1);
}

.colors_block:nth-child(2) {
  background-color: var(--color-block-2);
}

.colors_block:nth-child(3) {
  background-color: var(--color-block-3);
}

.colors_block:nth-child(4) {
  background-color: var(--main-color);
}

.colors_block:nth-child(5) {
  background-color: var(--color-block-5);
}

.colors_block:nth-child(6) {
  background-color: var(--color-block-6);
}

.showcase_img,
.showcase_img_mobile {
  cursor: pointer;
}
@media screen and (max-width: 1440px) {
  .container {
    max-width: 96%;
    margin: 0 auto;
  }

  .section_1,
  .section_2,
  .section_3,
  .section_4 {
    margin: 7.5rem auto;
  }
  .header {
    gap: 0.5rem;
  }
  .header-logos {
    gap: 3rem;
  }
  .header-items {
    gap: 0.5rem;
  }
  .header-items a,
  #rules_menu,
  .sub-menu a {
    text-align: center;
    font-size: 1rem;
    width: auto;
  }

  .hero .container h1 {
    font-size: 10rem;
  }

  .section_4-col-1 {
    grid-template-rows: auto auto;
  }

  .section_4-col-2 {
    grid-template-rows: auto auto;
  }
  .btn {
    text-align: center;
    font-size: 2rem;
  }
  .section_4 img {
    width: 100%;
  }
  .hero .btn {
    position: relative;
    top: unset;
  }
  .hero .container img {
    margin-top: -50px;
  }
}

@media screen and (max-width: 1300px) {
  .section_1 p,
  h1 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .hero-title {
    margin-bottom: 2rem;
  }
  .section_3 {
    height: auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  .section_3 .main .content {
    flex-direction: column;
    align-items: center;
  }
  .section_3 .main .content .info p {
    margin-bottom: 1.5rem;
  }
}

@media screen and (max-width: 1039px) {
  .hero .btn {
    position: unset;
    top: unset;
  }
  .hero .container img {
    width: 100%;
    height: auto;
  }
  .section_1,
  .section_2,
  .section_3,
  .section_4 {
    margin: 8.5rem auto;
  }
}
@media screen and (max-width: 976px) {
  .modal {
    z-index: 9999;
  }
  .modal-content {
    width: 80%;
    margin: 10% auto;
  }
  .header-items {
    display: none;
  }
  .header-mobile-active {
    display: flex !important;
    animation: slideIn 0.5s ease-in-out;
  }
  .header-mobile {
    background-color: var(--main-color);
    position: fixed;
    display: flex;
    top: 0;
    left: 0;
    z-index: 20;
    width: 100%;
    height: 100dvh;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
  }

  .header-mobile-top {
    background-color: #ffffff;
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: auto;
  }
  .header-mobile-top-container {
    max-width: 96%;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    width: 100%;
  }
  .header-mobile-top-logos {
    display: flex;
    flex-direction: row;
    gap: 1rem;
  }
  .header-mobile-top button {
    outline: none;
    border: none;
    background: transparent;
    height: auto;
    width: auto;
    text-align: left;
  }
  .header-mobile .colors_blocks {
    width: 100%;
  }
  .header-mobile-bottom {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
  }

  .header-mobile-bottom img {
    width: 100%;
    height: 75%;
    object-fit: contain;
    max-width: 90%;
    margin: 0 auto;
  }
  .header-mobile-center {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-left: 2rem;
    padding-top: 2rem;
    gap: 2.5rem;
  }

  .header-mobile-center button {
    outline: none;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 1.625rem;
    line-height: 27px;
    font-weight: 600;
  }

  .header-mobile-center button:focus {
    color: var(--button-hover);
  }

  .header-mobile-center #download_rules_mobile,
  #download_privacy_mobile {
    padding-left: 1.5rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    gap: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 24px;
  }

  #download_rules_mobile:focus svg path,
  #download_privacy_mobile:focus svg path {
    fill: var(--button-hover);
  }
  .header-mobile-menu {
    display: block;
  }
  .section_2 {
    flex-direction: column-reverse;
    align-items: center;
  }
  .section_2-main ul {
    padding-left: 0;
  }
  .section_2-main {
    align-items: center;
    max-width: 80%;
    margin: 0 auto;
  }
  .section_2-main h1 {
    text-align: center;
  }

  .section_3 .main .content .info h1,
  p {
    margin: 0;
    text-align: center;
  }
  .section_3 .main .content {
    padding-bottom: 0;
    gap: 0;
  }

  .section_3 .main .content img {
    width: 100%;
    height: auto;
  }
}

@media screen and (max-width: 650px) {
  .modal-content {
    width: 80%;
    margin: 50% auto;
  }
  .desktop {
    display: none !important;
  }
  .header-logos {
    gap: 1rem;
  }
  .header-mobile-center {
    gap: 1.25rem;
  }

  .hero {
    height: 1000px;
    background-image: url("./images/hero_bg_mobile.png");
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero-title {
    margin-bottom: 0;
  }
  .hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    margin-bottom: 145px;
    gap: 3rem;
  }
  .hero .container img {
    margin-top: unset;
  }
  .btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    line-height: 23.57px;
  }
  .container {
    max-width: 94%;
  }

  .section_1 h1 {
    margin-top: 0;
    padding-top: 61px;
    padding-left: 3rem;
    padding-right: 3rem;
    font-size: 32px;
    line-height: 42px;
    letter-spacing: 0.02em;
    margin-bottom: 32px;
  }
  .section_1 p {
    padding-left: 3rem;
    padding-right: 3rem;
    font-size: 16px;
    line-height: 26px;
    letter-spacing: 0.01em;
    margin-bottom: 61px;
  }

  .section_1 p br {
    display: none;
  }
  .section_2 img {
    height: auto;
    width: 100%;
  }

  .section_2-main {
    max-width: 90%;
    gap: 2rem;
  }

  .section_2-main h1 {
    font-size: 32px;
    line-height: 42px;
    letter-spacing: 0.02em;
  }
  .section_2-main h1 br {
    display: none;
  }

  .section_2-main ul {
    margin: 0;
  }
  .section_2-main li {
    font-size: 16px;
    line-height: 26px;
    letter-spacing: 0.01em;
    text-align: center;
  }
  .section_2-main .btn {
    margin-bottom: 20px;
  }
  .section_3 .main .content {
    padding-left: 0.2rem;
    padding-right: 0.2rem;
    padding-bottom: 70px;
  }
  .section_3 .main .content .info h1 {
    font-size: 32px;
    line-height: unset;
    letter-spacing: unset;
    margin-bottom: 2rem;
  }
  .section_3 .main .content .info p {
    font-size: 24px;
    line-height: 34px;
    letter-spacing: 0.01em;
    max-width: 96%;
    margin: 0 auto;
    margin-bottom: 0.2rem;
  }
  .section_3 .main .content .info h1 br {
    display: none;
  }
  .section_3 .main .content .info p br {
    display: none;
  }

  .section_3 .main .content img {
    max-width: 90%;
    margin: 0 auto;
  }
  .section_4 {
    display: none;
  }

  .section_4-mobile {
    margin: 8.5rem auto;
  }

  .section_4-mobile {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
  .section_4-mobile img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0px -4px 4px rgba(0, 0, 0, 0.12));
  }
  .section_4-col-2-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .section_4-col-1 {
    display: grid;
    grid-template-columns: 1fr;
  }
  .section_4-col-2 {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  footer {
    position: relative;
    bottom: 0;
  }
}

@media screen and (max-width: 450px) {
  #procredit_logo,
  #mastercard_logo {
    height: 32px;
    width: auto;
    object-fit: fill;
  }
  .header-mobile-center {
    padding-top: 2rem;
    padding-left: 1rem;
    gap: 1.25rem;
  }
  .header-mobile-center button {
    font-size: 16px;
  }
  .header-mobile-center #download_rules_mobile,
  #download_privacy_mobile {
    font-size: 16px;
  }
  .header-mobile-center #download_rules_mobile svg,
  #download_privacy_mobile svg {
    height: 24px;
    width: auto;
    object-fit: fill;
  }

  .hero {
    height: 500px;

    background-position: bottom center;
  }
  .hero .container {
    margin-bottom: 0;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes slideIn {
  0% {
    transform: translate(100%);
  }
  100% {
    transform: translate(0%);
  }
}

@keyframes slideOut {
  0% {
    transform: translate(0%);
  }
  100% {
    transform: translate(100%);
    display: none;
  }
}
