/* ----------------  IMPORTS AND BASIC ---------------- */
@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

html,
body {
  margin: 0;
  padding: 0;
  font-family: Fira Sans;
  font-weight: 300;
}

html {
  background: hsl(0deg 0% 0% / 95%);
  /* Simplified background property */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;

  /* Prefixed versions remain for potentially older browser compatibility if needed, but often redundant today */
  -webkit-background-size: cover;
  -webkit-background-repeat: no-repeat;
  -webkit-background-position: center center;
  -webkit-background-attachment: fixed;

  -moz-background-size: cover;
  -moz-background-repeat: no-repeat;
  -moz-background-position: center center;
  -moz-background-attachment: fixed;

  -o-background-size: cover;
  -o-background-repeat: no-repeat;
  -o-background-position: center center;
  -o-background-attachment: fixed;

  height: 100%;
  width: 100%;
}


body {
  text-align: left;
}

a {
  color: inherit;
  text-decoration: none;
}

.mobile-br {
  display: none;
}


/* Apply to main content containers to ensure they appear above particles */
section,
.content-wrapper,
.welcome,
.mobile-menu,
.menu,
.footer-section,
#footer-newsletter,
#footer-team,
#footer-links,
/* #footer-footer, */
#meshCanvas,
.login-box,
.submission-form,
form,
.language_screen,
.translation-notice {
  position: relative;
  /* Need position for z-index to work */
  z-index: 10;
  /* Higher than particles */
}

/* Ensure buttons and interactive elements are above particles */
.icsc-button,
input[type='submit'],
input[type='button'],
.menu ul li,
.special-button,
a,
.menu ul li ul {
  position: relative;
  z-index: 20;
  /* Even higher z-index for interactive elements */
}

/* Special case for menu since z-index otherwise pushes */
.menu.login-menu {
  z-index: 20;
  margin-top: 1vh;
  height: auto;
  /* Override the default menu height */
}

/* a {
  color: inherit;
  text-decoration: none;
  cursor: pointer !important;
} */
/* 
a * {
  cursor: inherit !important;
} */

/* Make sure nested elements inside links also get the pointer */
/* a > div, a > span, a > img, a > i, a > p {
  cursor: pointer !important;
} */


/* ---------------- ANIMATION  ---------------- */


#loader,
#statusText,
#meshCanvas {
  display: flex;
  margin: 0 auto;
  text-align: center;
}

#meshCanvas {
  background-color: transparent !important;
  max-width: 100%;
  display: block;
  margin: 0 auto;
  margin-right: 10vw;
}

.spinner {
  width: 70px;
  height: 70px;
  position: relative;
  margin-top: 10vh;
  margin-left: 0vw;
}

.spinner:before,
.spinner:after {
  content: "";
  position: absolute;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

.spinner:before {
  width: 100%;
  height: 100%;
  border-top-color: white;
  animation: spin 1s linear infinite;
}

.spinner:after {
  width: 50%;
  height: 50%;
  top: 20%;
  left: 20%;
  border-right-color: white;
  animation: spin 1.5s linear infinite reverse;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.terminal,
.terminal-code {
  background-color: #1e1e1e;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
  /* width: 600px; */
  width: 30vw;
  height: 970px;
  overflow: hidden;
  position: relative;
  margin-top: 10vh;
  margin: 0 auto;
  font-family: monospace
}

.terminal .text,
.terminal-code .text {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 400;
  white-space: pre-wrap;
  word-break: break-word;
}

.cursor {
  display: inline-block;
  width: 10px;
  background-color: #00ffea;
  margin-left: 2px;
  animation: blink 1s step-start infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ---------------- INPUT AND BUTTONS ---------------- */

.icsc-button,
input {
  border: 2px solid rgb(0, 0, 0);
  padding: 7px 15px;
  font-family: inherit;
  font-weight: 400 !important;
  transition: 0.2s background, 0.2s color;
}

.section-transparent .icsc-button,
input {
  border: 2px solid rgb(255, 255, 255);
  padding: 7px 15px;
  font-family: inherit;
  font-weight: 400 !important;
  transition: 0.2s background, 0.2s color;
}


input,
select {
  border: 1px solid rgb(0, 0, 0);
  /* background: hsla(0, 0%, 93%, 0.7); */
  color: rgb(0, 0, 0);
  font-family: Fira Sans;
  padding: 5px 10px;
  font-size: 14px;
  outline: none;
}

input, select, textarea {
  box-sizing: border-box;
  width: 100%;
}


/* ----------------  MENU BAR ---------------- */

.menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: hsla(0, 0%, 0%, 0.8);
  border-bottom: 2px solid black;
  z-index: 100;
}

.menu img {
  height: 55px;
  margin: 5px;
  float: left;
}

.menu ul {
  float: right;
  list-style-type: none;
}

.menu ul li {
  float: left;
  margin: 12px 20px;
  font-size: 15px;
  color: white;
}

.menu ul li ul {
  display: none;
  position: absolute;
  float: left;
  padding-top: 5px;
  margin: 0;
  text-align: left;
  transform: translateX(-40px) translateY(1px);
  background: hsla(0, 0%, 0%, 0.7);
}

.menu ul li:hover>ul {
  display: block;
}

.menu ul li ul li {
  width: 10em;
  display: block;
  float: none;
  margin: 0;
  padding: 7px 0px;
  padding-right: 00px;
  border-bottom: 1px solid transparent;
}

.menu ul li:hover {
  border-bottom: 1px solid white;
}

.menu .special-button {
  padding: 4px 6px;
  margin-top: 7px;
  border: 2px solid white;
  background: hsla(0, 0%, 0%, 0.8);
}

.menu .special-button:hover {
  background: hsl(40.55deg 95.54% 39.73%);
  color: white;
}

.menu ul .menu-bars {
  /* Corrected selector, removed 'menu' prefix as it's redundant */
  display: none;
}

.mobile-menu {
  display: none;
  transition: 0.5s left;
}

.mobile-menu ul {
  text-align: left;
  list-style-type: none;
  margin: 1vw;
}

.mobile-menu ul li {
  font-size: 8vw;
  line-height: 14vw;
  color: white;
}

/* ----------------  WELCOME ---------------- */

.welcome {
  display: flex;
  /* flex-wrap: wrap; */
  /* This was commented out */
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  margin-bottom: 20vh;
  margin-top: 10vh;
  height: 70vh;
}

.welcome h1 {
  margin-left: 10vw;
  line-height: 1.1;
  font-size: 4vw;
  /* Last declaration wins, previous value was 55px */
  font-weight: 900;
  color: white;
  width: 200px;
  line-height: 5vw;
}

.welcome p {
  color: white;
  margin: 0;
  width: 900px;
  display: inline-block;
  font-size: 20px;
  line-height: 30px;
  font-weight: 400;
  text-shadow: 1px 1px 4px black;
}

.participate-button {
  display: inline-block;
  margin-top: 30px;
  margin-left: 10vw;
  padding: 12px 25px;
  font-size: 1.1vw;
  background: white;
  color: black;
  font-weight: 700;
  text-align: center;
  border: none;
  border-radius: 8px;
  transition: background 0.3s, color 0.3s
}

.participate-button:hover {
  background: hsl(40.55deg 95.54% 39.73%);
  color: white;
}

.welcome-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* margin-left: 10vw; */
}

.welcome-text h1 {
  font-size: 4vw;
  font-weight: 900;
  color: white;
  margin-bottom: 30px;
}

.participate-box {
  margin-top: 30px;
  margin-left: 10vw;
  font-size: 1.1vw;
  color: white;
}

.participate-box input[type="email"] {
  margin-top: 10px;
  margin-right: 5px;
}


#icsc-info .subsection {
  text-align:left;
  font-weight: 500;
}

