html, body {
    height: 100%;
    margin: 0;
}

.bg {
    background-image: url("../img/motuba.png");
    height: 20%; 
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;    
    z-index: -1;
}

.bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(202, 199, 199, 0.6);
    z-index: 0;
}

.title {
    opacity: 1;
    position: absolute;    
    left: 0;
    top: 30%;
    width: 100%;
    text-align: center;
    z-index: 1;
}

.title span.subtitle {
    z-index: 5;
    padding: 20px 30px;
    font-size: 28px;
    letter-spacing: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 20px;
}

.title h2 {
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 600;
}

.title p {
    font-size: 18px;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    margin: 10px 0 30px 0;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
}

.footer {
    background-color: black;
    height: 250px;
}

.margin {
    margin-top: 100px;
}

.marginmd {
    margin-top: 50px;
}

.marginxs {
    margin-top: 25px;
}

.line {
    color: inherit;
}

.h1 {
  overflow: hidden;
  text-align: center;
}

.h1:before,
.h1:after {
  background-color: #000;
  content: "";
  display: inline-block;
  height: 1px;
  position: relative;
  vertical-align: middle;
  width: 50%;
}

.h1:before {
  right: 0.5em;
  margin-left: -50%;
}

.h1:after {
  left: 0.5em;
  margin-right: -50%;
}

.justify {
    text-align: justify;
}

/* Global responsive improvements for frontend pages */
img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

.container {
    width: 92%;
}

table {
    width: 100%;
}

.card {
    overflow-wrap: break-word;
}

.btn,
.btn-large {
    white-space: normal;
}

.side-nav,
.sidenav {
    z-index: 1005 !important;
}

#mobile-nav {
    background-color: rgba(20, 20, 20, 0.7) !important;
}

#mobile-nav li > a {
    color: #fff !important;
}

#mobile-nav li > a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

#sidenav-overlay {
    background-color: transparent !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1004;
}

body.mobile-nav-open .mobile-nav-overlay {
    display: block;
}

body.mobile-nav-open #mobile-nav.manual-open {
    transform: translateX(0) !important;
}

/* Tablet and below */
@media (max-width: 992px) {
    .title {
        top: 22%;
        padding: 0 12px;
    }

    .title span.subtitle {
        font-size: 20px;
        letter-spacing: 4px;
        padding: 12px 16px;
    }

    .title p {
        font-size: 16px;
        margin: 8px 0 18px 0;
    }

    nav .brand-logo {
        max-width: calc(100vw - 100px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 1.1rem !important;
    }

    .card .card-content {
        padding: 16px;
    }
}

/* Phones */
@media (max-width: 767px) {
    html, body { height: auto; min-height: 100%; }
    body { display: flex; flex-direction: column; }
    footer { margin-top: auto; }

    .container {
        width: 95%;
    }

    .margin {
        margin-top: 60px;
    }

    .marginmd {
        margin-top: 30px;
    }

    .marginxs {
        margin-top: 16px;
    }

    .h1 {
        font-size: 1.45rem;
        line-height: 1.35;
    }

    .title {
        top: 18%;
    }

    .title span.subtitle {
        font-size: 16px;
        letter-spacing: 2px;
        padding: 10px 12px;
    }

    .title h2 {
        font-size: 1.8rem;
    }

    .title p {
        font-size: 14px;
        padding: 8px 12px;
        margin: 8px 0 12px 0;
    }

    .row .col {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    input[type=text],
    input[type=email],
    input[type=password],
    textarea {
        font-size: 16px;
    }

    .table-responsive-vertical {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-responsive-vertical table {
        min-width: 640px;
    }

    .card .card-content .btn,
    .card .card-action .btn {
        width: 100%;
        margin-bottom: 8px;
    }

    .card .card-content .btn:last-child,
    .card .card-action .btn:last-child {
        margin-bottom: 0;
    }
}
