*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --color: rgb(0, 110, 182);
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  padding-top: 0;
  padding-bottom: 0;

  position: relative;

}

header, .logo, .wysctitle {
  justify-content: center;
  display: flex;
  font-weight: 600;
  text-align: center;
}
.admin_header{
  justify-content: right;
  margin: auto;
  gap: 1rem;
}

section {
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 1em;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header2 {
  margin-top: 0;

  font-size: 30px;
  font-family: Arial, Helvetica, sans-serif;
}

.header3 {
  color: white;
  font-size: larger;
  font-style: bold;
  text-shadow: 1px 2px 5px rgba(0, 0, 0, 0.8);
  margin: 0 auto;
  padding:0;
}

.footer {
  background-color: rgb(30, 113, 179);
  border-radius: 5px;
  width: 100%;
  text-align: center;
  padding: 20px 0;
  margin-top: auto;
  position: relative;
  bottom: 0;
  left: 0;
  z-index: 1000;
}

button {
  display: block;
  width: 100%;
  padding: 0.75em;
  margin-top: 10px;
  background-color: var(--color);
  color: #fff;

  font-family: Arial, Helvetica, sans-serif;
  border-radius: 12px;
  padding: 10px 20px;
  border: none;
}

#signupSection {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgb(255, 255, 255, .92);
  padding: 2rem;
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
}


#qrPreviewContainer {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

#signbtn {

  margin: 0 auto;

}

.style1 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  padding: 1em;
  width: 100%;
  max-width: 500px;
  margin: auto;
  box-sizing: border-box;
}


.container, .container2 {
  padding: 10px;
  font-weight: 700;
  background-color: #fff;
  width: 100%;
  max-width: 300px;
  margin: auto;
  text-align: center;
}

.buttonstyle button {
  width: 100%;
  margin-top: 10px;
  background-color: var(--color);
  border-radius: 5px;
  color: #fff;
  padding: 0.75em;
  font-size: 1rem;
}

.BYUIfont {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  text-align: center;
}

.nsopic {
  display: block;
  margin: 10px auto;
  max-width: 100%;
  height: auto;
}

.inputs {
  width: 100%;
  max-width: 300px;
  margin: 0 auto 1rem auto;
  padding: 0.5em;
  box-sizing: border-box;
  justify-content: center;
  border-radius: 8px;
}

.background-img {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  height: 90vh;

  object-fit: cover;
  z-index: -1;
}



.inner-banner {
  background-color: rgb(0, 110, 182, .8);
  color: white;
  width: 100vw;
  padding: 40px 20px;
  text-align: center;
  font-size: 2.5rem;
  font-weight: bold;
  position: relative;
  top: 0;
  left: 0;
  margin: 0;
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}


.inner-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 110, 182, 0.25);
  z-index: 0;
}

.inner-banner * {
  position: relative;

  z-index: 1;
}

img.desktop-only {
  display: none;
}


.gradbg {
  min-height: 100vh;
  background: linear-gradient(to bottom, #006eb6, #bde4ff);
  background-size: cover;
  background-attachment: fixed;
  padding: 2rem 1rem; /* Responsive padding */
}

.admin_table {
  margin: 0 auto;
  padding: 1rem;
  max-width: 90vw;
  border-radius: 20px;
  overflow-x: auto; /* For wide tables on mobile */
}

.admin_button {
  width: 100%;
  max-width: 200px;
  border: 2px solid #fff ;

}

.authform{
  justify-content: center;
  justify-items: center;
  align-items: center;
  background: radial-gradient( #006eb6, #60b4f0 );
  max-width: fit-content;
  padding: 1rem;
  margin: 0 auto;
  border-radius: 20px;
  box-shadow: 0 4px 10px #bde4ff;
}


.border_btn{
  border: 2px solid #fff ;
}

.admin_txt {
  font-size: 1.5rem;
  line-height: 2rem;
  margin: 0 auto;
  text-align: center;
  padding: 0.5rem;
  
}
.shadow_txt {
  text-shadow: 1px 1px #575757;
}
.shadow_txt2{
  text-shadow: 1px 1px #79c7ff;
}
#adminlogout {
  align-self: flex-end;
  max-width: fit-content;
  margin-right: 2rem;
}

#button_div {
  display: flex;
  flex-wrap: wrap; /* allows wrapping on small screens */
  justify-content: space-evenly;
  gap: 0.5rem;
  padding: 2rem 1rem 1rem 1rem;
}

#addTimeBtn, #clearTimeBtn {
  width: 100%;
  max-width: 200px;
}
#addTimeForm {
  min-height: 150px;
  transition: opacity 0.3s ease;
}

#clearTimeBtn {
  margin-left: 0;
}

/* ✅ Mobile-Friendly Adjustments */
@media (max-width: 768px) {
  .admin_txt, #adminlogout {
    margin-left: 0;
    margin-right: 0;
    text-align: center;
  }

  #button_div {
    flex-direction: column;
    align-items: center;
  }

  .admin_button,
  #addTimeBtn,
  #clearTimeBtn {
    max-width: 90vw;
  }
}
/* chat gpt end */


#signupsTable {
  background-color: white;

}
form{
  width: 100%;
}
#manageContainer{
  width: 100%;
}
#tourTime {
  width: 100%;           /* full width of container */
  height: 45px;          /* controls vertical size */
  font-size: 16px;       /* larger text */
  padding: 10px 12px;    /* inner spacing */
  border-radius: 8px;    /* rounded corners */
  border: 1px solid #ccc;
  box-sizing: border-box;
  margin-bottom: 15px;

}

.alert-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.alert-overlay.show {
  display: flex;
  opacity: 1;
}

.alert-box {
  background-color: rgba(255, 255, 255, 0.85);
  padding: 1.5em;
  border-radius: 25px;
  justify-items: center;
}
.centerform {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

#manageSection{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgb(255, 255, 255, .92);
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
}

.byuilogo {
  height: 60px;
  width: auto;
  align-items: center;

}
.page-container {
  padding: 10px;
  max-width: 100%;
  margin: 0 auto;
}


.centerthisbutton {
  display: block;
  margin: 10px auto;
  width: 100%;
}
@media (min-width: 769px) {
  body {

  padding-top: 73px;
  padding-bottom: 104px;
  }
  .header2 {
    font-size: 1.5rem;
    text-align: center;
  }

  .inner-banner {
    font-size: 1.5rem;
    padding: 20px 10px;
  }

  .footer, .inner-banner{
    position: fixed;
  }

  button {
    font-size: 1rem;
    padding: 10px;
  }
  img.desktop-only {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  section {
    margin-bottom: 30px;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 1em;
    justify-items: left;
    align-items: flex-start;
  }

  #signbtn {
    margin: auto;
  }

  .inputs {
    flex-direction: row;
    justify-content: center;
    gap: 1em;
  }

  .buttonstyle button {
    width: auto;
    margin-left: 50px;
  }
  
  #signupSection, #manageSection{
    min-width:500px;
    max-width: 500px;
  }
  
  .background-img {
    display: block;
    content: url('htmlpics/200512_Campus_0023-Pano.jpg');

    max-height: fit-content;
  }
}

/* Only for the MOBILE view */
@media (max-width: 768px) {
  .background-img {
    display: none;
  }

  .bg {
    background: linear-gradient(to top, #006eb6, #bde4ff);
  }
}
