/*
Palette. From Darkest to Brightest.

Blue 1: #18364d;
Blue 2: #074254;
Blue 3: #105469;
Blue 4: #192C3E;

Yellow 1: #ECBE13;
Yellow 2: #FFD141;
Yellow 3: #FFD558;

Darkness 1: #3A3A3A;
Darkness 2: #2A292E;
Academy Darkness: #22272E;
*/

html {
    scroll-behavior: smooth;
    height: 100%;
    word-wrap: break-word;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    overflow-x: hidden;
    height: 100%;
}

@media (max-width: 1024px) {

    /* so that it now cuts the margin on the sides when phone in landscape */
    .container {
        max-width: none;
    }
}


/* Inputs */
.search-input:focus {
    border-color: rgba(255, 193, 7, 0.6);
    box-shadow: 0 1px 1px rgba(255, 193, 7, 0.75) inset, 0 0 8px rgba(255, 193, 7, 0.6);
    outline: 0 none;
}

.custom-input:focus {
    border: 2px solid #105469;
    box-shadow: none;
}


/* Fonts and Such */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 400;
}

p.mod {
    font-size: 15px;
}

p.small {
    font-size: 14px;
}

a,
a.active,
a:active,
a:focus,
a:hover {
    color: #105469;
}

.lead {
    font-weight: inherit;
}

.upright {
    font-size: 110%;
}

.rem-21 {
    font-size: 2.1rem;
}

.copyright {
    color: #ECBE13;
}

.thumbnail.corsi {
    border: 1px solid #18364d;
    border-radius: 30px;
    padding: 20px;
}

.blumod {
    color: #074254;
}

.blumod>a {
    color: #000;
}

.img-prev {
    border: 1px solid rgba(219, 219, 219, 0);
    border-radius: 10px;
    margin-bottom: 10px;
}

.img-prev-two {
    margin-bottom: 10px;
}

@media (max-width: 360px) {
    .hidden-wave {
        display: none;
    }
}

.sol {
    display: none;
    clear: both;
    width: 100%;
}

.pip-name {
    color: #ecbe13 !important;
    font-size: 280%;
}
  
@media (max-width: 768px) {
    .pip-name {
        font-size: 160%;
    }
}

.pip-top-hero {
    color: #FFD558 !important;
    font-size: 200%;
}
  
@media (max-width: 768px) {
    .pip-top-hero {
        font-size: 160%;
    }
}



/* NavBar-Custom Setup */

.navbar-custom {
    font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
    text-transform: uppercase;
    font-weight: 500;
    background: #18364d;
    border: none;
}

.navbar-nav .dropdown-item {
    background-color: #18364d;
    padding: 1rem;
}

.navbar-nav .dropdown-item:hover {
    background-color: #192C3E !important;
    color: #FFD558 !important;
}

.navbar-brand {
    color: #ECBE13;
}

.navbar-custom .navbar-brand.active,
.navbar-custom .navbar-brand:active,
.navbar-custom .navbar-brand:focus,
.navbar-custom .navbar-brand:hover {
    color: #ffd558;
}

.navbar-custom .navbar-nav {
    letter-spacing: 2px;
}

.navbar-custom .navbar-nav li a {
    color: #ECBE13;
}

.navbar-custom li a:hover,
.navbar-custom li>a.active,
.navbar-custom li>a:focus {
    color: white;
    text-decoration: none;
}

.navbar-toggler {
    color: #ECBE13;
    text-transform: uppercase;
    border-color: #ECBE13;
}

.navbar-toggler:focus,
.navbar-toggler:hover {
    background-color: #074254;
    color: #FFD141;
    border-color: #FFD141;
}

#dropdown-mydrop {
    background-color: transparent;
}


/* Changing NavBar font-size based on the device */

@media (max-width: 320px) {
    .navbar-brand {
        font-size: 0.8em;
    }

    .navbar-toggler {
        font-size: 0.9em;
    }

    #collapsableContent {
        font-size: 0.8em;
    }

    .navbar-nav .dropdown-item {
        font-size: 0.8em;
    }
}

@media (min-width: 1025px) {
    .navbar-nav .nav-item {
        padding: 0.5rem;
    }
}

@media (min-width: 321px) and (max-width: 360px) {
    #collapsableContent {
        font-size: 0.9em;
    }
}

@media (min-width: 360px) and (max-width: 411px) {
    .navbar-brand {
        font-size: 0.9em;
    }

    .navbar-toggler {
        font-size: 1.0em;
    }
}

@media (min-width: 411px) and (max-width: 992px) {
    .navbar-brand {
        font-size: 1.1em;
    }
}

@media (min-width: 992px) and (max-width: 1200px) {
    .navbar-brand {
        font-size: 20px;
    }
}

@media (min-width: 1200px) {
    .navbar-custom {
        padding: 10px;
    }
}


/* homepage hero header in homepage */

header img {
    margin: 0 auto 20px;
    display: block;
}

header {
    color: #FFFFFF;
    background: #192C3E;
    text-align: center;
}

header .container {
    padding-top: 80px;
    padding-bottom: 30px;
}