#process h2 {
  margin-left: 10vw;
}

#process #timetable {
  margin-left: 10vw;
  color: hsl(40.55deg 95.54% 39.73%);
}

#teachers .subsection {
  margin-bottom: 0;
}
/* ----------------  SPLITBOXES  ---------------- */

.splitbox-container {
  width: 87%;
  display: table;
  table-layout: fixed;
  margin: 0 auto;
}

.splitbox-left,
.splitbox-right {
  display: table-cell;
  width: 100%;
  vertical-align: top;
  box-sizing: border-box;
  padding: 2em;
}

.splitbox-left {
  width: 60%;
  padding-left: 3vw;
  padding-right: 3vw;
}

.splitbox-right {
  width: 40%;
  padding-left: 3vw;
  padding-right: 3vw;
}

.timeline-item .splitbox-left,
.timeline-item .splitbox-right {
  vertical-align: middle;
  width: 50%;
}

#icsc-info .splitbox-left,
#icsc-info .splitbox-right {
  vertical-align: middle;
}

#teachers .splitbox-left,
#teachers .splitbox-right {
  vertical-align: middle;
}

#ambassador .splitbox-left,
#ambassador .splitbox-right {
  vertical-align: middle;
}

.splitbox-right {
  padding-right: 0;
}

/* For very large screens (like 4K monitors) */
@media (min-width: 1600px) {

  .splitbox-left,
  .splitbox-right {
    width: 50%;
  }
}

/* ----------------  SECTIONS ---------------- */

.section-transparent {
  background: transparent;
  min-height: 80vh;
}

section {
  display: inline-block;
  background: hsl(0, 0%, 100%);
  width: 100%;
  color: white;
  padding: 150px 0;
}

.content-wrapper {
  width: 900px;
  /* text-align: justify; */
  font-size: 18px;
  color: black;
  font-weight: 400;
  line-height: 27px;
  margin: 0 auto;
}

.splitbox-left .content-wrapper,
.splitbox-right .content-wrapper {
  width: auto;
  /* or width: initial; */
  margin: 0em;
  /* removes the auto margin */
  /* text-align: justify; */
  color: black;
  font-weight: 400;
  line-height: 27px;
}


.section-transparent .content-wrapper {
  color: white;
}

section .content-wrapper p {
  margin-bottom: 55px;
  /* text-shadow: 1px 1px 2px black; */
  /* Commented out */
}

.content-wrapper a {
  /* font-weight: 400; */
  /* Commented out */
  color: hsl(40.55deg 95.54% 39.73%);
}

.content-wrapper a:hover {
  text-decoration: underline;
}

section .content-wrapper .subsection {
  font-weight: 400;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 65px;
}

.deadline-color {
  color: hsla(0, 100%, 40%, 1);
}

h2 {
  font-size: 50px;
  line-height: 1.2em;
  margin: 0;
}

h3 {
  font-size: 30px;
  margin: 0;
  text-align: center;
}

h4 {
  font-size: inherit;
  margin: 3px 0;
}

h4 i {
  padding-right: 4px;
}

.icon-padding {
  padding-right: 4px;
}

.horizontal-bar-inline {
  display: inline-block;
  border-bottom: 3px solid rgb(0, 0, 0);
  width: 100px;
  margin: 30px 0;
}

.center-wrapper {
  text-align: center;
}

.text-emphasis {
  font-weight: bold;
  color: hsl(0, 90%, 40%);
  /* background: hsla(0, 0%, 100%, 0.5); */
  border: 2px solid black;
  padding: 5px 10px;
}

