@import url("../base.css");
@import url("../footer.css");

/* Base styles (mobile-first) */
h1 {
  font-size: 2em;
  color: var(--dark-blue);
  text-align: center;
  margin-top: 0.5em;
}
p {
  font-size: 1em;
  color: var(--dark-blue);
  text-align: center;
  margin-top: 0.5em;
}

#Intro_Container {
  margin: 5%;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  padding: 10px;
  background: var(--white);
}
#Intro_Container .subtext {
  margin-top: 1em;
  font-size: 85%;
}

#codeInputContainer {
  display: flex;
  flex-direction: column; /* Stack elements on mobile */
  align-items: stretch;
  margin-top: 1.5em;
}
#codeInput {
    box-sizing: border-box;
  min-width: 100%; /* Full width on mobile */
  height: 2.5rem;
  padding: 5px;
  border: 1px solid var(--primary-color);
}
#submitCode {
  height: 2.5rem;
  width: 100%; /* Full width on mobile */
  margin-top: 10px; /* Add spacing between input and button */
  background: var(--primary-color);
  color: var(--white);
  border: 1px solid var(--primary-color);
}
#submitCode:hover {
  background: var(--white);
  color: var(--primary-color);
  cursor: pointer;
}

/* Tablet and larger screens */
@media (min-width: 768px) {
  #Intro_Container {
    margin: 10%;
    padding: 20px;
  }
  #codeInputContainer {
    flex-direction: row; /* Align elements side by side */
    justify-content: center;
  }
  #codeInput {
    min-width: 300px;
    height: 2.5rem;
  }
  #submitCode {
    width: 100px;
    margin-top: 0; /* Remove extra margin */
  }
}

/* Desktop and larger screens */
@media (min-width: 1024px) {
  #Intro_Container {
    margin: 10% 15%;
    padding: 30px;
  }
  #codeInput {
    min-width: 350px;
    height: 2.5rem;
  }
  #submitCode {
    width: 120px;
  }
}

@media (min-width: 1280px) {
  #Intro_Container {
    margin: 10% 20%;
    padding: 30px;
  }
  #codeInput {
    min-width: 400px;
    height: 2.5rem;
  }
  #submitCode {
    width: 120px;
  }
}

