body {
    font-family: Arial, sans-serif;
    background: #f4f6f8;
    margin: 0;
    padding: 0;
    color: #333;
}

header {
    padding-left: 1em;
    padding-top: .2em;
    border-bottom: .2em solid black;
}
header img {
  display: block;
  height: 200px;
  margin: auto;
}

.user-status {
    position: fixed;
    top: 15px;
    right: 20px;
    background-color: #ffffff;
    padding: 10px 14px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    font-size: 15px;
    color: #333;
}

.user-status a {
    color: #007bff;
    text-decoration: none;
    margin: auto;
}

.user-status a:hover {
    text-decoration: underline;
}

/*nav css*/
#mainnav {
  	margin: 0;
  	padding: 0;
  	clear: left;
}
#mainnav ul {
  	list-style-type: none;
  	position: relative;
  	margin: 0;
  	padding: 0;
  	width: 100%;
}
#mainnav ul li {
  	float: left;
  	text-align: center;
  	width: 33.333%;
  	background-color: white;
}
#mainnav ul li a {
  	display: block;
  	text-decoration: none;
  	color: orange;
  	font-weight: bold;
  	padding: 1em;
}
#mainnav ul li a.current {
  	color: gray;
}
#mainnav ul li:hover > a {
  	color: black;
}

main{
  	clear: left;
    display: flex;
  	flex-direction: column;
    justify-content: center;
  	align-items: center;
    padding: 40px 20px;
}

main .event {
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 15px;
    padding: 25px 30px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

main .event:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

main .event h2 {
    font-size: 26px;
    margin-top: 0;
    margin-bottom: 12px;
    color: #003366;
    border-left: 4px solid orange;
    padding-left: 10px;
}

mian .event p {
    font-size: 17px;
    margin: 6px 0;
    color: #444;
}

main .event b {
    color: #002244;
}

#registerForm, #updateForm {
    background: #ffffff;
    width: 100%;
    max-width: 450px;
    padding: 30px 35px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#registerForm h3, #updateForm h3 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 22px;
}

#registerForm label, #updateForm label {
    display: block;
    margin: 12px 0 5px;
    font-weight: 600;
}

#registerForm input[type="text"],
#registerForm input[type="number"],
#registerForm input[type="file"],
#registerForm input[type="password"],
#updateForm input[type="text"],
#updateForm input[type="number"],
#updateForm input[type="file"],
#updateForm input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    transition: 0.2s;
}

#registerForm input:focus, #updateform input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 4px rgba(0, 123, 255, 0.4);
}

#registerForm input[type="submit"], 
#updateForm input[type="submit"] {
    margin-top: 25px;
    width: 100%;
    padding: 12px;
    background: #007bff;
    border: none;
    color: white;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

#registerForm input[type="submit"]:hover,
#updateForm input[type="submit"]:hover {
    background: #0056b3;
}

main table {
  	margin: auto;
 	width: 50%;
  	border-spacing: 0;
}
main table th,td {
  	border: 1px solid black;
  	width: 25%;
}

.resultlink a {
  background-color: white;
  color: black;
  padding: 14px 25px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  border: 2px solid black;
  font-weight: bold;
}
.resultlink a:hover {
  	background-color: black;
  	color: white;
  	font-weight: bold;
}

footer {
    clear: left;
    text-align: center;
    margin: 1em;
}