/* ----------------  Section : Timeline AND ROUNDS ---------------- */

.timeline-container {
  position: relative;
  width: 90%;
  margin: 0 auto;
  padding: 0 0;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: gray;
  transform: translateX(-50%);
  z-index: 1;
}

#round-pf p {
  margin-bottom: 0!important;
}

#qualification p {
  margin-bottom: 50px!important;
}



.timeline-circle {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: gray;
  border-radius: 50%;
  color: white;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: background 0.6s, color 0.6s;
  z-index: 3;
}

.timeline-item.active~.timeline-line .timeline-circle {
  background: gray;
  color: white;
}

.timeline-item {
  position: relative;
  margin: 150px 0;
  width: 100%;
  opacity: 0.4;
  transition: opacity 0.6s, transform 0.6s;
  color: gray;
  z-index: 2;
}

.timeline-item.active {
  opacity: 1;
  color: white;
  transform: scale(1.00);
}


/* ----------------  Section : PROCESS AND ROUNDS ---------------- */

.process-circle {
  position: absolute;
  /* make sure it can center inside parent */
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 13vw;
  height: 26vh;
  background: rgb(255, 255, 255);
  /* black background */
  border: 10px solid black;
  border-radius: 50%;
  color: rgb(0, 0, 0);
  /* white text */
  font-weight: bold;
  display: flex;
  align-items: center;
  /* vertical center */
  justify-content: center;
  font-size: 8em;
  transition: background 0.6s, color 0.6s;
  z-index: 3;
}

.section-transparent .process-circle {
  background: rgb(0, 0, 0);
  /* black background */
  color: rgb(255, 255, 255);
  /* white text */
  border: 10px solid rgb(255, 255, 255);
}

.process .splitbox-left,
.process .splitbox-right {
  vertical-align: middle;
}

/* ----------------  Section :Awards ---------------- */

.awards .splitbox-left,
.awards .splitbox-right {
  vertical-align: top;
}

.awards-list {
  margin: 0 auto;
}

/* ----------------  Section : QUALIFICATION ROUND ---------------- */

.timer {
  text-align: center;
  margin: 40px 0;
}

.timer span {
  font-weight: 400;
  font-size: 35px;
  background: hsla(0, 0%, 0%, 0.45);
  padding: 5px 35px;
  border-radius: 100px;
}

.iframe-wrapper {
  text-align: center;
  /* margin: 40px 0; */
}

.iframe-wrapper iframe {
  /* display: inline-block; */
  width: 35vw;
  height: 90vh;
}

.p-button-wrapper {
  text-align: center;
  margin-top: 40px;
}

#qualification li {
  margin-top: 20px;
}

/* ----------------  Section : FAQ ---------------- */

#faq h4 {
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 25px;
}

.question-wrapper {
  background: hsla(0, 0%, 0%, 0.65);
  padding: 10px 20px;
  border-radius: 5px;
  margin-bottom: 15px;
  transition: 0.2s height;
  /* Note: This property might not be animatable as intended. Consider max-height instead */
  max-height: 25px;
  overflow: hidden;
  transition: 0.5s max-height;
}

.question {
  cursor: pointer;
  transition: 0.2s color;
}

.question:before {
  content: "+ ";
}

.question:hover {
  color: hsl(220, 80%, 80%);
}

#faq .support-button {
  /* display: block; */
  width: 60%;
  margin: 0 auto;
  text-align: center;
}

/* ----------------  Section : MATERIALS ---------------- */

.materials {
  width: 7vw;
  margin: 0 1vw;
}

.materials:hover {
  transform: scale(1.05);
}

/* ----------------  TEACHER, AMBASSADOR ---------------- */

.financial-support-ambassadors-table {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.financial-support-ambassadors-table table {
  border-collapse: collapse;
  width: 100%;
  max-width: 500px;
  text-align: center;
  font-family: sans-serif;
  background-color: #f9f9f9;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.financial-support-ambassadors-table th,
.financial-support-ambassadors-table td {
  padding: 12px 16px;
  border: 1px solid #ddd;
}

.financial-support-ambassadors-table tr:nth-child(even) {
  background-color: #f1f1f1;
}

.financial-support-ambassadors-table tr:hover {
  background-color: #e9f5ff;
}

.financial-support-ambassadors-table th {
  background-color: #0073e6;
  color: white;
}

/* ----------------  FOOTER ---------------- */

footer a {
  color: inherit !important;
  font-weight: inherit !important;
}

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

.footer-section {
  padding: 60px 0;
  border-top: 1px solid black;
}

h5 {
  font-size: 16px;
  margin: 0;
}

.footer-section .content-wrapper {
  color: hsl(0, 0%, 70%);
  font-size: 15px;
}

#footer-newsletter {
  background: hsla(0, 0%, 0%, 0.85);
}

#footer-team {
  background: hsla(0, 0%, 0%, 0.95);
}

#footer-links {
  background: hsla(0, 0%, 0%, 0.99);
}

#footer-footer {
  background: hsla(0, 0%, 0%, 1);
}

footer input[type='submit'] {
  padding: 5px 15px;
  font-weight: 300;
  background: hsl(0, 0%, 100%);
  width: 20%;
}

footer input[type='submit']:hover {
  background-color: hsl(0, 0%, 90%);
  cursor: pointer; 
}

footer input[type='email'] {
  width: 30%;
}

#footer-team img {
  width: 60px;
  height: 60px;
  margin: 5px;
  filter: grayscale(100%);
}

.team-wrapper {
  text-align: left;
  display: inline-block;
  width: 160px;
  margin: 15px 20px;
  font-size: 13px;
  line-height: 20px;
}

