/* Adjustments on top of the theme in style.css: first screen, readability, cookie consent and contact form. */

/* Headings follow a logical outline (h1, h2, h3, h4). These classes keep the sizes the theme gives to h4, h5 and h6. */
.as-h4 { font-size: 24px !important; }
.as-h5 { font-size: 18px !important; }
.as-h6 { font-size: 15px !important; }
.form-note { font-size: 13px; }
.form-note a { color: #9a5200; text-decoration: underline !important; }

.cookie-settings { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; position: relative; z-index: 9999; }

.consent { position: fixed; right: 16px; bottom: 16px; left: 16px; z-index: 10000; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; max-width: 760px; margin: 0 auto; padding: 16px 20px; background: #fff; }
.consent[hidden] { display: none; }
.consent p { flex: 1 1 300px; margin: 0 16px 8px 0; font-size: 14px; }
.consent .btn { border: 1px solid #f89d36 !important; }

/* First screen */
#home { min-height: 100vh; min-height: 100svh; padding: 100px 0 90px; }
#home .bg-over-image { background-color: rgba(20, 22, 32, 0.72) !important; }
#home .title-heading .sub-title { font-size: 20px !important; }
#home .title-heading img { width: auto; }

/* Readability */
.text-muted { color: #566073 !important; }
#contact .ph, #contact .post, #contact .video-play-icon.text-primary { color: #9a5200 !important; }
.nav-sticky.navbar-custom .navbar-nav .nav-item.active .nav-link,
.nav-sticky.navbar-custom .navbar-nav .nav-item .nav-link:hover { color: #9a5200 !important; }

@media (max-width: 991px) {
    nav.navbar-custom .navbar-nav .nav-item.active .nav-link,
    nav.navbar-custom .navbar-nav .nav-item .nav-link:hover { color: #9a5200 !important; }
}

@media (max-width: 575px) {
    #home .title-heading .sub-title { font-size: 16px !important; }
    .consent { right: 8px; bottom: 8px; left: 8px; flex-wrap: nowrap; padding: 10px 12px; }
    .consent p { flex-basis: auto; margin: 0 10px 0 0; font-size: 12px; line-height: 1.5; }
    .consent div { display: flex; flex: none; }
    .consent .btn { padding: 5px 9px; font-size: 12px; }
}

/* Low windows, for example a phone held sideways or a small laptop */
@media (max-height: 700px) {
    #home { padding: 80px 0 80px; }
    #home .title-heading img { height: 130px; }
    #home .title-heading .heading { margin-top: 8px !important; font-size: 40px !important; }
    #home .title-heading .mt-4 { margin-top: 12px !important; }
}

/* The name stays on one line on phones. Must follow the height rule above to win over it. */
@media (max-width: 575px) {
    #home .title-heading .heading { font-size: min(40px, 9.4vw) !important; line-height: 1.25; }
}

/* Background video: hidden unless it plays (see jquery.mb.YTPlayer.init.js, which also hides YouTube's button) */
#home .mbYTP_wrapper { opacity: 0 !important; }
#home.video-playing .mbYTP_wrapper { opacity: 1 !important; transition: opacity 0.5s; }

/* Strengths panel under "About me" */
.strength-title { font-size: 17px !important; line-height: 1.4; }
.strength-note { color: #d9dce3; font-size: 14px; line-height: 1.6; }

@media (max-width: 374px) {
    .strength-title { font-size: 15px !important; }
}

/* Timeline */
.tech-tags { display: flex; flex-wrap: wrap; margin-top: 12px; }
.tech-tags span { margin: 0 6px 6px 0; padding: 2px 10px; border: 1px solid #ced4da; border-radius: 20px; color: #3c4858; font-size: 12px; }
.earlier-toggle { border: 1px solid #f89d36 !important; }

/* Backgrounds and skill bar widths, moved here from inline styles */
#home { background-image: url(../images/jpg/video.jpg); }
.strengths-bg { background: url(../images/jpg/bg-counter.jpg) center center; }
.progress-bar.bar-50 { width: 50%; }
.progress-bar.bar-60 { width: 60%; }
.progress-bar.bar-65 { width: 65%; }
.progress-bar.bar-70 { width: 70%; }
.progress-bar.bar-75 { width: 75%; }
.progress-bar.bar-80 { width: 80%; }
.progress-bar.bar-85 { width: 85%; }
.progress-bar.bar-90 { width: 90%; }
.progress-bar.bar-100 { width: 100%; }
