@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&display=swap');

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: 'Merriweather', serif;
  background: #0d1b2a;
  color: #d9d4c9;
  line-height: 1.7;
  min-height: 100vh;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

#language-switcher {
  align-self: flex-end;
  margin: 0.5rem 1.2rem 0 0;
  font-size: 1rem;
  z-index: 3;
}

#language-switcher a {
  color: #f7f3e9;
  text-decoration: none;
  margin: 0 0.25rem;
}

#language-switcher a:hover {
  text-decoration: underline;
}

header {
  padding-top: 0.5rem;
  text-align: center;
  top: 0;
  left: 0;
  width: 100%;
  background: #0d1b2a;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #f0e6d2;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
  z-index: 999;
}

header * {
  position: relative;
  z-index: 2;
}

header h1 {
  font-size: 3.2rem;
  font-weight: 700;
  margin: 0 1rem;
  max-width: 900px;
  text-align: center;
  color: #f7f3e9;
  letter-spacing: 2px;
  line-height: 1.2;
}

h2 {
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 1rem;
  color: #b9a46c;
  border-bottom: 2px solid #b9a46c;
  padding-bottom: 0.3rem;
  text-align: center;
}

h3 {
  text-align: center;
  margin-bottom: 3rem;
}

.bold-link {
  font-weight: bold;
  color: #b9a46c;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.bold-link:hover {
  color: #b9a46c;
  text-decoration: underline solid;
}

main.container {
  max-width: 850px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
  background: rgba(13, 27, 42, 0.9);
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
  box-sizing: border-box;
}

.footer-note {
  text-align: center;
  color: #d9d4c9;
  font-size: 0.9rem;
  font-family: 'Merriweather', serif;
  opacity: 0.8;
  margin-top: 3rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem;
  background-color: rgba(185, 164, 108, 0.1);
  /* bledo krem boja transparentna */
  border-top: 1px solid #b9a46c;
  border-radius: 0 0 15px 15px;
}

.footer-note:hover {
  color: #f7f3e9;
  transition: color 0.3s ease;
}

p,
ul {
  font-weight: 400;
  font-size: 1.15rem;
}

ul {
  padding-left: 1.4rem;
}

ul li {
  margin-bottom: 0.9rem;
  position: relative;
  padding-left: 1.5rem;
  color: #d9d4c9;
}

ul li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: #b9a46c;
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1;
  top: 2px;
}

.legal-links {
  margin-top: 1rem;
  /* ili 1rem ako želiš veći razmak */
  font-size: 0.9rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  color: #d9d4c9;
  /*?*/
}

.legal-links a {
  color: #d9d4c9;
  text-decoration: none;
  padding: 0 0.6rem;
  border-right: 1px solid #d9d4c9;
  transition: color 0.3s ease;
}

.legal-links a:first-child {
  padding-left: 0;
}

.legal-links a:last-child {
  border-right: none;
  padding-right: 0;
}


.legal-links a:hover {
  color: #f7f3e9;
  text-decoration: underline;
}

