﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

/* Bootstrap overrides
-------------------------------------------------- */
.container {
    max-width: inherit;
}

/* Bootstrap 5, drawn as Bootstrap 4 drew the site
-------------------------------------------------- */
/* The site moved from Bootstrap 4.6 to 5.3. Where Bootstrap 5 changed a
   default the pages show, these put Bootstrap 4's back. */
:root {
    /* Bootstrap 5 puts system-ui first. */
    --bs-font-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    /* Links, the menu's and buttons' dark grey, and inline code. */
    --bs-link-color-rgb: 0, 123, 255;
    --bs-link-hover-color-rgb: 0, 86, 179;
    --bs-dark-rgb: 52, 58, 64;
    --bs-code-color: #e83e8c;
    /* Card borders, and the corners of cards, buttons and dialogs. */
    --bs-border-color-translucent: rgba(0, 0, 0, .125);
    --bs-border-radius: .25rem;
    --bs-border-radius-lg: .3rem;
}

/* Links underline on hover only. Buttons, menu links and the brand have a
   class, and Bootstrap 5 never underlines those. */
a {
    text-decoration: none;
}

a:not([class]):hover {
    text-decoration: underline;
}

/* Bootstrap 5 shrinks headings on screens under 1200px wide. */
h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

/* A faint line, centred where it is narrower than its box (the menu's), its
   height outside its border. */
hr {
    box-sizing: content-box;
    height: 0;
    margin-right: auto;
    margin-left: auto;
    border-top: 1px solid rgba(0, 0, 0, .1);
    opacity: 1;
}

/* The pages put col-* classes on elements outside any .row. Bootstrap 4 gave
   each full width, 15px of padding at either side and position: relative;
   Bootstrap 5 pads only a .row's children, and sets a width only from the
   class's breakpoint up. :where() gives this rule no weight, so those
   widths, and the site's own paddings, win over it. */
