@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');


/* ----- Text alignment ----- */
p {
  text-align: justify; /* Justify all text */
}

/* ----- Default lower-alpha numbering (a., b., ...) ----- */
ol {
  list-style-type: lower-alpha;
}



.admonition-title::before {
  content: none;
}

/* ----- Example numbering ----- */

body {
  counter-reset: example-counter; /* Reset example counter at the start of the document */
}


/* ----- Example ----- */

div.examp {
  border-color: #e77526; /* custom orange color */
  counter-increment: example-counter; /* increment the counter */
  text-align: left;
  /* border-width: 2px;
  border-style: solid; */
}

div.examp ol {
  list-style-type: lower-alpha;
  text-align: left;
}

div.examp > .admonition-title {
  background-color: #f7f7f7; /* light gray background */
  color: black;
  padding-left: 125px; /* add space for icon */
  border-bottom: 1px solid #ddd; /* separator */
}


div.examp > .admonition-title:before {
  top: 5px;
  color: #e77526; /* use the same custom orange color */
  content: "\f304 "; /* icon "fa-solid fa-pen" */
  font-family: 'Font Awesome 5 Free';
  padding-left: 10px;
}

div.examp >.admonition-title:after {
  display: inline; 
  white-space: nowrap;
  color: #e77526; /* use the same custom orange color */
  content: "Example " counter(example-counter) ":"; /* display the text "Example" and the counter */
  font-family: 'Lato', sans-serif;
  padding-left: 30px;
}


div.examp.dropdown {
  /* additional styles for dropdown admonitions */
  border-radius: 10px; /* rounded corners */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); /* subtle shadow */
  /* padding-left: 40px; add space for icon */
}

div.examp.dropdown ol {
  list-style-type: lower-alpha;
}

div.examp.dropdown >.admonition-title {
  /* override title styles for dropdown */
  background-color: #f7f7f7; /* light gray background */
  padding: 10px; /* add some padding */
  padding-left: 135px; /* add space for icon */
}

div.examp.dropdown > .admonition-title:before {
  top: 8px;
}





.admonition-title::before {
  content: none;
}

/* ----- Solution ----- */
div.sol {
  border-color: #666; /* gray value of #e77526 orange */
  text-align: left;
  /* border-width: 2px;
  border-style: solid; */
}

div.sol ol {
  list-style-type: lower-alpha;
}

div.sol >.admonition-title {
  background-color: transparent; /* light gray background */
  color: black;
  text-align: left;
  /* padding-left: 30px; add space for icon */
}

div.sol >.admonition-title:after {
  color: #666; /* gray value of #e77526 orange */
  content: "\f46c"; /* icon */
  border-bottom: 1px solid #ddd; /* separator */
  vertical-align: middle;
}

div.sol.dropdown {
  /* additional styles for dropdown admonitions */
  border-radius: 10px; /* rounded corners */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); /* subtle shadow */
  /* padding-left: 40px; add space for icon */
}

div.sol.dropdown ol {
  list-style-type: lower-alpha;
}

div.sol.dropdown >.admonition-title {
  /* override title styles for dropdown */
  background-color: transparent; /* light gray background */
  padding: 10px; /* add some padding */
  border-bottom: 1px solid #ddd; /* separator */
  padding-left: 32px; /* add space for icon */
}

/* Remove the 'before' element in exercises (should be a pencil replacing the bell, but only gives a square and does not move the bell, see https://stackoverflow.com/questions/77227334/exercises-not-rendering-properly-in-sphinx-with-jupyter-book. */
div.exercise p.admonition-title::before {
  /*content: "\f303";*/
  content: none;
}

div.exercise.dropdown ol {
  list-style-type: lower-alpha;
}


/* Define custom colors */
.blue {
  color: #2a2c78; /* Royal Blue */
  font-weight: bold;
}

.green {
  color: #009949; /* Green */
  font-weight: bold;
}

.greyblue {
  color: #005d80; /* Cadet Blue */
  font-weight: bold;
}


.lightblue {
  color: #0067a5; /* Cadet Blue */
  font-weight: bold;
}

/* Custom admonition styling for Jupyter Book without the blue header */
.admonition.custom-box {
  border: 1px solid black;  /* Creates a rectangular border */
  padding: 10px;            /* Adds spacing inside the box */
  margin: 10px 0;           /* Adds spacing around the box */
  background-color: white;  /* Ensures a plain white background */
  font-family: "Times New Roman", serif; /* Matches the font style */
  font-size: 16px;          /* Adjusts text size */
  line-height: 1.5;         /* Improves readability */
  text-align: left;         /* Aligns text to the left */
  display: block;           /* Ensures block-level rendering */
  border-radius: 3px;       /* Slightly rounded corners */
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1); /* Adds a subtle shadow */
}

/* Remove the default admonition title styling */
.admonition.custom-box > .admonition-title {
  display: none; /* Hides the blue title bar */
}

/* Styling for inline elements like dropdowns */
.admonition.custom-box select {
  background-color: #e6e6e6; /* Light gray dropdown background */
  border: 1px solid black;
  padding: 2px 4px;
  font-size: 14px;
}

/* Styling for bold and special elements inside the box */
.admonition.custom-box strong {
  font-weight: bold;
}

.admonition.custom-box a {
  color: #0000ff; /* Blue color for links */
  text-decoration: none;
  font-weight: bold;
}


.compact-table {
  width: auto;
  border-collapse: collapse;
  margin-left: 0;
}
.compact-table td {
  border: none;
  padding: 2px;
  white-space: nowrap;
}

.compact-table-center {
  width: auto;
  border-collapse: collapse;
}
.compact-table-center td {
  border: none;
  padding: 2px;
  white-space: nowrap;
}

.math {
  font-family: "Times New Roman", Times, serif;
  font-style: italic;
  font-size: 1.1em;
  white-space: nowrap; /* Prevents breaking in multiline text */
}

.math sub, .math sup {
  font-size: 0.75em;
  vertical-align: baseline;
}

.math sup {
  position: relative;
  top: -0.4em;
}

.math sub {
  position: relative;
  bottom: -0.2em
}

.video-wrapper {
  /* Basic Responsive Setup (Example) */
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%; 
  
  /* --- Centering --- */
  display: block; /* Or flex, grid depending on context */
  margin-left: auto;
  margin-right: auto;

  /* --- Optional: Limit the max width --- */
   max-width: 560px; /* Set max video width */

  /* --- Background/borders if needed --- */
  background: #eee; /* Example background */
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Alternatively, if .video-wrapper is inside another container */
.container-holding-video {
  display: flex;
  justify-content: center;
} 
/* In this case .video-wrapper wouldn't need margin: auto */