/* Reset & Layout */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    font-family: 'AktivGrotesk';
    font-weight: 500;
    font-style: normal;
    color: #333;
}

h1 {
    font-size: 5em;
    font-weight: 900;
    text-align: center;
    color: white;
    margin-bottom: 0;
}

h2 {
    font-size: 2.5em;
    font-weight: 900;
    text-align: center;
    color: white;
    margin-bottom: 0;
}


body {
  margin: 0;
}

.bg-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  z-index: 0;
}

.bg-container::before {
  /* Background image layer */
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("/assets/bg.jpg") center center / cover no-repeat;
  z-index: -2;
}

.bg-container::after {
  /* Blur + overlay layer */
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2); /* dark overlay */
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: -1;
}

/* Logo */
.logo-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.logo {
    max-width: 280px;
    height: auto;
}

/* Canvas */
canvas {
    flex: none;
    width: 100%;
    height: 55vh;
    display: block;
    margin-top: 0;
    background: transparent !important;
}

/* Controls */
.controls {
    margin-top: 5vh;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 100%;
    padding: 14px;
    box-sizing: border-box;
}

/* Buttons Glass Capsule */
button {
    position: relative;
    overflow: hidden;
    flex: 1;
    min-width: 0;
    max-width: 280px;
    padding: clamp(14px, 2vw, 18px) clamp(20px, 3vw, 28px);
    font-size: clamp(14px, 2.5vw, 17px);
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 999px;
    cursor: pointer;
    background: rgb(12, 148, 70, 0.6);

    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    color: #fff;
    transition: all 0.25s ease;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.6), 
                0 4px 16px rgba(0,0,0,0.25);
}

button:hover {
    background: rgb(12, 148, 70);
    border-color: rgba(255,255,255,0.7);
    transform: translateY(-2px) scale(1.03);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.8), 
                0 6px 20px rgba(0,0,0,0.3);
}

/* Wiggle animation */
button.wiggle {
    animation: wiggle 0.3s ease;
}

@keyframes wiggle {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-2deg) scale(1.05); }
    50% { transform: rotate(2deg) scale(0.98); }
    75% { transform: rotate(-1deg) scale(1.02); }
    100% { transform: rotate(0deg) scale(1); }
}

/* Ripple Effect */
button .ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    background: rgba(180, 210, 255, 0.4);

    width: 120px;
    height: 120px;
    top: 50%;
    left: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0);
}

@keyframes ripple {
    to {
        transform: translate(-50%, -50%) scale(4);
        opacity: 0;
    }
}

/* Info box */
.info-box {
    margin-top: 20px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    max-width: 80%;
    text-align: center;
    font-size: 16px;
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.info-box.show {
    display: block;
    opacity: 1;
}

/* Footer */
footer {
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px;
    font-size: 14px;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
}

footer nav {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: center;
}

footer nav span {
    color: #666;
    font-weight: 500;
}

footer a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;
}

/* Sponsor logo */
.sponsor-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 60px; /* spațiu deasupra footer-ului */
    margin-top: 20px;
    color: rgb(57, 81, 146); 
}

.sponsor-logo img {
    max-width: 200px;   
    height: auto;
    opacity: 0.9;       
}

/* Asigură că nu intră în conflict cu info-box */
.info-box.show + .sponsor-logo {
    margin-top: 40px; /* împinge logo-ul puțin mai jos dacă apare text */
}

.white-box {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  border-top-left-radius: 100% 15vw;
  border-top-right-radius: 100% 15vw;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.white-box-content {
    padding: 1.5em;
    max-width: 75vw;
}

.cc-cp-foot-byline {
    opacity: 0;
}



/* --- Contact Page --- */
.contact-box {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.contact-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-family: 'AktivGrotesk-Medium', sans-serif;
}

.contact-form label {
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 1rem;
    resize: none;
    transition: all 0.2s ease-in-out;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #ffc118;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 193, 24, 0.3);
}

.contact-btn {
    background: rgb(12, 148, 70, 0.6);
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    align-self: center;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: rgb(12, 148, 70, 1.0);
    transform: scale(1.05);
}

.message {
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    margin-bottom: 20px;
}

.message.success {
    background-color: #4CAF50;
    color: #fff;
}

.message.error {
    background-color: #ffdddd;
    color: #d8000c;
}

@media (max-width: 768px) {
    .contact-box {
        margin: 1.5rem;
        padding: 1.5rem;
    }

    .contact-btn {
        width: 100%;
        padding: 12px;
    }
}
#open_preferences_center {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background-color: rgb(12, 148, 70, 0.6); /* main background */
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 9999px; /* pill shape */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  transition: all 0.25s ease;
  opacity: 0.95;
  animation: fadeSlideIn 0.4s ease-out;
}

#open_preferences_center:hover {
  /*background-color: #0070f3;*/
  background-color: rgb(12, 148, 70);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
  opacity: 1;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 0.95;
    transform: translateY(0);
  }
}
