/* Global Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    color: #333;
}

header {
    background-color: #2058C0;
    color: white;
    padding: 20px;
    text-align: center;
}

section {
    margin: 20px;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
}

/* Disable Button */
button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}


/* Styling for Screenshots */
.screenshot {
    max-width: 300px;
    margin: 10px 0;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Lists Styling */
ol, ul {
    line-height: 1.8;
}

/* Table Column Adjustments */
table#data-table {
    width: 100%;
    table-layout: fixed;
}

/*Button Style*/

button {
    background: linear-gradient(to right, #2058C0, #409EFF); /* Gradient background */
    border: none;
    color: white;
    padding: 8px 26px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    outline: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
	margin: 5px;
	margin-bottom: 5px;
}

/* Hover Effect */
button:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3);
}

/* Active (Click) Effect */
button:active {
    transform: scale(0.98);
    filter: brightness(0.9);
}

/* Button Shake Animation */
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

/* Apply shake animation when button has class 'shake' */
button.shake {
    animation: shake 1s infinite;
}

.arrow {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 20px solid #4CAF50; /* Color of the arrow */
    margin: 10px auto; /* To center the arrow */
}

.arrow-shake {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 20px solid #4CAF50; /* Change color of the arrow to match the button */
    margin: 10px auto; /* Center the arrow below the button */
    animation: shake 0.5s ease infinite;
}

/* Bouncing arrow */
.bouncing-arrow {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 15px solid #4CAF50;
    margin: 20px auto;
    animation: bounce 0.8s ease infinite;
}

@keyframes bounce {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* Finger pointing right arrow */
.finger-pointer-right {
    position: relative;
    display: inline-block;
    padding: 15px 32px;
    font-size: 16px;
    background-color: #4CAF50;
    color: white;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

.finger-pointer-right:hover::after {
    content: "👉";
    position: absolute;
    top: 10px;
    right: -30px;
    font-size: 30px;
    animation: pointing 1s infinite;
}

@keyframes pointing {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

/* Finger pointing arrow down */
.finger-pointer-down {
    position: relative;
    margin: 10px auto;
    font-size: 40px; /* Size of the pointing finger */
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0% { transform: translateY(0); }
    50% { transform: translateY(5px); }
    100% { transform: translateY(0); }
}

#progress-container {
    width: 100%;
    margin-top: 20px;
}

#progress-bar {
    width: 100%;
    height: 25px;
    background-color: #f3f3f3;
    border-radius: 5px;
    border: 1px solid #ccc;
    animation: progressAnimation 2s ease-in-out infinite;
}

#progress-container p {
    text-align: center;
    font-weight: bold;
}

/* Progress bar animation */
@keyframes progressAnimation {
    0% {
        background-color: #f3f3f3;
    }
    50% {
        background-color: #4CAF50;
    }
    100% {
        background-color: #f3f3f3;
    }
}
#upload-status {
    margin-top: 10px;
    font-weight: bold;
    color: #1a73e8;
}
.special-password-button {
    background: linear-gradient(to right, #1e90ff, #4facfe);
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s;
}

.special-password-button:hover {
    transform: scale(1.05);
}

.special-password-button .pointer {
    font-size: 18px;
}
/* Password Field Style */

.form-group {
    margin-bottom: 15px;
    width: 250px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 8px 35px 8px 8px; /* space for the eye on the right */
    font-size: 14px;
    box-sizing: border-box;
}

.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper .toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
    color: #555;
}
.login-form {
    max-width: 400px;
    margin: 0 auto;
    background: #f2f2f2;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
}

.login-form input[type="password"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.delete-button {
    background-color: #f44336; /* red */
    color: white;
    border: none;
    padding: 5px 10px;
    margin-left: 5px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.delete-button:hover {
    background-color: #d32f2f;
}

#cookie-consent {
    position: fixed;
    bottom: 0;
    background: #333;
    color: #fff;
    padding: 10px;
    width: 100%;
    text-align: center;
    z-index: 1000;
}
#cookie-consent a {
    color: #FFD700;
    text-decoration: underline;
}

#drop-area {
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
    margin: 20px 0;      /* Align to the left */
    background-color: #f9f9f9;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
    max-width: 600px;    /* Control width */
    width: 90%;          /* Responsive */
    box-sizing: border-box;
}

#drop-area.highlight {
    border-color: #007bff;
    background-color: #e6f7ff;
}


#calendar-container {
    max-width: 400px;
    margin: 20px 0;
}

#file-list p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4px 0;
}

#file-list button {
    background: red;
    color: white;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
}

.file-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 8px;
    margin-top: 5px;
    border-radius: 5px;
}
.file-entry span {
    flex: 1;
    font-weight: bold;
}
.download-btn, .delete-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    margin-left: 5px;
    border-radius: 3px;
    cursor: pointer;
}
.download-btn {
    background-color: #3498db;
}
.download-btn:hover, .delete-btn:hover {
    opacity: 0.8;
}

