* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    line-height: 1.6;
    font-size: 16px;
    background-color: #f4f4f4;
    color: #333;
    font-family: 'Oxygen', sans-serif;
    -webkit-font-smoothing: antialiased; /* Chrome, Safari */
   -moz-osx-font-smoothing: grayscale; /* Firefox */
   text-rendering: geometricPrecision; /* Optimizes for sharpness */
}

/** HEADER **/
#header-nav {
    background-color: #f6b319;
    border: none;
}


.section {
    margin: 30px 0; /* Vertical spacing between sections */
    padding: 15px; /* Internal spacing within each section */
    border-radius: 5px; /* Rounded corners (optional) */
}

.form-check-input {
    width: 25px;  /* Width of the checkbox */
    height: 25px; /* Height of the checkbox */
}

.align-right {
    text-align: right;
    margin: 2px 10px 0 0;
}

#topImg, #myWinner {
    width: 100%;
}

#topImg {
    height: 400px;
    margin: 0;
    padding: 0;
}

li a {
    color: white;
}

.custom-button {
    color: #fff;
    background-color: #5cb85c;
    border-color: #4cae4c;
    margin: 0 4px 4px 0;
}

table.dataTable {
    border-collapse: collapse;
    width: 100%;
}

table.dataTable th, table.dataTable td {
    border: 1px solid #ddd;
    padding: 8px;
    color: black;
}

#addForm select,
#addForm2 select,
#addForm3 select,
#addForm4 select,
#addForm5 select {
    color: gray;
}



#refreshButton {
    background-color: #648e9b;
    border: 1px solid black;
}

/* Additional Custom Styles */
.navbar {
    margin-bottom: 30px;
}

#bannerImage {
    height: 300px;
    width: 100%;
    object-fit: cover;
}

footer {
    background-color: #343a40;
}


a, a:visited {
    text-decoration: none;
    color: #8f7947;
}






















/*

.modal {
    display: none; !* Hidden by default *!
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 400px;
    color: black;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5); !* Add slight overlay effect *!
    z-index: 1000; !* Ensure it’s above other content *!
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); !* Subtle shadow for depth *!
    border-radius: 8px;
}
*/

/* Modal content box */
/*
.modal-content {
    background-color: lightblue;
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    height: 100%;
    box-sizing: border-box; !* Ensures padding doesn’t add extra width *!
    position: relative;
}
*/

/* Close button */
.close {
    position: absolute;
    top: 1px;
    right: 20px;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    font-weight: bold;
    line-height: 1;
    transition: color 0.2s;
}

.close:hover {
    color: #555;
}



















.intro {
    background-color: #ffffff;
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    max-width: 1200px;
}

.intro h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.intro p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.features {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.feature-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 2rem;
    width: 99%;
    text-align: left;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.feature-item h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.feature-item p {
    font-size: 1rem;
    color: #777;
    line-height: 1.6;
}


/* Responsive Adjustments for Smaller Screens */
@media (max-width: 768px) {
    .intro h1 {
        font-size: 1.8rem;
    }
    .intro p {
        font-size: 0.9rem;
    }

    .features {
        flex-direction: column;
        gap: 0.5rem;
    }

    .feature-item {
        max-width: 100%; /* Allow items to span full width */
    }
}

@media (max-width: 480px) {
    .intro h1 {
        font-size: 1.5rem;
    }
    .intro p, .feature-item p {
        font-size: 0.8rem;
    }

    .feature-item h3 {
        font-size: 1.3rem;
    }
}















.login-container {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 300px;
}

h2 {
    text-align: center;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}



.error {
    color: red;
    text-align: center;
}















/* Form Container */
.form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; /* Align items vertically */
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 500px;  /* Control width */
    margin: 40px auto;
}

.form-container-wide{
    max-width: 1000px;
}

/* Row for the two forms (Create User and Update User) */
.form-row {
    display: flex;
    justify-content: space-between;
    width: 100%;  /* Ensure the row spans the full width of the container */
    gap: 30px;  /* Space between forms */
}


/* Form Box */
.form-box {
    width: 100%;
}

/* Form Box */
.form-box-admin {
    width: 48%;  /* Ensure each form box takes up roughly half the space */
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


/* Label Styling */
label {

    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 14px; /* Adjust font size */
}

/* Input Fields Styling */
input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 8px 12px; /* Increase padding to make it more comfortable */
    margin-bottom: 15px;  /* Add margin for spacing between fields */
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;  /* Make text inside inputs more readable */
    background-color: #f9f9f9;
    box-sizing: border-box;  /* Ensure padding doesn’t overflow */
}

