/*
 Theme Name:   Code Crafted Digital
 Theme URI:    https://codecrafteddigital.com
 Description:  Code Crafted Digital GP Child Theme
 Author:       Andrew Nichols
 Author URI:   https://codecrafteddigital.com
 Template:     generatepress
 Version:      0.1
*/

/*--------------------------------------------------------------
# Global
--------------------------------------------------------------*/

/* Scrollbar Track stays dark blue for contrast */
::-webkit-scrollbar {
  width: 14px;
  background-color: #182c4c;
}

/* Scrollbar Thumb now primarily yellow */
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #f8d31c 0%, #f8d31c 100%);
  border-radius: 50px;
  box-sizing: content-box;
  border: 3px solid #182c4c;
  transition: background 0.2s ease;
}

/* On hover, introduce a hint of blue for feedback */
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #f8d31c 0%, #1e427a 100%);
  border-color: #1e427a;
}

/* Firefox fallback */
html {
  scrollbar-width: thin;
  scrollbar-color: #f8d31c #182c4c;
}

@media only screen and (max-width: 830px) {
  a.generate-back-to-top {
    display: none;
  }
}

/*--------------------------------------------------------------
# Mobile Action Bar
--------------------------------------------------------------*/

.mobile-action-bar {
  display: none !important;
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 99;
  border-top: 1px solid #fff;
}

@media only screen and (max-width: 829px) {
  .mobile-action-bar {
    display: flex !important;
  }
}

.mobile-action-bar > *:not(:last-child) {
  border-right: 1px solid #fff;
}

.mobile-action-bar div:hover {
  cursor: pointer;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/

/* Hide Desktop Slideout Toggle */
header .slideout-toggle {
  display: none;
}

.navigation-branding img,
.site-logo.mobile-header-logo img {
  height: auto !important;
  width: 175px !important;
}

.main-navigation.has-branding:not([class*="nav-align-"]):not(
    .mobile-header-navigation
  )
  .inside-navigation,
.main-navigation.has-sticky-branding.navigation-stick:not(
    [class*="nav-align-"]
  ):not(.mobile-header-navigation)
  .inside-navigation {
  padding-top: 5px !important;
  padding-bottom: 5px !important;
}

span.gp-icon.icon-search {
  display: none;
}

@media only screen and (min-width: 831px) {
  span.gp-icon.icon-search {
    display: flex;
  }
}

.main-navigation .menu-toggle {
  background: var(--global-color-9);
  border-radius: 5px;
  font-size: 20px;
}

.main-navigation .menu-toggle:hover {
  background: var(--global-color-9);
}

/*--------------------------------------------------------------
# Off Canvas Menu
--------------------------------------------------------------*/

:root {
  --gp-slideout-width: 100% !important;
}

#generate-slideout-menu:before {
  position: absolute;
  width: 100%;
  height: 100%;
  content: "";
  background: var(--global-color-8);
  background-position: center center;
  background-size: cover;
  z-index: -1;
}

.offside-js--interact .offside,
.offside-js--interact .offside-sliding-element {
  transition: transform 0.5s cubic-bezier(0.16, 0.68, 0.43, 0.99) !important;
  -webkit-backface-visibility: hidden;
  -webkit-perspective: 1000;
}

button.slideout-exit.has-svg-icon {
  display: flex;
  justify-content: flex-end;
  color: #ffffff;
  font-size: 25px;
}

.ccd__offcanvas--logo {
  padding-left: 20px;
  padding-bottom: 20px;
}

.ccd__offcanvas--buttons {
  color: #000 !important;
}

.ccd__offcanvas--buttons:hover {
  color: #fff !important;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/

@media only screen and (max-width: 830px) {
  .ccd-copyright {
    padding-bottom: 57px;
  }
}

/*--------------------------------------------------------------
# Gravity Forms
--------------------------------------------------------------*/

.home .site-main {
  margin-top: 0;
  margin-bottom: 0;
}

.home .inside-article {
  padding-top: 0;
  padding-bottom: 0;
}

/* Homepage Form */

#gform_1 legend,
#gform_1 label {
  color: #ffffff;
  font-weight: bold;
}

#gform_1 .gfield_required_text {
  color: #ffffff;
}

#gform_1 input,
#gform_1 textarea {
  border-radius: 5px;
}

#gform_1 textarea {
  resize: none;
}

#gform_1 input[type="submit"] {
  width: 100%;
  background: var(--global-color-9);
  font-weight: bold;
  font-size: 17px;
  transition: 0.3s;
  cursor: pointer;
  color: #000;
}

#gform_1 input[type="submit"]:hover {
  background: #000000;
  color: #ffffff;
}

#gform_1 .gform_fields {
  row-gap: 20px !important;
}