/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #eef1f5; /* Lighter background */
    color: #333;
}

.container {
    width: 95%;
    display:flex;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

/* Header */
header {
    background: #5c9ded; /* Lighter blue background for header */
    color: #ffffff; /* White text for header */
    padding-top: 15px;
    min-height: 100px; /* Increased header height */
    border-bottom: #3a7bc8 3px solid; /* Adjusted darker blue border */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex; /* Using flexbox for better alignment */
    align-items: center; /* Vertically align items in the center */
}

header .container {
    display: flex;
    align-items: center; /* Align items in container */
    width: 100%; /* Ensure container takes full width of header */
}

header .button_form {
     padding-top: 5px;
     margin-left: auto;

}

header a {
    color: #ffffff; /* White text for links */
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
}

header #branding {
    float: left;
    display: block; 
    align-items: center; /* Vertically center items within branding */
}

header #branding h1 {
    margin: 0;
}

header #branding h1 a {
    color: #ffffff; /* White for brand */
}

header #languages {
    float: left;
    width: 65px;
    display: flex; 
    align-items: center; 
}

/* Added style for the logo */
header #branding #logo {
    max-height: 70px;
    margin-right: 15px;
    /* vertical-align: middle; Removed as flexbox handles this */
}

header #branding p, /* Targeting both p and h3 for flexibility */
header #branding h3 {
    margin: 0;
    font-size: 0.9em; /* Consider adjusting if h3 is too small */
    color: #e0e0e0;
    text-align: center;
    /* line-height: 70px; Removed as flexbox handles vertical alignment */
}

header nav {
    float: left; /* Keep float for now, but flexbox on .container helps */
    margin-top: 0; /* Reset margin-top as flex handles alignment */
    margin-left: 0;
    min-width:450px;
}

header nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

header nav ul li {
    display: inline;
    padding: 0 5px 0 5px;
}

header nav ul li a:hover {
    color: #cce0ff; /* Lighter blue on hover */
}

header nav ul li.active a {
    color: #ffffff; /* White for active link */
    font-weight: bold;
    border-bottom: 2px solid #ffffff; /* Add a white underline for active link */
    padding-bottom: 5px; /* Adjust padding for underline */
}

header #login-area {
    float: right; /* Keep float for now */
    margin-top: 0; /* Reset margin-top */
    margin-left: auto; /* Push login area to the right with flexbox */
    display: flex;
    min-width: 600px;
}

header #login-area input[type="text"],
header #login-area input[type="password"],
header #login-area input[type="date"] {
    padding: 8px;
    margin-right: 8px;
    border: 1px solid #bbdfff; /* Lighter blue border for inputs */
    border-radius: 4px;
    background-color: #f0f8ff; /* Very light blue background for inputs */
    color: #333;
}

header #login-area .button_1 {
    height: 36px;
    background: #ffffff; /* White background for login button */
    border: 1px solid #1e57a8;
    padding: 0 15px;
    color: #1e57a8; /* Blue text for login button */
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 14px;
}

header #login-area .button_1:hover {
    background: #e6f0ff; /* Light blue hover for login button */
    color: #16458a;
}

header #login-area .button_2 {
    height: 36px;
    background: transparent; /* Transparent background for register button */
    border: 1px solid #ffffff; /* White border for register button */
    padding: 0 15px;
    color: #ffffff; /* White text for register button */
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 14px;
    margin-left: 5px;
}

header #login-area .button_2:hover {
    background: #ffffff; /* White background on hover */
    color: #2a6fdb; /* Blue text on hover */
}

/* Main Content */
main {
    padding: 30px 0;
}
main .button_contest {
    height: 36px;
    background: #5c9ded; 
    border: 1px solid #1e55a8; 
    padding: 0 15px;
    color: #ffffff; 
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 14px;
    margin-left: 5px;
    margin-bottom: 10px;
    width:600px;
}

main .button_contest:hover {
    background: #ffffff; 
    color: #2a6fdb; 
}
main .op-list {
    display:flex;
}
main #main-content input[type="text"],
main #main-content input[type="password"],
main #main-content input[type="date"],
main #main-content input[type="email"] {
    padding: 8px;
    margin-right: 8px;
    border: 1px solid #bbdfff; /* Lighter blue border for inputs */
    border-radius: 4px;
    background-color: #f0f8ff; /* Very light blue background for inputs */
    color: #333;
}

