html {
    box-sizing: border-box;
    font-size: 14px;
    position: relative;
}

/* Make the page stretch to at least the height of the screen
 * ========================================================== */
html, body {
    min-height: 100vh;
}

/* Prevent icons from being too large for some reason */
.nf {
    font-size: 1rem !important;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    height: 100%;
}

/* ========================================================== */

footer {
    position: absolute;
    width: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

body {
    background-color: var(--bulma-primary-95);
}

img {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Fluid container for horizontal navbar */
.container.is-fluid {
    padding-left: 5%;
    padding-right: 5%;
}

/* Specify margin instead of padding so that the body background is visible*/
#container-main {
    padding: 0;
    margin-left: 5%;
    margin-right: 5%;
    width: 90%;
    background-color: white;
}

/* Stretch container to whole screen on mobile */
@media screen and (max-width: 768px) {
    #container-main {
        margin: 0;
        width: 100%;
    }
}

/* Stretch the columns to the bottom of the page */
.columns {
    height: 100%;
}

.column.is-one-fifth,
#vertical-navbar-menu ul li a{
    background-color: var(--bulma-border-weak);
}

nav.navbar .column.is-one-fifth,
nav.navbar {
    background-color: var(--bulma-border);
}

nav.navbar .column {
    padding: 0;
}

.dropdown-menu {
    white-space: nowrap;
    background-color: var(--bulma-scheme-main);
}

.dropdown-content {
    padding: 1rem;
}

hr.menu-divider {
    height: 1px;
    margin: 1px;
    margin-right: 5%;
    margin-left: 5%;
    border: none;
    background-color: var(--bulma-menu-label-color);
    width: 90%;
}

#banner {
    background: url("../img/banner.png") no-repeat center center;
    background-size: contain;
}

.navbar-logo {
    background: url("../img/oossk_logo_whitebg.svg") no-repeat center center;
    background-size: contain;
}

.nf {
    font-size: 1.5rem;
}

.hero {
    background-color: #BFC7C9;
    --bulma-hero-body-padding-small: 3rem;
}

/* When user is signed into an event, undercolor it green and force dark text */
.table tr.has-background-success-light td {
    color: hsl(0, 0%, 21%); /* Light mode text color */
}

.table tr.has-background-success-light td a {
    color: hsl(217, 71%, 53%); /* Light mode link color */
}

/* Replace the ugly-ass shadow with a thin line (WIP, probably doesn't work for everything */
.is-shadowless {
    border-bottom: 1px solid var(--bulma-border, rgba(0, 0, 0, 0.2)) !important;
}

/* Round the bottom corners of a modal that has no footer*/
.modal-card-body-no-foot {
    border-end-start-radius: var(--bulma-modal-card-foot-radius);
    border-end-end-radius: var(--bulma-modal-card-foot-radius);
}

.compass-loader {
    width: 50px;
    height: 50px;
}

table td {
    /* I honestly have no clue how anyone could think aligning to the
     * top will look good in any way, shape or form */
    vertical-align: middle !important;
}

table.table-fixed {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.table-fixed th,
.table-fixed td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

/* Form fields required label
 * ========================================================== */
label::after {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
    top: -0.5em;
}

.is-required label::after {
    content: "*";
    font-weight: bold;
    color: var(--bulma-danger);
}

/* Questionmark helper tooltips for form inputs
 * ========================================================== */
.has-helptext {
    position: relative;
    display: inline-block;
}

.has-helptext label::after {
    content: "?"; /*  */
    color: var(--bulma-link);
}

.is-required .has-helptext label::after {
    content: "*?";
    color: var(--bulma-danger);
}

.has-helptext .helptext {
    visibility: hidden;
    width: 300px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    top: -5px;
    left: 110%;
}

.has-helptext .helptext::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 100%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent black transparent transparent;
}

.has-helptext:hover .helptext {
    visibility: visible;
}
/* ========================================================== */

/* Misc */
textarea {
    resize: vertical;
}

/* Make title inherit from it's wrapper */
/* Useful when we want to place buttons next to the title
 * and have the margin after both and not only on the title*/
.title > h1,
.title > h2,
.title > h3,
.title > h4,
.title > h5,
.title > h6 {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}
