
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f3f4f6;
}

.page {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
}


  .ad-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 1.75;
  overflow: hidden;
  background-image: url("lex-summit-background-no-date.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid #ddd;
}
  

.ad-background {
  position: absolute;
  inset: 0;
}

.brand {
  position: absolute;
  top: 8%;
  right: 8%;
  color: white;
  font-size: clamp(18px, 4vw, 36px);
  font-weight: bold;
  font-style: italic;
}

.coins {
  position: absolute;
  top: 35%;
  right: 10%;
  font-size: 28px;
  animation: floatCoins 3s ease-in-out infinite alternate;
}

.products {
  position: absolute;
  bottom: 7%;
  left: 5%;
  right: 5%;
  display: flex;
  justify-content: space-around;
  align-items: end;
  gap: 5px;
}

.products span {
  background: white;
  color: #12629b;
  font-weight: bold;
  padding: 15px 5px;
  font-size: clamp(9px, 2vw, 16px);
  border-radius: 5px;
  box-shadow: 0 4px 8px #0003;
}

.ad-card {
  position: absolute;
  top: 25%;
  left: 8%;
  width: 68%;
  min-height: 32%;
  background: white;
  border: 5px solid #b41684;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  box-shadow: 0 8px 20px #0003;
  opacity: 0;
  transform: translateX(140%);
}

.card-icon {
  font-size: clamp(24px, 5vw, 42px);
}

.card-content strong {
  color: #173b78;
  font-size: clamp(14px, 3vw, 27px);
}

.card-content small {
  color: #444;
  font-size: clamp(9px, 1.8vw, 15px);
}

@keyframes floatCoins {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-15px);
  }
}

@media (max-width: 500px) {
  .page {
    margin: 15px auto;
    padding: 10px;
  }

  .products span {
    padding: 8px 3px;
  }
}

.card-icon {
  font-size: clamp(22px, 4vw, 40px);
  flex-shrink: 0;
}



/* Prostor za animaciju */
.carousel-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
  perspective: 1400px;
}

/* Slojevi za dubinu */
.orbit-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orbit-back {
  z-index: 1;
}

.orbit-front {
  z-index: 3;
}

/* Animirane kartice */
.carousel-card {
  position: absolute;
  top: 0;
  left: 0;

  width: 35%;
  min-height: 25%;
  padding: 12px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  background: linear-gradient(
    145deg,
    #292e36 0%,
    #171b22 100%
  );

  border: 2px solid #c99a60;
  border-radius: 12px;

  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);

  transform-origin: center center;
  will-change: transform;
  backface-visibility: visible;
}


.carousel-card strong {
  display: block;
  color: #ffffff;
  font-size: clamp(11px, 2.2vw, 22px);
}

.carousel-card small {
  display: block;
  color: #444;
  font-size: clamp(8px, 1.4vw, 14px);
}

.card-icon {
  font-size: clamp(18px, 3vw, 32px);
  color: #d8ac72;
}

@media (max-width: 500px) {
 

  .carousel-card {
    width: 40%;
    padding: 6px;
    gap: 5px;
    border-width: 2px;
  }
}

.ad-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42%;
  height: 65%;
  transform: translate(-50%, -50%);
  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background: transparent;
  border: none;
  box-shadow: none;
  text-align: center;
  pointer-events: none;
}

.brand-glow {
  position: absolute;
  width: 140%;
  height: 140%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255,255,255,.35) 0%,
    rgba(255,255,255,.12) 40%,
    transparent 70%
  );
  z-index: -1;
}

.brand-content {
  position: relative;
  z-index: 2;
}

.brand-logo {
  color: white;
  font-size: clamp(28px, 5vw, 55px);
  font-weight: 900;
  font-style: italic;
  text-shadow: 0 4px 10px rgba(0,0,0,.3);
}

.brand-title {
  color: #fff;
  font-size: clamp(12px, 2vw, 22px);
  font-weight: 900;
  text-shadow: 0 2px 5px rgba(0,0,0,.3);
}

.brand-subtitle {
  margin-top: 5px;
  color: white;
  font-size: clamp(9px, 1.3vw, 14px);
}

.brand-products {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 5px;
  margin-top: 12px;
}

.product {
  background: white;
  color: #173b78;
  padding: 15px 6px;
  border-radius: 5px;
  font-weight: bold;
  font-size: clamp(8px, 1.2vw, 12px);
  box-shadow: 0 5px 12px rgba(0,0,0,.3);
}

.product-2 {
  transform: scale(1.15);
  z-index: 1;
}

.ad-banner {
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}


.lex-logo-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}


.lex-logo-overlay img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}
  

  .lex-date-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}


/*
.lex-date-overlay img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}
  */

  .lex-date-overlay img {
  display: block;
  width: 90%;
  height: 100%;
  object-fit: fill;
  margin: 0 auto;
}





/* ========================================
   LEX SUMMIT POPUP
======================================== */

.lex-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
}

.lex-popup-content {
    position: relative;
    width: 860px;
    max-width: 95vw;
    margin: 0 auto;
}

.lex-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 999;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;
    padding: 0;

    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.7);
    color: #fff;

    font-size: 28px;
    font-weight: 400;
    line-height: 1;

    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.lex-popup-close:hover {
    background: #c49a5a;
    color: #fff;
    transform: scale(1.08);
}

@media (max-width: 767px) {
    #lex-summit-popup .page {
        margin: 0 !important;
        padding: 0 !important;
        min-height: 0 !important;
    }

    #lex-summit-popup .lex-popup-content {
        padding: 0 !important;
    }

    #lex-summit-popup .lex-popup-close {
        top: -40px !important;
        right: 0 !important;
        transform: none !important;
    }
}
