/* app css stylesheet */

/* Footer */
.hextra-custom-footer {
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}
.hextra-custom-footer p {
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Hero banner on landing page */

/* Hide the layout-generated H1 when a hero banner is present */
body:has(.site-hero) h1:first-of-type {
  display: none;
}

.site-hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: -3rem; /* cancel main's pt-4 (1rem) + spacer div's mb-8 (2rem) */
  position: relative;
  height: 320px;
  background-image: url(/img/weierstrass-sm.png);
  background-size: auto 100%;
  background-position: left center;
  background-repeat: repeat-x;
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-end;
}
.site-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.6) 100%);
}
.site-hero-title {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  color: white;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.menu {
  list-style: none;
  border-bottom: 0.1em solid black;
  margin-bottom: 2em;
  padding: 0 0 0.5em;
}

.menu:before {
  content: "[";
}

.menu:after {
  content: "]";
}

.menu > li {
  display: inline;
}

.menu > li:before {
  content: "|";
  padding-right: 0.3em;
}

.menu > li:nth-child(1):before {
  content: "";
  padding: 0;
}

.jumbotron {
    background-image: url(../img/weierstrass-sm.png);
    background-position: 50% 50%;
    background-size: cover;
    background-repeat: no-repeat;
    color: white;
    border-radius: 0;
}

.jumbotron p { opacity: 0.6; }
.btn-homepage {
  white-space: normal;
  height: 160px;
}
.btn-homepage p {
  text-align: center;
  padding: 0 8px;
}

.navbar {
  margin-bottom: 0px;
  border-radius: 0;
}

.square {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}
.square:before {
  content: "";
  display: block;
  padding-top: 100%;
}
.square-inner {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

.ratio2_1 {
  position: relative;
  width: 100%;
  margin-bottom: 60px;
}
.ratio2_1:before {
  content: "";
  display: block;
  padding-top: 50%;
}
.ratio2_1-inner {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

/* Styling of argument plots */

figure.argplot {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 2em;
    overflow: visible;
}

figure.argplot canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}

.jxgbox {
    display: inline-block;
    margin: 0;
    padding: 0;
    text-align: center;
    width: 100%;
    height: 100%;
}
.argplot .jxgbox {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0.5;
    border-radius: 0;
}

.argplot .defn-arg {
    float: right;
    width: 300px;
    overflow: visible;
    margin-left: 50px;
}


.argplot .big-arg {
    display: inline-block;
}

.argplot figcaption {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    font-size: 100%;
    font-weight: normal;
    text-align: left;
}

.bring-to-front
{
  opacity: 1;
  z-index: 10;
}

.img50 {
  width: 50%;
}


/* Animate ngView */


.animate.ng-enter {
    -webkit-animation: fadeInLeft 1s;
    -moz-animation: fadeInLeft 1s;
    -ms-animation: fadeInLeft 1s;
  animation: fadeInLeft 3s;
}

.animate.ng-leave {
  animation: fadeOutRight 3s;
}

em em {
  font-style: normal;
}

/* Side notes for calling out things
-------------------------------------------------- */

/* Base styles (regardless of theme) */
.bs-callout {
  margin: 20px 0;
  padding: 15px 30px 15px 15px;
  border-left: 5px solid #eee;
}
.bs-callout h4 {
  margin-top: 0;
}
.bs-callout p:last-child {
  margin-bottom: 0;
}
.bs-callout code,
.bs-callout .highlight {
  background-color: #fff;
}

/* Themes for different contexts */
.bs-callout-danger {
  background-color: #fcf2f2;
  border-color: #dFb5b4;
}
.bs-callout-warning {
  background-color: #fefbed;
  border-color: #f1e7bc;
}
.bs-callout-info {
  background-color: #f0f7fd;
  border-color: #d0e3f0;
}
bs-callout-danger h4 {
color: #B94A48;
}

.bs-callout-warning h4 {
color: #C09853;
}

.bs-callout-info h4 {
color: #3A87AD;
}
.bs-callout-slate {
  background-color: #f1f5f9;
  border-color: #94a3b8;
}
.bs-callout-slate h4 {
  color: #475569;
}

/* Two-column layouts replacing Bootstrap grid */
.cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.cols-4-8 {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.cols-8-4 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 640px) {
  .cols-2, .cols-4-8, .cols-8-4 { grid-template-columns: 1fr; }
}

/* Bootstrap compat */
.center-block { margin-left: auto; margin-right: auto; }

/* Control panel buttons for argumentprincipen interactive */
#control-argplot input[type="button"] {
  display: block;
  width: 100%;
  padding: 0.4em 0.8em;
  margin-bottom: 0.4em;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.875em;
  text-align: left;
  border: 1px solid rgba(0,0,0,0.2);
}
.btn-warning { background: #f0ad4e; }
.btn-success { background: #5cb85c; color: white; }
.btn-danger  { background: #d9534f; color: white; }