html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: #000;
}

#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;    /* Use viewport width */
    height: 100vh;   /* Use viewport height */
    object-fit: cover;
    z-index: 0;
}
	

.overlay {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.ticker {
    /*background: rgba(0, 0, 0, 0.65); */
    color: white;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 2em;
    font-weight: 500;
    text-shadow:
      -1px -1px 3px #222,
       1px -1px 3px #222,
      -1px  1px 3px #222,
       1px  1px 3px #222;
}

@supports (-moz-appearance: none) {
  .ticker {
    color: #fff;
    text-shadow:
      2px 0 #222,
     -2px 0 #222,
      0 2px #222,
      0 -2px #222,
      1px 1px #222,
     -1px -1px #222,
      1px -1px #222,
     -1px 1px #222;
  }
}

/* Responsive styles for small screens */
@media (max-width: 600px) {
    .ticker {
        /*background: rgba(0, 0, 0, 0.65); */
        color: white;
        padding: 10px 0;
        overflow: hidden;
        white-space: nowrap;
        font-size: 1.2em;
        font-weight: 500;
    }
}

@media (max-width: 600px) and (min-height: 700px) {
    .ticker {
        /*background: rgba(0, 0, 0, 0.65); */
        color: white;
        padding: 10px 0;
        overflow: hidden;
        white-space: nowrap;
        font-size: 1.5em;
        font-weight: 500;
    }
}

@media (max-height: 450px) {
  .ticker {
    /*background: rgba(0, 0, 0, 0.65); */
    color: white;
    padding: 2px 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 1.2em;
    font-weight: 500;
  }
}

@media (max-height: 400px) {
  .ticker {
    /*background: rgba(0, 0, 0, 0.65); */
    color: white;
    padding: 2px 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 1.3em;
    font-weight: 500;
  }
}


.ticker-content {
    display: inline-block;
    animation: scroll-left linear infinite;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

.ticker-content-2 {
    display: inline-block;
    animation: scroll-right linear infinite;
}

@keyframes scroll-right {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(50%);
    }
}




.form-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

form {
    background: rgba(0, 0, 0, 0.8); /* dark, semi-transparent */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    width: 600px;
    max-width: 90%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

@media (max-width: 600px), (max-height: 450px) {
form {
    background: rgba(0, 0, 0, 0.8); /* dark, semi-transparent */
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    width: 600px;
    max-width: 90%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}
}

@media (max-width: 1000px), (max-height: 500px) {
form {
    background: rgba(0, 0, 0, 0.8); /* dark, semi-transparent */
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    width: 600px;
    max-width: 90%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}
}


@media (max-width: 700px), (max-height: 400px) {
form {
    background: rgba(0, 0, 0, 0.8); /* dark, semi-transparent */
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    width: 600px;
    max-width: 90%;
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
}
}

input {
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    background: rgba(55, 55, 55, 0.7); /* darker input */
    color: #f1f1f1;
    border: 1px solid #333;
}

input:focus {
    outline: none;
    border-color: #007bff;
}

button {
    padding: 14px;
    background: rgba(0, 255, 255, 0.3); /* semi-transparent blue */
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: rgba(0, 255, 255, 0.5); /* darker, still transparent */
}

.form-heading {
    color: #fff;
    font-weight: bold;
    text-align: center;
    margin-bottom: 12px;
    font-size: 1.5rem; /* or try 32px or another value */
    margin-left: -40px;
    margin-right: -40px;
}

/* Hide both by default, use "visible" to fade in */
#form-container, #welcome-modal {
  opacity: 0;
  transition: opacity 3.0s;
  pointer-events: none;
}
#form-container.visible, #welcome-modal.visible {
  opacity: 1;
  pointer-events: all;
}

.arrow-container {
  position: fixed;
  top: 20vh;
  left: 1%;
  width: 98%;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 10;
  animation: glow 1.5s infinite;
  
}

@media (max-width: 600px) {
.arrow-container {
      position: fixed;
      top: 20vh;
      left: 1%;
      width: 98%;
      display: flex;
      flex-direction: column;
      align-items: center;
      pointer-events: none;
      z-index: 10;
      animation: glow 1.5s infinite;
    }
}

@media only screen and (max-height: 950px) and (max-width: 600px) {
  .arrow-container {
    position: fixed;
    top: 18vh;
    left: 1%;
    width: 98%;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    z-index: 10;
    animation: glow 1.5s infinite;
  }
}


.arrow {
  width: 0; 
  height: 0; 
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 30px solid red;
  margin-bottom: 5px;
  animation: glow 1.5s infinite;
}

@media (max-height: 700px) {
  .arrow {
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 15px solid red;
  margin-bottom: 5px;
  animation: glow 1.5s infinite;
}
}

