body {
    margin: 0;
    overflow: hidden;
    color: #006601;
    background: #ecd078 url('images/bg.png') repeat-x;
    font: 14px Helvetica, Arial, Sans-serif;
}

a { color: blue; }
img { border: none; }

.container {
    display: flex;
    background-color: #fdf5e6;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.button-group {
    width: 290mm;
    height: 166mm;
    box-sizing: border-box;
    overflow: hidden;
    border: 2mm solid #12b271;
    padding: 20mm;
    border-radius: 10mm;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 0 30mm silver;
    background-color: #fdf5e6;
}

.row {
    display: flex;
    justify-content: center;
    margin: 10mm 0;
}

.button-wrapper {
    width: 42mm;
    height: 42mm;
    margin: 0 10mm;
    border: 2mm solid transparent; /* your original had only "border: 2mm;" */
    border-radius: 10mm;
    display: flex;
    justify-content: center;
    align-items: center;
}

.button {
    width: 40mm;
    height: 40mm;
    border: 2mm solid #def5b4;
    border-radius: 10px;
    box-shadow: 15px 15px 10px rgba(0, 0, 0, 0.2);
    font-size: 22px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

	.button a {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: inherit;
	}

.small_button {
    width: 255mm;
    height: 15mm;
    border: 4mm solid #def5b4;
    border-radius: 10px;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.button:hover,
.small_button:hover {
    background-color: #fdf5e6;
    box-shadow: 7px 7px 12px rgba(0, 0, 0, 0.3);
}

.button:active,
.small_button:active {
    background-color: #FFA500;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.2);
}

.button a,
.small_button a {
    text-decoration: none;
    color: inherit;
}

.small-button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.form-container {
    margin-top: 20px;
}

header {
    width: 855px;
    min-height: 150px;
    margin-right: auto;
    margin-left: auto;
}

/* Dropdown menu */
#dropdown {
    margin-right: auto;
    margin-left: auto;
    width: 845px;
    background: #ecd078;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    padding: 5px;
}

ul.drop {
    list-style-type: none;
    margin: 0px;
    padding: 0px;
    font-size: 12px;
    font-weight: bold;
}

ul.drop li {
    float: left;
    text-align: center;
    color: #006600;
    background: #006600;
    padding: 5px 20px;
    border-right: solid 1px #fff;
}

ul.drop li:hover {
    background: #00ff00;
}

ul.drop li ul {
    list-style-type: none;
    margin: 0px;
    padding: 0px;
    display: none;
    position: absolute;
    margin-top: 5px;
    margin-left: -20px;
    z-index: 10000;
}

ul.drop li ul li {
    float: none;
    text-align: left;
    color: #33cc33;
    padding: 2px;
    background: #006600;
    border-top: solid 1px #fff;
}

ul.drop a {
    color: white;
    text-decoration: none;
}

ul.drop li ul li:hover {
    background: #00ff00;
}

ul.drop li:hover ul {
    display: block;
}

ul.drop li ul li:first-child {
    -moz-border-radius-topleft: 5px;
    -moz-border-radius-topright: 5px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

ul.drop li ul li:last-child {
    -moz-border-radius-bottomleft: 5px;
    -moz-border-radius-bottomright: 5px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

/* Vertical nav */
#vertnav {
    margin-top: 25px;
    width: 230px;
    background: #006600;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    padding: 5px 5px;
}

ul.nav {
    list-style-type: none;
    margin: 0px;
    padding: 0px;
    font-size: 12px;
    font-weight: bold;
}

ul.nav li {
    text-align: center;
    color: #33cc33;
    background: #006600;
    padding: 5px 20px 40px;
    border-bottom: solid 1px #fff;
}

ul.nav li:hover {
    position: relative;
    background: #00ff00;
}

ul.nav li ul {
    list-style-type: none;
    margin: 0px;
    padding: 0px;
    display: none;
    position: absolute;
    margin-top: 5px;
    margin-left: -20px;
    z-index: 0;
}

ul.nav li ul li {
    float: none;
    text-align: left;
    color: #33cc33;
    padding: 20px;
    background: #990033;
    border-top: solid 1px #fff;
}

ul.nav a {
    color: white;
    text-decoration: none;
}

ul.nav li ul li:hover {
    background: #b84d70;
}

ul.nav li:hover ul {
    position: absolute; /* fixed from "positition" */
    display: block;
}

ul.nav li ul li:first-child {
    -moz-border-radius-topleft: 5px;
    -moz-border-radius-topright: 5px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

ul.nav li ul li:last-child {
    -moz-border-radius-bottomleft: 5px;
    -moz-border-radius-bottomright: 5px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

/* Table styling */
#td {
    font-family: Kavivanar;
    color: #ffffff; /* was font-color */
}

table {
    font-family: Arial, sans-serif;
    font-size: 12px;
    border-collapse: collapse;
    width: auto;
}

td,
th {
    border: 1px solid #dddddd;
    padding: 1px;
}

tr:nth-child(odd) {
    background-color: #ffffff;
}

/* Boxed displays */
.rc1 {
    border-radius: 25px;
    border: 3px solid #73AD21;
    padding: 10px;
    width: 93%;
    height: 100%;
}

.rc2 {
    border-radius: 15px;
    border: 2px solid #73AD21;
    padding: 10px;
    width: 100%;
    height: 50%;
}

/* Pagination table styling */
table#t01 td {
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #ffffff; /* was font-color */
}

table#t01 table {
    font-family: Arial, sans-serif;
    font-size: 15px;
    width: 1000px;
}

table#t01 td,
table#t01 th {
    border: 1px solid #dddddd;
    padding: 1px;
}