:where([class*="col-"]) {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

/* Containers' padding, .75rem in Bootstrap 5. */
.container,
.container-fluid {
    --bs-gutter-x: 30px;
}

/* Card bodies' padding, 1rem in Bootstrap 5. */
.card {
    --bs-card-spacer-y: 1.25rem;
    --bs-card-spacer-x: 1.25rem;
}

/* The navbar's own side padding, which Bootstrap 5 leaves to a container in it. */
.navbar {
    --bs-navbar-padding-x: 1rem;
}

/* The menu button's icon, a shade fainter than Bootstrap 5's. */
.navbar-dark {
    --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.5%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Keyboard focus in the menu: the browser's own ring. Bootstrap 5's faint
   blue one hardly shows on the dark menu, and it rings the menu button after
   a tap too. */
.nav-link:focus-visible,
.navbar-toggler:focus {
    outline: revert;
    box-shadow: none;
}

/* The dark buttons' blue edge, and their ring when focused from the keyboard. */
.btn-primary {
    --bs-btn-border-color: #007bff;
    --bs-btn-hover-border-color: #0062cc;
    --bs-btn-active-border-color: #005cbf;
    --bs-btn-focus-box-shadow: 0 0 0 .2rem rgba(38, 143, 255, .5);
}

/* The dark buttons darken on hover and focus. */
a.bg-dark:focus,
a.bg-dark:hover,
button.bg-dark:focus,
button.bg-dark:hover {
    background-color: #1d2124 !important;
}

/* The project dialogs' border. */
.modal {
    --bs-modal-border-color: rgba(0, 0, 0, .2);
}

/* Printing as Bootstrap 4 printed the pages, which Bootstrap 5 no longer
   styles for print: on A3, at least 992px wide, without the menu.
   Bootstrap 4's other print rules (no shadows, underlined links, where pages
   break) change nothing on these pages. */
@media print {
    @page {
        size: a3;
    }

    body,
    .container {
        min-width: 992px !important;
    }

    .navbar {
        display: none;
    }
}

/* Margin - JS dynamic in HTML
-------------------------------------------------- */

@media (min-width:768px){
    body{margin-top:0;}
    body{margin-left: 245px;}
}
@media (max-width:767px){
    body{margin-top:100px}
    body{margin-left:0px}
}
@media (max-width:576px){
    body{margin-top:100px}
    body{margin-left:0px}
}

/* Background
-------------------------------------------------- */
body {
    background-color: dimgrey;
}

/* Nav Brand (Myself)
-------------------------------------------------- */
.my-title{
    color: navajowhite;
    text-align: center;
}

@media (min-width:768px) {
    .navbar-brand {
        text-align: left;
    }

    .my-header {
        display: grid;
    }

    /* The headshot is taller than wide, so it is always as tall as its
       maximum: saying so gives it its size, with the width from its width and
       height attributes, before the image loads. */
    .my-face {
        width: auto;
        min-width: 50px;
        max-width: 200px !important;
        height: 200px;
        min-height: 50px;
        max-height: 200px !important;
        margin-left: 11px;
        margin-bottom: 5px;
    }
}
@media (max-width:767px) {
    .navbar-brand {
        text-align: left;
    }

    .my-header {
        display: flex;
    }

    .my-title {
        margin-top: auto;
        margin-bottom: auto;
        margin-left: 1em;
        text-align: left;
    }

    .my-face {
        width: auto;
        min-width: 50px;
        max-width: 80px !important;
        height: 80px;
        min-height: 50px;
        max-height: 80px !important;
    }
}

@media (max-width: 576px) {
    .my-face {
        width: auto;
        min-width: 50px;
        max-width: 60px !important;
        height: 60px;
        min-height: 50px;
        max-height: 60px !important;
    }
    .my-title {
        margin-top: auto;
        margin-bottom: auto;
        margin-left: 1em;
        text-align: left;
    }
}

/* Navbar collapse
-------------------------------------------------- */
.navbar-toggler-icon {
    color: navajowhite;
}
@media (min-width:768px) {
    .navbar-collapse {
        flex-grow: 0;
        flex-direction: column;
        flex-direction: column;
        width: 100%;
        top: 0;
        right: auto;
        border-top: .3em solid transparent;
        border-left: .3em solid transparent;
        border-bottom: .3em solid transparent;
        border-right: none;
        vertical-align: baseline;
    }
}

/* Navbar
-------------------------------------------------- */
.navbar.fixed-left{
    position:fixed;
    top:0;
    left:0;
    right:0;
    z-index:1030
}

/* Switch to horizontal menu for small windows */
@media (min-width:768px){
    .fixed-left-div {
        border-top: 2px solid;
        border-color: antiquewhite !important;
        margin-top: 1rem;
        margin-bottom: 0rem;
        height: 2px;
        width: 90%;
        }

    .navbar.fixed-left{
        bottom:0;
        width:245px;
        flex-flow:column nowrap;
        align-items:flex-start

    }
    .navbar .fixed-left .navbar-collapse{
        flex-grow:0;
        flex-direction:column;
        width:100%

    }
    .navbar.fixed-left .navbar-collapse .navbar-nav{
        flex-direction:column;
        width:100%

    }
    .navbar.fixed-left .navbar-collapse .navbar-nav{
        width:100%

    }
    .navbar.fixed-left .navbar-collapse .navbar-nav .dropdown-menu{top:0}
    .navbar.fixed-left{right:auto}
    .navbar.fixed-left .navbar-nav .dropdown-toggle:after{
        border-top:.3em solid transparent;
        border-left:.3em solid transparent;
        border-bottom:.3em solid transparent;
        border-right:none;
        vertical-align:baseline

    }
    .navbar.fixed-left .navbar-nav .dropdown-menu{left:100%}

    .navbar-expand-md .navbar-nav{
        padding-right: 0.5rem;
        padding-left: 0.5rem;
}
    .navbar-nav {
        padding-top: 0.9rem;
        padding-bottom: 0.9rem;
    }
}

/* Nav Items
-------------------------------------------------- */
nav .navbar-nav li a {
    color: navajowhite !important;
    transition: all 0.25s;
}

nav .navbar-nav li a:hover{
    color: whitesmoke !important;
}

.nav-item{
    width:100%;
    top:0;
    border-top:.3em solid transparent;
    border-bottom:.3em solid transparent;
    border-right:none;
    vertical-align:baseline;
    }

@media (min-width:768px) {
    .nav-item {
        font-size: 1.5em;
        padding-left: 0em;
        text-align: center;
    }

    nav .navbar-nav li a:hover {
        font-size: xx-large;
    }

}
@media (max-width:767px) {
    .nav-item {
        font-size: 1.25em;
        text-align: center;
    }

    nav .navbar-nav li a:hover {
        font-size: x-large;
    }
}


@media (max-width: 576px) {
    .nav-item {
        font-size: 1em;
        text-align: center;
    }
    nav .navbar-nav li a:hover {
        font-size: large;
    }
}

/* Contact links, under the menu
-------------------------------------------------- */
.contact-note {
    color: lightgrey;
    font-size: small;
}

.contact-links {
    display: inline-flex;
    flex-direction: row;
}

.contact-gap {
    width: 20px;
}

/* Container
-------------------------------------------------- */
.card {
    background-color: lightgrey;
    transition: all 0.25s;
}
.card-index-page > .card-rows{
    padding-right: 7px;
    padding-left: 7px;
}
.card-index-card {
    padding-right: 7px;
    padding-left: 7px;
}
.projects .card {
    min-height: 410px;
}
.projects > .container-fluid{
    padding-left: 0px;
    padding-right: 0px;
}
@media (max-width:1000px) {
    .card-about-me-main {
        padding-left: 1px;
        padding-right: 3px;
    }
    .card-about-me-sidebar {
        padding-left: 2px !important;
        padding-right: 2px !important;
    }
}
@media (max-width:490px) {
    .container {
        padding-left: 5px;
        padding-right: 5px;
    }
}
    .card-about-me-body {
        width: auto;
        height: auto;
        min-width: 260px;
        text-align: left;
        padding-right: 3px;
    }

        .card-about-me-body > div {
            display: table;
            margin: 0 auto;
        }

    .card-about-me div {
        padding-left: 0px;
        padding-right: 0px;
    }

    .card-about-me {
        min-width: 200px;
        max-width: 300px;
    }

    .card-about-me-sidebar {
        padding-left: 1px;
        padding-right: 1px;
    }

    /* The two columns used to overflow narrow screens. The main column now
       gives way to the Objective column's minimum width, and on phones the
       Objective column moves below the main one. */
    .card-about-me-main {
        flex-shrink: 1;
    }

    @media (max-width: 575.98px) {
        .card-about-me-page {
            flex-wrap: wrap;
        }

        .card-about-me-main,
        .card-about-me-sidebar {
            width: 100%;
            max-width: none;
        }

        .card-about-me-main {
            padding-left: 0;
            padding-right: 0;
        }
    }

    .card-body {
        width: auto;
        min-width: 150px;
    }

    .card-project-img {
        height: 200px;
        line-height: 150px;
        text-align: center;
    }

    /* The width and height attributes give the image its shape before it
       loads; with both auto here, it is sized as it always was. */
    .card-img {
        max-height: 200px;
        max-width: 100%;
        width: auto;
        height: auto;
    }

    /* iOS draws a play button over a video it won't autoplay (in Low Power
       Mode, say): the card shows its still alone instead. */
    video.card-img::-webkit-media-controls-start-playback-button {
        display: none !important;
        -webkit-appearance: none;
    }

    .project-card-body {
        height: 100px;
        padding: 5px;
    }

    .card-rows .card:hover .card-img {
        opacity: 1;
        -webkit-transform-style: preserve-3d;
    }

    .card-rows .card-title {
        font-family: 'Nunito', sans-serif;
        font-size: large;
        background-color: lightgrey;
    }

    .card-rows .card-img {
        vertical-align: bottom;
        background-position: center; /* Center the image */
        background-repeat: no-repeat; /* Do not repeat the image */
        background-size: cover; /* Resize the background image to cover the entire container */
        opacity: .8;
    }

    .modal .card-img {
        vertical-align: bottom;
        background-position: center; /* Center the image */
        background-repeat: no-repeat; /* Do not repeat the image */
        background-size: cover; /* Resize the background image to cover the entire container */
    }

    .card-rows .card:hover {
        transform: scale(1.05);
        box-shadow: 0 10px 20px rgba(37,33,82,.12), 0 4px 8px rgba(37,33,82,.06);
    }

    .card-rows {
        display: flex;
        justify-content: center;
    }

    .card-footer {
        padding: .75rem 0rem;
        background-color: lightgrey;
    }

        .card-footer .btn-primary {
            border-color: grey;
            background-color: lightgrey;
            color: whitesmoke;
            min-width: 70px;
            max-width: 120px;
            margin-left: auto;
            margin-right: auto;
        }

            .card-footer .btn-primary a:hover {
                background-color: black !important;
                border-color: black;
                background-color: dimgrey;
            }

            .card-footer .btn-primary a:focus {
                background-color: black !important;
                border-color: black;
                background-color: dimgrey;
                box-shadow: none !important;
            }

    .btn {
        display: flex;
        justify-content: center;
    }

    .btn-primary {
        display: flex;
        justify-content: center;
    }

    /* Project Modal
-------------------------------------------------- */
    .modal-content {
        background-color: lightgrey;
    }

    .modal-body.card {
        background-color: whitesmoke;
    }

    /* Font Awesome styles
-------------------------------------------------- */
    .fa-linkedin {
        color: #0077b5;
    }

    .fa-envelope{
        color:lightgrey;
    }
    .fa-tasks:hover,
    .fa-envelope:hover,
    .fa-file-pdf:hover,
    .fa-linkedin:hover {
        color: #000fff;
    }

    /* General Formatting
-------------------------------------------------- */
    .text-full-width {
        text-align: justify;
    }

    .center {
        display: inline-block;
        margin-left: auto;
        margin-right: auto;
        vertical-align: middle;
    }

    .hr-short {
        margin-top: 0.25rem;
        margin-bottom: 0.25rem;
    }
    /* Sticky footer styles
-------------------------------------------------- */
    html {
        font-size: 14px;
    }

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

    .border-top {
        border-top: 1px solid #e5e5e5;
    }

    .border-bottom {
        border-bottom: 1px solid #e5e5e5;
    }

    .box-shadow {
        box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
    }

    button.accept-policy {
        font-size: 1rem;
        line-height: inherit;
    }

    /* Sticky footer styles
-------------------------------------------------- */
    html {
        position: relative;
        min-height: 100%;
    }

    .footer {
        position: absolute;
        bottom: 0;
        width: auto;
        white-space: nowrap;
        line-height: 60px; /* Vertically center the text there */
        color: black;
    }

    /* What the analytics collect, under the copyright line while Umami is on.
       The footer grows by this note, so the page keeps room for it. */
    .footer-note {
        margin: -1rem 0 .75rem;
        font-size: .75rem;
        line-height: 1.4;
        white-space: normal;
    }

    .has-footer-note {
        padding-bottom: 2.5rem;
    }

    /* Below 1200px the note can wrap to a third line: on phones, and on
       tablets beside the menu. */
    @media (max-width: 1199.98px) {
        .has-footer-note {
            padding-bottom: 3.75rem;
        }
    }

    /* On the narrowest phones, to a fourth. */
    @media (max-width: 359.98px) {
        .has-footer-note {
            padding-bottom: 4.75rem;
        }
    }
