:root {
    --primary: #7952b3;
    --secondary: #61428f;
    --border-color: #dee2e6;
    --max-width: 1140px;
    --border-radius: 0.25rem;
    --button-text: #fff;
    --button-focus: 0 0 0 3px rgba(121, 82, 179, 0.25);
    --link-color: #7952b3;
    --text-main: #363636;
    --text-bright: #000;
    --body-bg-color: #f9fafb;
    --footer-bg-color: #fff;
    --form-bg-color: #fff;
    --input-text-color: #000;
    --input-text-disabled: #7a7a7a;
    --input-placeholder-color: #c2c2c2;
    --input-border-color: #ccc;
    --input-background-color: #fff;
    --input-disabled: #f5f5f5;
    --input-focus: 0 0 0 3px rgba(121, 82, 179, 0.25);
    --error: #dc3545;
    --success: #198754;
    --warning: #664d03;
    --info: #0c5460;
    --alert-error-bg: #f8d7da;
    --alert-warning-bg: #fff3cd;
    --alert-success-bg: #d4edda;
    --alert-info-bg: #d1ecf1;
    --header-active-bg: hsl(270, 20%, 70%);
}

* {
    font-family: Helvetica, Arial, sans-serif;
}

body {
    margin: 0px;
}

.header-container {
    position: -webkit-sticky; /* For Safari */
    position: sticky;
    top: 0;
    width: 100%;
    margin: 0x;
    padding: 0px;
    z-index: 1000;
}

.header-title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color:white;
    padding: 20px;
}

/* (A) ONLY APPLY ON SMALL SCREENS */
@media only screen and (max-width: 768px) {
      .header-image {
        width: 150px;
      }
      .header-title-container {
        padding: 0px;
      }
}

.header-container h1 {
    font-family: "Metamorphous", sans-serif;
    font-size: 1.4em;
}

.menu-bar-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background-color: rgb(223,199,165);
    gap: 20px;
    padding: 20px;
    padding-top: 0px;
    padding-bottom: 0px;
    font-size: 12px;
}

.header-button {
    font-family: Helvetica, Arial, sans-serif;
    display: inline-block;
    padding: 5px 20px;
    font-size: 14px;
    color: white;
    background-color: #a87e2a;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}
  
.header-button:hover {
    background-color: #a87e2aC0;
}

.main-container h2 {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 1.2em;
    text-align: center;
}

.ifc-hidden { 
    display:none; 
} 
.ifc-shown{ 
    display: block !important; 
} 

.doc-viewer {
    margin-left: 10px;
    margin-right: 10px;
}

.button-wrapper {
    background-color: hsl(270, 2%, 80%);
    border-radius: 5px;
    border-width: 1px;
    border-style: solid;
    border-color: black;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 0px;
    padding-right: 0px;
    margin: 0px;
}

.content-spacer {
    background-color: white;
    width: 100%;
    height: 5px;
}

.thin-spacer {
    background-color: hsl(270,10%,92%);
    width: 100%;
    height: 2px;
}

.button-wrapper a {
    font-family: Arial, Helvetica, sans-serif;
    color: #333333;
    display: block;
    height: 100%;
    width: 100%;
    text-decoration: none;
    text-align: left;
}

.button-wrapper a:visited {
    color: #333333;
}

.button-wrapper a:hover {
    color: #000000;
    font-weight: bold;
}

.button-wrapper-tier-2 {
    background-color: hsl(270,10%,85%);
    border-radius: 0px;
    border-width: 1px;
    border-style: solid;
    border-color: rgb(183,165,171);
}

.button-wrapper-tier-3 {
    background-color: hsl(270,10%,90%);
    border-radius: 0px;
    border-width: 1px;
    border-color: rgb(156,175,155);
}

.button-enabled-content {
    border-radius: 2px;
    border-width: 1px;
    border-style: solid;
    border-color: hsl(270,10%,98%);
}

.full-screen-content {
    background-color: #000000;
    position: fixed;
    top: 0; 
    left: 0;
    z-index: 1999;
    width: 100vw; 
    height: 100vh;
}

.generic-iframe {
    background-color: whitesmoke;
    overflow: auto;
}

#image_viewer {
    overflow: auto;
    position: relative;
}

#image_view {
    position: relative;
    height: auto;
}

.full-screen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    background-color: hsl(0, 0%, 20%);
    color: lightgray;
    font-size: 1.0em;
    padding-left: 10px;
    text-align:center;
}

.closebtn {
    position: absolute;
    background-color: black;
    color: lightgray;
    font-size: 1.0em;
    border-radius: 2%;
    border: 2px solid #888;
    padding: 6px;
    text-align: center;
    text-decoration: none;
    right: 10px;
    top: 8px;
    opacity: 0.8;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

  }
  .closebtn:hover {
    opacity: 1;
  }



