﻿/* ---- base ---- */

::-webkit-scrollbar-track {
    -webkit-box-shadow: inset(0 0 6px rgba(0, 0, 0, .3));
    border-radius: 5px;
    background: #f5f5f5;
}

::-webkit-scrollbar {
    width: 10px;
    background-color: #f5f5f5;
}

::-webkit-scrollbar-thumb {
    border-radius: 4px;
    -webkit-box-shadow: inset(0 0 6px rgba(0, 0, 0, .3));
    background-color: #555;
    /*rgb(158, 165, 171)*/
}

@font-face {
    font-family: 'beyond';
    src: url('../fonts/bahaus.otf');
}

@font-face {
    font-family: 'kanit_medium';
    src: url('../fonts/kanit_medium.ttf');
}

@font-face {
    font-family: 'kanit_regular';
    src: url('../fonts/kanit_regular.ttf');
}

@font-face {
    font-family: 'josefin';
    src: url('../fonts/josefin.ttf');
}

html,
body {
    width: 100%;
    height: 100%;
}

html {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* =========================================
           TOP BAR
        ========================================= */



.top-bar {
    background: var(--dark);
    color: #fff;
    font-size: 13px;
}

.top-bar-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.top-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

    .top-links a {
        opacity: .95;
        transition: .2s;
    }

        .top-links a:hover {
            color: #8de3e6;
        }

/* ShipTickets Header */
.st-header {
    position: relative;
    z-index: 1050;
    font-family: Arial, sans-serif;
}

    .st-header .top-bar {
        background: #073b66;
        color: #fff;
        font-size: 13px;
    }

    .st-header .top-bar-inner {
        min-height: 36px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 8px;
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .st-header .top-links a {
        text-decoration: none;
        color: #fff;
    }

.st-navbar {
    background: #fff;
    padding: 10px 15px;
    box-shadow: 0 4px 18px rgba(0, 30, 60, .09);
}

.st-container {
    width: 100%;
}

.st-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 20px;
}

.st-logo {
    width: 70px;
    height: auto;
    max-height: 55px;
    object-fit: contain;
}

.st-brand-text {
    font-size: 23px;
    font-weight: 800;
    letter-spacing: .5px;
    color: #07569b;
    white-space: nowrap;
}

.st-blue {
    color: #07569b;
}

.st-gold {
    color: #f2ad00;
}

.st-nav-list {
    align-items: center;
}

    .st-nav-list .nav-link {
        color: #17324d;
        font-size: 14px;
        font-weight: 600;
        padding: 12px 10px !important;
        white-space: nowrap;
        transition: color .2s ease;
    }

        .st-nav-list .nav-link:hover,
        .st-nav-list .nav-link:focus,
        .st-nav-list .nav-link.active {
            color: #0877c9;
        }

        .st-nav-list .nav-link i {
            margin-right: 4px;
            color: #0877c9;
        }

.st-navbar .dropdown-menu {
    min-width: 220px;
    margin-top: 0;
    padding: 8px 0;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 30, 60, .15);
    z-index: 2000;
}

.st-navbar .dropdown-item {
    padding: 10px 16px;
    color: #17324d;
    font-size: 13px;
    white-space: normal;
    transition: background .2s ease, color .2s ease;
}

    .st-navbar .dropdown-item:hover,
    .st-navbar .dropdown-item:focus {
        color: #07569b;
        background: #edf6ff;
    }

    .st-navbar .dropdown-item i {
        width: 20px;
        color: #0877c9;
    }

.st-route-arrow {
    color: #e7a600;
    font-weight: 700;
    padding: 0 3px;
}

.st-toggler {
    border: 1px solid #d6e2ee;
    padding: 8px 10px;
    outline: none;
}

    .st-toggler:focus {
        outline: 2px solid #7dbbfa;
        outline-offset: 2px;
    }

.st-toggler-line {
    display: block;
    width: 23px;
    height: 2px;
    margin: 5px 0;
    background: #07569b;
}

/* Desktop hover - Bootstrap 4.3.1 */
@media (min-width: 1200px) {
    .st-navbar .nav-item.dropdown {
        position: relative;
    }

        .st-navbar .nav-item.dropdown > .dropdown-menu {
            display: block;
            visibility: hidden;
            opacity: 0;
            pointer-events: none;
            transform: translateY(6px);
            transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
        }

        .st-navbar .nav-item.dropdown.st-hover-open > .dropdown-menu,
        .st-navbar .nav-item.dropdown:focus-within > .dropdown-menu {
            visibility: visible;
            opacity: 1;
            pointer-events: auto;
            transform: translateY(0);
        }
}

/* Tablet and mobile */
@media (max-width: 1199.98px) {
    .st-navbar {
        padding: 8px 12px;
    }

        .st-navbar .navbar-collapse {
            max-height: 75vh;
            overflow-y: auto;
            padding-top: 10px;
        }

    .st-nav-list {
        align-items: stretch;
    }

        .st-nav-list .nav-link {
            padding: 11px 8px !important;
        }

    .st-navbar .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin: 0;
        box-shadow: none;
        border: 1px solid #edf1f5;
        border-radius: 6px;
    }
}

@media (max-width: 575.98px) {
    .st-header .top-bar-inner {
        justify-content: center;
        text-align: center;
    }

    .st-brand {
        gap: 5px;
        margin-right: 5px;
    }

    .st-logo {
        width: 48px;
        max-height: 42px;
    }

    .st-brand-text {
        font-size: 19px;
    }
}
