/*!
 *  These CSS values designed by Mohammed Qadeer 
 *  Copyright 2024-2025 
 *  Do not change the CSS values as some of these values are designed to fail the WCAG 2.1 AA
 */

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

body {
  /* width: 70%; */
  font-family: normal 12px/1.5 arial, helvetica, sans-serif;  /* 'Open Sans Condensed', Arial, sans-serif; */
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

/* Utility classes */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header styles */
header {
  background-color: #004080;
  color: #fff;
  padding: 1rem 2rem;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.demo a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 0.5rem;
  border-radius: 4px;
}

.demo a:hover,
.demo a:focus {
  background-color: #0059b3;
  outline: 2px solid #fff;
  outline-offset: 2px;
}


header h1 {
  font-size: 1.5rem;
  font-weight: bold;
}

header .logo img {
  max-height: 50px;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

header nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 0.5rem;
  border-radius: 4px;
}

header nav a:hover {
  background-color: #ffc600;
  color:#000;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

header nav a:focus {
  background-color: #0059b3;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

header form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

header form input[type="search"] {
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ffc600;
  border-radius: 4px;
}

header form input:focus {
  border: 3px solid #FF0000;
}

header form button {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  background-color: #0059b3;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

header form button:focus {
  background-color: #fff;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

header form button:hover {
  background-color: #ffc600;
  color:#000;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Main content styles */
main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

main h1 {
  font-size: 2.2rem;
}

/* Article Section Starts here */
main article {
  background-color: #e6dede;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

main article h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

main article h3 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
}

main article p {
  margin-bottom: 1rem;
}

#top-list {
  padding-left: 15px;
}

#middle-list {
  padding-left: 15px;
}

#last-ordered-list {
  padding-left: 15px;
}
aside {
  background-color: #c6ddf8;
  padding: 1rem;
  border-radius: 8px;
}

aside h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

aside ul {
  list-style: none;
  padding: 0;
}

aside ul li {
  margin-bottom: 0.5rem;
}

aside ul li a {
  color: #004080;
  text-decoration: none;
}

aside ul li a:hover,
aside ul li a:focus {
  text-decoration: underline;
  outline: 2px solid #004080;
  outline-offset: 2px;
}

.pass-min-contrast {
  height: 100px;
  width: 100px;
  background-color: #0059b3;
  color: #fff;
  font-size: 20px;
  text-align: center;
  padding: 8px;
}

.decorative-image {
  height: 300px;
  width: 600px;
  background-color: #adafb3;
  color: #0a0a0a;
  font-size: 3em;
  font-weight: bold;
  text-align: center;
  padding: 8px;
}

.hide-abbr {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Button # 1 */
.mybutton {
  display: inline-block; /* Prevent stretching - display: inline-block;
  Prevents the <div> from stretching across the container and makes it behave like an inline element. */
  padding: 10px 20px; /* Button-like padding */
  background-color: #9024e9; /* Button background color */
  color: #fff; /* Button text color */
  font-size: 16px; /* Text size */
  text-align: center; /* Center text horizontally */
  border-radius: 5px; /* Rounded corners */
  cursor: pointer; /* Pointer cursor for clickable appearance */
  border: none; /* Remove any border */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Add subtle shadow */
}

.mybutton:focus {
  outline: 2px solid #000; /* Visible focus outline for keyboard navigation */
}

.mybutton:hover {
  background-color: #061ce4; /* Slightly darker green on hover */
}

.mybutton:active {
  background-color: #3e8e41; /* Even darker green when active */
}

/* Button # 2 */

.mybutton1 {
  display: inline-block; /* Prevent stretching */
  padding: 10px 30px; /* Button-like padding */
  background-color: #061ce4; /* Button background color */
  color: #fff; /* Button text color */
  font-size: 18px; /* Text size */
  text-align: center; /* Center text horizontally */
  border-radius: 5px; /* Rounded corners */
  cursor: pointer; /* Pointer cursor for clickable appearance */
  border: none; /* Remove any border */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Add subtle shadow */
}

.mybutton1:focus {
  outline: 2px solid #000; /* Visible focus outline for keyboard navigation */
}

.mybutton1:hover {
  background-color: #45a049; /* Slightly darker green on hover */
}

.mybutton1:active {
  background-color: #3e8e41; /* Even darker green when active */
}

/* Focus Indicator button design  */

.mqbutton {
  padding: 10px 20px;
  font-size: 16px;
  border: 2px solid #ccc;
  background-color: #f9f9f9;
  color: #333;
  cursor: pointer;
  border-radius: 4px;
}

/* Custom focus styles */
.mqbutton:focus {
  outline: 2px solid #005fcc; /* High-contrast outline */
  outline-offset: 4px;       /* Space between button and outline */
  border-color: #005fcc;    /* Optional: visually align focus with border */
}

.mqbutton:hover {
  background-color: #e0e0e0;
}

/* Table styles */
 /* Table container styles for responsiveness */
 .table-container {
  max-width: 800px;
  margin: 20px auto;
  overflow-x: auto;
}

/* Table styles */
table {
  width: 100%;
  border-collapse: collapse; /* Avoids double borders */
  font-family: Arial, sans-serif;
  font-size: 16px;
}

/* Header styles */
thead th {
  background-color: #8a95f5;
  text-align: left;
  padding: 8px;
  border: 1px solid #ddd;
}

/* Row and column styles */
tbody td {
  padding: 8px;
  border: 1px solid #ddd; /* Row and column borders */
}

/* Zebra striping for better readability */
tbody tr:nth-child(even) {
  background-color: #d3d7f2;
}

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

/* Responsive focus for keyboard navigation */
tbody tr:focus-within {
  outline: 2px solid #005fcc;
  outline-offset: -2px; /* Aligns with table border */
}


p {
  font-size: 14px;

}

/* Form details for a Checkbox */

form {
  max-width: 400px;
}

fieldset {
  border: 1px solid #000;
  padding: 20px;
  border-radius: 5px;
}

legend {
  font-weight: bold;
}

.checkbox-container {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  accent-color: #061ce4; /* Modern browsers support checkbox styling */
}

label {
  font-size: 16px;
  cursor: pointer;
}

input[type="checkbox"]:focus {
  outline: 2px solid #eb0b0b;
  outline-offset: 2px;
}

/* article section starts */
article section ol {
  padding: 1rem;
}

/* form-control for date picker check */

.form-control {
  display: block;
  padding: 6px 12px;
  font-size: 16px;
  color:#555;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Footer styles */
footer {
  background-color: #ffc600;
  color: #000;
  text-align: center;
  padding: 1rem;
}

footer p {
  font-size: 0.875rem;
}

/* Combobox design  */

.listbox-container {
  position: relative;
  width: 200px;
}
.listbox-button {
  width: 100%;
  padding: 8px;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
}
.listbox-options {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  border: 1px solid #ccc;
  background-color: #fff;
  z-index: 10;
  max-height: 150px;
  overflow-y: auto;
  display: none;
}
.listbox-options[aria-hidden="false"] {
  display: block;
}
.listbox-option {
  padding: 8px;
  cursor: pointer;
}
.listbox-option:hover,
.listbox-option[aria-selected="true"] {
  background-color: #f0f0f0;
}

/* Accordion Design CSS */


fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

input {
  border: 1px solid hsl(0deg 0% 42%);
  border-radius: 0.3em;
  display: block;
  font-size: inherit;
  padding: 0.3em 0.5em;
}


/* Responsive Design */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    align-items: flex-start;
  }

  main {
    grid-template-columns: 1fr;
  }

  header nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  header form {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
}