.file-link-container {
    background-color: hsl(270,10%,92%);
    display:flex;
    align-items: center; /* Align Items Vertically */
    justify-content: space-between;
    margin-bottom: 0px;
}

.file-link {
    text-decoration: none;
    font-weight: bold;
    color: blue;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 10px;
    padding-right: 10px;
    margin: 0px;
    display: block;
}

.file-download-link {
    text-decoration: none;
    font-weight: bold;
    color: green;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 0px;
    padding-right: 10px;
    text-align: right;
    margin: 0px;
    display: block;
}

/* Position the close button (top right corner) */
/**.full-screen-content .closebtn {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 40px;
    font-style: normal;
  }*/

  /* When the height of the screen is less than 450 pixels, change the font-size of the links and position the close button again, so they don't overlap */
/**@media screen and (max-height: 450px) {
    .full-screen-content a {font-size: 20px}
    .full-screen-content .closebtn {
      font-size: 30px;
      top: 15px;
      right: 35px;
    }
  }*/
  

/** Footer Styling */
.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    row-gap: 3px;
    place-items: center;
    padding: 10px;
    background-color: rgb(223,199,165);
}

.footer-disclaimer {
    grid-column: 1 / -1;
    font-style: italic;
}

.footer-content {
    font-family: Helvetica, Arial, sans-serif;
    font-size:0.7em;
}

/*input,
select,
textarea {
    display: block;
    background-color: var(--input-background-color);
    color: var(--input-text-color);
    border: 1px solid var(--input-border-color);
    border-radius: var(--border-radius);
    padding-top: 10px;
    padding-bottom: 10px;
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
}

form {
    margin: 1rem auto;
    border: solid 1px var(--border-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    background-color: var(--form-bg-color)
}

form {
    width: 450px;
}*/

/* (A) ONLY APPLY ON SMALL SCREENS */
@media only screen and (max-width: 768px) {
    form {
        width: 350px;
    }
    
}


/*form h1 {
    padding: 5px 0;
    font-size: 1.2rem;
    font-weight: 300;
    text-align: center;
    color: var(--text-bright)
}

form i {
    margin-left: -30px;
    cursor: pointer
}

form p {
    margin-bottom: .5rem
}

form section {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem
}

form section div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 1rem
}

form footer {
    text-align: center;
    border-top: solid 1px var(--input-border-color);
    padding: .5rem 0;
    font-size: .8rem
}

form div {
    margin-bottom: .75rem
} */

small {
    color: var(--error);
    /*position: absolute;
    font-weight: bold;
    left: 20px;
    top: 12px; */
}


label {
    display: inline-block;
    margin-bottom: 5px;
    vertical-align: top;
    width: 100%
}

input::placeholder {
    color: var(--input-placeholder-color)
}

input:focus,
select:focus,
textarea:focus {
    outline: 0;
    box-shadow: var(--input-focus)
}


input.error,
select.error,
textarea.error {
    border-color: var(--error)
}


input.error:focus,
select.error:focus,
textarea.error:focus {
    box-shadow: 0 0 0 .25rem rgb(220 53 69 / 25%)
}

/*form button {
    display: block;
    width: 100%;
}

form button {
    display: inline-block;
    color: white;
    background-color: #a87e2a;
    border: 1px solid #906512;
    border-radius: var(--border-radius);
    font-size: 1em;
    font-weight: 400;
    text-align: center;
    padding: .5em .75em;
    min-width: 10ch;
    user-select: none;
    font-style: normal;
    text-decoration: none;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out
}

button:hover {
    background-color: #a87e2aC0;
    border-color: var(--border-color);
    cursor: pointer
}

button:focus {
    outline: 0;
    color: var(--button-text);
    background-color: #a87e2aC0;
    border-color: var(--border-color);
    box-shadow: var(--button-focus)
}*/

.alert {
    position: relative;
    padding: 1rem 1rem;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
}

.alert-error {
    color: var(--error);
    background-color: var(--alert-error-bg);
}

.alert-warning {
    color: var(--warning);
    background-color: var(--alert-warning-bg);
}

.alert-info {
    color: var(--info);
    background-color: var(--alert-info-bg);
}

.alert-success {
    color: var(--success);
    background-color: var(--alert-success-bg)
}

.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    /*height: 100vh;*/
    background-color: #f9fafe;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}
.login-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}
.login-container h2 {
    margin-bottom: 20px;
    margin-top: 0px;
    color: #333;
}
.login-container input[type="text"],
.login-container input[type="password"] {
    width: calc(100% - 20px);
    padding: 6px 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 18px;
}
#toggler, #toggler1, #toggler2, #admin-toggler {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.login-container input[type="text"].error,
.login-container input[type="password"].error {
    border-color: var(--error);
    box-shadow: 0 0 0 .25rem rgb(220 53 69 / 25%);
}


.login-container button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}
.login-container button:hover {
    background-color: #0056b3;
}
