@import url('reset.css');

/* ============================================================
   Layout — container / row / columns
   ============================================================ */

.container {
    width: 100%;
    max-width: 1140px;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

[class*="col-"] {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 768px) {
    .offset-md-4 { margin-left: 33.333333%; }
}

@media (min-width: 992px) {
    .col-lg-4  { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-lg-12 { flex: 0 0 100%;       max-width: 100%; }

    .d-lg-none      { display: none !important; }
    .d-inline-block { display: inline-block !important; }
}

/* ============================================================
   Flexbox utilities
   ============================================================ */

.d-flex  { display: flex !important; }

/* ============================================================
   Spacing utilities
   ============================================================ */

.mt-4 { margin-top:    1.5rem !important; }
.my-5 { margin-top:    3rem   !important; margin-bottom: 3rem !important; }
.mb-3 { margin-bottom: 1rem   !important; }
.ml-auto { margin-left: auto  !important; }

/* ============================================================
   Typography utilities
   ============================================================ */

.text-center  { text-align: center !important; }
.text-muted   { color: #6c757d    !important; }
.text-success { color: #28a745    !important; }
.text-danger  { color: #dc3545    !important; }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   Navbar
   ============================================================ */

.navbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
}

.navbar-brand {
    display: inline-block;
    padding: 0.3125rem 0;
    margin-right: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: inherit;
    white-space: nowrap;
    color: inherit;
}
.navbar-brand:hover { text-decoration: none; color: inherit; }

.bg-primary { background-color: #007bff !important; }
.bg-light   { background-color: #f8f9fa !important; }

.navbar-dark .navbar-brand,
.navbar-dark .nav-link,
.navbar-dark .navbar-toggler { color: rgba(255, 255, 255, 0.9); }

.navbar-dark .nav-link:hover,
.navbar-dark .navbar-brand:hover { color: #fff; }

.navbar-nav {
    display: flex;
    flex-direction: column;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.nav-link { display: block; padding: 0.5rem 1rem; }
.nav-link:hover { text-decoration: none; }
.nav-item.active .nav-link { font-weight: 600; }

.navbar-expand-lg .navbar-nav { flex-direction: row; }
.navbar-expand-lg .nav-link   { padding-right: 0.5rem; padding-left: 0.5rem; }

.navbar-collapse {
    flex-basis: 100%;
    flex-grow: 1;
    align-items: center;
}

.navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
}

.navbar-toggler {
    padding: 0.25rem 0.75rem;
    font-size: 1.25rem;
    line-height: 1;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 0.25rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
}

.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em; height: 1.5em;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================================
   Dropdown  (CSS-only via :focus-within)
   ============================================================ */

.dropdown { position: relative; }

.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: '';
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%; left: 0;
    z-index: 1000;
    min-width: 10rem;
    padding: 0.5rem 0;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.dropdown-menu-right { right: 0; left: auto; }

.dropdown:focus-within .dropdown-menu { display: block; }

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.25rem 1.5rem;
    color: #212529;
    background-color: transparent;
    border: 0;
    cursor: pointer;
}
.dropdown-item:hover { background-color: #f8f9fa; text-decoration: none; }

/* ============================================================
   Forms
   ============================================================ */

.form-group { margin-bottom: 1rem; }

.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-text { display: block; margin-top: 0.25rem; }

.form-check {
    position: relative;
    display: block;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
}

.form-check-input {
    position: absolute;
    margin-top: 0.3rem;
    margin-left: -1.25rem;
}

.form-check-label { margin-bottom: 0; }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s, background-color 0.15s, border-color 0.15s;
}

.btn-primary { color: #fff; background-color: #007bff; border-color: #007bff; }
.btn-primary:hover { background-color: #0069d9; border-color: #0062cc; color: #fff; }

.btn-info  { color: #fff; background-color: #17a2b8; border-color: #17a2b8; }
.btn-info:hover  { background-color: #138496; border-color: #117a8b; color: #fff; }

.btn-dark  { color: #fff; background-color: #343a40; border-color: #343a40; }
.btn-dark:hover  { background-color: #23272b; border-color: #1d2124; color: #fff; }

/* ============================================================
   Lists
   ============================================================ */

.list-unstyled { padding-left: 0; list-style: none; }

/* ============================================================
   Collapse (toggled by JS adding/removing .show)
   ============================================================ */

.collapse:not(.show) { display: none; }
