/* SherlockBench Enhanced Theme
 * =======================
 * Based on Sakura.css v1.5.0
 */
/* Body */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

html {
  font-size: 62.5%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

body {
  font-size: 1.8rem;
  line-height: 1.618;
  color: #2d3748;
  background-color: #f8fafc;
}

html, body {
  height: 100%; /* Make sure html and body take the full height of the viewport */
  margin: 0; /* Remove default margin */
  display: flex;
  flex-direction: column; /* Arrange children (header, main, footer) in a column */
}

main {
  flex: 1; /* Make the main content area grow to fill available space */
  padding: 2rem 0;
}

header {
  background-color: #0f172a;
  background-image: linear-gradient(to right, #0f172a, #1e3a8a);
  color: white;
  text-align: center;
  padding: 1rem 0 0.5rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

header h1 {
  margin: 1rem 0;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

footer {
  background-color: #334155;
  color: #e2e8f0;
  text-align: center;
  padding: 1.5rem 0;
  font-size: 14px;
  box-shadow: 0 -2px 4px -1px rgba(0, 0, 0, 0.06);
}

footer a {
  color: #93c5fd !important;
}

footer a:hover {
  color: #ffffff !important;
  border-bottom: 1px solid #93c5fd !important;
}

@media (max-width: 684px) {
  body {
    font-size: 1.53rem;
  }
}
@media (max-width: 382px) {
  body {
    font-size: 1.35rem;
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  overflow-wrap: break-word;
  word-wrap: break-word;
  -ms-word-break: break-all;
  word-break: break-word;
  color: #1a202c;
}

h1 {
  font-size: 2.5em;
  font-weight: 800;
  color: #1e3a8a;
}

h2 {
  font-size: 2em;
  position: relative;
  padding-bottom: 0.5rem;
}

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 4px;
  background-color: #3b82f6;
  border-radius: 2px;
}

h3 {
  font-size: 1.5em;
  color: #2563eb;
}

h4 {
  font-size: 1.25em;
  color: #1d4ed8;
}

h5 {
  font-size: 1em;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

p {
  margin-top: 0px;
  margin-bottom: 2rem;
  line-height: 1.7;
  color: #4a5568;
}

small, sub, sup {
  font-size: 75%;
}

hr {
  border: 0;
  height: 1px;
  background-image: linear-gradient(to right, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.7), rgba(59, 130, 246, 0.2));
  margin: 2rem 0;
}

a {
  color: #2563eb;
  text-decoration: none;
  border-bottom: 1px dashed rgba(37, 99, 235, 0.3);
  transition: all 0.2s ease;
}

a:visited {
  color: #4f46e5;
}

a:hover {
  color: #1d4ed8;
  border-bottom: 1px solid #2563eb;
}

/* General list styles - but not for navigation */
main ul {
  padding-left: 1.4em;
  margin-top: 0px;
  margin-bottom: 2.5rem;
  list-style-type: none;
}

main ul li {
  position: relative;
  margin-bottom: 0.8em;
  padding-left: 1.5em;
  color: #4a5568;
}

main ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #3b82f6;
  font-weight: bold;
  font-size: 1.2em;
}

ol li {
  margin-bottom: 0.8em;
  color: #4a5568;
}

blockquote {
  margin-left: 0px;
  margin-right: 0px;
  padding: 1.5em 2em;
  border-left: 5px solid #3b82f6;
  margin-bottom: 2.5rem;
  background-color: rgba(59, 130, 246, 0.05);
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

blockquote p {
  margin-bottom: 0;
  font-style: italic;
  color: #4b5563;
}

blockquote cite {
  display: block;
  margin-top: 1em;
  font-size: 0.9em;
  color: #6b7280;
  font-style: normal;
}

img, video {
  height: auto;
  max-width: 100%;
  margin-top: 0px;
  margin-bottom: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Pre and Code */
pre {
  background-color: #1e293b;
  color: #f8fafc;
  display: block;
  padding: 1.5em;
  overflow-x: auto;
  margin-top: 0px;
  margin-bottom: 2.5rem;
  font-size: 0.9em;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

code, kbd, samp {
  font-family: 'Fira Code', 'JetBrains Mono', 'SF Mono', 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', monospace;
  font-size: 0.9em;
  padding: 0.2em 0.4em;
  background-color: #f1f5f9;
  color: #2563eb;
  border-radius: 4px;
  white-space: pre-wrap;
}

pre > code {
  padding: 0;
  background-color: transparent;
  white-space: pre;
  font-size: 1em;
  color: inherit;
}

/* Tables */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 2rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

thead {
  background-color: #1e40af;
  color: white;
}

th {
  text-align: left;
  font-weight: 600;
  padding: 1em;
  border-bottom: 2px solid #3b82f6;
}

td {
  padding: 1em;
  border-bottom: 1px solid #e2e8f0;
}

tbody tr {
  background-color: white;
}

tbody tr:nth-child(even) {
  background-color: #f8fafc;
}

tbody tr:hover {
  background-color: rgba(59, 130, 246, 0.05);
}

thead th {
  font-weight: bold;
}

/* Buttons, forms and input */
input, textarea {
  border: 1px solid #cbd5e1;
  transition: all 0.2s ease;
}

input:focus, textarea:focus {
  border: 1px solid #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
}

.button, button, input[type=submit], input[type=reset], input[type=button], input[type=file]::file-selector-button {
  display: inline-block;
  padding: 0.6em 1.2em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  background-color: #2563eb;
  color: white;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  box-sizing: border-box;
  font-weight: 500;
  font-size: 1em;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.button[disabled], button[disabled], input[type=submit][disabled], input[type=reset][disabled], input[type=button][disabled], input[type=file]::file-selector-button[disabled] {
  cursor: not-allowed;
  opacity: 0.5;
  background-color: #94a3b8;
}

.button:hover, button:hover, input[type=submit]:hover, input[type=reset]:hover, input[type=button]:hover, input[type=file]::file-selector-button:hover {
  background-color: #1d4ed8;
  color: white;
  outline: 0;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.12);
}

.button:active, button:active, input[type=submit]:active, input[type=reset]:active, input[type=button]:active, input[type=file]::file-selector-button:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.button:focus-visible, button:focus-visible, input[type=submit]:focus-visible, input[type=reset]:focus-visible, input[type=button]:focus-visible, input[type=file]::file-selector-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4);
}

/* Secondary button variant */
.button.secondary, button.secondary {
  background-color: #f8fafc;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.button.secondary:hover, button.secondary:hover {
  background-color: #f1f5f9;
  color: #1e293b;
  border-color: #94a3b8;
}

textarea, select, input {
  color: #334155;
  padding: 0.8em 1em;
  margin-bottom: 1.2em;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  font-size: 1em;
  transition: all 0.2s ease;
}

textarea:focus, select:focus, input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  outline: 0;
}

input[type=checkbox], input[type=radio] {
  margin-right: 0.5em;
  width: 1.2em;
  height: 1.2em;
}

input[type=checkbox]:focus, input[type=radio]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.7em center;
  background-size: 1em;
  padding-right: 2.5em;
}

label, legend, fieldset {
  display: block;
  margin-bottom: 0.7rem;
  font-weight: 600;
  color: #334155;
  font-size: 0.95em;
}

fieldset {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 1em 1.5em;
  margin-bottom: 1.5em;
}

legend {
  padding: 0 0.5em;
}

/* Navbar styles */
#navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0.5rem 0;
}

#navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0; /* Explicitly remove padding */
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

#navbar li {
    display: inline-block;
    margin: 0 0.2rem;
    position: relative;
    padding-left: 0; /* Remove padding for navbar list items */
    padding-right: 0.5rem;
}

#navbar li::before {
    content: none; /* Remove bullets for navbar list items */
}

#navbar a {
    display: inline-block;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
    border-bottom: none;
}

#navbar a:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    border-bottom: none;
}

#navbar a:active {
    transform: translateY(0);
}

#selected-page a {
    background-color: rgba(255, 255, 255, 0.18);
    color: white;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Responsive styles specific to navbar */
@media (max-width: 700px) {
    #navbar ul {
        flex-direction: column;
        width: 100%;
    }
    
    #navbar li {
        margin: 0.2rem 0;
        width: 100%;
    }
    
    #navbar a {
        display: block;
        text-align: center;
        padding: 1rem;
    }
}