.footer-column {
  float: none;
  /* remove the old float */
  width: 170px;
  /* or whatever fixed width you want */
  text-align: left;
  /* still align text left inside */
  font-size: 13px;
}

#footer-links .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 50px;
  /* you can adjust the gap between columns */
}

#footer-links .content-wrapper::after {
  content: "";
  display: table;
  clear: both;
}

h6 {
  font-size: 14px;
  margin: 0;
}

#footer-column-3 span {
  line-height: 10px;
}

#footer-column-0 {
  width: 170px;
}

#footer-column-0 img {
  width: 80px;
  margin-top: 11px;
}

#footer-column-3 img {
  width: 30px;
  height: 30px;
  filter: grayscale(100%);
}

#footer-footer {
  margin: 0;
  padding: 5px 10px;
  font-size: 11px;
  text-align: left;
  color: hsl(0, 0%, 40%);
}

#footer-footer span {
  float: right;
}

/* ----------------  SUBMISSION FORM ---------------- */

.submission-form {
  background: hsl(0, 0%, 100%);
  padding: 50px;
  border-radius: 5px;
  width: 700px;
}

.content-wrapper.submission-form {
  color: hsl(0, 0%, 0%);
  border: 2px solid rgb(0, 0, 0);
}

.submission-form h3 {
  font-size: 18px;
  font-weight: 300;
  margin: 20px 0;
  text-align: left;
}

.submission-form .horizontal-bar-inline {
  margin-top: 40px;
  margin-bottom: 0px;
  width: 160px;
}

.submission-form h4 {
  margin-top: 15px;
  margin-bottom: 10px;
  font-size: 20px;
}

.submission-form input,
.submission-form select {
  width: 100%;
  font-size: 18px;
}

.submission-form input[type='file'] {
  width: 95.5%;
}

.submission-form input[type='submit'] {
  width: 400px;
}

.submission-form input[type='checkbox'] {
  width: 30px;
  height: 15px;
  float: left;
  margin-top: 6px;
}

.submission-form textarea {
  max-width: 98%;
  min-width: 98%;
  height: 100px;
  margin-bottom: 10px;
  color: rgb(0, 0, 0);
  /* background: hsla(0, 0%, 86%, 0.7); */
  border: 1px solid rgb(0, 0, 0);
  outline: none;
  padding: 1%;
  font-family: Fira Sans;
  font-size: 16px;
}


.submission-form p {
  border-left: 1px solid hsl(40.55deg 95.54% 39.73%);
  padding: 5px;
  font-size: 15px;
  /* background: hsla(0, 0%, 100%, 0.3); */
  color: hsl(40.55deg 95.54% 39.73%);
  margin-bottom: 40px;
  line-height: 20px;
}

.submission-form p.submission-important {
  border-left: 0px solid hsl(40.55deg 95.54% 39.73%);
  /* padding: 5px; */
  font-size: 15px;
  /* background: hsla(0, 0%, 100%, 0.3); */
  color: hsl(0, 0%, 0%);
  font-weight: 1.2em;
  margin-bottom: 40px;
  line-height: 20px;
}

.submission-form .select-birth {
  width: 32.5%;
}

.interface-box .select-birth {
  /* Kept separate as it's under a different parent */
  width: 32.5%;
}

.submission-form input[type='submit'] {
  width: 400px;
  background-color: white;
  color: hsl(40.55deg 95.54% 39.73%);
  border: 1px solid hsl(0, 0%, 0%);
  padding: 7px 15px;
  font-family: inherit;
  font-weight: 400 !important;
  transition: 0.2s all;
  cursor: pointer;
  text-decoration: none;
}

.submission-form input[type='submit']:hover {
  text-decoration: underline;
}

.rules-check-span {
  float: left;
  width: 90%;
}

.recaptcha-wrapper {
  text-align: center;
}

.g-recaptcha {
  display: inline-block;
}

section .fail-msg {
  border-left: 1px solid hsl(0 80% 66% / 1);
  color: hsl(0 80% 65% / 1);
}

.flag_inline {
  height: 12px;
  margin-right: 10px;
}

/* ----------------  LOGIN PAGE ---------------- */

.login-menu {
  background: transparent;
  border: none;
  padding: 15px;
  z-index: 10;
  /* Already defined z-index 20 earlier, this might be overridden */
}

.login-footer {
  position: fixed;
  bottom: 0;
  width: 100%;
}

.login-footer span {
  margin-right: 20px;
}

.login-box {
  width: 250px;
  background: hsl(0, 0%, 100%);
  border: 1px solid hsl(0, 0%, 0%);
  border-radius: 5px;
  padding: 20px;
  font-size: 16px;
  text-align: center !important;
  margin: 5vh auto;
}

.section-transparent .login-box {
  color: black;
}

.login-box h3 {
  font-size: 25px;
  margin-bottom: 20px;
}

.login-box input,
.login-box select {
  width: 91.5%;
  margin-bottom: 10px;
}

.login-box select {
  width: 100%;
}

.login-box input[type='submit'],
.login-box .icsc-button {
  width: 80%;
  margin-top: 10px;
  margin-bottom: 30px;
  margin: 0 auto;
  background-color: white;
  border: 1px solid hsl(0, 0%, 0%)
}

.login-box span {
  font-size: 14px;
  color: hsl(220, 80%, 80%);
  margin-bottom: 30px;
}

.login-box span i {
  font-size: 13px;
}

.login-box .or-line {
  border-bottom: 1px solid rgb(0, 0, 0);
  height: 12px;
  width: 80px;
  display: inline-block;
  margin-bottom: 5px;
}

