/* General Body Styling */

/* General Reset */
/*html, */
body {
    margin: 10px;
    padding: 0px;
    /*box-sizing: border-box;*/
    background: #EEF9FF;
    font-family: Verdana, Tahoma, Arial, sans-serif;
    font-size: 14px;
    color: #111;
    height: 100%; /* Ensures the body fills the viewport */
}

/*body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Main Layout */
#sheet {
    background-color: #ffffff;
    margin: 0px auto;
    border: 1px solid #01A6FF;
    border-radius: 8px;
    max-width: 800px;
    /*width: 100%; /* Responsive width */
    text-align: left;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    box-sizing: border-box; /* Includes borders/padding in size calculations */
    /*max-height: calc(100vh - 40px); /* Prevents the sheet from exceeding viewport height */
    max-height: 95%;
    overflow-y: auto; /* Adds scrollbars if content overflows */
}

/* Header */
#header {
    /*display: flex;*/
    justify-content: center;
    align-items: center;
    padding: 8px;
    /*background-color: #f4f4f4;*/
    /*border-bottom: 1px solid #ddd;*/
    max-height: 100px;
}
#header-right {
    /*display: flex;*/
    /*justify-content: center;*/
    float: right;
    padding: 8px;
    max-width: 45%;
    /*background-color: #f4f4f4;*/
    /*border-bottom: 1px solid #ddd;*/
    max-height: 100px;
}
#header-img {
    max-width: 100%;
    height: auto;
    max-height: 90px;
}

/* Content Body */
#contentbody {
    padding: 10px;
    margin-top: 0;
    text-align: left;
}

/* Responsive Design */
@media only screen and (max-width: 768px) {
    #sheet {
        padding: 10px;
        max-height: calc(100vh - 20px); /* Adjust for smaller screens */
    }
}

@media only screen and (max-width: 576px) {
    #sheet {
        padding: 5px;
        max-height: calc(100vh - 10px); /* Minimize height for very small screens */
    }
}

p {
    line-height: 1.25em;
}

/* Headings */
h1 {
    font-size: 22px;
    font-weight: bold;
}

h2 {
    font-size: 18px;
    font-weight: normal;
}

h3 {
    font-size: 16px;
    font-weight: bold;
}

/* Container and Layout */
/* Main content container */
#container {
    margin: 0px auto;
    padding: 0px; /* Adds padding around the content */
    max-width: 1200px; /* Limits the width for better readability */
    /*min-height: 100vh; /* Ensures at least the height of the viewport */
    background-color: #fff; /* White background for the content area */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional shadow for aesthetics */
}

/* Lists */
.category-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.category-item {
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f5f5f5;
}

.highlight {
    font-weight: bold;
    color: #2196f3;
    margin-left: 5px;
}

/* Forms */
#startform form {
    background: -webkit-gradient(linear, bottom, left 175px, from(#CCCCCC), to(#EEEEEE));
    background: -moz-linear-gradient(bottom, #CCCCCC, #EEEEEE 175px);
    margin: auto;
    position: relative;
    max-width: 350px;
    min-height: 250px;
    font-family: Tahoma, Geneva, sans-serif;
    font-size: 14px;
    line-height: 24px;
    font-weight: bold;
    color: #000;
    text-decoration: none;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    padding: 10px;
    border: 1px solid #999;
    border: inset 1px solid #333;
    -webkit-box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
}

#startform input {
    width: 200px;
    display: block;
    border: 1px solid #999;
    height: 2em;
    -webkit-box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
}

/* Buttons */
button,
.blueButtonStyle {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
}

button:hover,
.blueButtonStyle:hover {
    background-color: #0056b3;
}

.greenButtonStyle {
    background-color: #EDF6E2;
    border-radius: 5px;
    border: 1px solid #8DC641;
    cursor: pointer;
}

.greenButtonStyle:hover {
    background-color: #8DC641;
}

.yellowButtonStyle {
    background-color: #FEE7C4;
    border-radius: 5px;
    border: 1px solid #FCAF3B;
    cursor: pointer;
    padding: 6px;
    font-weight: bold;
}

.yellowButtonStyle:hover {
    background-color: #FCAF3B;
}

/* Messages */
.message {
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.success {
    background-color: #d4edda;
    color: #155724;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
}

/* Footer */
/* Footer styling */
#footer {
    text-align: center;
    padding: 10px;
    /*background-color: #f4f4f4;*/
   /* border-top: 1px solid #ddd;*/
    position: relative;
    bottom: 0;
    width: 90%;
    margin: auto;
    font-size: 11px;
}

#footertext {
    font-size: 11px;
    color: #999;
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    padding: 5px;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 1s;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}