:root {
    --table-button-background-opacity: 0.8;
    --page-content-background-opacity: .97;
    --field-width: 150px;
}

body {
    display: block;
    background-color: rgb(241, 241, 241);
    color: white;
    background-image: url('../js/recources/LambdaCrest.png');
    background-size: 50%;
    background-position-y: 100px;
    background-position-x: center;
    background-repeat: no-repeat; /* Prevent the image from repeating */
}

@media (max-width: 768px) {
    body {
        background-size: 80% !important; 
        background-position-y: 125px;
    }
}

/* Styling for the centered div with inward box shadow */
#pageContent {
    margin-top: 25px;
    margin-left: auto;
    margin-right: auto;
    width: 50%; 
    padding: 20px;
    color: rgba(26, 47, 88);
    /* background-color: rgba(26, 47, 88, 0.8); */
    background-color: rgb(221, 221, 221, var(--page-content-background-opacity));
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.7); 
    text-align: center; 
    position: relative; 
}

.main {
    opacity: 1;
}

.allForms * {
    margin-left: 10px;
    margin-right: 10px;
}

#styleTable {
    justify-content: space-between; 
    display: flex;
    background-color: rgb(26, 47, 88);
    background-color: rgb(221, 221, 221, 0.90);
    margin-top: 25px;
    margin-left: auto;
    margin-right: auto;
    height: fit-content;
    border-radius: 10px;
    position: sticky;
    top: 170px;
    z-index: 998;
    justify-content: center;
    padding: 15px;
}

/* Container for the table */
#tableArea {
    display: flex;
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    margin: 0 auto; 
    width: fit-content;
    max-width: 85%;
    overflow-x: auto; /* Enable horizontal scrolling if needed */
  }

  #tableArea td, #tableArea tr, #tableArea th {
    font-size: 24px;
  }
  
  /* Style the table */
  #tableArea table {
    border-collapse: collapse; /* Remove the gap between table cells */
    width: 100%;
    color: white; 
    margin: 5px 0; 
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    max-width: fit-content;
    margin: auto;
  }
  
  /* Table headers */
  #tableArea table th {
    background-color: rgb(26, 47, 88); 
    color: white; 
    padding: 12px;
    padding-left: 20px;
    padding-right: 20px;
    text-align: center;
    
  }
  
  /* Table data cells */
  #tableArea table td {
    padding: 10px;
    border-bottom: 1px solid rgb(34, 61, 116); 
    border-left: 1px solid rgb(34, 61, 116, 0.1); 
    border-right: 1px solid rgb(34, 61, 116, 0.1); 
    text-align: center;
  }

  #tableArea table tr:first-child {
    border-bottom: 2px solid white !important; 
  }

  /* Alternate row colors */
  #tableArea table tr:nth-child(even) {
    color:white;
    /* background-color: rgb(34, 61, 116, var(--background-opacity)); */
    background-color: rgb(221, 221, 221);
    color:black;
  }
  
  #tableArea table tr:nth-child(odd) {
    color:white;
    /* background-color: rgb(26, 47, 88, var(--background-opacity)); */
    background-color: rgb(241, 241, 241);
    color:black;
  }


/* Reset the default form styles */
form {
    margin: 0; 
    padding: 0; 
    border: none;
    background: none; 
    display: inline-block; /* Makes form behave like an inline element */
  }
  
  /* General submit button styles */
  form input[type="submit"] {
    appearance: none; /* Removes default browser styling */
    -webkit-appearance: none; /* Removes default styling on WebKit-based browsers */
    color: white; 
    border: 2px solid rgb(26, 47, 88); 
    padding: 8px 16px; 
    border-radius: 5px; 
    cursor: pointer; /* Pointer cursor on hover */
    font-size: 14px; 
    text-align: center; 
    transition: background-color 0.3s, transform 0.2s; /* Smooth transition for hover effects */
  }
  
  /* Submit button for odd-numbered forms */
  tr:nth-child(odd) form input[type="submit"] {
    /* background-color: rgb(34, 61, 116); */
    /* background-color: rgb(44, 81, 156); */
    background-color: rgb(26, 47, 88);
  }
  
  /* Submit button for even-numbered forms */
  tr:nth-child(even) form input[type="submit"] {
    background-color: rgb(26, 47, 88);
  }
  
  /* Hover effect for the submit button */
  tr:nth-child(odd) form input[type="submit"]:hover {
    color: rgb(26, 47, 88); 
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    background-color: rgba(255, 255, 255, var(--table-button-background-opacity)); 
    cursor: pointer; /* Change cursor to pointer when hovering over rows */
    color:black;
    border-color: rgba(34, 30, 30, 0.296);
    transform: scale(1.05);
  }

  tr:nth-child(even) form input[type="submit"]:hover {
    color: rgb(26, 47, 88); 
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    background-color: rgba(255, 255, 255, var(--table-button-background-opacity)); 
    cursor: pointer; 
    color:black;
    border-color: rgba(34, 30, 30, 0.296);
    transform: scale(1.05);
  }
  
  /* Active state for the submit button */
  form input[type="submit"]:active {
    background-color: rgb(22, 39, 73); 
    transform: scale(0.95);
  }
  
  /* Disabled state for the submit button */
  form input[type="submit"]:disabled {
    background-color: rgb(50, 75, 135); 
    color: rgba(255, 255, 255, 0.6); 
    cursor: not-allowed; /* Disabled cursor */
    opacity: 0.6; 
  }

.allForms label {
    float: left;
    font-size: 24px;
}

.allForms select {
    width: calc(var(--field-width) + 8px);
    height: 27px;
}

.allForms input {
    width: var(--field-width);
    height: 25px;
}

.allForms input, .allForms select {
    float: right;
    border: 1px solid rgb(50, 75, 135);
    padding-left: 4px;

}

.allForms button {
    appearance: none; /* Removes default browser styling */
    -webkit-appearance: none; /* Removes default styling on WebKit-based browsers */
    color: white; 
    border: 2px solid rgb(26, 47, 88); 
    background-color: rgb(26, 47, 88);
    padding: 8px 16px; 
    border-radius: 5px; 
    cursor: pointer; 
    font-size: 14px; 
    text-align: center; 
    transition: background-color 0.3s, transform 0.2s; /* Smooth transition for hover effects */

}

.allForms button:hover {
    color: rgb(26, 47, 88); 
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    background-color: rgba(255, 255, 255, var(--table-button-background-opacity)); 
    cursor: pointer; 
    color:black;
    border-color: rgba(34, 30, 30, 0.296);
    transform: scale(1.05);
  }

.spacer {
    height: 20px;
}

.blurred {
  filter: blur(5px); /* Adjust blur intensity as needed */
  pointer-events: none; /* Disable interactions with blurred content */
}