/* Style for select elements in main content to match input type="text" */
#main-content select {
    padding: 8px;
    margin-right: 8px;
    border: 1px solid #bbdfff; /* Lighter blue border for inputs */
    border-radius: 4px;
    background-color: #f0f8ff; /* Very light blue background for inputs */
    color: #333;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
}

#main-content {
    background: #fff;
    padding: 30px; /* Increased padding */
    min-height: 400px;
    border-radius: 8px; /* More rounded corners */
    box-shadow: 0 4px 8px rgba(0,0,0,0.05); /* Softer shadow */
}

#banners-right {
    background: #fff;
    float: right;
    margin-left: 10px; 
    padding: 10px; /* Increased padding */
    border-radius: 8px; /* More rounded corners */
    box-shadow: 0 4px 8px rgba(0,0,0,0.05); /* Softer shadow */
}
/* Calendar classes*/
.calenderheader {
    width: 1240px;
    margin: 0 auto;
}
.controls {
    display: flex;
    justify-content: center;
    gap: 250px;
    margin-bottom: 20px;
}
.calendertitle {
    text-align: center;
    margin: 20px 0;
}
.calendernavigation {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

#calender-table {
    width: 100%;
    max-width: 1600px;
    margin: 20px auto;
    background: #0280b3;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

#calender-table thead {
    background: #87CEFF;
}

#calender-table th {
    padding: 16px;
    text-align: center;
    color: #2a6fdb;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    border: 1px solid #0280b3;
}
#calender-table td {
    padding: 0px;
    text-align: center;
    border: 1px solid #0280b3;
}
#calender-table tr:hover {
    background: #f5f5f5;
}

.log-container {
    display: flex;
    gap: 20px;
}

.button-section {
    width: 240px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
#button-section .button_2,
#button-section .button_1
{
    width: 150px;
    margin-left: 0px;
}
.content-section {
    flex: 1;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    min-width: 700px;
}

/* Footer */
footer {
    background: #1e57a8; /* Darker blue for footer */
    color: #e0e0e0; /* Light grey text for footer */
    text-align: center;
    padding: 30px 0;
    margin-top: 30px;
}

footer p {
    margin: 8px 0;
}

footer a {
    color: #ffffff; /* White for links in footer */
    text-decoration: none;
}

footer a:hover {
    color: #cce0ff; /* Lighter blue on hover in footer */
}

/* Utility Classes */
.button_1 { /* This will be the primary button style, ensure login uses it or its specific variant */
    height: 40px; /* Standardized height */
    background: #007bff;
    border: 0;
    padding: 0 20px;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 15px;
}

.button_1:hover {
    background: #0056b3;
}

/* Style for submit buttons in forms with class "button_form" */
.button_form input[type="submit"],
.button_form button[type="submit"] {
    height: 40px;
    background: #007bff;
    border: 0;
    padding: 0 20px;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 15px;
    font-family: 'Arial', sans-serif;
}

.button_form input[type="submit"]:hover,
.button_form button[type="submit"]:hover {
    background: #0056b3;
}

.button_2 {
    height: 36px;
    background: #2a6fdb; /* Transparent background for register button */
    border: 1px solid #2a6fdb; /* White border for register button */
    padding: 0 15px;
    color: #ffffff; /* White text for register button */
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 14px;
    margin-left: 5px;
}

.button_2:hover {
    background: #ffffff; /* White background on hover */
    color: #2a6fdb; /* Blue text on hover */
}

.button_rules, .button_results {
    height: 30px;
    background: #2a6fdb; /* Transparent background for register button */
    border: 1px solid #2a6fdb; /* White border for register button */
    padding: 0 10px;
    color: #ffffff; /* White text for register button */
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 3px;
}
.button_rules:hover, .button_results:hover {
    background: #ffffff; /* White background on hover */
    color: #2a6fdb; /* Blue text on hover */
}
span.hamspirit {
    color: red;
    font-style: italic;
}
/* Media Queries */
@media(max-width: 1930px){

    #main-content 
    {
        min-height: 600px;
        width: 100%;
    }
    .content-section {
        min-width: 920px;
    }

}
@media(max-width: 1400px){
	header #login-area input[type="text"]
    {
		width:130px;
	}
    header #login-area input[type="password"]
    {
		width:130px;
	}
    header nav {
        min-width: 530px;
    }
    .content-section {
        min-width: 700px;
    }
} 
