@font-face {
    font-family: "EYInterstate-Regular";  /* Name it whatever you want */
    src: url("../fonts/EYInterstate-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "EYInterstate-Bold";  /* Name it whatever you want */
    src: url("../fonts/EYInterstate-Bold.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

/* Apply the font to everything */
* {
    font-family: "EYInterstate-Regular", monospace;  /* Fallback to monospace */
}

html, body {
    height: 100%;
    margin: 0;
    font-size: 16px;
    background-color: #ffffff;
}

/* Default body styles (for shorter pages) */
body {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    background-color: #ffffff;
    overflow-y: auto;
    padding: 20px;
    min-height: 100vh;
    margin: 0;
}

/* Override styles for long-content pages */
body.long-content {
    justify-content: flex-start;
    min-height: 100vh;
}

.headerbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #1A1A24;
    color: white;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    justify-content: space-between;
    z-index: 1000;
}

.ey-logo-small {
    width: 40px;  /* Set the width of the image */
    height: 40px; /* Set the height of the image */
    background-image: url('EYlogo.jpg');  /* Path to your image */
    background-size: cover;  /* Ensures the image covers the entire div */
    background-position: center;  /* Centers the image within the div */
    margin-right: 10px;
}

.home-redirect {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.home-title {
    font-family: "EYInterstate-Bold", sans-serif;
    font-size: 20px;
    font-weight: bold;
}

.welcome-bar {
    display: flex;
    align-items: center;
}

.logout-button {
    background-color: #ffe600;
    color: #333;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 20px;
    margin-right: 30px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.logout-button:hover {
    background-color: #ffcc00;
    transform: scale(1.05);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* Footbar */
.footbar {
    bottom: 0;
    left: 0;
    width: 100%;
    color: black;
    display: flex;
    flex-direction: column;  /* Arrange items vertically */
    align-items: center;  /* Center the items horizontally */
    justify-content: center;  /* Vertically center the items */
    padding: 10px 0px;
    z-index: 1000;
}

.content {
    margin-top: 70px;
    padding: 20px;
}

.section-heading {
    font-size: 18px;
    font-weight: bold;
    color: #666;
    margin: 20px 0 10px;
}



/* Static Red Separator */
.separator {
    position: relative;
    height: 4px;
    width: 90%;
    margin: 30px auto;
    background: #ffe600;
    background-color: #ffe600;
    border-radius: 2px;
    overflow: hidden;
    animation: gradientShift 10s ease-in-out infinite;
}

.separator::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -100%;
    width: 50%;
    height: 8px;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

input[type="submit"] {
    display: block;
    width: 60%;
    min-width: 200px;
    margin: 2em auto 0;
    padding: 0.5em;
    font-size: 1.1rem;
    border: none;
    color: white;
    background-color: #ffe600;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
}

input[type="submit"]:hover {
    background-color: #ffdd00;
    transform: scale(1.01);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

select,
input[type="text"] {
    margin: 10px 0 0 0;
    width: 100%;
    min-height: 1.6em;
    padding: 0.5em;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.error-message {
    color: red;
    font-weight: bold;
    text-align: center;
    margin-top: 1em;
}

.bold-text {
    font-weight: bold;
}

.service {
    color: #333333;
    background-color: #ffe600;
    padding: 2px 5px;
    border-radius: 6px;
}

.footnote {
    font-size: 9px;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.tiles-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.tile {
    background-color: #ffe600;
    border-radius: 10px;
    width: 200px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.tile:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.tile img {
    width: 24px;
    height: 24px;
    margin-bottom: 5px;
}

.tile span {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

/* Form styling to match screenshot */
form {
    width: 100% !important;
    max-width: 100% !important;
    padding: 2em;
    background: #FFFFFF; /* White background for form */
    border-radius: 0; /* No border radius to match screenshot */
    box-shadow: none; /* Remove shadow to match screenshot */
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    box-sizing: border-box;
    border: 1px solid #C4C4CD; /* Light gray border */
    position: relative; /* For positioning the header */
}
/* Style and position the "Request Form" header */
.form-header {
    position: absolute;
    top: -15px; /* Move above the form border */
    left: 20px; /* Align to the left */
    background-color: #FFE600; /* Yellow background */
    color: #2E2E38; /* Dark text */
    padding: 5px 15px;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Group fields horizontally */
.form-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 20px; /* Add space below the header */
}

/* Individual field container */
.form-field {
    flex: 1;
    min-width: 250px;
    max-width: 250px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

/* Container für Labels mit Pflicht/Optional-Markierungen */
.form-field .label-container {
    display: flex;
    align-items: center;
    margin-bottom: 0.5em;
    text-align: justify;
    text-align-last: left;
    position: relative;
}

.form-field .label-container.mandatory {
    position: relative;
 }

.form-field .label-container.mandatory label {
    font-weight: bold;
    color: #2E2E38;
    margin-left: 20px; /* Add space between star and label */
}

.form-field .label-container.mandatory::before {
    content: "*";
    color: red;
    /* margin-right: 5px; */
    font-weight: bold;
    display: inline-block;
    position: absolute;
    top: -2px; /* Move it slightly up */
    left: 0; /* Align it to the left side */
    font-size: 1.2em; /* Adjust size if needed */
}

.form-field .label-container.optional label {
    font-weight: normal;
    color: #747480;
    display: block;
    margin-top: 1.2em; /* Remove the previous margin to avoid extra spacing */
}

.form-field .label-container.optional::before {
    content: "(Optional)";
    position: absolute;
    top: 0;
    left: 0;
    color: #747480;
    font-size: 0.8rem;
    font-weight: normal;
}

.form-field label {
    font-size: 0.9rem;
    color: #2E2E38; /* Darker text for labels */
    display: block;
}

.form-field input[type="text"],
.form-field select {
    width: 100%;
    padding: 0.8em;
    border: 1px solid #C4C4CD; /* Light gray border */
    border-radius: 4px;
    font-size: 0.9rem;
    background-color: #FFFFFF; /* White background for inputs */
    color: #2E2E38; /* Dark text */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.form-field input[type="text"]:focus,
.form-field select:focus {
    border-color: #FFE600; /* Yellow border on focus */
    box-shadow: 0 0 8px rgba(255, 230, 0, 0.3);
    outline: none;
}


/* Drop-area styling */
.drop-area {
    border: 2px dashed #C4C4CD; /* Light gray dashed border */
    padding: 2em;
    text-align: center;
    margin: 1.5em 0;
    border-radius: 4px;
    background-color: #FFFFFF; /* White background */
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.drop-area:hover {
    border-color: #FFE600; /* Yellow border on hover */
    background-color: #F6F6FA; /* Light gray background on hover */
}

.drop-area p {
    color: #747480; /* Medium gray text */
    font-size: 0.9rem;
}

.drop-area .upload-btn {
    background-color: #747480; /* Medium gray button */
    color: #FFFFFF;
    padding: 0.8em 1.5em;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1em;
    font-weight: normal;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.drop-area .upload-btn:hover {
    background-color: #FFE600; /* Yellow on hover */
    color: #2E2E38;
}

.drop-area input[type="file"] {
    display: none;
}
.zip-file-list {
    margin-top: 10px;
}


/* Submit button */
.submit-btn {
    background-color: #FFE600; /* Yellow button */
    color: #2E2E38; /* Dark text */
    border: none;
    width: 250px;
    margin: 2em auto;
    padding: 0.8em;
    font-size: 1rem;
    border-radius: 4px;
    margin: 2em 0; /* Removes auto-centering */
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}


.submit-btn:hover {
    background-color: #ffdd00;
    transform: scale(1.01);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Other pages section */
#otherpages {
    padding: 0 1em;
    text-align: center;
    margin: 2em 0;
    color: #747480; /* Medium gray text */
}

#otherpages p {
    color: #747480;
}


/* Headers */
h1, h4 {
    color: #2E2E38; /* Darker text */
}

h1 .service {
    background-color: #FFE600; /* Yellow highlight */
    color: #2E2E38;
}

.file-list {
     background: #f8f9fa;
     padding: 20px; /* Mehr Padding für ein luftigeres Gefühl */
     border-radius: 8px;
     width: 500px;
     overflow: hidden;
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* Leichterer Schatten für einen cleaner Look */
 }
 .file-list ul {
     list-style: none;
     padding: 0;
     margin: 0;
     width: 100%;
 }
 .file-list li {
     background: white;
     padding: 12px 20px; /* Mehr Padding rechts für mehr Platz */
     margin: 8px 0; /* Etwas mehr Abstand zwischen den Elementen */
     border-radius: 6px;
     word-wrap: break-word;
     overflow-wrap: break-word;
     display: flex;
     justify-content: space-between;
     align-items: center;
     box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); /* Leichterer Schatten */
     width: calc(100% - 40px); /* Etwas schmaler, um mehr Platz an den Seiten zu schaffen */
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
 }
 /* File list styling */
.file-list p {
    color: #2E2E38;
    font-size: 0.9rem;
    font-weight: bold;
}


 .file-name {
     flex-grow: 1;
     overflow: hidden;
     text-overflow: ellipsis;
     white-space: nowrap;
     padding-right: 20px; /* Mehr Platz zwischen Dateiname und Entfernen-Button */
     position: relative; /* Für die Positionierung des Tooltips */
 }
 .remove-file {
     cursor: pointer;
     color: #666; /* Etwas hellere Farbe für einen sauberen Look */
     transition: color 0.3s ease, transform 0.2s ease;
     margin-left: 20px; /* Mehr Abstand zum Dateinamen */
     font-size: 16px; /* Etwas größer für bessere Sichtbarkeit */
 }
 .remove-file:hover {
     color: red;
     transform: scale(1.2);
 }

 .file-name:hover::after {
     content: attr(title);
     position: absolute;
     background-color: #333;
     color: white;
     padding: 5px 10px;
     border-radius: 5px;
     top: -35px; /* Etwas höher, um Platz zu schaffen */
     left: 0;
     font-size: 14px;
     white-space: normal;
     max-width: 300px; /* Breiterer Tooltip für lange Dateinamen */
     word-wrap: break-word;
     z-index: 10;
 }

 .popup-overlay {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: rgba(0, 0, 0, 0.5);
   display: flex;
   justify-content: center;
   align-items: center;
   animation: fadeIn 0.3s ease-in-out;
}

.popup-content {
    background: white;
    padding: 20px 30px; /* Platz für Text und "OK" Button */
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    animation: popupShow 0.4s ease-in-out forwards;
    max-width: 90%; /* Popup maximal 90% der Breite */
    width: auto;
    word-wrap: break-word; /* Lange Wörter umbrechen */
}

.success { border: 5px solid #4CAF50; }
.error { border: 5px solid #f44336; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popupShow { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.close-btn {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #FFE600;
    color: black;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Close Button Hover Animation */
.close-btn:hover {
    background-color: #FFDD00; /* Hintergrundfarbe beim Hover */
    transform: scale(1.1); /* Button vergrößert sich beim Hover */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Schatteneffekt beim Hover */
    color: black; /* Textfarbe beim Hover */
}

/* Close Button Active (Clicked) State */
.close-btn:active {
    transform: scale(0.98); /* Button wird beim Klicken verkleinert */
    box-shadow: none; /* Schatten wird entfernt beim Klicken */
    color: black; /* Zurück zur Originalfarbe beim Klicken */
}

.submit-with-timer {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Wrapper bleibt ruhig */
.clock-wrapper.small {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Uhr (beweglich) */
.clock.small {
  width: 24px;
  height: 24px;
  border: 2px solid #333;
  border-radius: 50%;
  position: relative;
  margin-bottom: 4px;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  animation: float 2.5s ease-in-out infinite;
}

/* Uhrzeiger */
.hand {
  width: 1.5px;
  height: 10px;
  background-color: #333;
  position: absolute;
  top: 2px;
  left: 50%;
  transform-origin: bottom center;
  transition: transform 0.3s ease-in-out;
}

/* Countdown-Text (bleibt still) */
.countdown-text.small {
  font-size: 12px;
  color: black;
  min-width: 120px;
  text-align: center;
  white-space: nowrap;
}

/* Einblenden */
.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 🎯 Nur die Uhr bewegt sich */
@keyframes float {
  0%   { transform: translateY(0px) rotate(0deg); }
  25%  { transform: translateY(-1px) rotate(-1deg); }
  50%  { transform: translateY(1px) rotate(1deg); }
  75%  { transform: translateY(-1px) rotate(-0.5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}