/* Button Styling */
.loginbtn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px;
    width: 100%;  /* Full width for button */
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    margin-top: 10px;  /* Add some space between input fields and button */
}

/* Hover State for Button */
.loginbtn :hover {
    background-color: #45a049;
}

/* Disabled State for Button */
.loginbtn :disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.loginbtn :enabled {
    background-color: #4CAF50;
    cursor: not-allowed;
}

/* Message Styling */
/* Styling for message boxes */
.message, .messageCreate, .messageUpdate, .messageDelete, .messageRead, .messageVerify, .messageLogin {
    padding: 10px;
    margin-bottom: 20px;
    text-align: center;
}

/* Success messages - green text */
.success, .successCreate, .successUpdate, .successDelete, .successRead, .successVerify, .successLogin{
    color: green;
}

/* Error messages - red text */
.error, .errorCreate, .errorUpdate, .errorDelete, .errorRead, .errorVerify, .errorLogin {
    color: red;
}

.success {
    color: green;
}


/* Styling for the main navigation links */
.nav-link {
    color: #FFDAB9;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}

.nav-link:hover {
    color: #0056b3;
}

/* Container for the dropdown links */
.custom-dropdown-links {
    display: none; /* Hide by default */
    position: absolute;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    top: 100%;
    left: 0;
    width: 185px;
    padding: 10px 0;
    margin-top: 5px;
    z-index: 1000;
}

/* Media query for mobile view */
@media (max-width: 768px) {
    .custom-dropdown-links {
        position: relative; /* Prevent dropdown from floating */
        width: 50%; /* Full width */
        box-shadow: none; /* Remove shadow on mobile */
    }
}

/* Style for each dropdown link */
.custom-dropdown-links a {
    display: block;
    color: #8f7947;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 4px;
}

/* style active is used for mobile*/
.custom-dropdown-links a:hover, 
.custom-dropdown-links a:active{
    background-color: #FFDAB9;
}


/* Container for the dropdown links */
.dropdown-links {
    display: none; /* Hide by default */
    position: absolute;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    top: 100%;
    left: 0;
    width: 150px;
    padding: 10px 0;
    margin-top: 5px;
    z-index: 1000;
}

/* Media query for mobile view */
@media (max-width: 768px) {
    .dropdown-links {
        position: relative; /* Prevent dropdown from floating */
        width: 50%; /* Full width */
        box-shadow: none; /* Remove shadow on mobile */
    }
}

/* Style for each dropdown link */
.dropdown-links a {
    display: block;
    color: #8f7947;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 4px;
}

.dropdown-links a:hover {
    background-color: #FFDAB9;
}




/* Positioning the dropdown relative to the parent */
.nav-item {
    position: relative;
    display: inline-block;
}




/* Custom media queries to adjust layout for smaller screens */
@media (max-width: 768px) {
    /* Make columns full-width on small screens */
    .col-md-2 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Center the text in buttons and ensure better spacing */
    button {
        margin-bottom: 10px;
    }

    /* Adjust container padding for smaller screens */
    .container-fluid {
        padding: 0 10px;
    }
}



/*!* Ensure the search and length menu appear in the same row *!*/
/*.dataTables_wrapper .dataTables_length,*/
/*.dataTables_wrapper .dataTables_filter {*/
/*    display: inline-block;*/
/*    vertical-align: middle;*/
/*}*/

/*.dataTables_wrapper .dataTables_length {*/
/*    margin-right: 20px;*/
/*}*/

/*!* Ensure the export buttons are in the same row *!*/
/*.dataTables_wrapper .dt-buttons {*/
/*    display: inline-block;*/
/*    float: right;*/
/*    margin-top: 10px;*/
/*}*/

/*!* Customize row structure *!*/
/*.top.row {*/
/*    margin-bottom: 15px;*/
/*}*/

/*.bottom.row {*/
/*    margin-top: 10px;*/
/*}*/

/*!* Adjust the width for search and length dropdown *!*/
/*.dataTables_wrapper .dataTables_length {*/
/*    width: 100%;*/
/*}*/

/*.dataTables_wrapper .dataTables_filter {*/
/*    width: 100%;*/
/*}*/


/*.custom-select {*/
/*    width: auto;*/
/*    min-width: 150px;*/
/*    max-width: 100%;*/
/*    height: 38px;*/
/*    padding: 0.375rem 1.5rem 0.375rem 0.75rem;*/
/*    font-family: "Oxygen", sans-serif;*/
/*    font-size: 0.875rem;*/
/*    border: 1px solid #ced4da;*/
/*    border-radius: 0.25rem;*/
/*    appearance: none;*/
/*}*/




 .custom-slider-container {
     display: flex;
     align-items: center;
     gap: 10px;
 }

.custom-slider {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}



.dataTable {
    margin-bottom: 20px; /* Add space below each table */
}


/*.overlay {*/
/*    position: absolute;*/
/*    top: 0;*/
/*    left: 0;*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    background: rgba(255, 255, 255, 0.7);*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    align-items: center;*/
/*    z-index: 9999; !* Make sure the overlay stays on top *!*/
/*}*/

/*.spinner-border {*/
/*    width: 3rem;*/
/*    height: 3rem;*/
/*}*/



.defaultIcons {
    margin-bottom:5px;
}





/* Default Pagination Buttons */
.pagination .page-item .page-link {
    color: #007bff; /* Default color */
    background-color: #fff;
    border: 1px solid #ddd;
}

/* Hover State */
.pagination .page-item .page-link:hover {
    color: #0056b3;
    background-color: #f8f9fa;
}

/* Disabled State */
.pagination .page-item.disabled .page-link {
    color: #6c757d; /* Grey color for disabled */
    background-color: #e9ecef;
    border-color: #ddd;
    cursor: not-allowed; /* Visual cue for disabled */
}

/* Active State */
.pagination .page-item.active .page-link {
    color: #fff; /* White text for active */
    background-color: #007bff; /* Blue background for active */
    border-color: #007bff;
}



/* Style the dropdown */
#countrySelector {
	padding: 10px;
	border-radius: 5px;
	background-color: #f8f9fa; /* Light gray background */
	border: 1px solid #ced4da; /* Light border */
	font-size: 16px;
	color: #495057;
	cursor: pointer;
	outline: none;
	transition: all 0.3s ease-in-out;
}