.file-entry span {
    font-weight: bold;
}

/* ---- Example card ---- */
.example-card{
  background:#f8fafc;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:16px;
  margin:16px 0 24px;
  max-width:600px;
}

.example-card h3{ font-size:1.2rem; margin:0 0 8px; }
.example-card p,
.example-card ul,
.example-card figcaption{ font-size:.95rem; line-height:1.5; }
.example-card figcaption{ color:#666; margin-top:6px; }

/* Thumbnail (left-aligned, modest size) */
.example-figure .example-img{
  max-width:300px;
  height:auto;
  float:left;
  margin:0 16px 8px 0;
  border:1px solid #ddd;
  border-radius:9px;
  cursor:zoom-in;
  border-left:1px;
}

/* Stack image above text on small screens */
@media (max-width: 600px){
  .example-figure .example-img{
    float:none;
    display:block;
    margin:0 auto 12px;
    max-width:100%;
  }
}

/* ---- Lightbox ---- */
#lightbox{
  position:fixed;
  inset:0;
  display:none;            /* hidden by default */
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(0,0,0,.8);
  z-index:10000;
  opacity:0;
  transition:opacity .18s ease;
}
#lightbox.open{ display:flex; opacity:1; }

.lb-image{
  max-width:min(92vw, 1400px);
  max-height:88vh;
  width:auto;
  height:auto;
  box-shadow:0 10px 35px rgba(0,0,0,.5);
  border-radius:10px;
  user-select:none;
  -webkit-user-drag:none;
}
.lb-close{
  position:absolute;
  top:12px; right:14px;
  font-size:32px; line-height:1;
  color:#fff;
  background:none;
  border:none;
  padding:6px 10px;
  cursor:pointer;
  appearance:none;
  -webkit-appearance:none;
}
.lb-close:focus{ outline:2px solid rgba(255,255,255,.6); outline-offset:2px; }

.warning-blink {
    color: #d00;
    font-weight: 700;
    animation: blink 2s steps(2, start) infinite;
  }
  @keyframes blink {
    to { visibility: hidden; }
  }
  /* Respektiert Systemeinstellungen, wenn Nutzer Animationen reduziert haben möchten */
  @media (prefers-reduced-motion: reduce) {
.warning-blink { animation: none; }
  }
.warning-note {
    color: #000;
    font-size: 0.9rem;
    margin-top: 4px;
  }
.pre-extract-warning { margin: 12px 0; }

/* Screenshot gallery styling */
.screenshot-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 12px 0 20px;
  }
.screenshot-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
    max-width: 380px;  /* ← passt sich dem Screenshot an */
    width: fit-content;
}
.screenshot-card img {
    width: 25%;
    height: 35px
    border-radius: 8px;
    cursor: zoom-in;
    }    
.screenshot-card figcaption {
    margin-top: 8px;
    font-size: .9rem;
    color: #374151;
    line-height: 1.35;
    }

/* Lightbox overlay */
.lb-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .8);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 1000;
}
.lb-overlay.open {
      display: flex;
    }
.lb-image {
      max-width: 92vw;
      max-height: 92vh;
      border-radius: 10px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, .6);
      cursor: zoom-out;
    }
.lb-close {
    position: fixed;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 22px;
    line-height: 40px;
    cursor: pointer;
    }
.lb-close:focus {
    outline: 2px solid #fff;
    }
@media (prefers-reduced-motion: no-preference) {
.lb-overlay.open .lb-image {
    transition: transform .12s ease-out;
    }
}

.legal-consent {
  margin-top: 15px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #f9f9f9;
  font-size: 0.9rem;
}

.legal-warning {
  margin: 0 0 8px 0;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.consent-label input[type="checkbox"] {
  margin-top: 3px;
}

.legal-disclaimer {
  margin: 20px 0;
  max-width: 900px;
  padding: 12px 16px;
  border-left: 4px solid #3498db;
  background: #f4f9ff;
  font-size: 0.95rem;
  line-height: 1.5;
}

.legal-disclaimer h2 {
  margin-top: 0;
  font-size: 1.1rem;
}
/* Highlight + shake the entire consent box when missing */
.legal-consent.highlight-consent {
    border: 2px solid red;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.7);
    animation: pulseBorder 1s infinite, shakeBox 0.4s linear 0s 1;
}

/* border color pulse */
@keyframes pulseBorder {
    0%   { border-color: red; }
    50%  { border-color: orange; }
    100% { border-color: red; }
}

/* small shake animation */
@keyframes shakeBox {
    0%   { transform: translateX(0); }
    20%  { transform: translateX(-4px); }
    40%  { transform: translateX(4px); }
    60%  { transform: translateX(-4px); }
    80%  { transform: translateX(4px); }
    100% { transform: translateX(0); }
}