@media (min-width: 992px) {
    header .container {
        padding-top: 110px;
        padding-bottom: 15px;
    }
}


/* content hero header in homepage */

.hero-h1 {
    color: #FFD141;
    font-size: 2.2rem;
}

@media (max-width: 421px) {
    .hero-h1 {
        font-size: 1.5rem !important;
        margin-bottom: 1.0rem;
    }

    .hero-lead {
        font-size: 1.0rem !important;
        margin-bottom: 0.5rem;
    }
}

@media (min-width: 422px) and (max-width: 992px) {
    .hero-h1 {
        font-size: 1.6rem !important;
        margin-bottom: 1.0rem;
    }

    .hero-lead {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem;
    }
}


/* Site Sections CSS */

section {
    padding: 90px 0;
}

@media (max-width:992px) {
    section {
        padding: 50px 0;
    }
}

@media (min-width:992px) and (max-width:1024px) {
    section {
        padding: 80px 0;
    }
}

section.home {
    padding-top: 20px;
    padding-bottom: 50px;
}

@media (max-width:767px) {
    section.home {
        padding-top: 20px;
        padding-bottom: 50px;
    }
}


/* Custom Button Classes */

.btn-search {
    width: 100% !important;
}

@media (max-width: 480px) {
    .btn-search {
        margin-top: 4px;
    }
}

.btn-pro {
    margin-right: 8px;
}

@media (max-width: 450px) {
    .btn-pro {
        margin-right: 0px;
        margin-bottom: 8px;
    }
}

.btn-pip {
    color: #fff;
    background-color: #18364d;
    border-color: #18364d;
    font-weight: 700;
}

.btn-pip.active,
.btn-pip:active,
.btn-pip:focus,
.btn-pip:hover,
.open .dropdown-toggle.btn-pip {
    color: #fff;
    background-color: #074254;
    border-color: #161f29;
}

.btn-pip.active,
.btn-pip:active,
.open .dropdown-toggle.btn-pip {
    background-image: none;
}


.btn-pip2 {
    color: #fff;
    background-color: #074254;
    border-color: #18364d;
    font-weight: 700;
}

.btn-pip2.active,
.btn-pip2:active,
.btn-pip2:focus,
.btn-pip2:hover,
.open .dropdown-toggle.btn-pip2 {
    color: #fff;
    background-color: #18364d;
    border-color: #161f29;
}

.btn-pip2.active,
.btn-pip2:active,
.open .dropdown-toggle.btn-pip2 {
    background-image: none;
}



/* Footer Customization */

footer h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #ECBE13;
}

footer a, a:focus, a:active {
    color: white;
}

footer a:hover {
    color: #FFD558;
}

footer .footer-above {
    padding-top: 20px;
    background-color: #18364d;
}

footer .footer-below {
    padding: 15px 0;
    background-color: #074254;
}


/* Video Container */

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 30px;
    height: 0;
    overflow: hidden;
    border-radius: calc(.3rem - 1px);
}

.video-container embed,
.video-container iframe,
.video-container object {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* Blog Layout */

.blog-post-title>a {
    font-weight: bold;
    color: black;
}

.blog-post-title>a:hover {
    text-decoration: none;
    color: #074254;
}

.blog-post-preview {
    margin-bottom: 35px;
}

.blog-active-page-btn {
    color: #FFD141;
    background-color: #105469;
}

@media (min-width: 768px) {
    .blog-post-img-prev {
        padding-bottom: 0px;
        margin-bottom: 0px;
    }

    .blog-post-preview {
        margin-bottom: 20px;
    }
}


/* professional courses page */

@media (max-width: 768px) {
    .pro-h1 {
        font-size: 1.8rem;
    }

    .pro-h2 {
        font-size: 1.7rem;
    }
}

.sticky-top {
    top: 90px;
}

.collapsible {
    background-color: #f5f5f6;
    color: #074254;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: 1px solid #c0cedb;
    text-align: left;
    outline: none;
    font-size: 20px;
}

.active,
.collapsible:hover {
    background-color: #f1f1f1;
}

.collapsible:after {
    content: '\002B';
    color: #dc3545;
    font-weight: bold;
    float: left;
    margin-left: 10px;
}

.collapsible-green:after {
    content: '\002B';
    color: #5cb85c;
    font-weight: bold;
    float: left;
    margin-left: 10px;
}

.collapsible-green.active:after {
    content: "\2212";
}

.content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    background-color: #ffffff;
    margin-bottom: 5px;
    font-size: 120%;
    border-left: 1px solid #c0cedb;
    border-right: 1px solid #c0cedb;
    border-bottom: 1px solid #c0cedb;
}

.content>ol {
    margin-top: 10px;
    margin-right: 20px;
    margin-left: 20px;
}

.course-curriculum-li-span {
    float: right;
    margin-right: 30px;
}

ol>li {
    line-height: 1.5;
}

ol>li:before {
    content: '\f144';
    font-family: FontAwesome;
    color: #c0cedb;
    margin-right: 5px;
    margin-left: 10px;
}


/* Pagina dei Videocorsi Professionali, single cards */

.hvr-grow {
    display: inline-block;
    vertical-align: middle;
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -webkit-transition-property: transform;
    transition-property: transform;
}

