 
:root {
  --info-text-size: 15px;
  --space-before-shoot-button: 200px;
  --subtitle-text-size: 20px;
}
@media screen and (min-width: 800px){
  :root{
    --info-text-size: 18px;
  }
}
@media screen and (max-height:700px){
  :root{
    --space-before-shoot-button: 0px;
  }
}
 body {
      background: radial-gradient(circle at center, #033046, #001620);
      color: white;
      font-family: 'Arial', sans-serif;
      min-height: 100vh;
      margin: 0;
      display: flex;
      flex-direction: column;
      /* justify-content: space-between; */
    }
    .logo-section {
      text-align: center;
      margin-top:20px;
    }
    .logo-section img {
      width: 120px;
      margin-bottom: 10px;
    }
    .shoot-btn {
      width: 200px;
      height: 50px;
      border-radius: 25px;
      background: #0fb8c9;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      font-weight: bold;
      border: none;
      box-shadow: 0px 0px 20px rgba(0, 255, 255, 0.3);
    }
    .shoot-btn.small {
      width: 110px;
      height: 110px;
      font-size: 16px;
    }
    #previewWrapper{ 
      position: relative;
      max-width: 90%;
      margin: 0px auto;
      min-height: var(--space-before-shoot-button)
    }
    #preview {
      display: none;
      width: 100%;
      border-radius: 15px;
      box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.5);
      background: transparent;
    }
    .overlay-icon {
      position: absolute;
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      user-select: none;
      transform: translate(-50%, -50%);
      z-index: 50;
    }
    .overlay-icon img{ width:100%; height:100%; pointer-events:none; }
    /* Side panel */
    #sidePanel{
      position: fixed;
      top: 0;
      right: -420px;
      width: 400px;
      max-width:100%;
      height: 100%;
      background: rgba(255,255,255,1);
      color: #111;
      box-shadow: -4px 0 12px rgba(0,0,0,0.4);
      transition: right 0.25s ease-in-out;
      z-index: 1030;
      overflow-y: auto;
    }
    #sidePanel.open{ right: 0; }
    /* Active/Inactive buttons */
    .toggle-btn{ flex:1; border:1px solid #ccc; padding:8px; text-align:center; cursor:pointer; }
    .toggle-btn.active{ background:#5a2ea6; color:white; }
    .toggle-btn.inactive{ background:white; color:#5a2ea6; }
    .alt-list{ list-style:none; padding:0; margin:0; }
    .alt-list li{ padding:10px; border-bottom:1px solid #eee; }
    .confirm-location{ padding:12px; text-align:center; border-top:1px solid #ddd; }
    /* Bottom Navigation */
    .bottom-nav {
      display: flex;
      justify-content: space-around;
      padding: 10px 0;
      background: rgba(0, 0, 0, 0.25);
      background-color: #001924;
      border-top: 1px solid #0fb8c9;
      position: fixed;
      bottom:0;
      left:0;
      right:0;
      height: 60px;
      z-index: 1030;
    }
    .bottom-nav i {
      font-size: 22px;
      color: #0fb8c9;
    } 
    .bottom-nav a {
    color: #999;
    text-decoration: none;
    }

    .bottom-nav a.active {
        /* Bootstrap primary */
    }

    .bottom-nav a.active i {
        transform: scale(1.15);
        text-shadow: 1px 1px 5px rgb(243, 130, 76);
        font-size: 30px;
    }
    

#sidepanel-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index:999;  /* dietro al pannello */
}

#sidepanel-backdrop.visible {
    opacity: 1;
    pointer-events: auto;
}
#sidepanel-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    font-size: 20px;
    line-height: 32px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s ease, transform 0.15s ease;
}

#sidepanel-close-btn:hover {
    background: #e0e0e0;
    transform: scale(1.06);
}

#sidepanel-close-btn:active {
    transform: scale(0.95);
}

#mainShootBtn,
#smallShootBtn {
  margin: auto;
}
#uploadBtn {
  margin: 10px auto 100px auto;
}

label:not(.form-check-label), 
div.modal{
  color: #000;
}

/* CSS per posizionare il loader al centro */
#loader-wrapper {
    position: fixed; /* Fissa rispetto alla finestra del browser */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000; /* Assicurati che sia sopra ogni altra cosa */
    display: flex; /* Usa flexbox per centrare il loader */
    justify-content: center;
    align-items: center;
    pointer-events: none; /* Rende invisibile il wrapper ai clic, in quanto il backdrop gestisce già il blocco */
}

/* Esempio di un loader circolare base in CSS */
#loader {
    border: 8px solid #f3f3f3; /* Light grey */
    border-top: 8px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite; /* Animazione di rotazione */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#personalUseDisclaimer{
  font-size:var(--info-text-size);
  opacity: 0.8;
}
#iaDisclaimerFixed,
#iaDsclaimerUnderPhoto{
  font-size:var(--info-text-size);
  opacity: 0.8;
}

#iaDisclaimerFixed {
  position: fixed;
  bottom: 56px;            /* ALTEZZA della bottom-nav */
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  color: #bcc3c9;          /* grigio Bootstrap */
  background: none;
  padding: 4px 8px;
  z-index: 1029;           /* sopra la nav */
  /* border-top: 1px solid #eee; */
}
#iaDisclaimerTop {
  /* position: fixed; 
  background: #2e3e72;*/
  top: 0px;            /* ALTEZZA della bottom-nav */
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  color: #bcc3c9;          /* grigio Bootstrap */
  padding: 4px 8px;
  z-index: 999;           /* sopra la nav */
  /* border-top: 1px solid #eee; */
}

#shootPrivacyRights{
  margin-top: 200px;
}


#shootPrivacyRights,
#shootGuideLauncher{
  opacity: 0.8;
  font-size:var(--info-text-size);
  margin-top: 15px;
}
#shootPrivacyRights a,
#shootGuideLauncher a{
  text-decoration: none;
  color: inherit;
}
.icon-guide-item {
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}
.icon-symbol {
  font-size: 1.5rem;
  width: 30px; /* Larghezza fissa per allineamento */
  text-align: center;
}
#freshcheck_underLogo{
  opacity: 0.8;
  color: #0fb8c9;
  text-transform: uppercase;
  font-size: var(--info-text-size);
  margin-bottom:0px;
  font-weight: bold;
  font-size: 15px !important;
}
#MainPageInstructionTitle{
  opacity:0.8;
  font-size: 28px;
  animation: typing 1.5s steps(40, end), blink-caret .75s step-end;
  overflow: hidden; /* Ensures the content is not revealed until the animation */
  /* border-right: .15em solid orange; /* The typwriter cursor */
  white-space: nowrap; /* Keeps the content on a single line */
  margin: 0 auto;
}
/* The typing effect */
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

/* The typewriter cursor effect */
@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: rgb(0, 102, 255); }
}
#evalCompleted{
  font-size:var(--subtitle-text-size);
  opacity: 0.8;
  margin: -2px;
}
div#bottomspacer{
  height: 96px;
  position: relative;
  bottom: 0px;
}