.login-box .or-or {
  /* float: left; */
  /* Commented out */
  display: inline;
  padding: 0 8px;
  font-weight: 400;
}

section .login-box p {
  margin-bottom: 0px;
}

.error-message {
  color: red;
  text-align: center;
  margin-bottom: 15px;
}

.success-message {
  color: green;
  text-align: center;
  margin-bottom: 15px;
}

/* ----------------  INTERFACE ---------------- */

.interface-box {
  background: hsl(0, 0%, 100%);
  padding: 50px;
  border-radius: 5px;
  width: 700px;
}

.interface-box .interface-title {
  font-weight: bold;
  padding-bottom: 5px;
  margin-bottom: 5px;
  /* Corrected typo 05px -> 5px */
  border-bottom: 2px solid rgb(0, 0, 0);
  font-size: 20px;
}

/* Create a container for your section */
.form-body {
  background: white !important;
  /* White background */
  position: relative;
  z-index: 5;
}

/* Then keep your transparent interface inside */
.section-transparent.interface {
  background-color: rgba(255, 255, 255, 0.4);
  color: rgb(0, 0, 0);
}


.attachment {
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  transition: background 0.2s;
  display: inline-block;
}

/* .status-submission-links {
  margin-top: 12px;
  margin-left: 5px;
}

.status-submission-links div {
  margin-bottom: 8px;
} */

.attachment:hover {
  background: rgba(255, 255, 255, 0.8);
}

.logout-button {
  padding-bottom: 5px;
  margin-bottom: 5px;
  float: right;
}

.logout-button-main {
  /* padding-bottom: 5px;
  margin-bottom: 5px; */
  padding: 4px 6px;
  margin-top: 7px;
  margin-right: 30px;
  color: white;
  float: right;
}

.logout-button-main:hover {
  cursor: pointer;
  border-radius: 4px;
  text-decoration: underline;
}


.logout-button:hover {
  cursor: pointer;
  border-radius: 4px;
  text-decoration: underline;
}

.content-wrapper.interface-box {
  color: hsl(0, 0%, 0%);
  border: 2px solid rgb(0, 0, 0);
}

.user-info-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-gap: 15px;
  padding-bottom: 15px;
  border-left: 4px solid black;
  padding: 15px;
  /* border-bottom: 2px solid rgb(0, 0, 0); */
}

/* Style for info labels */
.info-label {
  font-weight: bold;
  padding-right: 10px;
  white-space: nowrap;
}

/* Style for info values */
.info-value {
  word-break: break-word;
  /* Allow long emails to wrap */
}

/* Style for section headings */
.section-heading {
  font-size: 20px;
  margin: 25px 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #333;
}

/* Style for status messages */
.status-message {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 5px;
  margin: 15px 0;
}

/* Style for warning messages */
.warning-message {
  background-color: rgba(255, 204, 0, 0.2);
  border-left: 4px solid #ffcc00;
  padding: 15px;
  margin: 15px 0;
}

.interface-box .new-round {
  border-top: 1px solid white;
  margin-bottom: 10px;
}

section .interface-box i {
  padding-right: 4px !important;
}

/* .participant-info i {
  width: 20px;
  text-align: center;
} */

.interface-box .status-positive {
  padding: 12px 15px;
  background: rgba(0, 0, 0, 0.05);
  border-left: 3px solid green;
  margin-bottom: 20px;
}

/* Style for QR Announcement */
.results-pending {
  margin: 15px 0;
  padding: 10px;
  background: rgba(0, 0, 0, 0.05);
  border-left: 3px solid #007bff;
}

/* Style for Code Status */
.status-indicator {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8em;
  font-weight: bold;
}
.code-status-pending {
  background-color: #3498db;
  color: rgb(0, 0, 0);
}
.code-status-success {
  background-color: #3af98a;
  color: rgb(2, 2, 2);
}

.code-status-error {
  background-color: #e74c3c;
  color: white;
}

.error-container {
  margin-top: 5px;
  padding: 8px;
  border-left: 3px solid #e74c3c;
  background-color: #fadbd8;
  font-size: 0.7em;
}
.code-status-unknown {
  background-color: #95a5a6;
  color: white;
}


.results-notification {
  margin: 15px 0;
  padding: 12px;
}

.not-qualified {
  background: rgba(0, 0, 0, 0.05);
  border-left: 3px solid #f0ad4e;
}

.qualified {
  background: rgba(0, 0, 0, 0.05);
  border-left: 3px solid green;
}

.certificate-download {
  margin: 12px 0;
}

.encouragement-message {
  margin-top: 12px;
  line-height: 1.5;
}

.interface-box .announcement-time{
  text-align: center;
  border: 1px solid black;
}
.interface-box .status-yellow {
  /* color: yellow; */
  font-weight: bold;
}

.interface-box .status-yellow-bg {
  /* color: yellow; */
  margin: 10 0;
  /* padding: 8px; */
  /* font-size: 17px; */
  font-weight: 400;
  background: hsla(60, 100%, 50%, 0.10);
}

.interface-box .status-yellow-bg-small {
  /* color: yellow; */
  margin: 5px 0;
  padding: 5px;
  font-size: 17px;
  background: hsla(60, 100%, 50%, 0.10);
}

.interface-box .status-green-bg-small {
  color: green;
  margin: 5px 0;
  padding: 5px;
  font-size: 17px;
  background: hsla(120, 100%, 25%, 0.15);
}

/* .interface-box .round-certificate {
  border: 1px solid hsla(0, 0%, 100%, 0.5);
  padding: 1px 8px;
  border-radius: 20px;
  color: white;
  text-decoration: none !important;
  cursor: pointer;
} */

.interface-box .round-certificate {
  display: inline-block;
  margin: 5px 0;
}