.hvr-grow:hover,
.hvr-grow:focus,
.hvr-grow:active {
    -webkit-transform: scale(1.03);
    transform: scale(1.03);
    opacity: 0.9;
}


/* YouTube Courses Page */

.title-h1 {
    font-weight: bold;
    font-size: 1.7rem;
    margin-top: 20px;
}

.card-img {
    width: 100%;
    border-radius: calc(.25rem - 1px);
}


/* Newsletter Snippet Right Column */

.newsletter {
    border: 1px solid rgba(0, 0, 0, .125);
    box-shadow: 1px 1px rgba(0, 0, 0, .125);
    border-radius: calc(.3rem - 1px);
}


/* Dark Mode */

.body-dark-mode {
    background-color: #22272E !important;
    color: white !important;
}

.body-dark-mode-landing {
    background-color: #22272E !important;
}

.newsletter-dark-mode {
    border: 1px solid rgba(255, 255, 255, 0.125);
    box-shadow: 2px 2px rgba(255, 255, 255, 0.125);
    border-radius: calc(.3rem - 1px);
}

.links-dark-mode {
    color: #FFD558 !important;
}

.separators-dark-mode {
    border-color: #FFD558 !important;
}

.text-dark-mode {
    color: #E5E7EB !important;
}

.links-dark-mode-two {
    color: #E5E7EB;
}

.links-dark-mode-two:hover {
    color: #FFD558 !important;
}

.card-darkness {
    background-color: #3a3a3a !important;
}

.card-darkness>a {
    color: #FFD558 !important;
}

.card-darkness>p {
    color: white !important;
}

.dark-li {
    color: #6c757d !important;
}



/* Generic Bootstrap Overwrites */

.list-group-item,
.list-group-item:hover {
    color: black !important;
}

.list-group-item.active {
    color: white !important;
}


/* Generic Properties */

.no-border {
    border: none !important;
}


/* from bakerydemo */

figure {
    margin: 0 0 30px;
    position: relative;
}

@media (min-width: 768px) {
    figure {
        margin: 0 0 50px;
    }
}

figcaption {
    background-color: rgba(52, 52, 87, 0.8);
    bottom: 0;
    color: white;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    font-weight: 300;
    left: 0;
    padding: 10px;
    position: absolute;
    width: 75%;
}

figure img {
    display: block;
    width: 100%;
    height: auto;
}

blockquote {
    border-left: 5px solid #d4566b;
    margin: 0 0 50px;
}

blockquote p {
    font-size: 30px;
    margin: 0 0 10px;
}

blockquote footer::before {
    display: none;
}

blockquote footer p {
    font-size: 1.5em;
    font-style: italic;
}


/* used by wagtail richtext */

.full-width {
    margin: 0 auto 0;
    display: block;
    max-width: 100%;
    height: auto;
}



/* scrollbar  */
body {
    scrollbar-width: thin;
    background-color: #111827;
}

::-webkit-scrollbar {
    width: 12px;
    background-color: #111827;
}

::-webkit-scrollbar-thumb {
    background-color: #18364d;
    border-radius: 10px;
}

::-moz-scrollbar {
    width: 12px;
    background-color: #111827;
}

::-moz-scrollbar-thumb {
    background-color: #18364d;
    border-radius: 10px;
}

/* Excercises Page  */

.dark-rounded-block {
    background-color: #22272E;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.blue-rounded-block {
    background: #18364d;
    padding: 20px;
    border-radius: 10px;
}

.title_one {
    color: #E5E7EB !important;
}

.excercise-body {
    color: #d1d5db !important;
}

.title_two {
    color: #FFD558 !important;
}

#terminal {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100vw;
    height: 50px;
    background-color: #111827;
    color: #fff;
    font-family: monospace;
    font-size: 14px;
    padding: 10px;
    padding-bottom: 0 !important;
    overflow: scroll;
    transition: height 0.5s ease;
    z-index: 9999;
}

@media only screen and (max-width: 768px) {
    #terminal {
        height: 70px;
    }
}

#buttons {
    position: absolute;
    top: 0;
    right: 10px;
}

#buttons button {
    background-color: transparent;
    border: none;
    color: white !important;
    cursor: pointer;
    font-size: 20px;
    margin-left: 10px;
    padding-top: 0px !important;
}

#buttons button:hover {
    color: #ECBE13 !important;
}

pyprez-editor {
    width: 1270px !important;
}

.greetings {
    font-weight: bold;
    color: white !important;
    margin-bottom: 10px;
    cursor: pointer;
}

.greetings:hover {
    color: #ECBE13 !important;
}

.greetings a {
    text-decoration: underline;
}


/* Fluorescent Button Effect */
.btn-fluo {
    background-color: #ff2e63 !important;
    border: none !important;
    box-shadow: 0 0 15px rgba(255, 46, 99, 0.4);
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
    color: white !important;
    letter-spacing: 0.8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-fluo:hover {
    background-color: #ff4d79 !important;
    box-shadow: 0 0 25px rgba(255, 46, 99, 0.7);
    transform: translateY(-2px);
    color: white !important;
}
