/* vars */
:root {
    --content-width: 65rem;
}

/* fix scrolling when clicking nav links */
h1,
h2,
h3,
h4 {
    scroll-margin-top: 105px;
}

body {
    display: flex;
}

.header-inner {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 63rem;
    margin-left: auto;
    margin-right: auto;
}

.bumper {
    flex: 1 1 0;
}

.awa-footer {
    margin-top: 100px;
    font-size: 12px;
    font-family: var(--font-body);
    color: var(--gray);
    bottom: 15px;
    padding-bottom: 10px;
    text-align: center;
}

/* language selection */
.languageselector {
    position: relative;
    padding: 1em;
    float: right;
    min-width: 100px;
    font-family: var(--font-body);
    margin-right: -1em;
    letter-spacing: -0.7px;
}

.languageselector li {
    display: inline;
    white-space: nowrap;
    color: var(--light);
}
.languageselector li + li::before {
    content: "|";
}

main {
    flex-basis: var(--content-width);
}

@media (max-width: 450px) {
    .languageselector {
        margin-right: -3em;
    }
}

.languageselector a {
    color: var(--light);
    font-weight: normal;
}

.languageselector a:hover {
    color: var(--highlight) !important;
    font-weight: normal;
}

span.currentLanguage {
    font-weight: bold;
}

/* fix header colors */
.darkmode svg {
    fill: var(--light) !important;
}
.darkmode svg:hover {
    fill: var(--highlight) !important;
}

.burgermenu svg {
    fill: var(--light);
}
.burgermenu svg:hover {
    fill: var(--highlight);
}

/* don't use columns on mobile devices */
@media all and (max-width: 600px) {
    .markdown .book-columns div {
        min-width: 100%;
    }
}

/* better readability for expand sections */
.markdown .book-expand .book-expand-head {
    color: var(--highlight);
}
.markdown .book-expand .book-expand-head:hover {
    color: var(--tertiary);
}

/* replace some colors... i'm lazy and don't want to figure out where they are defined so i'm just overwriting them here...  */
.markdown {
    a {
        color: var(--highlight);
    }
}

.book-menu a.active {
    color: var(--highlight);
}

#page-title a {
    color: var(--light);
}

#page-title a:hover {
    color: var(--highlight) !important;
}

.markdown-inner {
    color: var(--gray);
}

h1 {
    color: var(--highlight) !important;
}

.book-menu-content .book-menu-title {
    color: var(--dark);
}

/* decrease title font size */

.title {
    font-size: 2rem !important; 
}

/* banner styling */
.banner {
    color: var(--light);
    border-radius: 10px;
    background: var(--highlight);
    font-weight: bold;
    position: relative;
    align-items: center;
    padding: 10px;

    p, li, ol, ul, a {
        color: var(--light);
        font-weight: bold;
    }
}

.banner .markdown-inner {
    color: var(--light);
}

.banner-right {
    position: relative;
    border-radius: 40px;
    padding: 20px 10px;
    color: var(--light);
    font-weight: bold;
}

/* Outline */
.banner-right::before {
  content: "";
  position: absolute;
  inset: 0px;
  border-radius: inherit;
  border: 4px solid var(--light);
  pointer-events: none;

  /* Mask removes the center of the right edge */
  mask:
    linear-gradient(#000 0 0) left,
    linear-gradient(#000 0 0) top,
    linear-gradient(#000 0 0) bottom,
    linear-gradient(#000 0 0) right;
  mask-size:
    calc(100% - 40px) 100%,
    100% 40px,
    100% 40px,
    40px 35%;
  mask-position:
    left,
    top,
    bottom;
  mask-repeat: no-repeat;
}

.banner-contact-line {
  display: inline-flex;
  align-items: center;
  row-gap: 0em;
}

.c3-39-logo {
    width: 100%;
    height: 7em;
    background-color: var(--light);
    mask: url("/banner/Logo.svg") no-repeat center / contain;
}

.icon {
  vertical-align: middle;
  width: 3em;
  height: 1.5em;
  flex-shrink: 0;
  margin: 0;
  background-color: var(--light);
}

/* override min-width 100% from mobile columns code */
.markdown .book-columns .icon {
    min-width: 0;
}

.dect {
    mask: url("/banner/DECT.svg") no-repeat center / contain;
}

.phone {
    mask: url("/banner/Phone.svg") no-repeat center / contain;
}

.mastodon {
    mask: url("/banner/mastodon.svg") no-repeat center / contain;
}

.matrix {
    mask: url("/banner/matrix.svg") no-repeat center / contain;
}

.mail {
    mask: url("/banner/Mail.svg") no-repeat center / contain;
}


.button {
    padding: .5rem 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    border: 2px solid var(--secondary);
    border-radius: .25rem;
    justify-content: space-between;
}



/* epoxy letter formating */
.epoxyletterwrapper {
    width: 100%; 
    display: flex;
    font-family: var(--font-body);
    color: var(--gray);
}
.epoxyletterimage_left {
    width: 50%;
    float: left;
    padding-right: 20px;
    display: flex;
    margin: auto;
}
.epoxyletterimage_right {
    width: 50%;
    height: 100%;
    float: right;
    padding-left: 20px;
    display: flex;
    margin: auto;
}
.epoxylettertext_left {
    width: 50%; 
    height: 100%;
    float: left;
    display: block;
    margin-top: auto;
    padding-bottom: 15px;
}
.epoxylettertext_right {
    width: 50%; 
    float: right;
    display: block;
    margin-top: auto;
    padding-bottom: 15px;
}
.epoxycredits {
    width: 100%; 
    text-align: center;
}