.interface-box .round-certificate:hover {
  border: 1px solid hsla(0, 0%, 100%, 0.9);
  background: hsla(0, 0%, 100%, 0.13);
}

.interface-box .round-certificate i {
  font-size: 15px;
  margin-left: 3px;
  cursor: pointer;
}

.interface-box .list-element {
  background: hsl(0, 0%, 100%);
  padding: 8px 10px;
  margin: 10px 0;
  border: 2px solid black;
  text-align: left;
}

.interface-box .list-element span {
  display: inline-block;
  width: 20px;
  padding-left: 3px;
  font-weight: 400;
}

.interface-box .list-element form {
  text-align: left;
  font-size: 15px;
}

.interface-box .list-element input {
  width: 95%;
}

.interface-box .list-element input[type='submit'] {
  width: 50%;
  margin-bottom: 10px;
}

.interface-box .list-element select {
  width: 98.1%;
}

.interface-box .list-element .delete-activity {
  float: right;
  font-size: 15px;
  color: hsl(40.55deg 95.54% 39.73%);
}

.interface-box .add-element {
  cursor: pointer;
  background: rgba(157, 157, 157, 0.535) !important;
}

.final-exam-form select {
  width: 37px;
  padding: 2px;
  margin-right: 8px;
}

.final-exam-form td {
  text-align: right;
  padding-bottom: 10px;
}


/* ----------------  TEAM AND AMBASSADOR PAGE ---------------- */

.team-member {
  display: inline-block;
  width: 180px;
  margin: 30px;
  font-size: 13px;
  color: hsl(0, 0%, 70%);
  line-height: 22px;
}

.team-member img {
  filter: grayscale(100%);
  width: 180px;
  height: 180px;
  margin-bottom: 10px;
  box-shadow: 2px 1px 5px black;
}

.ambassador-img {
  width: 300px;
  filter: grayscale(100%);
}


.ambassador-participant-details {
  font-size: 13px;
  color: grey;
  /* margin-left: 27px; */
}

.ambassador-participant-details img {
  height: 12px;
  margin-right: 3px;
}

.ambassador-participant-details span {
  float: right;
  font-size: 16px;
}

.ambassador-participant-points {
  width: auto !important;
  float: right;
  font-weight: 100 !important;
  font-size: 14px;
  color: grey;
}

.ambassador-participant-certificates {
  padding: 0;
  margin: 0;
}

.ambassador-participant-certificates {
  width: auto !important;
}



/* REGISTRATION AND PAYMENT */

.registration-form input[type='text'] {
  width: 100%;
}

.pay-method-selector {
  padding: 10px;
  border: 1px solid hsl(200, 56%, 25%);
  margin-bottom: 10px;
  height: 40px;
  outline: 1px solid transparent;
  background: hsla(210, 56%, 0%, 0.3);
}

.pay-method-selector:hover {
  outline: 2px solid hsl(210, 36%, 45%);
  cursor: pointer;
  background: hsla(210, 56%, 0%, 0.4);
}

/* Removed empty ruleset */
/* .pay-method-selector:hover > .pm-name {} */
.pay-method-selector img {
  height: 40px;
}

.pay-method-selector i {
  height: 40px;
  font-size: 25px;
  margin-top: 8px;
  margin-left: 3px;
}

.pay-method-selector .pm-icon {
  width: 190px;
  display: inline-block;
  text-align: center;
  float: left;
}

.pay-method-selector .pm-name {
  float: left;
  margin-left: 20px;
  margin-top: 8px;
}

.pay-method-selector-selected {
  outline: 2px solid hsl(210, 36%, 45%);
  background: hsla(210, 56%, 0%, 0.6);
  font-weight: 400;
}

.pay-method-selector-selected:hover {
  background: hsla(210, 56%, 0%, 0.6);
}

.stripe-checkout-button,
.paypal-button {
  background-color: hsl(221, 70%, 28%);
  color: white;
  padding: 13px 0;
  border: 0;
  border-radius: 4px;
  font-size: 15px;
  font-weight: bold;
  width: 100%;
  cursor: pointer;
}

.stripe-checkout-button:hover,
.paypal-button:hover {
  background-color: hsl(221, 70%, 32%);
}

.rec-mobile {
  display: none;
}

/* Group Payment */

.gp_info_error {
  color: hsla(0, 100%, 45%, 1);
}

.gp_info_ok {
  color: hsla(120, 70%, 40%, 1);
}

.gp_input a {
  font-size: 15px;
  color: gray;
  cursor: pointer;
}

.gp_table td {
  padding: 0px 10px;
}

/* ----------------  Subsites ---------------- */

section .content-wrapper table td,
section .content-wrapper table th {
  /* Corrected selector */
  line-height: 50px;
  font-weight: 400;
  padding-right: 10px;
}

section .content-wrapper table td img {
  height: 13px;
  margin-right: 5px;
}

.cheating_not_allowed {
  color: red;
}

.cheating_allowed {
  color: green;
}

.content-wrapper .ol_bold li {
  margin-top: 15px;
}

/* Support */

/* Buttons on left */
.support-button {
  display: block;
  width: 100%;
  margin-bottom: 1rem;
  text-align: left;
}

/* Hide all FAQ contents by default */
.support-content {
  display: none;
}

.support-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* .support .splitbox-left, #support .splitbox-right {
    vertical-align: middle;
  } */

/* Style for category buttons */
.icsc-button.support-button {
  width: 60%;
  text-align: left;
  margin-bottom: 10px;
  cursor: pointer;
}

/* Active category button */
.icsc-button.support-button.active {
  background-color: #f0f0f0;
  border-left: 4px solid hsl(40.55deg 95.54% 39.73%);
}

