@import "csrichy.css";

/*
Global styles for this site only
 */

footer {
    & a, a:visited:not(.main-button) {
        color: var(--nav-font-color);
        text-decoration: none !important;
    }

    & a:hover {
        text-decoration: underline;
    }

    & .footer-link-column {
        display: flex;
        flex-direction: column-reverse;
        min-height: 100%;
        width: 300px;
        text-align: center;

        & ul {
            list-style-type: none;
        }
         & li {
             margin-bottom: 7px;
         }
    }

    & #footer-container {
        display: flex;
        flex-direction: row;
        justify-content: center;
        width: 100%;
        height: auto;
        padding: 30px 0px;
    }

    & #tm-container {
        bottom: 0;
        height: 30px;
        width: 100%;
        text-align: center;
        font-size: 14px;
    }
}

.nav-link a {
    text-decoration: none;
    color: gold;
    cursor: pointer;
}

.nav-link a:hover {
    text-decoration: underline;
}

.badge {
    padding-left: 9px;
    padding-right: 9px;
    padding-bottom: 9px;
    -webkit-border-radius: 9px;
    -moz-border-radius: 9px;
    border-radius: 9px;
}

.item-count {
    font-size: 12px;
    padding: 0 5px;
    vertical-align: middle;
    margin-left: -35px;
}

#header-container {
    display: flex;
    width: 100%;
    height: 74px;

    & #logo {
        z-index: 999999;
    }

    & #mobile {
        -webkit-transition: left 0.5s ease;
        -moz-transition: left 0.5s ease;
        -ms-transition: left 0.5s ease;
        -o-transition: left 0.5s ease;
        transition: left 0.5s ease;
        background: black;
        color: white;
        cursor: pointer;
        font-size: 2rem;
        height: 100vh;
        left: -20rem;
        padding: 6rem 2rem 2rem 2rem;
        position: fixed;
        top: 0;
        width: 20rem;
        z-index: 1;
    }
    & #mobile.expanded { left: 0; }
    & #mobile ul {
        position: absolute;
        top: 50%;
        -webkit-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
        transform: translateY(-50%);
        list-style: none;
        margin: 0;
        padding: 0;
    }

    & .nav-toggle {
        display: flex;
        justify-content: center;
        -webkit-user-select: none;
        -moz-user-select: none;
        user-select: none;
        cursor: pointer;
        height: 100%;
        position: relative;
        width: 100px;
        z-index: 2;
        background: black;
    }
    & .nav-toggle:hover { opacity: 0.8; }
    & .nav-toggle .nav-toggle-bar,  .nav-toggle .nav-toggle-bar::after,  .nav-toggle .nav-toggle-bar::before {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        transition: all 0.5s ease;
        background: gold;
        content: '';
        height: 0.4rem;
        width: 50px;
    }
    & .nav-toggle .nav-toggle-bar { margin-top: 0; }
    & .nav-toggle .nav-toggle-bar::after { margin-top: 0.8rem; }
    & .nav-toggle .nav-toggle-bar::before { margin-top: -0.8rem; }
    & .nav-toggle.expanded .nav-toggle-bar { background: transparent; }
    & .nav-toggle.expanded .nav-toggle-bar::after, .nav-toggle.expanded .nav-toggle-bar::before {
        background: gold;
        margin-top: 0;
    }
    & .nav-toggle.expanded .nav-toggle-bar::after {
        -ms-transform: rotate(45deg);
        -webkit-transform: rotate(45deg);
        transform: rotate(45deg);
    }
    & .nav-toggle.expanded .nav-toggle-bar::before {
        -ms-transform: rotate(-45deg);
        -webkit-transform: rotate(-45deg);
        transform: rotate(-45deg);
    }

    & img {
        width: 88px;
        height: 74px;
        object-fit: cover;
    }

    & #main {
        display: flex;
        flex-grow: 1;
        overflow: hidden;
        background-color: var(--nav-menu-main);
        color: var(--nav-font-color);
        height: 100%;

        & ul {
            display: flex;
            flex-grow: 1;
            height: 100%;
        }

        & .nav-link {
            display: inline-block;
            flex-basis: 25%;
            list-style-type: none;
            height: var(--nav-link-height);
            text-align: center;
            background-color: black;

            & a, a:visited {
                position: relative;
                display: block;
                /*
                add calc function for line height, works only in a particular screen size for now
                 */
                line-height: 3.5em;
                width: 100%;
                height: 100%;
                color: var(--main-color-light);
                text-align: center;
                text-decoration: none;
            }

            & a:hover {
                color: black;
            }
        }

        & .nav-link:hover {
            opacity: 0.9;
            cursor: pointer;
            background-color: gold;
        }

    }
}

.action-link {
    position: relative;
    font: bold 17px Arial;
    border-top-right-radius: 17px;
    border-bottom-right-radius: 17px;
    text-align: right;
    text-decoration: none;
    background-color: var(--main-color-light);
    color: var(--main-color-dark);
    line-height: 40px;
    padding: 4px 8px 4px 8px;
    width: 350px;
    height: 50px;
    border-top: 1px solid var(--main-color-light);
    border-right: 1px solid var(--main-color-light);
    border-bottom: 1px solid var(--main-color-light);
    border-left: 1px solid var(--main-color-light);
    box-shadow: 0px 1px 5px black;
    margin-bottom: 20px;
}

.page-row.header {
    background: var(--main-color-dark);
    color: var(--main-color-light);
    text-align: center;
    font-size: 26px;
    height: 120px;
    margin-top: 40px;
    line-height: 4em;
}

#profile-home-link {
    margin-top: 35px;
    padding-left: 60px;
}

@media screen and (min-width: 601px) {
    header #mobile {
        display: none !important;
    }

    header .nav-toggle {
        display: none !important;
    }

    header #main {
        display: flex;
    }
}

@media screen and (max-width: 600px){
    #header-container {
        justify-content: space-between;
    }
    header #mobile {
        display: block !important;
    }

    header .nav-toggle {
        display: flex !important;
    }

    header #main {
        display: none !important;
    }
}

#card-element {
    -moz-appearance: textfield;
    -webkit-appearance: textfield;
    padding: 7px 5px;
    border-radius: 10px;
    border: solid 1px black;
    width: 240px;
    height: 45px;
    font-size: 18px;
    font-family: inherit;
}