@keyframes glow {
  0%, 100% {
    filter: drop-shadow(0 0 0px rgba(255,0,0,0.7));
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(255,0,0,1));
  }
}

.arrow-text {
  color: #fff;
  background: #c00;
  padding: 5px 15px;
  border-radius: 7px;
  font-size: 20px;
  font-weight: bold;
}

@media (max-width: 1000px) {
  .arrow-text {
    font-size: 18px;
  }
}

@media (max-width: 800px) {
  .arrow-text {
    font-size: 14px;
  }
}


/* Modal */

#welcome-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0);
    opacity: 0;
    transition: opacity 0.6s;
    pointer-events: none;
    isolation: isolate;
}

#welcome-modal.visible {
    opacity: 1;
    pointer-events: auto;
}

#welcome-content, #send-content, #missing-content {
    background: rgba(0, 0, 0, 0.95);
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;

    padding: 0.5rem;
    margin: 0;
    border-radius: 0;
    box-sizing: border-box;

    color: #fff;
    font-weight: 400;
    line-height: 1.5;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#welcome-message {
    width: 100%;
    max-width: 50%;
    text-align: left;
}



@media (max-width: 600px) {
    #welcome-message {
        max-width: 95%;
        padding: 1rem;
        min-width: unset;
        font-size: 1rem;
        background: rgba(0, 0, 0, 0.0);
    }
}

@media (max-width: 400px) {
    #welcome-message {
        max-width: 95%;
        padding: 1rem;
        min-width: unset;
        font-size: 0.9rem;
    }
}

.title-line {
    text-align: center;
    font-weight: bold; /* optional: make it stand out */
    font-size: 2.5rem;
}

.title-line-translated {
    text-align: center;
    font-weight: bold; /* optional: make it stand out */
    font-size: 1rem;
    margin-top: -0.7rem;
}

.centered-line {
    text-align: center;
    font-weight: bold; /* optional: make it stand out */
    margin-bottom: 1.5em; /* optional: add spacing */
    font-size: 1.5rem;
}

@media (max-width: 600px) {
  .centered-line {
    font-size: 1.1rem;
  }
}


#welcome-message {
    margin-bottom: 3rem;
}

#close-welcome-modal-btn, #close-send-btn, #close-missing-btn {
    font-size: 1rem;
    border-radius: 5px;
    background: #222;
    background: rgba(0, 255, 255, 0.10);
    border: none;
    cursor: pointer;
    min-width: 7em;
    padding: 1.0rem 1.5rem;
    font-size: 1rem;
    border-radius: 5px;
    min-width: 10em;
    transform: translateY(10px);
}

@media (max-width: 950px) {
  #close-welcome-modal-btn,
  #close-send-btn,
  #close-missing-btn {
    background: rgba(0, 255, 255, 0.10) !important; /* Blue, much stronger but not fully dark */
    color: #fff !important;
  }
}

#close-welcome-modal-btn:hover, close-send-btn:hover {
    background: rgba(0, 255, 255, 0.20) !important;
}

.button-center {
    text-align: center;
}

.ticker { opacity: 0; pointer-events: none; transition: opacity 0.80s; }


#welcome-content {
  opacity: 0;
  transition: opacity 5s;
}

#welcome-content.visible {
  opacity: 1;
}



/* FAQ */

.accordion {
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-top: 20px;
}
.accordion-item {
  border-top: 1px solid #ccc;
}
.accordion-header {
  background: #f1f1f1;
  cursor: pointer;
  padding: 15px;
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 15px;
}
.accordion-input:checked + .accordion-header + .accordion-content {
  max-height: 500px; 
  padding: 15px;
}

#signup-form textarea {
    background: rgba(0, 0, 0, 0.1); /* 0.8 = 80% opaque */
    color: #fff;
    font-family: Arial, sans-serif; /* Change font */
    font-size: 14px;               /* Change size */
    width: 100%;
    max-width: 100%;
    height: 20vh;
    box-sizing: border-box; 
    display: block; 
    font-size: 14px;
}

@media (max-width: 400px) and (min-height: 700px) and (max-height: 750px) {
#signup-form textarea {
    background: rgba(0, 0, 0, 0.1); /* 0.8 = 80% opaque */
    color: #fff;
    font-family: Arial, sans-serif; /* Change font */
    font-size: 14px;               /* Change size */
    width: 100%;
    max-width: 100%;
    height: 30vh;
    box-sizing: border-box;
    display: block;
    font-size: 14px;
}
}