.cta {
  margin-top: 3.5rem;
  margin-bottom: 5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.cta button {
  background-color: #b9a46c;
  color: #0d1b2a;
  padding: 1rem 2.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 7px 20px rgba(185, 164, 108, 0.8);
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform, box-shadow;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

.cta button:hover {
  background-color: #d1c488;
  transform: scale(1.07);
  box-shadow: 0 10px 25px rgba(209, 196, 136, 0.95);
}

#rotating-wrapper {
  width: 30rem;
  height: 30rem;
  margin: 1rem auto;
  opacity: 0.85;
  perspective: 800px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#rotating-logo {
  width: 100%;
  height: auto;
  transform-style: preserve-3d;
  transition: transform 0.05s linear;
}

.cta-mail {
  display: inline-block;
  background-color: #b9a46c;
  color: #0d1b2a;
  padding: 1rem 3rem;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 14px;
  box-shadow: 0 7px 20px rgba(185, 164, 108, 0.8);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform, box-shadow;
  text-align: center;
  font-family: 'Merriweather', serif;
}

.cta-mail:hover {
  background-color: #d1c488;
  transform: scale(1.07);
  box-shadow: 0 10px 25px rgba(209, 196, 136, 0.95);
}

.social-icons {
  margin-top: 5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.social-icons a {
  display: inline-block;
  margin: 0 1rem;
  transition: transform 0.2s ease;
}

.social-icons i {
  font-size: 24px;
  vertical-align: middle;
  color: #b9a46c;
}

.social-icons img {
  width: 24px;
  height: 24px;
  filter: invert(88%) sepia(12%) saturate(223%) hue-rotate(5deg) brightness(90%) contrast(85%);
}

.social-icons a:hover {
  transform: scale(1.15);
  color: #d1c488;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover img {
  transform: scale(1.2);
  filter: invert(65%) sepia(35%) saturate(741%) hue-rotate(15deg) brightness(100%) contrast(92%);
}

.fa-icon {
  font-size: 24px;
  color: #b9a46c;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

.social-icons a:hover .fa-icon {
  transform: scale(1.2);
  color: #d1c488;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background-color: #f7f3e9;
  color: #0d1b2a;
  margin: 10% auto;
  padding: 2rem;
  border-radius: 15px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  font-family: 'Merriweather', serif;
  text-align: center;
  position: relative;
}

.modal-content h2 {
  margin-bottom: 1rem;
  color: #b9a46c;
}

.modal-content label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.modal-content input {
  width: 100%;
  padding: 10px 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  margin-bottom: 1.1rem;
  box-sizing: border-box;
}

.modal-content button {
  background-color: #b9a46c;
  border: none;
  padding: 12px 30px;
  font-weight: 700;
  font-size: 1.1rem;
  color: #0d1b2a;
  border-radius: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

.modal-content button:hover {
  background-color: #d1c488;
}

.close,
.close-buy,
.close-metamask {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 28px;
  font-weight: bold;
  color: #b9a46c;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover,
.close-buy:hover,
.close-metamask:hover {
  color: #d1c488;
}


html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

main.container {
  width: 95%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

#sendRequest:disabled,
#buyNowBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#termsLabel {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.95rem;
  /* malo manje da stane lepo i na mobilnom */
  margin-top: 1em;
}

.modal-content label.terms-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  font-weight: normal;
  margin-top: 1em;
  flex-wrap: nowrap;
  white-space: nowrap;
  font-size: 0.95rem;
}

.modal-content label.terms-inline input[type="checkbox"] {
  appearance: none;
  width: 1em;
  height: 1em;
  border: 2px solid;
  border-radius: 3px;
  margin: 0;
  position: relative;
  top: 0.05em;
  cursor: pointer;
  display: inline-block;
  vertical-align: middle;
}

.modal-content label.terms-inline input[type="checkbox"]:checked::before {
  content: '✓';
  position: absolute;
  font-size: 1em;
  top: 50%;
  left: 50%;
  color: #0d1b2a;
  font-weight: bold;
  transform: translate(-50%, -50%);
}

/* Ulepšavanje redova unutar contractInfo */
#contractInfo label {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  font-weight: bold;
  margin-bottom: 0.3em;
  font-size: 1rem;
  line-height: 1.6;
  text-align: left;
}

#contractInfo input[type="number"],
#contractInfo input[type="text"] {
  margin-top: 0.3em;
  font-size: 1rem;
  padding: 0.3em;
  width: 100%;
  max-width: 200px;
  box-sizing: border-box;
}

#contractInfo small {
  display: block;
  margin-top: 1em;
  font-size: 0.85rem;
  color: #444;
}

#contractInfo .input-row {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-top: 0.3em;
}

#contractInfo .input-row input {
  flex: 1;
}

#contractInfo .input-row button {
  padding: 0em 0.7em;
  height: 2.5em;
  font-size: 1.1rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  background: #eee;
  cursor: pointer;
  transition: background 0.2s ease;
}

#contractInfo .input-row button:hover {
  background: #ddd;
}

.horizontal-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Mobile tweaki */
@media (max-width: 700px) {
  .modal-content {
    width: 90vw;
    /* koristi viewport širinu umesto % */
    max-width: 90vw;
    padding: 1rem;
    margin: 15% auto;
  }

  form {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    box-sizing: border-box;
  }

  /* Header */
  header {
    height: auto;
  }

  header h1 {
    padding-top: 0.5rem;
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  header h2 {
    font-size: 1rem;
    margin-top: 1rem;
  }

  h3 {
    text-align: center;
    margin-bottom: 3rem;
  }

  /* Main kontejner */
  main.container {
    margin: 1rem auto;
    padding: 1rem 1rem 2rem;
  }

  .social-icons {
    margin-top: 2rem;
  }

  .social-icons img {
    width: 20px;
    height: 20px;
  }

  .footer-note {
    font-size: 0.85rem;
    padding: 1rem 0.5rem;
  }

  .legal-links {
    flex-direction: column;
    gap: 0.3rem;
  }

  .legal-links a {
    border-right: none;
    padding: 0;
    margin: 0;
  }

  .modal-content label.terms-inline {
    overflow-x: auto;
  }

  /* Novčić wrapper */
  #rotating-wrapper {
    width: 15rem;
    /* ~160px */
    height: 15rem;
    margin: 0.5rem auto;
  }

  /* Sam novčić */
  #rotating-logo {
    width: 100%;
    height: auto;
  }
}

@media (min-width: 701px) and (max-width: 1024px) {
  body {
    padding: 1rem;
    box-sizing: border-box;
  }

  main.container {
    padding: 2rem 1.5rem 3rem;
    margin: 1rem auto;
    max-width: 95%;
  }

  header h1 {
    font-size: 2.4rem;
    margin: 0 1rem 0.5rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  .cta button,
  .cta-mail {
    font-size: 1rem;
    padding: 0.8rem 2rem;
  }

  #rotating-wrapper {
    width: 22rem;
    height: 22rem;
  }

  .footer-note {
    font-size: 0.9rem;
    padding: 1rem;
  }

  .modal-content {
    width: 85vw;
    padding: 1.5rem;
  }
}