/*
 * Basics
 */

:root {
    --color: black;
    --base-size: 16px;
    --base-height: 20px;
    --accent-color: #ffc800;
    --accent-color-active: #ffe88e;
    --accent-color-text: #bd9820;
    --accent-color-text-active: #ffd76a;
    --form-font-size: 20px;
}

body {
    margin: auto;

    color: var(--color);
    font-family: sans-serif;
    background-color: #fff;

    font-size: var(--base-size);
    line-height: var(--base-height);
}

a:link {
    text-decoration: none;
    color: var(--color);
}

a:hover {
    text-decoration: underline;
    color: var(--color);
}

a:visited {
    color: var(--color);
}

a:active {
    color: var(--color);
}

p {
    margin: 0;
    margin-top: 5px;
}



footer {
    padding-top: 10px;
    text-align: center;
}

h1, h2, h3, h4 {
    margin: 0;
}

h1 {
    line-height: 2.3ex;
}

h2 {
    line-height: 2ex;
}


/* Forms */

form.tabular {
    display: table;
}

form.tabular div {
    display: table-row;
}

form.tabular label {
    display: table-cell;
}

form.tabular input {
    display: table-cell;
}

input[type="text"], input[type="password"] {
    font-size: var(--form-font-size);
    padding: 5px;
    margin: 10px;
    border: 0;
    background-color: #eee;
    border-radius: 3px;
}

input[type="text"]:focus, input[type="password"]:focus {
    outline: none;
}

input[type=submit] {
    font-size: var(--form-font-size);
    border: none;
    background-color: var(--accent-color);
    padding: 5px;
    margin: 2px;
    cursor: pointer;
}

input[type=submit]:hover {
    background-color: var(--accent-color-active);
}

input[type="button"] {
    font-size: var(--form-font-size);
    border: none;
    background-color: white;
    padding: 5px;
    margin: 2px;
    cursor: pointer;
}

input[type=button]:hover {
    background-color: var(--accent-color-active);
}

a.button {
    border: solid 1px black;
    background-color: white;
    padding: 4px;
    margin: 5px;
    cursor: pointer;
}

a.button:hover {
    background-color: var(--accent-color-active);
}

a.button-active {
    background-color: var(--accent-color-active);
    border: solid 1px black;
    padding: 4px;
    margin: 5px;
    cursor: pointer;
}

select {
    appearance: inherit;
    border: solid 1px black;
    border-radius: 0;
    padding: 5px;
    margin: 5px;
    font-family: inherit;
    font-size: inherit;
    cursor: inherit;
    line-height: inherit;
}

/*
 * Flex layout
 */

.container {
    max-width: 960px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    overflow: hidden;
    /* margin-bottom: 10px; */
}