.faq-item {
  margin-bottom: 10px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.faq-question {
  cursor: pointer;
  margin-bottom: 10px !important;
}

.faq-question a:hover {
  color: hsl(40.55deg 95.54% 39.73%);
  ;
}

.faq-answer {
  display: none;
  padding: 10px 0 10px 25px;
  margin-bottom: 10px;
  border-left: 3px solid hsl(40.55deg 95.54% 39.73%);
  background-color: #f8f9fa;
  transition: all 0.3s ease;
}

.faq-answer.active {
  display: block;
}


/* Partners */

.partner-row {
  display: table;
  width: 100%;
  table-layout: fixed;
  margin-bottom: 1.5rem;
  /* space between entries */
}

.partner-text,
.partner-img {
  display: table-cell;
  vertical-align: middle;
  /* aligns the blurb and logo to the same baseline */
}

.partner-text {
  width: 60%;
  /* tweak however you like */
  padding-right: 1rem;
}

.partner-img {
  width: 40%;
  text-align: right;
  /* if you want the logo butt-up to the right edge */
}

.partner-img img {
  max-width: 100px;
  /* or whatever fixed size works for you */
  height: auto;
}


/* Addr */

#address_preview {
  background: #00000087;
  width: 530px;
  padding: 10px;
  margin: 10px;
  line-height: 19px;
  font-size: 16px;
}

/* About */

.intext-img {
  height: 190px;
  display: inline-block;
}

/* Orga */

.orgaimg {
  float: left;
  width: 130px;
  filter: grayscale(1.0);
  margin-left: 50px;
}

.orgatext {
  display: inline-block;
  width: 650px;
  margin-left: 20px;
}

.orgatext img,
.orgabox_small img {
  height: 12px;
  margin-left: 5px;
}

.orgarole {
  font-weight: 600;
}

.orgabox span {
  display: inline-block;
  font-size: 16px;
  color: #535353;
  font-style: italic;
}

.orgabox_small {
  margin-left: 50px;
  margin-bottom: 30px;
}

.orgaamb_wrapper {
  width: 850px;
  margin-left: 45px;
}

.orgaamb {
  filter: grayscale(1.0);
  width: 80px;
  margin: 5px;
}

.stats-box {
  font-size: 16px;
  text-align: center;
  color: #c3c3c3;
  margin: 80px 0;
}

.part-counter {
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 10px;
  color: white;
}

/* Prt */

.prt-wrapper {
  text-align: right;
  border-bottom: 1px dotted white;
  margin-bottom: 60px;
  min-height: 120px;
}

.prt-text {
  float: left;
  text-align: left;
}

.prt-logo {
  width: 120px;
}

/* OTHER UPDATED */

.inline-flag-address {
  height: 15px;
}

.image-wrapper {
  display: inline-block;
  width: 250px;
  text-align: center;
}

.image-wrapper img {
  width: 150px;
}

.image-wrapper small {
  color: grey;
  display: inline-block;
  font-size: 13px;
}

/* Language Stuff */

/* Lanugage Screen */

.bottom_space {
  width: 100%;
  height: 30vw;
}

:root {
  --language_menu_space_top_desktop: 28px;
  /* --language_menu_space_top_mobile: 17vw; */
  --language_menu_space_top_mobile: 12vw; 
}

.translation-notice {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  text-shadow: none;
  padding: 2px 0;
  z-index: 1000;
  background: black;
  border: none;
  color: rgb(255, 255, 255);
  height: var(--language_menu_space_top_desktop);
}

.translation-notice p {
  margin: 0;
  font-size: 0.8em;
  text-shadow: none;
}

.translation-notice p a {
  color: white;
  font-weight: 400;
}

.translation-notice .content-wrapper {
  color: white!important;
}

.all-languages {
  font-size: 0.7em !important;
}

/* .extra_space_because_of_language {
  width: 100%;
  height: var(--language_menu_space_top_desktop);
} */

/* Language Selection */

.languages {
  background: black;
  color: hsl(0, 0%, 50%);
  font-weight: bold;
  font-size: 12px;
  padding: 7px;
}

.languages a {
  color: hsl(0, 0%, 70%);
  padding-left: 40px;
}

.languages a:hover {
  text-decoration: underline;
}

/*  LANGAUGES */
.language-selector {
  position: relative;
  margin-left: 15px;
  margin-right: 15px;
  display: inline-flex; /* Changed from inline-block to inline-flex */
  align-items: center; /* This helps with vertical alignment */
  height: 100%; /* Match the height of surrounding elements */
}

.selected-language {
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  display: flex;
  align-items: center;
  gap: 5px;
}

.language-dropdown {
  position: absolute;
  top: 50%;
  left: 0;
  background: white;
  border-radius: 4px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  padding: 10px 0;
  min-width: 150px;
  display: none;
  z-index: 100;
  max-height: 300px;
  overflow-y: auto;
}

.language-selector:hover .language-dropdown {
  display: block;
}

.language-dropdown li {
  list-style: none;
  padding: 0;
  margin: 0;
}

.language-dropdown li a {
  display: block;
  padding: 8px 15px;
  color: #333;
  text-decoration: none;
  transition: background-color 0.2s;
}

.language-dropdown li a:hover {
  background-color: #f5f5f5;
}


/* FIXES ADDED */

.icsc-button {
  border-radius: 5px;
  cursor: pointer !important;
}


/* Arabic (RTL) formatting */

html[dir="rtl"],
html[lang="ar"] {
 direction: rtl;
 unicode-bidi: embed;
}

