.section-content {
    display: none; /* Initially hide the content */
}

.section-title {
    cursor: pointer;
}

.expand {
    float: right;
}

.section li {
	padding-top: 4px;
}

.section a {
	font-weight:bold;
}

.form-row {
    display: flex;
    align-items: flex-start; /* Align items to the top */
    margin-bottom: 15px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}
.form-row label {
    font-weight: bold;
}

.label-tooltip {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Right-align the contents */
    flex: 0 0 180px; /* Fixed width for label and icon */
    position: relative; /* Positioning context for tooltip */
    text-align: right;
    margin-right: 10px;
}

.input-container {
    flex: 1; /* Take up remaining space */
    min-width: 180px; /* Minimum width before wrapping */
    max-width: 300px; /* Maximum width for better appearance */
	width: 100%;
}

.input-container input,
.input-container select,
.input-container textarea {
    width: 100%; /* Ensures inputs take full width of their container */
    box-sizing: border-box; /* Includes padding and border in the element's total width */
}

.tooltip-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background-color: #621217;
    color: white;
    border-radius: 50%;
    margin-left: 10px;
    cursor: pointer;
    font-size: 14px;
    position: relative;
}

.tooltip-content {
    display: none;
    position: absolute;
    top: 50%; /* Center vertically */
    left: 100%; /* Start right next to the icon */
    transform: translateY(-50%); /* Center align vertically with the icon */
    background-color: #f9f9f9;
    border: 1px solid #d4d4d4;
    color: black;
    padding: 5px 10px;
    z-index: 100; /* Ensure it's above other elements */
    width: 250px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3); /* More prominent shadow */
    white-space: normal;
    max-width: 90%;
	max-height: 200px;
    overflow-y: auto;
    text-align: left;
    font-size: 12px;
    font-style: italic;
}

.tooltip-icon:hover + .tooltip-content {
    display: block;
}

textarea {
    height: 100px;
}

input[type="submit"] {
    width: 100%; /* Full width of its container */
    max-width: 300px; /* Match with .input-container max-width */
    margin-left: auto; /* Center align the button */
    margin-right: auto; /* Center align the button */
    margin-top: 10px;
    padding: 10px 0; /* Add some vertical padding for a taller button */
    cursor: pointer;
}


.submitbutton {
    background-color: #e2cae0;
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    border-radius: 6px;
    border: 1px solid #638263;
    color: #404040 !important;
    font-family: Verdana;
    font-size: 16px;
    font-weight: normal !important;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box; /* Include padding and border in the button's dimensions */
    width: 100%; /* Full width of its container */
    max-width: 300px; /* Match with .input-container max-width */
    margin-left: auto; /* Center align the button */
    margin-right: auto; /* Center align the button */
    margin-top: 10px;
    padding: 10px 0; /* Add some vertical padding for a taller button */
    cursor: pointer;
}

.submitbutton:hover {
    background-color: #d5a7d2;
    color: #000000;
    cursor: pointer;
}


/* Adjustments for mobile screens */
@media (max-width: 450px) {
    .form-row {
        flex-direction: column; /* Stack label and input vertically */
        align-items: flex-start; /* Align items to the start (left) */
    }

    .label-tooltip {
        flex-basis: 100%;
        text-align: left; /* Left-align the label */
        margin-bottom: 10px; /* Add some space below the label line */
    }
    .tooltip-content {
        position: fixed; /* Fixed position relative to the viewport */
		left: 50%; /* Center horizontally */
        transform: translateX(-50%); /* Adjust only horizontal centering */
        bottom: auto; /* Reset bottom property */
        right: auto; /* Reset right property */
        width: 80%; /* Adjust the width as needed */
        max-width: none; /* Override any max-width */
		font-size: 14px; 
    }

    .input-container {
        flex-basis: 100%;
        width: 100%; /* Ensure full width for input containers */
    }

    input[type="submit"] {
        width: 100%; /* Full width on smaller screens */
        margin-left: 0; /* No left margin on smaller screens */
        margin-top: 10px;
    }
}


.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 120px)); /* Each column is always 120px */
    grid-gap: 10px;
    padding: 10px;
    justify-content: center; /* Centers the grid within the container */
}

.gallery-item {
    cursor: pointer;
    width: 100%;
    height: auto;
    border-radius: 5px; /* Apply rounded corners */
    overflow: hidden; /* This ensures the content (like images) also conforms to the border-radius */
    transition: transform 0.3s ease; /* For a zoom effect on hover */
}

.gallery-item img {
    width: auto; /* Adjusted to auto */
    height: auto; /* Adjusted to auto */
    max-width: 120px; /* Set maximum width to 120px */
    max-height: 120px; /* Set maximum height to 120px */
    border-radius: 5px; /* Apply rounded corners to the image as well */
    transition: transform 0.3s ease; /* For a consistent zoom effect */
}

.gallery-item:hover img {
    transform: scale(1.05); /* Zoom effect on hover */
}

.lightbox {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

.lightbox-image {
    max-width: 90%;
    max-height: 70%;
    margin: auto;
    border: 5px solid white; /* Optional: adds a border around the image */
}

.lightbox-caption {
    color: white;
    text-align: center;
    margin-top: 15px;
	max-width: 90%;
}
.lightbox-nav {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 50px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
}

.lightbox-prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.lightbox-next {
    right: 0;
    border-radius: 0 3px 3px 0;
}

@media screen and (max-width: 600px) {
    .lightbox-nav {
        position: absolute;
        top: auto; /* Reset top positioning */
        bottom: 60px; /* Position above the caption */
    }
    .lightbox-prev {
        left: 10px; /* Left side but not too close to the edge */
    }
    .lightbox-next {
        right: 10px; /* Right side but not too close to the edge */
    }

    .lightbox-caption {
        padding: 0 50px; /* Add padding to avoid overlap with arrows */
    }
}

#statistics-table {
	width: 100%;
}

#statistics-table td {
	padding: 10px;
}

#statistics-table tr:nth-child(odd) {
	background-color: #fafaf0;
}

#statistics-table tr td:first-child {
	width: 175px;
	font-weight: bold;
}
#statistics-table tr td:last-child {
	width: 50px;
	text-align: center;
	font-weight: bold;
}
#statistics-table thead tr {
	background-color: #E8E7D0 !important;
	color: #894E50;
	font-weight: bold;
}

#statistics-table .fill-bar {
	background-color: #a86c6e;
}

.statistics-top {
	width: 100%;
	display: flex;
	flex-wrap: nowrap;
}

.stat-box {
	flex-basis: 50%;
	margin: 10px 1%;
	background-color: #fafaf0;
	text-align: center;
	display: inline-block;
	height: 100px;
	padding: 20px 10px;
	border: 1px solid #E8E7D0;
	box-sizing: border-box;
}

.stat-box .stat-num {
	font-size: 36px;
}