@media (max-width: 600px) and (min-height: 800px) {
#signup-form textarea {
    background: rgba(0, 0, 0, 0.1); /* 0.8 = 80% opaque */
    color: #fff;
    font-family: Arial, sans-serif; /* Change font */
    font-size: 14px;               /* Change size */
    width: 100%;
    max-width: 100%;
    height: 40vh;
    box-sizing: border-box;
    display: block;
    font-size: 14px;
}
}

#signup-form textarea::placeholder {
    color: #c5b9b9;
    opacity: 1;
}

/* Optional but recommended – control resizing behavior */
#signup-form textarea {
    resize: vertical;
}

#addFilesBtn {
    padding: 10px;
    background: rgba(9, 177, 163, 0.4); /* semi-transparent blue */
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}


#addFilesBtn {
  box-shadow: 0 0 4px 2px rgba(9, 177, 163, 0.1);
  transition: box-shadow 0.3s;
  margin-bottom: 2vh;
}

#addFilesBtn:hover, #addFilesBtn:focus {
  box-shadow: 0 0 16px 4px rgba(9, 177, 163, 0.4);
}


#send_button {
  box-shadow: 0 0 8px 2px rgba(0, 255, 255, 0.2);
  transition: box-shadow 0.3s;
  margin: 0 auto;
  padding: 1.0rem 1.5rem;
  font-size: 1rem;
  border-radius: 5px;
  min-width: 10em;
}

#send_button:hover, #send_button:focus {
  box-shadow: 0 0 16px 4px rgba(0, 255, 255, 0.3);
}


#close-welcome-modal-btn {
  animation: gentle-glow 4.0s infinite alternate;
}

@keyframes gentle-glow {
  0%, 100% {
        filter: drop-shadow(0 0 4px rgba(0, 255, 255, 0.35))
                drop-shadow(0 0 8px rgba(0, 255, 255, 0.25));
    }
    50% {
        filter: drop-shadow(0 0 10px rgba(0, 255, 255, 1))
                drop-shadow(0 0 22px rgba(0, 255, 255, 0.9));
    }
}

#send-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,1.0);
    opacity: 0;
    transition: opacity 0.6s;
    pointer-events: none;
    background-image: url('../images/logo.jpg');
    background-size: cover;
    background-position: center;
}

#send-modal {
    /* ... your styles ... */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s;
}

#send-modal.visible {
    opacity: 1;
    pointer-events: auto;
}


#missing-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,1.0);
    opacity: 0;
    transition: opacity 0.6s;
    pointer-events: none;
    background-image: url('../images/logo.jpg');
    background-size: cover;
    background-position: center;
}

#missing-modal {
    /* ... your styles ... */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s;
}

#missing-modal.visible {
    opacity: 1;
    pointer-events: auto;
}

#close-send-btn {
  box-shadow: 0 0 8px 2px rgba(0, 150, 255, 0.2);
  transition: box-shadow 0.3s;
  margin: 0 auto;
  padding: 1.0rem 1.5rem;
  font-size: 1rem;
  border-radius: 5px;
  min-width: 10em;
}

#close-send-btn:hover, #close-send-btn:focus {
  box-shadow: 0 0 16px 4px rgba(0, 150, 255, 0.4);
}

#close-missing-btn {
  box-shadow: 0 0 8px 2px rgba(0, 255, 255, 0.1);
  transition: box-shadow 0.3s;
  margin: 0 auto;
  padding: 1.0rem 1.5rem;
  font-size: 1rem;
  border-radius: 5px;
  min-width: 10em;
}

#close-missing-btn:hover, #close-missing-btn:focus {
  box-shadow: 0 0 16px 4px rgba(0, 255, 255, 0.2);
}


/* #addFilesBtn {
  display: block;
  margin-left: auto;
} */

.custom-select {
  position: relative;
  width: fit-content;
  font-family: inherit;
  font-size: 16px;
}

.select-selected {
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  padding: 8px 32px 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  cursor: pointer;
  min-width: 110px;
  text-align: center;
  position: relative;
  transition: background 0.50s ease;
}

.select-selected:hover {
  background: rgba(0, 255, 255, 0.33);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Dropdown list */
.select-items {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  margin-top: 4px;
  max-height: 70vh;
  overflow-y: auto;
  scrollbar-width: none;       /* Firefox */
  -ms-overflow-style: none;    /* IE 10+ */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  z-index: 20001;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}

.select-items::-webkit-scrollbar {
  display: none;               /* Chrome, Safari, Opera */
}

.select-items.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.select-items div {
  padding: 10px 14px;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

@media (hover: hover) and (pointer: fine) {
  .custom-select:hover .select-items {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .custom-select:hover .select-selected::after {
    transform: translateY(-50%) rotate(180deg);
  }
}


/* Arrow */
.select-selected::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  transition: transform 0.25s;
}

.select-selected.open::after {
  transform: translateY(-50%) rotate(180deg);
}

.custom-select:hover .select-selected::after {
  transform: translateY(-50%) rotate(180deg);
}


/* Small screen adjustment */
@media (max-width: 400px) and (max-height: 700px) {
  .select-items div {
    padding: 7px 10px;
  }
}

.select-items div:hover {
  background: rgba(0, 255, 255, 0.20);
}

.select-items div.selected {
  background: rgba(0, 255, 255, 0.15);
}



/* Language dropdown fade-in */
#language-dropdown {
  opacity: 0;
  animation: languageFadeIn 5.0s ease forwards;
  transition: opacity 0.4s ease;
}

@keyframes languageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

#language-dropdown.fade-out {
  animation: none;
  opacity: 0;
}