body[dir="rtl"],
body[lang="ar"] {
 direction: rtl;
 text-align: right;
 unicode-bidi: embed;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4 {
 text-align: right;
}

html[dir="rtl"] p,
html[dir="rtl"] div,
html[lang="ar"] p,
html[lang="ar"] div {
 text-align: right;
}

html[dir="rtl"] ul,
html[dir="rtl"] ol,
html[lang="ar"] ul,
html[lang="ar"] ol {
 text-align: right;
 padding-right: 20px;
 padding-left: 0;
}

html[dir="rtl"] li,
html[lang="ar"] li {
 text-align: right;
 list-style-position: inside;
}

/* Fix for submenu items */
html[dir="rtl"] .menu ul li ul li,
html[lang="ar"] .menu ul li ul li {
 display: block;
 float: none;
 text-align: right;
 padding: 7px 15px;
 padding-left: 0px;
 width: 80%;
}

html[dir="rtl"] .welcome h1 {
 margin-right: 10vw;
}

html[dir="rtl"] .participate-button {
 margin-right: 10vw;
}

html[dir="rtl"] .process-step-no,
html[lang="ar"] .process-step-no {
 float: right;
}

html[dir="rtl"] .process-step-content,
html[lang="ar"] .process-step-content {
 margin-right: 50px;
 margin-left: 0;
 text-align: right;
}

html[dir="rtl"] .interface-title span,
html[lang="ar"] .interface-title span {
 float: left;
}

html[dir="rtl"] .footer-column,
html[lang="ar"] .footer-column {
 float: right;
}

html[dir="rtl"] #footer-footer span,
html[lang="ar"] #footer-footer span {
 float: left;
}

html[dir="rtl"] .rules-check-span,
html[lang="ar"] .rules-check-span {
 float: right;
}

html[dir="rtl"] .submission-form input[type='checkbox'],
html[lang="ar"] .submission-form input[type='checkbox'] {
 float: right;
}

html[dir="rtl"] h4 i,
html[lang="ar"] h4 i {
 padding-right: 0;
 padding-left: 4px;
}

html[dir="rtl"] h1::before,
html[dir="rtl"] h2::before,
html[dir="rtl"] h3::before,
html[dir="rtl"] h4::before,
html[lang="ar"] h1::before,
html[lang="ar"] h2::before,
html[lang="ar"] h3::before,
html[lang="ar"] h4::before {
 margin-left: 10px;
 margin-right: 0;
}

html[dir="rtl"] .float-left,
html[lang="ar"] .float-left {
 float: left !important;
}

html[dir="rtl"] .float-right,
html[lang="ar"] .float-right {
 float: left !important;
}

html[dir="rtl"] .language-selector,
html[lang="ar"] .language-selector {
 margin-right: 15px;
 margin-left: 15px;
} 

 html[dir="rtl"] .language-dropdown,
html[lang="ar"] .language-dropdown {
 right: 0;
 left: auto;
}

html[dir="rtl"] p.subsection,
html[lang="ar"] p.subsection {
  text-align: right !important;
}

/* NEXt */

/* Fix canvas and animation elements for RTL */
html[dir="rtl"] #meshCanvas,
html[lang="ar"] #meshCanvas {
  margin-left: 10vw;
  margin-right: 0;
}

html[dir="rtl"] .canvas-container,
html[lang="ar"] .canvas-container {
  order: -1; /* Move canvas to the right side in RTL */
}

/* Fix welcome section layout for RTL */
html[dir="rtl"] .welcome,
html[lang="ar"] .welcome {
  flex-direction: row-reverse;
}

/* Fix splitbox order for RTL */
html[dir="rtl"] .splitbox-container,
html[lang="ar"] .splitbox-container {
  direction: rtl;
}

html[dir="rtl"] .timeline-item .splitbox-left {
  padding-right: 0px !important;
  padding-left: 3vw !important;
}

html[dir="rtl"] .timeline-item .splitbox-right {
  padding-right: 3vw !important;
  padding-left: 0px !important;
}

/* Fix iframe positioning for RTL */
html[dir="rtl"] .iframe-wrapper,
html[lang="ar"] .iframe-wrapper {
  text-align: center;
}

/* Fix button groups for RTL */
html[dir="rtl"] .p-button-wrapper,
html[lang="ar"] .p-button-wrapper {
  text-align: right;
}

html[dir="rtl"] .center-wrapper,
html[lang="ar"] .center-wrapper {
  text-align: center !important;
}

/* Fix materials images for RTL */
html[dir="rtl"] .materials,
html[lang="ar"] .materials {
  margin: 0 1vw;
}

html[lang="ar"] .menu,
html[lang="rtl"] .menu {
  text-align: left !important;
}

html[lang="ar"] .translation-notice p,
html[lang="rtl"] .translation-notice p {
  text-align: center !important;
}

html[lang="rtl"] .menu ul li ul,
html[lang="ar"] .menu ul li ul {
  text-align: right !important;
  float: right !important;
  transform: translateX(40px) translateY(1px);
 }

html[lang="ar"] p.subsection,
html[lang="rtl"] p.subsection{
  text-align: center !important;
}

html[lang="ar"] #icsc-info p.subsection,
html[lang="rtl"] #icsc-info p.subsection{
  text-align: right !important;
}



@media only screen and (max-width: 1200px) {
 [dir="rtl"] .content-wrapper,
 html[lang="ar"] .content-wrapper {
   text-align: right !important;
 }
 
 [dir="rtl"] .menu ul .menu-bars,
 html[lang="ar"] .menu ul .menu-bars {
   float: left;
 }
 
 [dir="rtl"] .mobile-menu ul,
 html[lang="ar"] .mobile-menu ul {
   text-align: right;
 }
}