/* Add hover effect */
#countrySelector:hover {
	background-color: #e9ecef; /* Slightly darker background */
	border-color: #adb5bd; /* Darker border on hover */
}

/* Focused state */
#countrySelector:focus {
	box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); /* Blue glow */
	border-color: #80bdff;
}

/* Style the options */
#countrySelector option {
	padding: 10px;
	background-color: #ffffff;
	color: #495057;
}



 /* Ticker container */
 .news-ticker {
     background-color: #f8f9fa; /* Light background */
     color: #825e5e; /* Text color */
     font-family: Arial, sans-serif;
     font-size: 15px;
     padding: 12px 20px;
     position: fixed;
     top: 0;
     width: 100%;
     overflow: hidden;
     z-index: 1000;
     box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
 }

 /* Scrolling text */
 .ticker-content {
     display: inline-block;
     white-space: nowrap;
     animation: scroll 30s linear infinite;
 }

 @keyframes scroll {
     0% {
         transform: translateX(100%);
     }
     100% {
         transform: translateX(-100%);
     }
 }

 /* Make sure it doesn't overlap other content */
 .newsbody {
     margin-top: 5px; /* Adjust height based on the ticker height */
 }

.navBody{
	 margin-top: 5px;
}



.dataTables_wrapper .dataTables_length select{
    padding-right: 30px;
}












































/* Default font size for the table on larger screens */
.table, .dataTables_wrapper {
    font-size: 16px; /* Default font size */
}

/* Mobile view: Decrease font size for better fit */
@media (max-width: 768px) {
    .table, .dataTables_wrapper {
        font-size: 12px; /* Smaller font size for mobile */
    }
    
    .dataTables_length,
    .dataTables_filter,
    .dataTables_info,
    .dataTables_paginate {
        font-size: 12px; /* Smaller font for table controls */
    }

    /* Adjust table padding for better fitting on smaller screens */
    .table th, .table td {
        padding: 4px 8px;  /* Decrease padding for compactness */
    }

    /* You can also reduce the padding for the DataTable controls */
    .dataTables_length select,
    .dataTables_filter input {
        padding: 4px 8px;  /* Make the input/select elements smaller */
    }
}

.info-icon {
    color: #007bff;
    font-size: 14px;
    cursor: pointer;
}

.info-icon:hover {
    color: #0056b3;
}


.custom-image {
      max-width: 100%; /* Responsive image */
      height: auto; /* Maintain aspect ratio */
      border-radius: 10px; /* Optional rounded corners */
      margin-bottom: 15px; /* Space below image */
  }


.custom-image-default {
    width: 100%; /* Makes the image responsive */
    height: auto;
}