/* Large screen adjustment (max-width 950px) */
@media (max-width: 950px) {
  .custom-select,
  .select-selected {
    background: rgba(0, 0, 0, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .select-items {
    background: rgba(0, 0, 0, 0.97) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .select-items div {
    background: transparent;
    color: #fff;
  }

  .select-selected:hover,
  .select-items div:hover,
  .select-items div.selected {
    background: rgba(255, 255, 255, 0.10) !important;
  }
}


.ticker.dragging,
.ticker.dragging .ticker-content {
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}


.ticker.dragging,
.ticker.dragging .ticker-content-2 {
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

#arrow-container {
  cursor: pointer;
}

.ticker {
  cursor: pointer;
}


#language-dropdown {
    width: 80vw;
    max-width: 1200px;
    position: fixed;
    top: 3vw;
    left: 55%;
    transform: translateX(-50%);
    z-index: 20000;
    background: transparent;
}

#language-dropdown > div {
    display: flex;
    justify-content: flex-end;
    padding: 0px;
}

#language-custom .select-selected {
    animation: pulseGlow 1s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        filter: drop-shadow(0 0 4px rgba(0, 255, 255, 0.35))
                drop-shadow(0 0 8px rgba(0, 255, 255, 0.25));
    }
    50% {
        filter: drop-shadow(0 0 10px rgba(0, 255, 255, 1))
                drop-shadow(0 0 22px rgba(0, 255, 255, 0.9));
    }
}


#hidden-message {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  width: 50%;
  opacity: 0;
  transition: opacity 3.0s ease !important;
}

@media (max-width: 950px) and (max-height: 450px) {
  #hidden-message {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    width: 95%;
    opacity: 0;
    transition: opacity 3.0s ease !important;
  }
}


@media (max-width: 600px) {
#hidden-message {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  width: 95%;
  opacity: 0;
  transition: opacity 3.0s ease !important;
}
}

#hidden-message.visible {
  opacity: 1;
}

.hidden-message-text {
  font-size: 2.8rem;
  font-weight: 700;
  color: white;
  text-align: center;
  background: rgba(0, 0, 0, 0.0);
  font-style: italic;
  padding: 0.1rem 0.1rem;
  border-radius: 1rem;
  width: 100vw;
  text-shadow:
  -1px -1px 10px #444,
   1px -1px 10px #444,
  -1px  1px 10px #444,
   1px  1px 10px #444;
}

@media (max-width: 950px) and (max-height: 450px) {
  .hidden-message-text {
    font-size: 2.3rem;
    font-weight: 700;
    color: white;
    text-align: center;
    background: rgba(0, 0, 0, 0.0);
    font-style: italic;
    padding: 0.1rem 0.1rem;
    border-radius: 1rem;
    width: 100%; /* or 100% as explained before */
  }
}

@media (max-width: 1400px) {
  .hidden-message-text {
    font-size: 2.4rem; /* or any size you prefer for small screens */
  }
}

@media (max-width: 950px) and (max-height: 450px) {
  .hidden-message-text {
    font-size: 1.8rem; /* or any size you prefer for small screens */
  }
}

@media (max-width: 600px) {
  .hidden-message-text {
    font-size: 1.5rem; /* or any size you prefer for small screens */
  }
}

#hidden-message .ultra-unique-fader-44 {
  transition: opacity 0.8s;
  opacity: 1;
}

#hidden-message .ultra-unique-fader-44-out {
  opacity: 0;
}

#poster-overlay {
position: fixed;
z-index: 1;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: url('../images/logo.jpg') center/cover no-repeat;
transition: opacity 1s;
}

@media (max-width: 600px) and (orientation: portrait) {
  #poster-overlay {
    background: url('/static/images/logo_portrait.jpg') center/cover no-repeat;
  }
}

@media (max-width: 600px) and (orientation: landscape) {
  #poster-overlay {
    background: url('/static/images/logo_landscape.jpg') center/cover no-repeat;
  }
}
