@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

/* Add full height and flex layout to push footer to the bottom */
html, body {
    height: 100%;
    margin: 0;
}
html {
    -webkit-text-size-adjust: 100%; /* Prevents iOS Safari auto text resizing */
}
body {
    display: flex;
    flex-direction: column;
    background: #121212 url('smoke.png') no-repeat center 300px fixed; 
    background-size: contain;  /* or cover if you prefer */
    color: #ffffff;
    font-family: 'Orbitron', sans-serif;
    margin: 5px;
    text-align: center;
    position: relative;
}

h1, h2 {
  text-align: center;
  color: #FF8C00;
}

form {
  margin: 20px auto;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: rgba(30, 30, 30, 0.9);  /* updated from #1e1e1e */
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(255, 140, 0, 0.3);
}

input, select {
  padding: 8px;
  font-size: 1em;
  border: 1px solid #FF8C00;
  background-color: #333333;
  color: #ffffff;
  border-radius: 5px;
}

button {
  padding: 10px;
  font-size: 1.1em;
  color: #ffffff;
  background-color: #FF8C00;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
button:hover {
  background-color: #FF9C33;
  transform: scale(1.02);
}

table {
  margin: 20px auto;
  border-collapse: collapse;
  width: 80%;
  background-color: #1e1e1e;
  box-shadow: 0 0 10px rgba(255, 165, 0, 0.3);
}
th, td {
  border: 1px solid #555555;
  padding: 12px;
  text-align: center;
}
thead {
  background-color: #333333;
  color: #FF8C00;
}

/* New centering for major sections */
header, main, footer {
  text-align: center;
}

/* End of futuristic styling */

.header-frame {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: rgba(30, 30, 30, 0.9);  /* updated from #1e1e1e */
  position: relative;
  z-index: 10;
}

.header-title h1 {
  margin: 0;
  color: #FF8C00;
  font-size: 1.5em;
}

.nav-buttons-frame button {
  margin: 0 5px;
  padding: 8px 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* New flex styling for the welcome container */
/* Adjust welcome container to move the image and text higher */
.welcome-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Align items at the top */
    padding: 10px;           /* decreased padding to move content upward */
    margin-top: 0;           /* reduced top margin to position image higher */
}

.welcome-text {
    flex: 1;
    text-align: left;
    margin-top: 120px;          /* increased margin to move the text lower */
}

.welcome-text h2 {
    font-size: 5em;  /* increased from 3em to 4em */
    color: #FF8C00;
}


.welcome-img-container {
    flex: 1;
    text-align: right;
    align-self: flex-start;  /* ensures the image is aligned at the top */
}

.welcome-img {
    max-width: 80%;
    height: bottom;
    margin-top: -100px;   /* moved image lower */
}



/* Ensure the footer is placed immediately below the content */
.main-content {
    flex: 1;
    margin-bottom: 0;
}

/* Footer styling, etc. */

@media only screen and (max-width: 600px) {
    body {
        font-size: 0.9em;
        margin: 0;
    }
    h1 {
        font-size: 1.2em;
    }
    h2 {
        font-size: 1em;
    }
    .header-frame {
        -webkit-flex-direction: column; /* Safari support */
        flex-direction: column;
        align-items: center;
        padding: 5px 10px;
    }
    .nav-buttons-frame {
        -webkit-flex-wrap: wrap; /* Safari support */
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 5px;
    }
    .nav-buttons-frame button {
        margin: 5px !important;
        padding: 5px 8px !important;
        font-size: 0.8em !important;
        background-color: #FF8C00 !important;
        color: #ffffff !important;
    }
    form {
        max-width: 95%;
        padding: 10px;
    }
    table {
        width: 100%;
        margin: 10px auto;
        font-size: 0.8em;
    }
    .welcome-container {
        -webkit-flex-direction: column; /* Safari support */
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }
    .welcome-text {
        margin-top: 10px;
        text-align: center;
        font-size: 1em;
    }
    .welcome-img-container {
        margin-top: 10px;
        text-align: center;
    }
    .welcome-img {
        max-width: 100%;
        height: auto;
        margin-top: 0;
    }
}