table#t01 tr:nth-child(even) {
    background-color: #ffffff; /* fixed selector spacing */
}

.center {
    text-align: center;
}

.pagination {
    display: inline-block;
    padding: 10px;
}

.pagination a {
    color: #006601;
    float: left;
    padding: 3px 3px;
    text-decoration: none;
    transition: background-color 0.3s ease; /* fixed invalid transition */
    border: 2px solid #006601;
    border-radius: 4px;
    margin: 0 4px;
}

.pagination a.active {
    background-color: #006601;
    color: white;
    border: 2px solid #4CAF50;
}

.pagination a:hover:not(.active) {
    background-color: #006601;
    color: white;
}

/* Navmenu */
ul#navmenu {
    list-style-type: none;
    font-size: 9pt;
    margin-right: auto;
    margin-left: auto;
    width: 900px;
}

ul#sub1,
ul#sub2 {
    list-style-type: none;
    font-size: 9pt;
}

ul#navmenu li {
    width: 125px;
    text-align: center;
    position: relative;
    float: left;
    margin-right: 2px;
}

ul#navmenu a {
    color: white;
    text-decoration: none;
    display: block;
    width: 125px;
    height: 25px;
    line-height: 25px;
    background-color: #006600;
    border: 1px solid #CCC;
    border-radius: 5px;
}

ul#navmenu .sub1 a {
    margin-top: 5px;
}

ul#navmenu .sub2 a {
    margin-left: 3px;
}

ul#navmenu li:hover > a,
ul#navmenu li:hover a:hover {
    background-color: #00ff00;
}

ul#navmenu ul.sub1 {
    display: none;
    position: absolute;
    top: 26px;
    left: 0px;
}

ul#navmenu ul.sub2 {
    display: none;
    position: absolute;
    top: 0px;
    left: 86px;
}

ul#navmenu li:hover .sub1 {
    display: block;
}

ul#navmenu .sub1 li:hover .sub2 {
    display: block;
}

.darrow {
    font-size: 11pt;
    position: absolute;
    top: 5px;
    right: 4px;
}

.rarrow {
    font-size: 13pt;
    position: absolute;
    top: 6px;
    right: 4px;
}

/* Layout containers */
#container {
    overflow: auto;
    width: 1255px;
    margin-right: auto;
    margin-left: auto;
    padding: 5px;
    background: url('images/main.png');
}

#content {
    width: 1255px;
    min-height: 400px;
    margin: 0 auto; /* fixed invalid shorthand */
    background: #fff;
    overflow: auto;
}

#anno-content {
    width: 1255px;
    height: auto;
    background: #fff;
    overflow: auto;
    float: none; /* was "float: middle" invalid */
}

/* Content columns */
#contentleft {
    width: 270px;
    float: left;
    overflow: auto;
    margin-left: 1px;
    padding: 1px;
}

#contentleft h1 {
    font-size: 24px;
    margin-top: 0;
}

#contentright {
    width: 500px;
    float: right;
    overflow: auto;
    margin-left: 1px;
    padding: 1px;
}

#contentright h1 {
    font-size: 24px;
    margin-top: 0;
    text-align: justify;
}

#pe1 {
    font-size: 12px;
    color: black;
    text-indent: 75px;
    text-align: justify;
}

/* Float helpers */
#fr1 {
    position: relative; /* fixed syntax */
    float: right;
    top: 15px;
    right: 1px; /* added unit */
    padding: 15px;
}

#fl1 {
    position: relative; /* fixed syntax */
    float: left;
    top: 15px;
    left: 1px; /* added unit */
    padding: 15px;
}

/* Sidebar (kept both blocks, but corrected and consistent) */
#sidebar {
    width: 280px;
    height: 90px;
    float: left;
    padding: 15px;
}

.sidebar-element,
.sidebarr-element {
    overflow: auto;
    margin-top: 1px;
    text-align: justify;
}

#sidebarr h3,
#sidebar h3 {
    color: #fff;
    background: #006600;
    padding: 7px 10px;
    text-transform: uppercase;
    font-size: 12px;
}

#sidebarr ul,
#sidebar ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

#sidebarr ul li,
#sidebar ul li {
    font-family: arial;
    color: red;
    font-size: 14px;
    margin: 0 0 0 7px;
    text-align: justify;
}

/* Footer */
#footer {
    width: 855px;
    margin: 0 auto;
    text-align: center;
}

#footer ul {
    margin: 15px 0 0 0;
    padding: 0;
    list-style-type: none;
}

#footer ul li {
    display: inline;
    margin-right: 5px;
}

#footer ul li a {
    text-transform: uppercase;
    font-size: 12px;
    font-weight: bold;
    color: #006600;
    text-decoration: none;
}

#footer ul li a:hover {
    text-decoration: underline;
}

#footer p {
    font-weight: bold;
}