.row-vert {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.contains-text p {
    margin-top: .75ex;
    margin-bottom: .75ex;
}

.contains-text h1 {
    margin-top: 1.5ex;
    margin-bottom: 2ex;
    line-height: 2.3ex;
}

.contains-text h2 {
    margin-top: 1.5ex;
    margin-bottom: 1.6ex;
}

.column {
    flex-basis: 100%;
    /* border: solid 1px black; */
}

.fixed-column {
    flex-basis: 100%;
}

@media screen and (min-width: 500px) {
    .column {
        flex: 1;
    }

    ._1 {
        flex: 1;
    }

    ._2 {
        flex: 2;
    }

    ._3 {
        flex: 3;
    }

    ._4 {
        flex: 4;
    }

    ._5 {
        flex: 5;
    }

    ._6 {
        flex: 6;
    }

    ._7 {
        flex: 7;
    }

    ._8 {
        flex: 8;
    }

    ._9 {
        flex: 9;
    }

    .display-small {
        display: none !important;
    }

    .rheight5 {
        height: 5ex;
    }

    .rheight6 {
        height: 6ex;
    }

    .rheight7 {
        height: 7ex;
    }

    .text-jumbo {
        font-size: 70px;
        line-height: 100px;
    }

}

@media screen and (max-width: 500px) {
    .r-text-sm {
        font-size: 14px;
        line-height: 17px;
    }

    .text-jumbo {
        font-size: 50px;
        line-height: 100px;
    }

    .display-big {
        display: none !important;
    }

    .rcentered {
        text-align: center;
        justify-self: center;
    }
}

.fixed-column {
    flex: 1;
}

._f1 {
    flex: 1;
}

._f2 {
    flex: 2;
}

._f3 {
    flex: 3;
}

._f4 {
    flex: 4;
}

._f5 {
    flex: 5;
}

._f6 {
    flex: 6;
}

._f7 {
    flex: 7;
}

._f8 {
    flex: 8;
}

._f9 {
    flex: 9;
}


/*
 * My own version of styling classes a la tailwind
 */

.text-base {
    font-size: 16px;
    line-height: 20px;
}

.padding-sm {
    padding: 6px;
}

.padding-md {
    padding: 10px;
}

.text-lg {
    font-size: 20px;
    line-height: 40px;
}

.text-xlg {
    font-size: 30px;
    line-height: 50px;
}

.padding-lg {
    padding: 20px;
}

.text-bold {
    font-weight: bold;
}

.text-light {
    color: gray;
}

.text-light a {
    color: gray;
}


.padding-jumbo {
    padding: 60px;
}


.text-sm {
    font-size: 14px;
    line-height: 17px;
}

.margin-m {
    margin: 20px;
}

.margin-l {
    margin: 30px;
}

.margin-xl {
    margin: 40px;
}

.vmargin-s {
    margin-top: 14px;
    margin-bottom: 14px;
}

.margin-bottom-s {
    margin-bottom: 14px;
}

.margin-bottom-m {
    margin-bottom: 20px;
}

.margin-bottom-l {
    margin-bottom: 40px;
}

.vmargin-m {
    margin-top: 20px;
    margin-bottom: 20px;
}

.vmargin-l {
    margin-top: 40px;
    margin-bottom: 40px;
}

.vmargin-xl {
    margin-top: 60px;
    margin-bottom: 60px;
}

.centered {
    text-align: center;
    justify-self: center;
}

.align-right {
    text-align: right;
    justify-self: right;
}

.vcentered {
    align-self: center;
}

/*
 * Special stuff
 */

div.node-headerimg {
    border-radius: 10px;
    display: block;
    /*width: 150px; */
    height: 100px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    box-shadow: 0 3px 10px #bbb;
}


div.link-headerimg {
    border-radius: 10px;
    display: block;
    /* width: 400px; */
    height: 200px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    box-shadow: 0 3px 10px #bbb;
}

.rounded {
    border-radius: 10px;
}

.drop-shadow {
    box-shadow: 0 3px 10px #bbb;
}

.with-border {
    padding: 10px;
    border: solid 1px #bbb;
    border-radius: 10px;
}

.card-border {
    padding: 10px;
    border-top: solid 1px #bbb;
}


.clickable {
    border-radius: 10px;
    background-color: var(--accent-color);
    cursor: pointer;
}

.clickable:hover {
    background-color: var(--accent-color-active);
    cursor: pointer;
}

img.favicon {
    height: 32px;
    width: 32px;
    border-radius: 5px;
}

span.banner {
    background-color: red;
    color: white;
    padding: 3px 15px;
    border-radius: 20px;
    font-weight: bold;
}

.visible-links a {
    color: var(--accent-color-text);
}

.visible-links a:hover {
    color: var(--accent-color-text-active);
}

.fs-icon {
    width: 1.5ex;
    margin-right: 0.3ex;
}

a:hover.no-hover  {
    text-decoration: none;
}

div.warning {
    border: solid 5px red;
    padding: 5px;
}

/*
 * Share buttons
 */

a.twitter-share-button {
    padding: 3px 10px 3px 10px;
    border-radius: 2ex;
    background: #1b90ee;
    color: white;
}

a.mastodon-share-button {
    padding: 3px 10px 3px 10px;
    border-radius: 2ex;
    background: #6263ff;
    color: white;
}

a.linkedin-share-button {
    padding: 3px 10px 3px 10px;
    border-radius: 2ex;
    background: #0d5bba;
    color: white;
}

span.tag-classification {

    padding: 3px 7px 3px 7px;
    border-radius: 1ex;
    background: black;
    color: white;
}


/*
 * Blog pages
 */

div.blog-container {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

h1.blog-title {
    font-size: xx-large;
    margin: 2ex 0 0.75ex 0;
}

div.blog-date {
    font-style: italic;
    margin: 0 0 3ex 0;
}

div.blog-body {
    font-size: 20px;
    line-height: 3ex;
}

.blog-body p {
    margin-top: 2ex;
}

.blog-body a {
    color: var(--accent-color-text);
}

.blog-body a:hover {
    color: var(--accent-color-text-active);
}

@media screen and (min-width: 500px) {
    .blog-body img {
        width: 80%;
        display: block;
        margin-left: auto;
        margin-right: auto;
        padding: 20px;
    }
}

@media screen and (max-width: 500px) {
    .blog-body img {
        width: 100%;
        display: block;
        margin-left: auto;
        margin-right: auto;
        padding-top: 20px;
        padding-bottom: 20px;
    }
}

.blog-sidebar {
    float: right;
    margin: 0;
}

.banner-image {
    width: 100%;
}

/*
 * Analytics table
 */
table.analytics-table {
    margin: auto;
}

/*
 * Modal
 */

.full-width {
    width: 100%;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgb(0,0,0, 0.4);
}

.modal-content {
    position: relative;
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    width: 60%;
    animation-name: animatetop;
    animation-duration: 0.4s;
    border-radius: 10px;
    box-shadow: 0 3px 10px #444;
}

@keyframes animatetop {
    from { top: -300px; opacity: 0}
    to {top: 0; opacity: 1}

}

/*
 * Tab bar
 */

/* Big screens */
@media screen and (min-width: 500px) {
    .page-container {
        margin: auto;
        max-width: 1024px;
    }

    .tab-bar {
        background-color: #fff;
        border-right: solid 1px #eee;
        margin: 0;
        padding: 0;
        padding-top: 10px;
        width: 170px;
        position: fixed;
        height: 100%;
        top: 0;
    }

    .tab-bar div {
        display: block;
        padding: 10px;
    }

    .tab-bar div:hover {
        background-color: var(--accent-color-active);
    }

    .container {
        margin-left: 170px;
    }

    .tab-bar ul {
        padding: 0;
        list-style: none;
    }

    .tab-bar li {
        display: inline;
        width: 200px;
        height: 100px;
    }

    li.tab-icon {
    }

    .tab-bar .selected {
        font-weight: bold;
    }

    .tab-bar div.selected {
        border-right: solid 5px black;
    }

    .tab-bar .visible-when-tab {
        display: none;
    }
}

/* Small screens */
@media screen and (max-width: 500px) {
    .tab-bar {
        background-color: #fff;
        border-top: solid 1px #eee;
        overflow: hidden;
        position: fixed;
        bottom: 0;
        width: 100%;
        height: 72px;
        text-align: center;
        vertical-align: bottom;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }

    .tab-bar div {
        font-size: 12px;
        line-height: 24px;
        flex: 1;
    }

    .tab-bar div:hover {
        background-color: var(--accent-color-active);
    }

    .tab-bar ul {
        padding: 0;
    }

    .tab-bar li {
        padding: 0;
        list-style: none;
    }

    .tab-bar .selected {
        font-weight: bold;
    }

    .tab-bar div.selected {
        border-top: solid 5px black;
    }

    .tab-bar .visible-when-sidebar {
        display: none;
    }

    .footer {
        margin-bottom: 80px;
    }
}


/*
 *
 */

div.hover-toolbar form {
    visibility: hidden;
}

div.hover-toolbar:hover form {
    visibility: visible;
}