@import url(https://fonts.googleapis.com/css?family=Ubuntu);

body {
  margin: 0;
  padding: 0;
  color: black;
  background: white;
  font-size: 1rem;
  font-family: "Ubuntu", Arial, Helvetica, sans-serif;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1; /* uzima sav preostali vertikalni prostor */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
  padding: 0;
}

input {
  padding: 0;
  border: none;
}

.inner_wrapper {
  max-width: 800px;
  width: 80%;
  margin: 0 auto;
}

.Txt_Center {
  text-align: center;
}

header {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 10;
  width: 100%;
  height: 150px;
  background: #004277;
}

header img {
  max-width: 400px;
  height: auto;
}

h1 {
  background: #4c7ba0;
  color: white;
  font-size: 2rem;
  font-weight: 600;
  margin-top: 0;
  padding: 14px 0;
}

.intro {
  font-size: 22px;
  color: #004277;
}

fieldset legend {
  display: none;
}

fieldset {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  justify-items: center;
  border: none;
  padding: 0;
  margin: 70px auto 20px auto;
  width: 74%;
}

#second-row-fieldset {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 0;
}

.item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
  width: 194px;
  height: 260px;
  border: solid 1px lightgray;
  box-shadow: 0 4px 14px lightgray;
  transition: transform 0.3s ease;
  padding: 0 6px 0 6px;
}

.item input {
  width: 180px;
  height: 130px;
  position: relative;
  opacity: 0.01;
  z-index: 1;
  cursor: pointer;
}

.item.active {
  box-shadow: 0 10px 10px lightgray;
  transform: translateY(-10px);
}

.item label {
  font-size: 14px;
  font-weight: 700;
  padding: -1px 0 8px 0;
  position: relative;
  color: #004277;
  cursor: pointer;
  margin: auto;
}

.item.active:before {
  content: "✔";
  display: block;
  position: absolute;
  top: 4%;
  left: 4%;
  width: 24px;
  height: auto;
  text-align: center;
  color: black;
  background: white;
}

.item img {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 130px;
  object-fit: cover;
}

#produkt-img {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 134px;
  object-fit: cover;
}

#vertrieb-img {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 136px;
  object-fit: cover;
}

#birthday-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#birthday {
  width: 60%;
  height: 40px;
  align-self: center;
  background-color: transparent;
  border: solid 1px lightgray;
  box-shadow: 0 4px 14px lightgray;
  margin-bottom: 20px;
  font-size: 14px;
  padding: 5px;
}

.sub_headline {
  color: #004277;
  font-size: 24px;
  font-weight: 700;
}

.btn_wrapper {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.btn {
  padding: 4px 8px;
  cursor: pointer;
}

.save {
  background: #004277;
  color: white;
}

.cancel {
  background: white;
  border: solid black 1px;
}

.unsubscribe.item {
  flex-direction: row;
  justify-content: center;
  width: 100%;
  height: auto;
}

.unsubscribe input {
  width: 30px;
  height: 30px;
  background: #eaeef5;
  border: solid #eaeef5 1px;
  opacity: 1;
}

.unsubscribe label {
  color: black;
  font-size: 1rem;
  padding: 6px 0 0 10px;
}

.separate_line {
  background-color: #eaeef5;
  height: 28px;
  width: 80%;
  max-width: 1180px;
  margin: 0px auto 0;
}

.footer_inner {
  max-width: 1000px;
  width: 90%;
  margin: 0 auto;
}

.sns_wrapper {
  display: flex;
  justify-content: center;
  margin: 50px 0;
  gap: 30px;
}

.sns_wrapper img {
  width: 40px;
  height: 40px;
}

.copyright p {
  color: #4c7ba0;
  font-weight: 600;
  line-height: 1.4rem;
}

.copyright span {
  display: inline-block;
  padding: 20px 0 40px;
  text-decoration: underline #4c7ba0;
}

@media screen and (max-width: 820px) {
  header img {
    max-width: 260px;
  }

  h1.Txt_Center {
    font-size: 1.4rem;
  }

  .inner_wrapper {
    width: 90%;
  }

  .intro {
    font-size: 18px;
  }

  fieldset {
    grid-template-columns: repeat(2, 1fr);
  }

  .item,
  .item input {
    width: 184px;
  }

  .item:nth-child(even) {
    margin-right: 4px;
  }

  .item:nth-child(odd) {
    margin-left: 4px;
  }

  .footer_inner {
    max-width: 400px;
  }
}

@media screen and (max-width: 456px) {
  fieldset {
    grid-template-columns: 1fr !important;
  }

  .item {
    width: 100% !important;
  }
}
